readtokens.c: adjust wording in a comment
[gnulib.git] / ChangeLog
1 2012-03-09  Jim Meyering  <meyering@redhat.com>
2
3         readtokens.c: adjust wording in a comment
4         * lib/readtokens.c: Insert omitted "that" in a comment.
5
6 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7
8         modechange: add notations +40, 00440, etc.
9         * lib/modechange.c (mode_compile): Support new notations
10         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
11
12 2012-03-08  Bruno Haible  <bruno@clisp.org>
13
14         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
15         * m4/exp2l-ieee.m4: New file.
16         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
17         test whether exp2l works with a NaN argument and with a negative
18         infinity argument. Replace it if not.
19         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
20         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
21         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
22         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
23         (Depends-on): Update conditions.
24         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
25         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
26         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
27
28         Tests for module 'exp2l-ieee'.
29         * modules/exp2l-ieee-tests: New file.
30         * tests/test-exp2l-ieee.c: New file.
31
32         New module 'exp2l-ieee'.
33         * modules/exp2l-ieee: New file.
34
35         Tests for module 'exp2-ieee'.
36         * modules/exp2-ieee-tests: New file.
37         * tests/test-exp2-ieee.c: New file.
38
39         New module 'exp2-ieee'.
40         * modules/exp2-ieee: New file.
41
42         Tests for module 'exp2f-ieee'.
43         * modules/exp2f-ieee-tests: New file.
44         * tests/test-exp2f-ieee.c: New file.
45         * tests/test-exp2-ieee.h: New file.
46
47         New module 'exp2f-ieee'.
48         * modules/exp2f-ieee: New file.
49
50 2012-03-08  Bruno Haible  <bruno@clisp.org>
51
52         Tests for module 'exp2l'.
53         * modules/exp2l-tests: New file.
54         * tests/test-exp2l.c: New file.
55
56         New module 'exp2l'.
57         * lib/math.in.h (exp2l): New declaration.
58         * lib/exp2l.c: New file.
59         * lib/expl-table.c: New file, extracted from lib/expl.c.
60         * lib/expl.c (gl_expl_table): New declaration.
61         (expl): Remove expl_table. Update reference.
62         * m4/exp2l.m4: New file.
63         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
64         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
65         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
66         * modules/exp2l: New file.
67         * modules/expl (Files): Add lib/expl-table.c.
68         (configure.ac): Compile also expl-table.c.
69         * tests/test-math-c++.cc: Check the declaration of exp2l.
70         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
71         problem.
72
73 2012-03-08  Bruno Haible  <bruno@clisp.org>
74
75         Tests for module 'exp2f'.
76         * modules/exp2f-tests: New file.
77         * tests/test-exp2f.c: New file.
78
79         New module 'exp2f'.
80         * lib/math.in.h (exp2f): New declaration.
81         * lib/exp2f.c: New file.
82         * m4/exp2f.m4: New file.
83         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
84         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
85         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
86         * modules/exp2f: New file.
87         * tests/test-math-c++.cc: Check the declaration of exp2f.
88         * doc/posix-functions/exp2f.texi: Mention the new module and the
89         IRIX problem.
90
91 2012-03-08  Bruno Haible  <bruno@clisp.org>
92
93         Tests for module 'exp2'.
94         * modules/exp2-tests: New file.
95         * tests/test-exp2.c: New file.
96         * tests/test-exp2.h: New file.
97
98         New module 'exp2'.
99         * lib/math.in.h (exp2): New declaration.
100         * lib/exp2.c: New file.
101         * m4/exp2.m4: New file.
102         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
103         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
104         REPLACE_EXP2.
105         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
106         REPLACE_EXP2.
107         * modules/exp2: New file.
108         * tests/test-math-c++.cc: Check the declaration of exp2.
109         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
110         and OpenBSD problems.
111
112 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
113
114         savedir: fix comment typo
115         * lib/savedir.c (savedirstream): Fix typo in comment.
116
117 2012-03-08  Bruno Haible  <bruno@clisp.org>
118
119         test-readtokens.c: use const; remove unwarranted cast
120         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
121
122 2012-03-08  Bruno Haible  <bruno@clisp.org>
123
124         fmal: Avoid compilation error on AIX.
125         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
126         AIX 5.2..7.1.
127
128 2012-03-08  Bruno Haible  <bruno@clisp.org>
129
130         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
131         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
132         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
133         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
134         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
135         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
136         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
137
138 2012-03-08  Bruno Haible  <bruno@clisp.org>
139
140         remainderf: Override buggy system function on IRIX 6.5.
141         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
142         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
143         when it exists.
144         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
145
146 2012-03-08  Jim Meyering  <meyering@redhat.com>
147
148         test-readtokens.c: avoid const-related compilation warnings
149         * tests/test-readtokens.c: Avoid const-related compilation warnings.
150
151 2012-03-07  Jim Meyering  <meyering@redhat.com>
152             Bruno Haible  <bruno@clisp.org>
153
154         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
155         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
156         tests/randomd.c.
157         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
158         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
159         tests/randoml.c.
160         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
161
162 2012-03-07  Bruno Haible  <bruno@clisp.org>
163
164         expm1l: Avoid compilation error on AIX.
165         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
166         AIX 5.2..7.1.
167
168 2012-03-07  Bruno Haible  <bruno@clisp.org>
169
170         expm1l: Don't override undeclared system function on IRIX 6.5.
171         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
172         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
173         it exists. Set HAVE_DECL_EXPM1L.
174         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
175         HAVE_EXPM1L.
176         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
177         HAVE_EXPM1L.
178         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
179
180 2012-03-07  Bruno Haible  <bruno@clisp.org>
181
182         remainderl: Don't override undeclared system function on IRIX 6.5.
183         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
184         HAVE_REMAINDERL.
185         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
186         declared when it exists. Set HAVE_DECL_REMAINDERL.
187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
188         not HAVE_REMAINDERL.
189         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
190         HAVE_REMAINDERL.
191         * doc/posix-functions/remainderl.texi: Mention missing declaration
192         problem.
193
194 2012-03-07  Bruno Haible  <bruno@clisp.org>
195
196         rintf: Don't override undeclared system function on IRIX 6.5.
197         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
198         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
199         exists. Set HAVE_DECL_RINTF.
200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
201         HAVE_RINTF.
202         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
203         HAVE_RINTF.
204         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
205
206 2012-03-07  Bruno Haible  <bruno@clisp.org>
207
208         roundl: Avoid compilation error on AIX.
209         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
210         AIX 5.2..7.1.
211
212 2012-03-07  Bruno Haible  <bruno@clisp.org>
213
214         roundl: Don't override undeclared system function on IRIX 6.5.
215         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
216         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
217         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
218         * modules/roundl (configure.ac): For replacement code, test
219         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
220         (Depends-on): Update conditions.
221         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
222
223 2012-03-07  Bruno Haible  <bruno@clisp.org>
224
225         roundf: Don't override undeclared system function on IRIX 6.5.
226         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
227         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
228         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
229         * modules/roundf (configure.ac): For replacement code, test
230         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
231         (Depends-on): Update conditions.
232         * modules/roundf-ieee (Depends-on): Update conditions.
233         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
234
235 2012-03-07  Bruno Haible  <bruno@clisp.org>
236
237         round: Don't override undeclared system function on IRIX 6.5.
238         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
239         argument.
240         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
241         also when it is not declared. Set HAVE_ROUND. For replacement code,
242         test HAVE_ROUND, not HAVE_DECL_ROUND.
243         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
244         not HAVE_DECL_ROUND.
245         (Depends-on): Update conditions.
246         * modules/round-ieee (Depends-on): Update conditions.
247         * doc/posix-functions/round.texi: Mention the IRIX problem.
248
249 2012-03-07  Bruno Haible  <bruno@clisp.org>
250
251         copysignf: Don't override undeclared system function on IRIX 6.5.
252         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
253         HAVE_COPYSIGNF.
254         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
255         declared when it exists. Set HAVE_DECL_COPYSIGNF.
256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
257         not HAVE_COPYSIGNF.
258         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
259         HAVE_COPYSIGNF.
260         * doc/posix-functions/copysignf.texi: Mention missing declaration
261         problem.
262
263 2012-03-07  Jim Meyering  <meyering@redhat.com>
264
265         readtokens: add tests
266         * modules/readtokens-tests: New file.
267         * tests/test-readtokens.c: New file.
268
269 2012-03-07  Jim Meyering  <meyering@redhat.com>
270
271         quotearg: the module must now include quote.h
272         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
273         So must the module.
274         * modules/quotearg (Files): Add quote.h.
275
276 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
277
278         readtokens: avoid core dumps with unusual calling patterns
279         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
280         * lib/readtokens.c: Include limits.h.
281         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
282         (readtoken): Don't cache the delimiters; the cache code was buggy
283         if !delim && saved_delim, or if the new n_delim differs from the old.
284         Also, it wasn't thread-safe.
285
286 2012-03-07  Bruno Haible  <bruno@clisp.org>
287
288         quote: Adhere to common module description layout.
289         * modules/quote (Makefile.am): Add back empty section.
290
291 2012-03-06  Akim Demaille  <demaille@gostai.com>
292
293         quote: fuse into quotearg
294         This patch is made for the benefit of Bison.
295         quote does not leave the choice of the quoting style to the user.
296         quoting_style provides poor customizability, yet quoting_options,
297         which is very rich, is hidden inside quotearg.c.  So in order to
298         allow quote customization, move its implementation to quotearg.c.
299         * lib/quote.c: Remove.
300         * modules/quote: Adjust.
301         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
302         warning: provide all the members of literal structs.
303         (quote_quoting_options): New.
304         (quote, quote_n): Import implementation from quote.c.
305         * lib/quote.h: Import the comments from quote.c.
306         (quote_quoting_options): New.
307
308 2012-03-06  Bruno Haible  <bruno@clisp.org>
309
310         Tests for module 'expm1l-ieee'.
311         * modules/expm1l-ieee-tests: New file.
312         * tests/test-expm1l-ieee.c: New file.
313
314         New module 'expm1l-ieee'.
315         * modules/expm1l-ieee: New file.
316
317         Tests for module 'expm1f-ieee'.
318         * modules/expm1f-ieee-tests: New file.
319         * tests/test-expm1f-ieee.c: New file.
320
321         New module 'expm1f-ieee'.
322         * modules/expm1f-ieee: New file.
323
324         Tests for module 'expm1-ieee'.
325         * modules/expm1-ieee-tests: New file.
326         * tests/test-expm1-ieee.c: New file.
327         * tests/test-expm1-ieee.h: New file.
328
329         New module 'expm1-ieee'.
330         * modules/expm1-ieee: New file.
331         * m4/expm1-ieee.m4: New file.
332         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
333         whether expm1 works with a minus zero argument. Replace it if not.
334         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
336         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
337         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
338         (Depends-on): Update conditions.
339         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
340         AIX problem.
341
342 2012-03-06  Bruno Haible  <bruno@clisp.org>
343
344         Work around expm1f bug on IRIX 6.5.
345         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
346         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
347         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
348         not work.
349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
350         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
351         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
352         (Depends-on): Update conditions.
353         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
354
355 2012-03-06  Bruno Haible  <bruno@clisp.org>
356
357         Tests for module 'expm1l'.
358         * modules/expm1l-tests: New file.
359         * tests/test-expm1l.c: New file.
360
361         New module 'expm1l'.
362         * lib/math.in.h (expm1l): New declaration.
363         * lib/expm1l.c: New file.
364         * m4/expm1l.m4: New file.
365         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
367         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
368         * modules/expm1l: New file.
369         * tests/test-math-c++.cc: Check the declaration of expm1l.
370         * doc/posix-functions/expm1l.texi: Mention the new module.
371
372 2012-03-06  Bruno Haible  <bruno@clisp.org>
373
374         Tests for module 'expm1f'.
375         * modules/expm1f-tests: New file.
376         * tests/test-expm1f.c: New file.
377
378         New module 'expm1f'.
379         * lib/math.in.h (expm1f): New declaration.
380         * lib/expm1f.c: New file.
381         * m4/expm1f.m4: New file.
382         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
383         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
384         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
385         * modules/expm1f: New file.
386         * tests/test-math-c++.cc: Check the declaration of expm1f.
387         * doc/posix-functions/expm1f.texi: Mention the new module.
388
389 2012-03-06  Bruno Haible  <bruno@clisp.org>
390
391         Tests for module 'expm1'.
392         * modules/expm1-tests: New file.
393         * tests/test-expm1.c: New file.
394         * tests/test-expm1.h: New file.
395
396         New module 'expm1'.
397         * lib/math.in.h (expm1): New declaration.
398         * lib/expm1.c: New file.
399         * m4/expm1.m4: New file.
400         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
401         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
402         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
403         * modules/expm1: New file.
404         * tests/test-math-c++.cc: Check the declaration of expm1.
405         * doc/posix-functions/expm1.texi: Mention the new module.
406
407 2012-03-06  Bruno Haible  <bruno@clisp.org>
408
409         math: Ensure declarations of math functions.
410         * modules/acosf (Depends-on): Add 'extensions'.
411         * modules/asinf (Depends-on): Likewise.
412         * modules/atan2f (Depends-on): Likewise.
413         * modules/atanf (Depends-on): Likewise.
414         * modules/cbrt (Depends-on): Likewise.
415         * modules/cbrtf (Depends-on): Likewise.
416         * modules/cbrtl (Depends-on): Likewise.
417         * modules/copysignf (Depends-on): Likewise.
418         * modules/copysignl (Depends-on): Likewise.
419         * modules/cosf (Depends-on): Likewise.
420         * modules/coshf (Depends-on): Likewise.
421         * modules/expf (Depends-on): Likewise.
422         * modules/fabsf (Depends-on): Likewise.
423         * modules/fabsl (Depends-on): Likewise.
424         * modules/fmaf (Depends-on): Likewise.
425         * modules/fmal (Depends-on): Likewise.
426         * modules/fmodf (Depends-on): Likewise.
427         * modules/fmodl (Depends-on): Likewise.
428         * modules/frexpf (Depends-on): Likewise.
429         * modules/frexpl (Depends-on): Likewise.
430         * modules/hypot (Depends-on): Likewise.
431         * modules/hypotf (Depends-on): Likewise.
432         * modules/hypotl (Depends-on): Likewise.
433         * modules/ldexpf (Depends-on): Likewise.
434         * modules/ldexpl (Depends-on): Likewise.
435         * modules/log10f (Depends-on): Likewise.
436         * modules/log10l (Depends-on): Likewise.
437         * modules/log1p (Depends-on): Likewise.
438         * modules/logb (Depends-on): Likewise.
439         * modules/logf (Depends-on): Likewise.
440         * modules/modff (Depends-on): Likewise.
441         * modules/modfl (Depends-on): Likewise.
442         * modules/powf (Depends-on): Likewise.
443         * modules/remainderf (Depends-on): Likewise.
444         * modules/remainderl (Depends-on): Likewise.
445         * modules/rintf (Depends-on): Likewise.
446         * modules/rintl (Depends-on): Likewise.
447         * modules/sinf (Depends-on): Likewise.
448         * modules/sinhf (Depends-on): Likewise.
449         * modules/sqrtf (Depends-on): Likewise.
450         * modules/tanf (Depends-on): Likewise.
451         * modules/tanhf (Depends-on): Likewise.
452         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
453         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
454         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
455         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
456         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
457         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
458         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
459         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
460         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
461         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
462         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
463         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
464         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
465         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
466         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
467         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
468         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
469         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
470         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
471         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
472         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
473         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
474         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
475         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
476         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
477         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
478         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
479         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
480         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
481         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
482         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
483         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
484         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
485         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
486         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
487         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
488         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
489         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
490         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
491         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
492         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
493
494 2012-03-06  Bruno Haible  <bruno@clisp.org>
495
496         math: Update module names in warnings.
497         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
498         tanl): Use specific module name in warn-on-use warning.
499
500 2012-03-06  Bruno Haible  <bruno@clisp.org>
501
502         expl: Simplify computation.
503         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
504
505 2012-03-05  Bruno Haible  <bruno@clisp.org>
506
507         exp* tests: More tests.
508         * tests/test-exp.h: New file.
509         * tests/test-exp.c: Include <float.h> and test-exp.h.
510         (main): Invoke test_function.
511         * tests/test-expf.c: Include <float.h> and test-exp.h.
512         (main): Invoke test_function.
513         * tests/test-expl.c: Include <float.h> and test-exp.h.
514         (main): Invoke test_function.
515         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
516         (Makefile.am): Add randomd.c to test_exp_SOURCES.
517         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
518         (Makefile.am): Add randomf.c to test_expf_SOURCES.
519         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
520         (Depends-on): Add 'float'.
521         (Makefile.am): Add randoml.c to test_expl_SOURCES.
522
523         expl: Fix precision of computed result.
524         * lib/expl.c: Completely rewritten.
525         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
526         (Maintainer): Add me.
527         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
528
529 2012-03-05  Bruno Haible  <bruno@clisp.org>
530
531         cbrt* tests: More tests.
532         * tests/test-cbrt.h: New file.
533         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
534         (main): Invoke test_function.
535         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
536         (main): Invoke test_function.
537         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
538         (main): Invoke test_function.
539         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
540         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
541         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
542         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
543         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
544         (Depends-on): Add 'float'.
545         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
546
547 2012-03-05  Bruno Haible  <bruno@clisp.org>
548
549         hypot* tests: More tests.
550         * tests/test-hypot.h: New file, partially extracted from
551         tests/test-hypotl.c.
552         * tests/test-hypot.c: Include test-hypot.h.
553         (main): Invoke test_function.
554         * tests/test-hypotf.c: Include test-hypot.h.
555         (main): Invoke test_function.
556         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
557         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
558         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
559         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
560         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
561         tests/randomf.c.
562         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
563         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
564         tests/randoml.c.
565         (Depends-on): Add 'fpucw', 'float'.
566         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
567
568 2012-03-05  Bruno Haible  <bruno@clisp.org>
569
570         fpucw: Doc about FreeBSD.
571         * lib/fpucw.h: Mention FreeBSD in comments.
572
573 2012-03-04  Bruno Haible  <bruno@clisp.org>
574
575         sqrt* tests: More tests.
576         * tests/test-sqrt.h: New file.
577         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
578         (main): Invoke test_function.
579         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
580         (main): Invoke test_function.
581         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
582         (main): Invoke test_function.
583         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
584         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
585         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
586         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
587         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
588         (Depends-on): Add 'float'.
589         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
590
591 2012-03-04  Bruno Haible  <bruno@clisp.org>
592
593         remainder* tests: More tests.
594         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
595         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
596         (main): Invoke test_function.
597         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
598         (main): Invoke test_function.
599         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
600         (main): Invoke test_function.
601         * modules/remainder-tests (Files): Add tests/test-remainder.h,
602         tests/randomd.c.
603         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
604         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
605         tests/randomf.c.
606         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
607         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
608         tests/randoml.c.
609         (Depends-on): Add 'float'.
610         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
611
612 2012-03-04  Bruno Haible  <bruno@clisp.org>
613
614         remainder, remainderf, remainderl: Fix computation for large quotients.
615         * lib/remainder.c: Completely rewritten.
616         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
617         USE_FLOAT.
618         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
619         USE_LONG_DOUBLE.
620         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
621         isnand, isinf. Remove round, fma.
622         * modules/remainderf (Files): Add lib/remainder.c.
623         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
624         Remove roundf, fmaf.
625         * modules/remainderl (Files): Add lib/remainder.c.
626         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
627         isinf. Remove roundl, fmal.
628         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
629         REMAINDER_LIBM.
630         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
631         REMAINDERF_LIBM.
632         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
633         REMAINDERL_LIBM.
634
635 2012-03-04  Bruno Haible  <bruno@clisp.org>
636
637         fmod* tests: More tests.
638         * tests/test-fmod.h (my_ldexp): New function.
639         (test_function): Reduce amount of random numbers to test. Add tests
640         of very large quotients x / y.
641         * tests/test-fmod.c (MAX_EXP): New macro.
642         * tests/test-fmodf.c (MAX_EXP): Likewise.
643         * tests/test-fmodl.c (MAX_EXP): Likewise.
644
645 2012-03-04  Bruno Haible  <bruno@clisp.org>
646
647         fmod, fmodl: Fix computation for large quotients x / y.
648         * lib/fmod.c: Completely rewritten.
649         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
650         USE_LONG_DOUBLE.
651         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
652         isnand. Remove fma.
653         * modules/fmodl (Files): Add lib/fmod.c.
654         (Depends-on): Add float, isfinite, signbit, fabsl,
655         frexpl, ldexpl, isnanl. Remove fma.
656         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
657         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
658
659 2012-03-03  Bruno Haible  <bruno@clisp.org>
660
661         fmod* tests: More tests.
662         * tests/test-fmod.h: New file.
663         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
664         (main): Invoke test_function.
665         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
666         (main): Invoke test_function.
667         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
668         (main): Invoke test_function.
669         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
670         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
671         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
672         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
673         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
674         (Depends-on): Add 'float'.
675         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
676
677 2012-03-03  Bruno Haible  <bruno@clisp.org>
678
679         rint* tests: More tests.
680         * tests/test-rint.h: New file, partially extracted from
681         tests/test-rintl.c.
682         * tests/test-rint.c: Include test-rint.h.
683         (main): Invoke test_function.
684         * tests/test-rintf.c: Include test-rint.h.
685         (main): Invoke test_function.
686         * tests/test-rintl.c: Include test-rint.h.
687         (main): Invoke test_function.
688         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
689         (Makefile.am): Add randomd.c to test_rint_SOURCES.
690         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
691         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
692         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
693         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
694
695 2012-03-03  Bruno Haible  <bruno@clisp.org>
696
697         modf* tests: More tests.
698         * tests/test-modf.h: New file.
699         * tests/test-modf.c: Include <float.h> and test-modf.h.
700         (main): Invoke test_function.
701         * tests/test-modff.c: Include <float.h> and test-modf.h.
702         (main): Invoke test_function.
703         * tests/test-modfl.c: Include <float.h> and test-modf.h.
704         (main): Invoke test_function.
705         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
706         (Makefile.am): Add randomd.c to test_modf_SOURCES.
707         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
708         (Makefile.am): Add randomf.c to test_modff_SOURCES.
709         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
710         (Depends-on): Add 'float'.
711         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
712
713 2012-03-03  Bruno Haible  <bruno@clisp.org>
714
715         fabs* tests: More tests.
716         * tests/test-fabs.h: New file, partially extracted from
717         tests/test-fabsl.c.
718         * tests/test-fabs.c (RANDOM): New macro.
719         * tests/test-fabsf.c (RANDOM): New macro.
720         * tests/test-fabsl.c (RANDOM): New macro.
721         * modules/fabs-tests (Files): Add tests/randomd.c.
722         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
723         * modules/fabsf-tests (Files): Add tests/randomf.c.
724         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
725         * modules/fabsl-tests (Files): Add tests/randoml.c.
726         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
727
728 2012-03-03  Bruno Haible  <bruno@clisp.org>
729
730         ldexp* tests: More tests.
731         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
732         * tests/test-ldexp.c (RANDOM): New macro.
733         * tests/test-ldexpf.c (RANDOM): New macro.
734         * tests/test-ldexpl.c (RANDOM): New macro.
735         * modules/ldexp-tests (Files): Add tests/randomd.c.
736         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
737         * modules/ldexpf-tests (Files): Add tests/randomf.c.
738         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
739         * modules/ldexpl-tests (Files): Add tests/randoml.c.
740         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
741
742 2012-03-03  Bruno Haible  <bruno@clisp.org>
743
744         frexp* tests: More tests.
745         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
746         * tests/test-frexp.c (RANDOM): New macro.
747         * tests/test-frexpf.c (RANDOM): New macro.
748         * tests/test-frexpl.c (RANDOM): New macro.
749         * modules/frexp-tests (Files): Add tests/randomd.c.
750         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
751         * modules/frexpf-tests (Files): Add tests/randomf.c.
752         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
753         * modules/frexpl-tests (Files): Add tests/randoml.c.
754         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
755
756 2012-03-03  Bruno Haible  <bruno@clisp.org>
757
758         Support for pseudo-random numbers in tests.
759         * tests/randomf.c: New file.
760         * tests/randomd.c: New file.
761         * tests/randoml.c: New file.
762         * tests/macros.h (randomf, randomd, randoml): New declarations.
763
764 2012-03-03  Bruno Haible  <bruno@clisp.org>
765
766         frexp* tests: Refactor.
767         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
768         * tests/test-frexp.c: Include and use it.
769         * tests/test-frexpf.c: Likewise.
770         * tests/test-frexpl.c: Likewise.
771         * modules/frexp-tests (Files): Add tests/test-frexp.h.
772         * modules/frexpf-tests (Files): Likewise.
773         * modules/frexpl-tests (Files): Likewise.
774
775 2012-03-02  Jim Meyering  <meyering@redhat.com>
776
777         maint: don't specify XZ_OPT=-9ev in dist-related rule
778         Using xz's -9 option is warranted only if you have a very large
779         tarball (see xz's documentation for the sizes vs. presets), and
780         requires 64MiB of memory at decompression time.
781         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
782         Automake's default of just "-e" is fine.  Override on a
783         per-package basis by setting XZ_OPT e.g., in cfg.mk.
784
785 2012-03-01  Eric Blake  <eblake@redhat.com>
786
787         maint.mk: allow announcement for non-gnulib project
788         * maint.mk (announcement): Skip gnulib version if not used.
789
790 2012-03-01  Jim Meyering  <meyering@redhat.com>
791
792         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
793         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
794         envvar settings cannot interfere.  Otherwise, setting envvars like
795         prohibit=foo require=bar, etc. would cause spurious test failures.
796
797 2012-03-01  Eric Blake  <eblake@redhat.com>
798
799         maint.mk: add per-line exclusions to prohibitions
800         * maint.mk (_sc_search_regexp): Add $exclude parameter.
801         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
802         (sc_const_long_option): Use it.
803
804 2012-03-01  Bruno Haible  <bruno@clisp.org>
805
806         Tests for module 'expl-ieee'.
807         * modules/expl-ieee-tests: New file.
808         * tests/test-expl-ieee.c: New file.
809
810         New module 'expl-ieee'.
811         * modules/expl-ieee: New file.
812
813         Tests for module 'exp-ieee'.
814         * modules/exp-ieee-tests: New file.
815         * tests/test-exp-ieee.c: New file.
816
817         New module 'exp-ieee'.
818         * modules/exp-ieee: New file.
819
820         Tests for module 'expf-ieee'.
821         * modules/expf-ieee-tests: New file.
822         * tests/test-expf-ieee.c: New file.
823         * tests/test-exp-ieee.h: New file.
824
825         New module 'expf-ieee'.
826         * modules/expf-ieee: New file.
827
828 2012-02-29  Bruno Haible  <bruno@clisp.org>
829
830         cbrtl-ieee: Work around test failure on IRIX 6.5.
831         * m4/cbrtl-ieee.m4: New file.
832         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
833         test whether cbrtl works with a minus zero argument. Replace it if not.
834         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
836         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
837         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
838         (Depends-on): Update conditions.
839         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
840         m4/signbit.m4.
841         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
842         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
843         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
844
845         Tests for module 'cbrtl-ieee'.
846         * modules/cbrtl-ieee-tests: New file.
847         * tests/test-cbrtl-ieee.c: New file.
848
849         New module 'cbrtl-ieee'.
850         * modules/cbrtl-ieee: New file.
851
852         Tests for module 'cbrt-ieee'.
853         * modules/cbrt-ieee-tests: New file.
854         * tests/test-cbrt-ieee.c: New file.
855
856         New module 'cbrt-ieee'.
857         * modules/cbrt-ieee: New file.
858
859         Tests for module 'cbrtf-ieee'.
860         * modules/cbrtf-ieee-tests: New file.
861         * tests/test-cbrtf-ieee.c: New file.
862         * tests/test-cbrt-ieee.h: New file.
863
864         New module 'cbrtf-ieee'.
865         * modules/cbrtf-ieee: New file.
866
867 2012-02-29  Bruno Haible  <bruno@clisp.org>
868
869         cbrtf: Work around bug in IRIX 6.5 system function.
870         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
871         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
872         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
873         work.
874         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
875         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
876         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
877         (Depends-on): Update conditions.
878         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
879
880 2012-02-29  Bruno Haible  <bruno@clisp.org>
881
882         Tests for module 'cbrtl'.
883         * modules/cbrtl-tests: New file.
884         * tests/test-cbrtl.c: New file.
885
886         New module 'cbrtl'.
887         * lib/math.in.h (cbrtl): New declaration.
888         * lib/cbrtl.c: New file.
889         * m4/cbrtl.m4: New file.
890         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
891         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
892         HAVE_DECL_CBRTL.
893         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
894         HAVE_DECL_CBRTL.
895         * modules/cbrtl: New file.
896         * tests/test-math-c++.cc: Check the declaration of cbrtl.
897         * doc/posix-functions/cbrtl.texi: Mention the new module.
898
899 2012-02-29  Bruno Haible  <bruno@clisp.org>
900
901         Tests for module 'cbrtf'.
902         * modules/cbrtf-tests: New file.
903         * tests/test-cbrtf.c: New file.
904
905         New module 'cbrtf'.
906         * lib/math.in.h (cbrtf): New declaration.
907         * lib/cbrtf.c: New file.
908         * m4/cbrtf.m4: New file.
909         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
910         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
911         HAVE_DECL_CBRTF.
912         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
913         HAVE_DECL_CBRTF.
914         * modules/cbrtf: New file.
915         * tests/test-math-c++.cc: Check the declaration of cbrtf.
916         * doc/posix-functions/cbrtf.texi: Mention the new module.
917
918 2012-02-29  Bruno Haible  <bruno@clisp.org>
919
920         cbrt: Provide replacement on MSVC and Minix.
921         * lib/math.in.h (cbrt): New declaration.
922         * lib/cbrt.c: New file.
923         * m4/cbrt.m4: New file.
924         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
925         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
926         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
927         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
928         (Depends-on): Add dependencies.
929         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
930         * tests/test-math-c++.cc: Check the declaration of cbrt.
931         * doc/posix-functions/cbrt.texi: Mention that the module provides a
932         replacement.
933
934 2012-02-29  Bruno Haible  <bruno@clisp.org>
935
936         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
937         * m4/hypotl-ieee.m4: New file.
938         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
939         test whether hypotl works with mixed NaN and Infinity arguments.
940         Replace it if not.
941         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
942         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
943         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
944         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
945         (Depends-on): Update conditions.
946         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
947         (Depends-on): Add hypot-ieee.
948         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
949         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
950
951         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
952         * m4/hypotf-ieee.m4: New file.
953         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
954         test whether hypotf works with mixed NaN and Infinity arguments.
955         Replace it if not.
956         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
957         (Depends-on): Add hypot-ieee.
958         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
959         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
960
961         hypot-ieee: Work around test failure on OSF/1 and native Windows.
962         * lib/math.in.h (hypot): New declaration.
963         * lib/hypot.c: New file.
964         * m4/hypot-ieee.m4: New file.
965         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
966         whether hypot works with mixed NaN and Infinity arguments. Replace it
967         if not.
968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
969         REPLACE_HYPOT.
970         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
971         * modules/hypot (Files): Add lib/hypot.c.
972         (Depends-on): Add dependencies.
973         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
974         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
975         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
976         * tests/test-math-c++.cc: Check the declaration of hypot.
977         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
978
979         Tests for module 'hypotl-ieee'.
980         * modules/hypotl-ieee-tests: New file.
981         * tests/test-hypotl-ieee.c: New file.
982
983         New module 'hypotl-ieee'.
984         * modules/hypotl-ieee: New file.
985
986         Tests for module 'hypot-ieee'.
987         * modules/hypot-ieee-tests: New file.
988         * tests/test-hypot-ieee.c: New file.
989
990         New module 'hypot-ieee'.
991         * modules/hypot-ieee: New file.
992
993         Tests for module 'hypotf-ieee'.
994         * modules/hypotf-ieee-tests: New file.
995         * tests/test-hypotf-ieee.c: New file.
996         * tests/test-hypot-ieee.h: New file.
997
998         New module 'hypotf-ieee'.
999         * modules/hypotf-ieee: New file.
1000
1001 2012-02-29  Bruno Haible  <bruno@clisp.org>
1002
1003         Remove unused variables.
1004         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
1005         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1006         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
1007         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1008
1009 2012-02-29  Eric Blake  <eblake@redhat.com>
1010
1011         termios: fix pid_t always, not just for tcgetsid
1012         * doc/posix-headers/termios.texi (termios.h): Mention problem.
1013         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
1014         just when building tcgetsid.
1015
1016 2012-02-29  Bruno Haible  <bruno@clisp.org>
1017
1018         Tests for module 'hypotl'.
1019         * modules/hypotl-tests: New file.
1020         * tests/test-hypotl.c: New file.
1021
1022         New module 'hypotl'.
1023         * lib/math.in.h (hypotl): New declaration.
1024         * lib/hypotl.c: New file.
1025         * m4/hypotl.m4: New file.
1026         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
1028         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
1029         * modules/hypotl: New file.
1030         * tests/test-math-c++.cc: Check the hypotl declaration.
1031         * doc/posix-functions/hypotl.texi: Mention the new module.
1032
1033 2012-02-29  Eric Blake  <eblake@redhat.com>
1034
1035         tcgetsid: fix cygwin header bug
1036         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
1037
1038         docs: update cygwin progress
1039         * doc/posix-functions/llround.texi (llround): Added in cygwin
1040         1.7.8.
1041         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
1042         * doc/glibc-functions/program_invocation_name.texi
1043         (program_invocation_name): Likewise.
1044         * doc/glibc-functions/program_invocation_short_name.texi
1045         (program_invocation_short_name): Likewise.
1046         * doc/glibc-functions/madvise.texi (madvise): Likewise.
1047         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
1048         Likewise.
1049         * doc/posix-functions/pthread_spin_destroy.texi
1050         (pthread_spin_destroy): Added in cygwin 1.7.10.
1051         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
1052         Likewise.
1053         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
1054         Likewise.
1055         * doc/posix-functions/pthread_spin_trylock.texi
1056         (pthread_spin_trylock): Likewise.
1057         * doc/posix-functions/pthread_spin_unlock.texi
1058         (pthread_spin_unlock): Likewise.
1059         * doc/posix-functions/pthread_setschedprio.texi
1060         (pthread_setschedprio): Likewise.
1061         * doc/posix-functions/pthread_attr_getstack.texi
1062         (pthread_attr_getstack): Likewise.
1063         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
1064         (pthread_attr_getstackaddr): Likewise.
1065         * doc/glibc-functions/pthread_getattr_np.texi
1066         (pthread_getattr_np): Likewise.
1067         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
1068         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
1069         * doc/posix-functions/clock_settime.texi (clock_settime):
1070         Likewise.
1071         * doc/posix-functions/pthread_attr_getguardsize.texi
1072         (pthread_attr_getguardsize): Likewise.
1073         * doc/posix-functions/pthread_attr_setguardsize.texi
1074         (pthread_attr_setguardsize): Likewise.
1075         * doc/posix-functions/pthread_attr_setstack.texi
1076         (pthread_attr_setstack): Likewise.
1077         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
1078         (pthread_attr_setstackaddr): Likewise.
1079         * doc/posix-functions/clock_getcpuclockid.texi
1080         (clock_getcpuclockid): Likewise.
1081         * doc/posix-functions/pthread_getcpuclockid.texi
1082         (pthread_getcpuclockid): Likewise.
1083         * doc/glibc-functions/error.texi (error): Likewise.
1084         * doc/glibc-functions/error_at_line.texi (error_at_line):
1085         Likewise.
1086         * doc/glibc-functions/error_message_count.texi
1087         (error_message_count): Likewise.
1088         * doc/glibc-functions/error_one_per_line.texi
1089         (error_one_per_line): Likewise.
1090         * doc/glibc-functions/error_print_progname.texi
1091         (error_print_progname): Likewise.
1092         * doc/posix-functions/pthread_condattr_getclock.texi
1093         (pthread_condattr_getclock): Likewise.
1094         * doc/posix-functions/pthread_condattr_setclock.texi
1095         (pthread_condattr_setclock): Likewise.
1096         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
1097         Likewise.
1098         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
1099         * doc/glibc-functions/getpt.texi (getpt): Likewise.
1100         * doc/glibc-functions/get_current_dir_name.texi
1101         (get_current_dir_name): Likewise.
1102         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
1103         Likewise.
1104         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
1105         wrong return type.
1106         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
1107         1.7.11.
1108
1109 2012-02-29  Bruno Haible  <bruno@clisp.org>
1110
1111         Tests for module 'hypotf'.
1112         * modules/hypotf-tests: New file.
1113         * tests/test-hypotf.c: New file.
1114
1115         New module 'hypotf'.
1116         * lib/math.in.h (hypotf): New declaration.
1117         * lib/hypotf.c: New file.
1118         * m4/hypotf.m4: New file.
1119         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
1121         REPLACE_HYPOTF.
1122         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
1123         REPLACE_HYPOTF.
1124         * modules/hypotf: New file.
1125         * tests/test-math-c++.cc: Check the hypotf declaration.
1126         * doc/posix-functions/hypotf.texi: Mention the new module.
1127
1128         hypot: Prepare for hypotf module.
1129         * m4/hypot.m4: New file.
1130         * modules/hypot (Files): Add m4/hypot.m4.
1131         (configure.ac): Invoke gl_FUNC_HYPOT.
1132
1133 2012-02-29  Bruno Haible  <bruno@clisp.org>
1134
1135         hypot tests: More tests.
1136         * tests/test-hypot.c: Include <float.h>.
1137         (main): Add tests about overflow and underflow.
1138
1139 2012-02-29  Bruno Haible  <bruno@clisp.org>
1140
1141         math code: Add comments.
1142         * lib/acosl.c: Add comment about related glibc source files.
1143         * lib/asinl.c: Likewise.
1144         * lib/atanl.c: Likewise.
1145         * lib/expl.c: Likewise.
1146         * lib/logl.c: Likewise.
1147         * lib/sincosl.c: Likewise.
1148         * lib/sinl.c: Likewise.
1149         * lib/tanl.c: Likewise.
1150         * lib/trigl.c: Likewise.
1151         * lib/cosl.c: Likewise. Fix comments.
1152
1153 2012-02-28  Bruno Haible  <bruno@clisp.org>
1154
1155         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
1156         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
1157         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
1158         HUGE_VALL are defined.
1159         (numeric_equald): Renamed from numeric_equal.
1160         (numeric_equalf, numeric_equall): New functions.
1161         (main): Check also HUGE_VALF, HUGE_VALL.
1162         * modules/math-tests (Files): Add tests/macros.h.
1163         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
1164         HUGE_VALL.
1165
1166 2012-02-28  Bruno Haible  <bruno@clisp.org>
1167
1168         doc: Move ISO C11 feature notes into POSIX chapters.
1169         * doc/posix-functions/aligned_alloc.texi: Renamed from
1170         doc/glibc-functions/aligned_alloc.texi.
1171         * doc/posix-functions/quick_exit.texi: Renamed from
1172         doc/glibc-functions/quick_exit.texi.
1173         * doc/posix-headers/uchar.texi: Renamed from
1174         doc/glibc-headers/uchar.texi.
1175         * doc/posix-functions/c16rtomb.texi: Renamed from
1176         doc/glibc-functions/c16rtomb.texi.
1177         * doc/posix-functions/c32rtomb.texi: Renamed from
1178         doc/glibc-functions/c32rtomb.texi.
1179         * doc/posix-functions/mbrtoc16.texi: Renamed from
1180         doc/glibc-functions/mbrtoc16.texi.
1181         * doc/posix-functions/mbrtoc32.texi: Renamed from
1182         doc/glibc-functions/mbrtoc32.texi.
1183         * doc/gnulib.texi: Update.
1184         (Glibc uchar.h): Remove section.
1185         Suggested by Eric Blake.
1186
1187 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
1188
1189         stdnoreturn: port to MSVC better
1190         MSVC standard headers use __declspec(noreturn), so #define noreturn
1191         to empty on that platform.  Reported by Bruno Haible in
1192         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
1193         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
1194         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
1195
1196 2012-02-28  Bruno Haible  <bruno@clisp.org>
1197
1198         doc: Mention new glibc headers and functions.
1199         * doc/glibc-headers/uchar.texi: New file.
1200         * doc/glibc-functions/aligned_alloc.texi: New file.
1201         * doc/glibc-functions/c16rtomb.texi: New file.
1202         * doc/glibc-functions/c32rtomb.texi: New file.
1203         * doc/glibc-functions/clock_adjtime.texi: New file.
1204         * doc/glibc-functions/fanotify_init.texi: New file.
1205         * doc/glibc-functions/fanotify_mark.texi: New file.
1206         * doc/glibc-functions/inet6_opt_append.texi: New file.
1207         * doc/glibc-functions/inet6_opt_find.texi: New file.
1208         * doc/glibc-functions/inet6_opt_finish.texi: New file.
1209         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
1210         * doc/glibc-functions/inet6_opt_init.texi: New file.
1211         * doc/glibc-functions/inet6_opt_next.texi: New file.
1212         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
1213         * doc/glibc-functions/inet6_rth_add.texi: New file.
1214         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
1215         * doc/glibc-functions/inet6_rth_init.texi: New file.
1216         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
1217         * doc/glibc-functions/inet6_rth_segments.texi: New file.
1218         * doc/glibc-functions/inet6_rth_space.texi: New file.
1219         * doc/glibc-functions/login.texi: New file.
1220         * doc/glibc-functions/mbrtoc16.texi: New file.
1221         * doc/glibc-functions/mbrtoc32.texi: New file.
1222         * doc/glibc-functions/name_to_handle_at.texi: New file.
1223         * doc/glibc-functions/ntp_gettimex.texi: New file.
1224         * doc/glibc-functions/open_by_handle_at.texi: New file.
1225         * doc/glibc-functions/prlimit.texi: New file.
1226         * doc/glibc-functions/process_vm_readv.texi: New file.
1227         * doc/glibc-functions/process_vm_writev.texi: New file.
1228         * doc/glibc-functions/recvmmsg.texi: New file.
1229         * doc/glibc-functions/scandirat.texi: New file.
1230         * doc/glibc-functions/sendmmsg.texi: New file.
1231         * doc/glibc-functions/setns.texi: New file.
1232         * doc/glibc-functions/timespec_get.texi: New file.
1233         * doc/gnulib.texi: Include them.
1234         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
1235         sections.
1236         Reported by Eric Blake.
1237
1238 2012-02-28  Bruno Haible  <bruno@clisp.org>
1239
1240         Avoid compilation errors with MSVC option -fp:strict.
1241         * lib/floor.c: Use MSVC specific pragma fenv_access.
1242         * lib/ceil.c: Likewise.
1243         * lib/trunc.c: Likewise.
1244         * lib/round.c: Likewise.
1245         * lib/rint.c: Likewise.
1246         * lib/fma.c: Likewise.
1247         * lib/integer_length.c: Likewise.
1248         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1249         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1250         * tests/test-floor2.c: Likewise.
1251         * tests/test-floorf2.c: Likewise.
1252         * tests/test-ceil2.c: Likewise.
1253         * tests/test-ceilf2.c: Likewise.
1254         * tests/test-trunc2.c: Likewise.
1255         * tests/test-truncf2.c: Likewise.
1256         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1257
1258 2012-02-27  Bruno Haible  <bruno@clisp.org>
1259
1260         Tests for module 'sqrtl-ieee'.
1261         * modules/sqrtl-ieee-tests: New file.
1262         * tests/test-sqrtl-ieee.c: New file.
1263
1264         New module 'sqrtl-ieee'.
1265         * modules/sqrtl-ieee: New file.
1266
1267         Tests for module 'sqrt-ieee'.
1268         * modules/sqrt-ieee-tests: New file.
1269         * tests/test-sqrt-ieee.c: New file.
1270
1271         New module 'sqrt-ieee'.
1272         * modules/sqrt-ieee: New file.
1273
1274         Tests for module 'sqrtf-ieee'.
1275         * modules/sqrtf-ieee-tests: New file.
1276         * tests/test-sqrtf-ieee.c: New file.
1277         * tests/test-sqrt-ieee.h: New file.
1278
1279         New module 'sqrtf-ieee'.
1280         * modules/sqrtf-ieee: New file.
1281
1282 2012-02-27  Bruno Haible  <bruno@clisp.org>
1283
1284         remainderl-ieee: Work around test failure on OSF/1.
1285         * m4/remainderl-ieee.m4: New file.
1286         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
1287         present, test whether remainderl works with a zero second argument.
1288         Replace it if not.
1289         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
1290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
1291         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
1292         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
1293         (Depends-on): Update conditions.
1294         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
1295         (Depends-on): Add remainder-ieee.
1296         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
1297         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
1298         module.
1299
1300         remainderf-ieee: Work around test failure on OSF/1.
1301         * m4/remainderf-ieee.m4: New file.
1302         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
1303         present, test whether remainderf works with a zero second argument.
1304         Replace it if not.
1305         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
1306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
1307         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
1308         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
1309         (Depends-on): Update conditions.
1310         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
1311         (Depends-on): Add remainder-ieee.
1312         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
1313         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
1314         module.
1315
1316         remainder-ieee: Work around test failure on OSF/1.
1317         * m4/remainder-ieee.m4: New file.
1318         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
1319         present, test whether remainder works with a zero second argument.
1320         Replace it if not.
1321         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
1322         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
1323         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
1324         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
1325         (Depends-on): Update dependencies.
1326         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
1327         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
1328         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
1329
1330         Tests for module 'remainderl-ieee'.
1331         * modules/remainderl-ieee-tests: New file.
1332         * tests/test-remainderl-ieee.c: New file.
1333
1334         New module 'remainderl-ieee'.
1335         * modules/remainderl-ieee: New file.
1336
1337         Tests for module 'remainder-ieee'.
1338         * modules/remainder-ieee-tests: New file.
1339         * tests/test-remainder-ieee.c: New file.
1340
1341         New module 'remainder-ieee'.
1342         * modules/remainder-ieee: New file.
1343
1344         Tests for module 'remainderf-ieee'.
1345         * modules/remainderf-ieee-tests: New file.
1346         * tests/test-remainderf-ieee.c: New file.
1347         * tests/test-remainder-ieee.h: New file.
1348
1349         New module 'remainderf-ieee'.
1350         * modules/remainderf-ieee: New file.
1351
1352 2012-02-27  Bruno Haible  <bruno@clisp.org>
1353
1354         modff, modfl: Fix configure syntax error.
1355         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
1356         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1357
1358 2012-02-27  Bruno Haible  <bruno@clisp.org>
1359
1360         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
1361         * m4/fmodl-ieee.m4: New file.
1362         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
1363         whether fmodl works with zero arguments. Replace it if not.
1364         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
1365         (Depends-on): Add fmod-ieee.
1366         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
1367         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
1368
1369         fmodf-ieee: Work around test failure on OSF/1.
1370         * m4/fmodf-ieee.m4: New file.
1371         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
1372         whether fmodf works with zero arguments. Replace it if not.
1373         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
1374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
1375         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
1376         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
1377         (Depends-on): Update dependencies.
1378         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
1379         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
1380         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
1381
1382         fmodf-ieee: Work around test failure on MSVC 9.
1383         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
1384         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
1385
1386         fmod-ieee: Work around test failures on OSF/1, mingw.
1387         * m4/fmod-ieee.m4: New file.
1388         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
1389         whether fmod works with zero arguments. Replace it if not.
1390         * lib/math.in.h (fmod): New declaration.
1391         * lib/fmod.c: New file.
1392         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
1393         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
1394         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
1395         * modules/fmod (Files): Add lib/fmod.c.
1396         (Depends-on): Add math, isinf, trunc, fma.
1397         (configure.ac): Arrange to compile lib/fmod.c if needed.
1398         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
1399         m4/signbit.m4.
1400         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
1401         * tests/test-math-c++.cc: Check the declaration of fmod.
1402         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
1403
1404         fmodl-ieee: Fix test failures.
1405         * lib/fmodl.c (fmodl): Treat Inf specially.
1406         * modules/fmodl (Depends-on): Add isinf.
1407
1408         Tests for module 'fmodl-ieee'.
1409         * modules/fmodl-ieee-tests: New file.
1410         * tests/test-fmodl-ieee.c: New file.
1411
1412         New module 'fmodl-ieee'.
1413         * modules/fmodl-ieee: New file.
1414
1415         Tests for module 'fmod-ieee'.
1416         * modules/fmod-ieee-tests: New file.
1417         * tests/test-fmod-ieee.c: New file.
1418
1419         New module 'fmod-ieee'.
1420         * modules/fmod-ieee: New file.
1421
1422         Tests for module 'fmodf-ieee'.
1423         * modules/fmodf-ieee-tests: New file.
1424         * tests/test-fmodf-ieee.c: New file.
1425         * tests/test-fmod-ieee.h: New file.
1426
1427         New module 'fmodf-ieee'.
1428         * modules/fmodf-ieee: New file.
1429
1430 2012-02-27  Bruno Haible  <bruno@clisp.org>
1431
1432         Tests for module 'rintl-ieee'.
1433         * modules/rintl-ieee-tests: New file.
1434         * tests/test-rintl-ieee.c: New file.
1435
1436         New module 'rintl-ieee'.
1437         * modules/rintl-ieee: New file.
1438
1439         Tests for module 'rint-ieee'.
1440         * modules/rint-ieee-tests: New file.
1441         * tests/test-rint-ieee.c: New file.
1442
1443         New module 'rint-ieee'.
1444         * modules/rint-ieee: New file.
1445
1446         Tests for module 'rintf-ieee'.
1447         * modules/rintf-ieee-tests: New file.
1448         * tests/test-rintf-ieee.c: New file.
1449         * tests/test-rint-ieee.h: New file.
1450
1451         New module 'rintf-ieee'.
1452         * modules/rintf-ieee: New file.
1453
1454 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
1455
1456         regex: re_search etc. should return -2 when memory exhausted
1457         This bug was uncovered when testing 'grep'.  Without the fix,
1458         re_search and friends return -1 when memory is exhausted, but -1
1459         means no match, and this causes grep to falsely report no-match
1460         instead of memory-exhaustion.  See
1461         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
1462         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
1463         trouble; this can occur if re_search_internal ran out of memory.
1464
1465 2012-02-26  Bruno Haible  <bruno@clisp.org>
1466
1467         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
1468         * m4/modfl-ieee.m4: New file.
1469         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
1470         whether modfl works with Inf. Replace it if not.
1471         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
1472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
1473         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
1474         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
1475         (Depends-on): Update dependencies.
1476         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
1477         m4/signbit.m4.
1478         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
1479         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
1480
1481         modfl-ieee: Fix dependencies.
1482         * modules/modfl-ieee (Depends-on): Add modf-ieee.
1483
1484         modfl-ieee: Fix test failures.
1485         * lib/modfl.c (modfl): Treat NaN and Inf specially.
1486         * modules/modfl (Depends-on): Add isfinite, isinf.
1487
1488         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
1489         * m4/modff-ieee.m4: New file.
1490         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
1491         whether modff works with NaN and Inf. Replace it if not.
1492         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
1493         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
1494         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
1495         * modules/modff (configure.ac): Consider REPLACE_MODFF.
1496         (Depends-on): Update dependencies.
1497         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
1498         m4/signbit.m4.
1499         (Depends-on): Add modf-ieee.
1500         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
1501         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
1502
1503         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
1504         * m4/modf-ieee.m4: New file.
1505         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
1506         whether modf works with NaN and Inf. Replace it if not.
1507         * lib/math.in.h (modf): New declaration.
1508         * lib/modf.c: New file.
1509         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
1510         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
1511         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
1512         * modules/modf (Files): Add lib/modf.c.
1513         (Depends-on): Add math, isfinite, trunc, isinf.
1514         (configure.ac): Addrange to compile lib/modf.c if needed.
1515         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
1516         m4/signbit.m4.
1517         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
1518         * tests/test-math-c++.cc: Check the declaration of modf.
1519         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
1520
1521         Tests for module 'modfl-ieee'.
1522         * modules/modfl-ieee-tests: New file.
1523         * tests/test-modfl-ieee.c: New file.
1524
1525         New module 'modfl-ieee'.
1526         * modules/modfl-ieee: New file.
1527
1528         Tests for module 'modf-ieee'.
1529         * modules/modf-ieee-tests: New file.
1530         * tests/test-modf-ieee.c: New file.
1531
1532         New module 'modf-ieee'.
1533         * modules/modf-ieee: New file.
1534
1535         Tests for module 'modff-ieee'.
1536         * modules/modff-ieee-tests: New file.
1537         * tests/test-modff-ieee.c: New file.
1538         * tests/test-modf-ieee.h: New file.
1539
1540         New module 'modff-ieee'.
1541         * modules/modff-ieee: New file.
1542
1543 2012-02-26  Bruno Haible  <bruno@clisp.org>
1544
1545         Tests for module 'fabsl-ieee'.
1546         * modules/fabsl-ieee-tests: New file.
1547         * tests/test-fabsl-ieee.c: New file.
1548
1549         New module 'fabsl-ieee'.
1550         * modules/fabsl-ieee: New file.
1551
1552         Tests for module 'fabs-ieee'.
1553         * modules/fabs-ieee-tests: New file.
1554         * tests/test-fabs-ieee.c: New file.
1555
1556         New module 'fabs-ieee'.
1557         * modules/fabs-ieee: New file.
1558
1559         Tests for module 'fabsf-ieee'.
1560         * modules/fabsf-ieee-tests: New file.
1561         * tests/test-fabsf-ieee.c: New file.
1562         * tests/test-fabs-ieee.h: New file.
1563
1564         New module 'fabsf-ieee'.
1565         * modules/fabsf-ieee: New file.
1566
1567 2012-02-26  Bruno Haible  <bruno@clisp.org>
1568
1569         Tests for module 'fmal-ieee'.
1570         * modules/fmal-ieee-tests: New file.
1571         * tests/test-fmal-ieee.c: New file.
1572
1573         New module 'fmal-ieee'.
1574         * modules/fmal-ieee: New file.
1575
1576         Tests for module 'fma-ieee'.
1577         * modules/fma-ieee-tests: New file.
1578         * tests/test-fma-ieee.c: New file.
1579
1580         New module 'fma-ieee'.
1581         * modules/fma-ieee: New file.
1582
1583         Tests for module 'fmaf-ieee'.
1584         * modules/fmaf-ieee-tests: New file.
1585         * tests/test-fmaf-ieee.c: New file.
1586         * tests/test-fma-ieee.h: New file.
1587
1588         New module 'fmaf-ieee'.
1589         * modules/fmaf-ieee: New file.
1590
1591 2012-02-26  Bruno Haible  <bruno@clisp.org>
1592
1593         Tests for module 'ldexpl-ieee'.
1594         * modules/ldexpl-ieee-tests: New file.
1595         * tests/test-ldexpl-ieee.c: New file.
1596
1597         New module 'ldexpl-ieee'.
1598         * modules/ldexpl-ieee: New file.
1599
1600         Tests for module 'ldexp-ieee'.
1601         * modules/ldexp-ieee-tests: New file.
1602         * tests/test-ldexp-ieee.c: New file.
1603
1604         New module 'ldexp-ieee'.
1605         * modules/ldexp-ieee: New file.
1606
1607         Tests for module 'ldexpf-ieee'.
1608         * modules/ldexpf-ieee-tests: New file.
1609         * tests/test-ldexpf-ieee.c: New file.
1610         * tests/test-ldexp-ieee.h: New file.
1611
1612         New module 'ldexpf-ieee'.
1613         * modules/ldexpf-ieee: New file.
1614
1615 2012-02-26  Bruno Haible  <bruno@clisp.org>
1616
1617         Refactor frexp*-ieee tests.
1618         * tests/test-frexp-ieee.h: New file.
1619         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
1620         (main): Just call test_function.
1621         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
1622         (main): Just call test_function.
1623         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
1624         (main): Just call test_function.
1625         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
1626         * modules/frexp-ieee-tests (Files): Likewise.
1627         * modules/frexpl-ieee-tests (Files): Likewise.
1628
1629         Tests for module 'frexpl-ieee'.
1630         * modules/frexpl-ieee-tests: New file.
1631         * tests/test-frexpl-ieee.c: New file.
1632
1633         New module 'frexpl-ieee'.
1634         * modules/frexpl-ieee: New file.
1635
1636         Tests for module 'frexp-ieee'.
1637         * modules/frexp-ieee-tests: New file.
1638         * tests/test-frexp-ieee.c: New file.
1639
1640         New module 'frexp-ieee'.
1641         * modules/frexp-ieee: New file.
1642
1643         Tests for module 'frexpf-ieee'.
1644         * modules/frexpf-ieee-tests: New file.
1645         * tests/test-frexpf-ieee.c: New file.
1646
1647         New module 'frexpf-ieee'.
1648         * modules/frexpf-ieee: New file.
1649
1650 2012-02-26  Bruno Haible  <bruno@clisp.org>
1651
1652         roundl-ieee tests: More tests.
1653         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1654         (main): Add tests for [MX] shaded specification in POSIX.
1655         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1656         (Depends-on): Add isnanl-nolibm.
1657
1658         round-ieee tests: More tests.
1659         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1660         (main): Add tests for [MX] shaded specification in POSIX.
1661         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1662         (Depends-on): Add isnand-nolibm.
1663
1664         roundf-ieee tests: More tests.
1665         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1666         (main): Add tests for [MX] shaded specification in POSIX.
1667         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1668         (Depends-on): Add isnanf-nolibm.
1669
1670         truncl-ieee tests: More tests.
1671         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1672         (main): Add tests for [MX] shaded specification in POSIX.
1673         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1674         (Depends-on): Add isnanl-nolibm.
1675
1676         trunc-ieee tests: More tests.
1677         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1678         (main): Add tests for [MX] shaded specification in POSIX.
1679         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1680         (Depends-on): Add isnand-nolibm.
1681
1682         truncf-ieee tests: More tests.
1683         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1684         (main): Add tests for [MX] shaded specification in POSIX.
1685         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1686         (Depends-on): Add isnanf-nolibm.
1687
1688         ceill-ieee tests: More tests.
1689         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1690         (main): Add tests for [MX] shaded specification in POSIX.
1691         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1692         (Depends-on): Add isnanl-nolibm.
1693
1694         ceil-ieee tests: More tests.
1695         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1696         (main): Add tests for [MX] shaded specification in POSIX.
1697         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1698         (Depends-on): Add isnand-nolibm.
1699
1700         ceilf-ieee tests: More tests.
1701         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1702         (main): Add tests for [MX] shaded specification in POSIX.
1703         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1704         (Depends-on): Add isnanf-nolibm.
1705
1706         floorl-ieee tests: More tests.
1707         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1708         (main): Add tests for [MX] shaded specification in POSIX.
1709         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1710         (Depends-on): Add isnanl-nolibm.
1711
1712         floor-ieee tests: More tests.
1713         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1714         (main): Add tests for [MX] shaded specification in POSIX.
1715         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1716         (Depends-on): Add isnand-nolibm.
1717
1718         floorf-ieee tests: More tests.
1719         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1720         (main): Add tests for [MX] shaded specification in POSIX.
1721         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1722         (Depends-on): Add isnanf-nolibm.
1723
1724 2012-02-26  Bruno Haible  <bruno@clisp.org>
1725
1726         fpieee: More comments.
1727         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
1728
1729 2012-02-25  Bruno Haible  <bruno@clisp.org>
1730
1731         Tests for module 'log10l'.
1732         * modules/log10l-tests: New file.
1733         * tests/test-log10l.c: New file.
1734         * tests/test-math-c++.cc: Check the declaration of log10l.
1735
1736         New module 'log10l'.
1737         * lib/math.in.h (log10l): New declaration.
1738         * lib/log10l.c: New file.
1739         * m4/log10l.m4: New file.
1740         * modules/log10l: New file.
1741         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
1742         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
1743         HAVE_DECL_LOG10L.
1744         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
1745         HAVE_DECL_LOG10L.
1746         * doc/posix-functions/log10l.texi: Mention the new module.
1747
1748 2012-02-25  Bruno Haible  <bruno@clisp.org>
1749
1750         fmodl, remainder*: Avoid wrong results due to rounding errors.
1751         * lib/fmodl.c (fmodl): Correct the result if it is not within the
1752         expected bounds.
1753         * lib/remainderf.c (remainderf): Likewise.
1754         * lib/remainder.c (remainder): Likewise.
1755         * lib/remainderl.c (remainderl): Likewise.
1756
1757 2012-02-25  Bruno Haible  <bruno@clisp.org>
1758
1759         Tests for module 'remainderl'.
1760         * modules/remainderl-tests: New file.
1761         * tests/test-remainderl.c: New file.
1762         * tests/test-math-c++.cc: Check the declaration of remainderl.
1763
1764         New module 'remainderl'.
1765         * lib/math.in.h (remainderl): New declaration.
1766         * lib/remainderl.c: New file.
1767         * m4/remainderl.m4: New file.
1768         * modules/remainderl: New file.
1769         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
1770         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
1771         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
1772         HAVE_REMAINDERL.
1773         * doc/posix-functions/remainderl.texi: Mention the new module.
1774
1775 2012-02-25  Bruno Haible  <bruno@clisp.org>
1776
1777         Tests for module 'remainderf'.
1778         * modules/remainderf-tests: New file.
1779         * tests/test-remainderf.c: New file.
1780         * tests/test-math-c++.cc: Check the declaration of remainderf.
1781
1782         New module 'remainderf'.
1783         * lib/math.in.h (remainderf): New declaration.
1784         * lib/remainderf.c: New file.
1785         * m4/remainderf.m4: New file.
1786         * modules/remainderf: New file.
1787         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
1788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
1789         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
1790         HAVE_REMAINDERF.
1791         * doc/posix-functions/remainderf.texi: Mention the new module.
1792
1793 2012-02-25  Bruno Haible  <bruno@clisp.org>
1794
1795         remainder: Support for MSVC.
1796         * lib/math.in.h (remainder): New declaration.
1797         * lib/remainder.c: New file.
1798         * m4/remainder.m4: New file.
1799         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
1800         (Depends-on): Add math, round, fma.
1801         (configure.ac): Use results of gl_FUNC_REMAINDER.
1802         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
1803         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
1804         HAVE_DECL_REMAINDER.
1805         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
1806         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
1807         * tests/test-math-c++.cc: Check the declaration of remainder.
1808         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
1809         problems are fixed.
1810
1811 2012-02-25  Bruno Haible  <bruno@clisp.org>
1812
1813         Tests for module 'fmodl'.
1814         * modules/fmodl-tests: New file.
1815         * tests/test-fmodl.c: New file.
1816         * tests/test-math-c++.cc: Check the declaration of fmodl.
1817
1818         New module 'fmodl'.
1819         * lib/math.in.h (fmodl): New declaration.
1820         * lib/fmodl.c: New file.
1821         * m4/fmodl.m4: New file.
1822         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
1823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
1824         REPLACE_FMODL.
1825         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
1826         REPLACE_FMODL.
1827         * modules/fmodl: New file.
1828         * doc/posix-functions/fmodl.texi: Mention the new module.
1829
1830 2012-02-25  Bruno Haible  <bruno@clisp.org>
1831
1832         Tests for module 'modfl'.
1833         * modules/modfl-tests: New file.
1834         * tests/test-modfl.c: New file.
1835         * tests/test-math-c++.cc: Check the declaration of modfl.
1836
1837         New module 'modfl'.
1838         * lib/math.in.h (modfl): New declaration.
1839         * lib/modfl.c: New file.
1840         * m4/modfl.m4: New file.
1841         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
1842         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
1843         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
1844         * modules/modfl: New file.
1845         * doc/posix-functions/modfl.texi: Mention the new module.
1846
1847 2012-02-25  Bruno Haible  <bruno@clisp.org>
1848
1849         Tests for module 'fabsl'.
1850         * modules/fabsl-tests: New file.
1851         * tests/test-fabsl.c: New file.
1852         * tests/test-math-c++.cc: Check the declaration of fabsl.
1853
1854         New module 'fabsl'.
1855         * lib/math.in.h (fabsl): New declaration.
1856         * lib/fabsl.c: New file.
1857         * m4/fabsl.m4: New file.
1858         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
1859         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
1860         REPLACE_FABSL.
1861         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
1862         REPLACE_FABSL.
1863         * modules/fabsl: New file.
1864         * doc/posix-functions/fabsl.texi: Mention the new module.
1865
1866 2012-02-25  Bruno Haible  <bruno@clisp.org>
1867
1868         fabs tests: More tests.
1869         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
1870         (zero): New variable.
1871         (main): Add tests for signed zero.
1872         * modules/fabs-tests (Files): Add tests/minus-zero.h.
1873
1874         fabsf tests: More tests.
1875         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
1876         (zero): New variable.
1877         (main): Add tests for signed zero.
1878         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
1879
1880 2012-02-24  Bruno Haible  <bruno@clisp.org>
1881
1882         atanl: Provide function definition on MSVC.
1883         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
1884         function pointer.
1885         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
1886
1887 2012-02-24  Bruno Haible  <bruno@clisp.org>
1888
1889         acosl: Provide function definition on MSVC.
1890         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
1891         function pointer.
1892         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
1893
1894 2012-02-24  Bruno Haible  <bruno@clisp.org>
1895
1896         asinl: Provide function definition on MSVC.
1897         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
1898         function pointer.
1899         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
1900
1901 2012-02-24  Bruno Haible  <bruno@clisp.org>
1902
1903         tanl: Provide function definition on MSVC.
1904         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
1905         function pointer.
1906         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
1907
1908 2012-02-24  Bruno Haible  <bruno@clisp.org>
1909
1910         cosl: Provide function definition on MSVC.
1911         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
1912         function pointer.
1913         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
1914
1915 2012-02-24  Bruno Haible  <bruno@clisp.org>
1916
1917         sinl: Provide function definition on MSVC.
1918         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
1919         function pointer.
1920         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
1921
1922 2012-02-24  Bruno Haible  <bruno@clisp.org>
1923
1924         logl: Provide function definition on MSVC.
1925         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
1926         function pointer.
1927         * lib/math.in.h (logl): Undefine if it does not exist as a function.
1928
1929 2012-02-24  Bruno Haible  <bruno@clisp.org>
1930
1931         expl: Provide function definition on MSVC.
1932         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
1933         function pointer.
1934         * lib/math.in.h (expl): Undefine if it does not exist as a function.
1935
1936 2012-02-24  Bruno Haible  <bruno@clisp.org>
1937
1938         sqrtl: Provide function definition on MSVC.
1939         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
1940         a function pointer.
1941         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
1942
1943 2012-02-24  Bruno Haible  <bruno@clisp.org>
1944
1945         ceill: Provide function definition on MSVC.
1946         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
1947         used as a function pointer.
1948         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
1949
1950 2012-02-24  Bruno Haible  <bruno@clisp.org>
1951
1952         floorl: Provide function definition on MSVC.
1953         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
1954         used as a function pointer.
1955         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
1956
1957 2012-02-24  Bruno Haible  <bruno@clisp.org>
1958
1959         ceilf: Provide function definition on MSVC.
1960         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
1961         used as a function pointer.
1962         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
1963
1964 2012-02-24  Bruno Haible  <bruno@clisp.org>
1965
1966         floorf: Provide function definition on MSVC.
1967         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
1968         used as a function pointer.
1969         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
1970
1971 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
1972
1973         stdnoreturn: new module
1974         This implements a replacement for C11's <stdnoreturn.h>.
1975         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
1976         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
1977         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
1978         * tests/test-stdnoreturn.c: New files.
1979
1980 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
1981
1982         regex: fix false multibyte matches in some regular expressions
1983         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
1984         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
1985         * lib/regex_internal.c (re_string_skip_chars):
1986         Fix miscomputation of remain_len that may cause incomplete
1987         multi-byte character and false match.
1988
1989 2012-02-24  Jim Meyering  <meyering@redhat.com>
1990
1991         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
1992         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
1993         uses with "==" *before* the call, e.g., 0 == strcmp (...)
1994         Remove now-unnecessary str''cmp obfuscation.
1995         Suggested by Akim Demaille.
1996
1997 2012-02-24  Bruno Haible  <bruno@clisp.org>
1998
1999         streq: Rename macro.
2000         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
2001         * NEWS: Mention the change.
2002         * lib/mbrtowc.c (mbrtowc): Update.
2003         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
2004         * lib/wcwidth.c (wcwidth): Update.
2005         Suggested by Akim Demaille and Jim Meyering.
2006
2007 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
2008
2009         regex: fix typo in definition of MIN
2010         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
2011         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
2012
2013 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2014             Bruno Haible  <bruno@clisp.org>
2015
2016         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
2017         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
2018         entries into a stack-allocated buffer directly.
2019         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
2020
2021 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2022             Bruno Haible  <bruno@clisp.org>
2023
2024         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
2025
2026          - There were several instances of this pattern:
2027
2028              for (;;) {
2029                n = acl (f, GETACLCNT, 0, NULL);
2030                [ allocate an array A of size N ]
2031                if (acl (f, GETACL, n, a) == n)
2032                  break;
2033              }
2034
2035            This loop might never terminate if some other process is constantly
2036            manipulating the file's ACL.  The loop should be rewritten to
2037            terminate.
2038
2039          - The acl (... GETACLNT ...) call is merely an optimization; its value
2040            is merely a hint as to how big to make the array.  A better
2041            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
2042            and just guess a reasonably-big size, growing the size and trying
2043            again if it's not large enough.  This guarantees termination, and
2044            saves a system call.
2045
2046         * lib/acl-internal.h: Include <limits.h>.
2047         (MIN, SIZE_MAX): New macros.
2048         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
2049         a stack-allocated buffer, and use malloc if it does not fit. Don't
2050         use GETACLCNT.
2051         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2052
2053 2012-02-19  Bruno Haible  <bruno@clisp.org>
2054
2055         acl: Fix endless loop on Solaris with vxfs.
2056         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
2057         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
2058         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2059         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
2060         * tests/test-sameacls.c (main)[Solaris]: Likewise.
2061         Reported by Bill Jones in
2062         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
2063
2064 2012-02-19  Bruno Haible  <bruno@clisp.org>
2065
2066         acl: Fix copy-acl test failure on Solaris 11 2011-11.
2067         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
2068         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
2069         that this function returns 0 in some more cases.
2070
2071 2012-02-19  Bruno Haible  <bruno@clisp.org>
2072
2073         acl: Update doc references.
2074         * doc/acl-resources.txt: Update links to Solaris documentation.
2075
2076 2012-02-19  Bruno Haible  <bruno@clisp.org>
2077
2078         Fix test failure in many locales on Solaris 11.
2079         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
2080         'tr' arguments.
2081         * tests/test-pipe-filter-ii1.c (main): Likewise.
2082         * build-aux/bootstrap (check_versions): Run 'tr' command with range
2083         expressions in the C locale.
2084         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2085         * m4/host-os.m4 (gl_HOST_OS): Likewise.
2086
2087 2012-02-19  Bruno Haible  <bruno@clisp.org>
2088
2089         gnulib-tool: Improve usage message.
2090         * gnulib-tool (func_usage): Move doc of --help and --version to the
2091         section "Operation modes".
2092
2093 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
2094
2095         README-release: make it easier to execute commands
2096         * top/README-release: break commands out on to separate lines.
2097
2098 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
2099
2100         GNUmakefile: simplify detection of unconfigured trees
2101         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
2102         whether the tree make is being run from is already configured or
2103         not.  Related simplifications.
2104
2105 2012-02-13  Simon Josefsson  <simon@josefsson.org>
2106
2107         * gnulib-tool (func_usage): Document --help and --version.
2108
2109 2012-02-11  Jim Meyering  <meyering@redhat.com>
2110
2111         bootstrap: don't exit 0 upon gnulib-tool failure
2112         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
2113         its exit status, not 0.
2114
2115 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
2116
2117         README-release: various improvements
2118         * top/README-release: Give a command to push changes for the
2119         release.  Add "distcheck" to list of other pre-release checks.
2120         Fix instance of "make stable" which should be "make TYPE".
2121
2122 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2123
2124         maint: replace FSF snail-mail addresses with URLs
2125         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
2126         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
2127         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
2128         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
2129         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
2130         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
2131         * lib/check-version.c, lib/check-version.h, lib/config.charset:
2132         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
2133         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
2134         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
2135         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
2136         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
2137         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
2138         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
2139         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
2140         * lib/glthread/thread.c, lib/glthread/thread.h:
2141         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
2142         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
2143         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
2144         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
2145         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
2146         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
2147         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
2148         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
2149         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
2150         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
2151         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
2152         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
2153         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
2154         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
2155         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
2156         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
2157         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
2158         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
2159         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
2160         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
2161         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
2162         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
2163         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
2164         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
2165         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
2166         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
2167         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
2168         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
2169         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
2170         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
2171         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
2172         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
2173         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
2174         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
2175         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
2176         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
2177         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
2178         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
2179         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
2180         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
2181         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
2182         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
2183         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
2184         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
2185         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
2186         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
2187         * tests/test-poll.c, tests/test-quotearg-simple.c:
2188         * tests/test-quotearg.c, tests/test-quotearg.h:
2189         * tests/test-round-ieee.c, tests/test-round1.c:
2190         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
2191         * tests/test-roundl-ieee.c, tests/test-roundl.c:
2192         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
2193         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
2194         * tests/test-strerror.c, tests/test-strerror_r.c:
2195         * tests/test-strsignal.c, tests/test-strverscmp.c:
2196         * tests/test-xmemdup0.c:
2197         Replace FSF snail mail addresses with URLs, as per GNU coding
2198         standards.  See glibc bug
2199         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
2200
2201 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2202
2203         README-release: capitalize a word and split a line
2204         * top/README-release: Fix punctuation and spacing.
2205
2206 2012-02-08  Akim Demaille  <demaille@gostai.com>
2207
2208         fatal-signal: use C prototypes (with explicit void).
2209         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
2210         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
2211
2212 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2213
2214         regex: spelling fix
2215         * lib/regexec.c: spelling fix
2216
2217         regex: rely on stdint.h for SIZE_MAX
2218         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
2219
2220 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2221
2222         regex: merge glibc changes
2223
2224         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
2225         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
2226         (init_word_char): Work even if bitset words are not exactly 32 or
2227         64 bits wide.  Don't assume there are no padding bits.
2228         * lib/regex.c [_LIBC]: Do not include <config.h>.
2229         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
2230         and -Wtype-limits.
2231         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
2232         needless disagreement with glibc.  All uses changed.  Define it to
2233         1 only if _GNU_SOURCE, to match glibc.
2234         (_REG_RM_NAME): Remove; no longer needed, since the names in
2235         question are now all protected by __USE_GNU.
2236         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
2237         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
2238         * lib/regex_internal.h (MIN): New macro.
2239
2240         2012-01-03 Ulrich Drepper <drepper@gmail.com>
2241         * lib/regcomp.c (init_word_char): Optimize regex a bit.
2242
2243         2011-12-30 Jakub Jelinek <jakub@redhat.com>
2244         * lib/regex_internal.c (re_string_fetch_byte_case):
2245         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
2246         is miscompiled, and it turns out it is because of an incorrect
2247         attribute on re_string_fetch_byte_case.  Unlike
2248         re_string_peek_byte_case, this one is really not pure, it modifies
2249         memory (increments pstr->cur_idx), and with the pure attribute GCC
2250         assumed it doesn't and it cached the presumed value of
2251         regexp->cur_idx in a variable across the
2252          for (;; ++i)
2253            {
2254              if (i >= BRACKET_NAME_BUF_SIZE)
2255                return REG_EBRACK;
2256              if (token->type == OP_OPEN_CHAR_CLASS)
2257                ch = re_string_fetch_byte_case (regexp);
2258              else
2259                ch = re_string_fetch_byte (regexp);
2260              if (re_string_eoi(regexp))
2261                return REG_EBRACK;
2262              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
2263                break;
2264              elem->opr.name[i] = ch;
2265            }
2266
2267         2011-11-29 Andreas Schwab <schwab@redhat.com>
2268         * lib/regcomp.c (build_equiv_class):
2269         Fix access after end of search string in regex matcher.
2270
2271         2011-11-12 Ulrich Drepper <drepper@redhat.com>
2272         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
2273
2274         2011-10-12 Ulrich Drepper <drepper@redhat.com>
2275         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
2276
2277         2011-10-11 Ulrich Drepper <drepper@redhat.com>
2278         * lib/regcomp.c (parse_branch, parse_sub_exp):
2279         More regex memory leak fixes and tests.
2280         (parse_sub_exp, parse_bracket_exp):
2281         Fix memory leak for some invalid regular expressions.
2282
2283         2011-05-28 Ulrich Drepper <drepper@gmail.com>
2284         * lib/regex_internal.c, lib/regexec.c:
2285         Fix unnecessary overallocation due to incomplete character.  When
2286         incomplete characters are found at the end of a string the code
2287         ran amok and allocated lots of memory.  Stricter limits are now in
2288         place.
2289
2290         2011-05-20 Reuben Thomas <rrt@sc3d.org>
2291         * lib/regex.h: Update documentation.
2292
2293         2011-05-16 Aharon Robbins <arnold@skeeve.com>
2294         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
2295
2296         2010-05-05 Andreas Schwab <schwab@redhat.com>
2297         * lib/regexec.c (find_collation_sequence_value):
2298         Fix lookup of collation sequence value during regexp matching.
2299
2300         2010-01-22 Ulrich Drepper <drepper@redhat.com>
2301         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
2302
2303         2008-01-16 Ulrich Drepper <drepper@redhat.com>
2304         * lib/regex.h: Cleanup namespace.
2305
2306         2007-11-26 Ulrich Drepper <drepper@redhat.com>
2307         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
2308
2309         2007-08-26 Ulrich Drepper <drepper@redhat.com>
2310         * lib/regex_internal.h: Prevent some declarations and definitions
2311         to be seen when used in tests.
2312
2313         2005-05-06 Ulrich Drepper <drepper@redhat.com>
2314         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
2315         __libc_lock_* macros if not _LIBC.
2316         (struct re_dfa_t): Add lock.
2317
2318 2012-02-07  Eric Blake  <eblake@redhat.com>
2319
2320         maint.mk: also prohibit lower-case @var@
2321         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
2322         lower case, like @top_srcdir@.
2323
2324 2012-02-04  Eric Blake  <eblake@redhat.com>
2325
2326         canonicalize: avoid uninitialized memory use
2327         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
2328         random '/' left in dest.
2329         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
2330
2331 2012-02-04  Bruno Haible  <bruno@clisp.org>
2332
2333         isatty: Fix test failure of ptsname_r on native Windows.
2334         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
2335         and don't set errno.
2336         (isatty): Test first whether fd is valid. Set errno when returning 0.
2337
2338 2012-02-04  Bruno Haible  <bruno@clisp.org>
2339
2340         spawn-pipe tests: Fix a NULL program name in a diagnostic.
2341         * tests/test-spawn-pipe-main.c: Include progname.h.
2342         (main): Invoke set_program_name.
2343         * modules/spawn-pipe-tests (Depends-on): Add progname.
2344
2345         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
2346         * tests/test-nonblocking-socket-main.c: Include progname.h.
2347         (main): Invoke set_program_name.
2348         * modules/nonblocking-socket-tests (Depends-on): Add progname.
2349
2350         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
2351         * tests/test-nonblocking-pipe-main.c: Include progname.h.
2352         (main): Invoke set_program_name.
2353         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
2354
2355 2012-02-04  Eric Blake  <eblake@redhat.com>
2356
2357         canonicalize-lgpl: fix // handling
2358         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
2359
2360         canonicalize: fix // handling
2361         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
2362         /// to //, since only // is special.
2363
2364 2012-02-04  Bruno Haible  <bruno@clisp.org>
2365
2366         ioctl: Fix test failure on native Windows.
2367         * lib/ioctl.c: Include msvc-nothrow.h.
2368         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
2369
2370 2012-02-04  Bruno Haible  <bruno@clisp.org>
2371
2372         fsync: Avoid test failure on native Windows.
2373         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
2374         read-only.
2375
2376 2012-02-04  Bruno Haible  <bruno@clisp.org>
2377
2378         sys_select: Avoid syntax error on OpenBSD 5.0.
2379         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
2380         currently being included, just include the system's <sys/select.h>.
2381
2382 2012-02-04  Bruno Haible  <bruno@clisp.org>
2383
2384         sys_select: Avoid syntax error on OpenBSD 5.0.
2385         * lib/sys_select.in.h: Include <signal.h> only after the include_next
2386         <sys/select.h>, not before.
2387         Reported by Jiri B <jirib@devio.us>.
2388
2389 2012-02-04  Bruno Haible  <bruno@clisp.org>
2390
2391         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
2392         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
2393         global variables.
2394         * tests/test-get-rusage-data.c (main): Likewise.
2395         Reported by Jim Meyering.
2396
2397 2012-02-04  Bruno Haible  <bruno@clisp.org>
2398
2399         stdioext: Fix last commit.
2400         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
2401
2402 2012-02-03  Bruno Haible  <bruno@clisp.org>
2403
2404         stdioext: Add tentative support for Plan9.
2405         * lib/stdio-impl.h: Include <errno.h>.
2406         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
2407         * lib/freadable.c (freadable): Likewise.
2408         * lib/fwritable.c (fwritable): Likewise.
2409         * lib/fbufmode.c (fbufmode): Likewise.
2410         * lib/freading.c (freading): Likewise.
2411         * lib/fwriting.c (fwriting): Likewise.
2412         * lib/freadptr.c (freadptr): Likewise.
2413         * lib/freadseek.c (freadptrinc): Likewise.
2414         * lib/freadahead.c (freadahead): Likewise.
2415         * lib/fpurge.c (fpurge): Likewise.
2416         * lib/fseeko.c (rpl_fseeko): Likewise.
2417         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
2418         Reported by Jens Staal <staal1978@gmail.com>.
2419
2420 2012-02-02  Jim Meyering  <meyering@redhat.com>
2421
2422         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
2423         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
2424         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
2425         not even to try to add the attribute.  Instead, add a pragma to suppress
2426         the suggestion/warning.
2427
2428 2012-01-31  Karl Berry  <karl@gnu.org>
2429
2430         setstate doc: typo.
2431         * doc/posix-functions/setstate.texi (setstate): { not (.
2432
2433 2012-01-31  Bruno Haible  <bruno@clisp.org>
2434
2435         popen: Make more robust on Windows.
2436         * lib/popen.c: On native Windows, use the _popen based code even if
2437         HAVE_POPEN is set.
2438         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
2439         environment variable on native Windows.
2440
2441 2012-01-30  Bruno Haible  <bruno@clisp.org>
2442
2443         pclose: Fix typo.
2444         * lib/stdio.in.h (pclose): Fix typo in warning message.
2445
2446 2012-01-30  Bruno Haible  <bruno@clisp.org>
2447
2448         doc about getlogin_r, setstate.
2449         * doc/posix-functions/getlogin_r.texi: List the incompatible
2450         declaration problem under "not fixed by gnulib".
2451         * doc/posix-functions/setstate.texi: Mention incompatible declaration
2452         problem on Solaris 11 and other platforms.
2453
2454 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
2455             Bruno Haible  <bruno@clisp.org>
2456
2457         poll tests: Make test more robust.
2458         * tests/test-poll.c: Include macros.h.
2459         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
2460         return value of various I/O operations.
2461         * modules/poll-tests (Files): Add tests/macros.h.
2462
2463 2012-01-30  Bruno Haible  <bruno@clisp.org>
2464
2465         sys_stat: Fix support for mingw64 and MSVC.
2466         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
2467         header files already do it.
2468         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
2469         stat itself.
2470         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
2471
2472 2012-01-30  Bruno Haible  <bruno@clisp.org>
2473
2474         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
2475         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
2476         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
2477
2478 2012-01-29  Bruno Haible  <bruno@clisp.org>
2479
2480         quotearg: Fix test failure on MacOS X 10.5.
2481         * tests/test-quotearg-simple.c: Include localcharset.h.
2482         (main): If the locale encoding is not ASCII, bypass the tests of
2483         locale_quoting_style and clocale_quoting_style.
2484         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
2485
2486 2012-01-29  Jim Meyering  <meyering@redhat.com>
2487
2488         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
2489         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
2490         detect uses of canonicalize_file_name.
2491
2492 2012-01-28  Bruno Haible  <bruno@clisp.org>
2493
2494         test-framework-sh: Fix test failure with AIX 7.1 diff.
2495         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
2496         in column 1, like 'diff -c' does.
2497         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
2498         whether 'diff -u' is used. Instead, test whether the output contains
2499         some '@' character.
2500
2501 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
2502
2503         strtoimax: eliminate need for stdint.h, inttypes.h checks
2504         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
2505         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
2506         the prerequisites for a recently-introduced strtoimax test.
2507         I guess this might cause strtoimax to be replaced when not
2508         strictly necessary on older hosts, but this shouldn't introduce
2509         any bugs and it should make Emacs 'configure' faster on typical
2510         modern hosts.  Problem discovered when importing the latest gnulib
2511         to an Emacs test version.
2512         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
2513
2514 2012-01-28  Bruno Haible  <bruno@clisp.org>
2515
2516         sys_time: Override 'struct timeval' on some native Windows platforms.
2517         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
2518         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
2519         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
2520         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
2521         needs to be overridden.
2522         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
2523         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
2524         * tests/test-sys_select.c: Check that the tv_sec member has the same
2525         size as a 'time_t'.
2526         * tests/test-sys_time.c: Likewise.
2527         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
2528         is set, set also REPLACE_GETTIMEOFDAY.
2529         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
2530         convert the resulting 'struct timeval' before returning.
2531         * lib/select.c: Include <sys/time.h>.
2532         (select, timeval): Undefine at the right place.
2533         * modules/select (Depends-on): Add sys_time.
2534         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
2535         some Windows platforms.
2536         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
2537
2538 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2539
2540         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
2541         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
2542         an integer.
2543         * lib/fcntl.c (dupfd): Likewise.
2544         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
2545
2546 2012-01-28  Bruno Haible  <bruno@clisp.org>
2547
2548         fcntl: Avoid compilation error on native Windows.
2549         * modules/fcntl (Depends-on): Add 'close'.
2550
2551 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2552
2553         select, poll, isatty: Avoid warnings on x86_64 mingw64.
2554         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
2555         pointer to an integer.
2556         * lib/poll.c (IsConsoleHandle): Likewise.
2557         * lib/isatty.c (IsConsoleHandle): Likewise.
2558
2559 2012-01-28  Jim Meyering  <meyering@redhat.com>
2560
2561         doc: clarify README-release
2562         * top/README-release: Clarify: you should make a point to have
2563         the latest stable versions of build tools in your PATH, and the
2564         reference to buildreq is solely for its list of tool names, not
2565         for its minimal-functional version numbers.
2566         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
2567
2568         maint.mk: use more readable (yet functionally equivalent) quoting
2569         It is common to quote a single quote in a single quoted string like
2570         this:  '...'\''...'.  Unless you know the idiom, that looks like
2571         gibberish, so prefer to double-quote the string when possible.
2572         Then you can use a more readable, lone single quote: "...'..."
2573         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
2574         "don't" is more readable than the equivalent 'don'\''t'.
2575         (sc_cast_of_x_alloc_return_value): Likewise.
2576         (sc_cast_of_alloca_return_value): Likewise.
2577         (sc_makefile_path_separator_check): Similar: use ":" in '...',
2578         rather than '\'':'\''.
2579
2580 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2581
2582         stdalign: relax _Alignof and tighten _Alignas test
2583         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
2584         as it was too strict: alignof must divide offsetof, but it need
2585         not equal offsetof.  Inspired by Joseph S. Myers's comment
2586         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
2587         Conversely, tighten the _Alignas test a bit, as the resulting
2588         alignment must be exactly 8.
2589
2590 2012-01-27  Bruno Haible  <bruno@clisp.org>
2591
2592         stdalign: Document the last change.
2593         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
2594
2595 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2596
2597         stdalign: check that alignof and offsetof are consistent
2598         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
2599         Problem reported for gnulib by Richard W.M. Jones in
2600         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
2601
2602 2012-01-27  Jim Meyering  <meyering@redhat.com>
2603
2604         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
2605         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
2606         convert a sequence with gaps to the minimal containing range.
2607         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
2608         * tests/test-update-copyright.sh: Test for this.
2609         The FSF confirmed it is ok to do this, assuming there is at
2610         least one significant change per year in the affected range:
2611         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
2612
2613 2012-01-26  Bruno Haible  <bruno@clisp.org>
2614
2615         pipe2: refine doc about thread-safety
2616         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
2617         multithread-safety problem.
2618         * doc/glibc-functions/accept4.texi: Likewise.
2619
2620 2012-01-26  Bruno Haible  <bruno@clisp.org>
2621
2622         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
2623         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
2624         In the test program, include <fcntl.h>, for O_RDONLY.
2625
2626 2012-01-26  Eric Blake  <eblake@redhat.com>
2627
2628         pipe2: document lack of thread-safety in replacement
2629         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
2630         issue in replacement.
2631         * doc/glibc-functions/accept4.texi (accept4): Likewise.
2632         Based on a report by Eric Wong.
2633
2634 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2635             Bruno Haible  <bruno@clisp.org>
2636
2637         malloca: Avoid warnings on x86_64 mingw64.
2638         * lib/malloca.c: Include <stdint.h>.
2639         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
2640         * modules/malloca (Depends-on): Add stdint.
2641         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
2642
2643 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
2644
2645         obstack: remove __STDC__ conditionals
2646         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
2647         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
2648         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
2649         m4/include_next.m4 as the only gnulib-maintained places that still
2650         refer to __STDC__.
2651
2652 2012-01-24  Bruno Haible  <bruno@clisp.org>
2653
2654         havelib: Modern quoting.
2655         * build-aux/config.rpath: Quote 'like this', not `like this', as per
2656         the recent change to the GNU coding standards.
2657
2658 2012-01-24  Bruno Haible  <bruno@clisp.org>
2659
2660         stdint: Improve support for Android.
2661         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
2662         Reported by Simon Josefsson <simon@josefsson.org>.
2663
2664 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2665
2666         doc: omit trailing empty lines from INSTALL etc.
2667         * doc/Makefile (INSTALL): Omit trailing empty lines.
2668         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
2669         omit trailing empty lines.  This simplifies the build procedure.
2670
2671 2012-01-23  Jim Meyering  <meyering@redhat.com>
2672
2673         tests: avoid spurious warnings about gl_sockets_startup
2674         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
2675         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
2676         reporting a "statement with no effect".
2677         * tests/test-accept.c (main): Mark as "(void)".
2678         * tests/test-accept4.c (main): Likewise.
2679         * tests/test-bind.c (main): Likewise.
2680         * tests/test-connect.c (main): Likewise.
2681         * tests/test-getpeername.c (main): Likewise.
2682         * tests/test-getsockname.c (main): Likewise.
2683         * tests/test-getsockopt.c (main): Likewise.
2684         * tests/test-listen.c (main): Likewise.
2685         * tests/test-recv.c (main): Likewise.
2686         * tests/test-recvfrom.c (main): Likewise.
2687         * tests/test-send.c (main): Likewise.
2688         * tests/test-sendto.c (main): Likewise.
2689         * tests/test-setsockopt.c (main): Likewise.
2690         * tests/test-shutdown.c (main): Likewise.
2691
2692 2012-01-21  Bruno Haible  <bruno@clisp.org>
2693
2694         locale-fr.m4: Fix for Android.
2695         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
2696         failure of the test program on Bionic libc.
2697
2698 2012-01-21  Jim Meyering  <meyering@redhat.com>
2699
2700         bootstrap: fail when bootstrap_post_import_hook fails
2701         Otherwise, it's far too easy to miss diagnostics emitted
2702         between gnulib-tool's output and that of running configure.
2703         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
2704
2705 2012-01-17  Jim Meyering  <meyering@redhat.com>
2706
2707         maint: enable sc_trailing_blank
2708         * build-aux/pmccabe.css: Remove trailing blanks.
2709         * doc/acl-cygwin.txt: Likewise.
2710         * doc/gnu-oids.texi: Likewise
2711         * cfg.mk: Enable sc_trailing_blank.
2712         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
2713
2714 2012-01-17  Jim Meyering  <meyering@redhat.com>
2715
2716         maint: enable sc_prohibit_openat_without_use
2717         * cfg.mk: Enable sc_prohibit_openat_without_use.
2718         Exempt lib/selinux-at.c.
2719
2720 2012-01-17  Jim Meyering  <meyering@redhat.com>
2721
2722         maint: enable sc_prohibit_cloexec_without_use
2723         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
2724         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
2725
2726 2012-01-17  Jim Meyering  <meyering@redhat.com>
2727
2728         maint: enable sc_prohibit_intprops_without_use
2729         * cfg.mk: Enable sc_prohibit_intprops_without_use
2730         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
2731
2732 2012-01-17  Jim Meyering  <meyering@redhat.com>
2733
2734         maint: enable sc_prohibit_hash_pjw_without_use
2735         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
2736         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
2737         to match any use of \<hash_pjw\>, i.e., not necessarily with a
2738         following " (".
2739
2740 2012-01-17  Jim Meyering  <meyering@redhat.com>
2741
2742         maint: enable double-word-prohibiting rule
2743         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
2744         Exempt three files.
2745
2746 2012-01-17  Jim Meyering  <meyering@redhat.com>
2747
2748         maint: remove empty lines at EOF, but excluding modules/*
2749         Apply syntax rules at home as well as abroad.  Most changes
2750         were induced by running this:
2751           make srcdir=. _build-aux=build-aux -f top/maint.mk \
2752             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
2753             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
2754         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
2755         Exempt modules/* and two binary files.
2756         Also exempt doc/INSTALL*, per request from Bruno Haible.
2757         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
2758         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
2759         * doc/Copyright/request-assign.future: Likewise.
2760         * doc/Copyright/request-disclaim.changes: Likewise.
2761         * doc/INSTALL: Likewise.
2762         * doc/INSTALL.ISO: Likewise.
2763         * doc/INSTALL.UTF-8: Likewise.
2764         * doc/acl-cygwin.txt: Likewise.
2765         * doc/acl-resources.txt: Likewise.
2766         * doc/fdl-1.2.texi: Likewise.
2767         * doc/fdl-1.3.texi: Likewise.
2768         * doc/fdl.texi: Likewise.
2769         * lib/argp-pin.c: Likewise.
2770         * lib/round.c: Likewise.
2771         * lib/unicase/u16-totitle.c: Likewise.
2772         * lib/unictype/block_test.c: Likewise.
2773         * lib/uninorm/canonical-decomposition.c: Likewise.
2774         * m4/README: Likewise.
2775         * m4/relocatable-lib.m4: Likewise.
2776         * tests/test-isnand-nolibm.c: Likewise.
2777         * tests/test-isnand.c: Likewise.
2778         * tests/uninorm/NormalizationTest.txt: Likewise.
2779
2780 2012-01-17  Jim Meyering  <meyering@redhat.com>
2781
2782         maint: add framework to run syntax-check rules against gnulib sources
2783         * cfg.mk: New file, to disable all currently-failing tests.
2784         We'll enable them one by one, as they are made to pass.
2785         * Makefile (sc_maint): New rule.
2786
2787 2012-01-21  Bruno Haible  <bruno@clisp.org>
2788
2789         stdint: Add support for Android.
2790         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
2791         include the system's <stdint.h>.
2792         Reported by Simon Josefsson <simon@josefsson.org>.
2793
2794 2012-01-19  Jim Meyering  <meyering@redhat.com>
2795
2796         bootstrap: add bootstrap_post_import_hook
2797         Bison does still need something like the gnulib_mk_hook whose
2798         invocation I had to remove along with slurp in commit 767ccd40.
2799         Technically, we could get along without it, but doing so would
2800         have required living with a warning and a mandatory post-bootstrap
2801         automake rerun.
2802         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
2803         (bootstrap_post_import_hook): New function.
2804         Invoke it after gnulib-tool --import and before autoreconf.
2805
2806 2012-01-18  Jim Meyering  <meyering@redhat.com>
2807
2808         gitlog-to-changelog: don't use "no_"-prefixed variable name
2809         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
2810         to enable both --cluster and --no-cluster.  Change variable name,
2811         s/\$no_cluster/$cluster/, and reverse usage to match.
2812
2813         gitlog-to-changelog: use "||", not "or" in expressions
2814         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
2815         expressions.
2816
2817 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
2818
2819         gitlog-to-changelog: new option --no-cluster
2820         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
2821         clustering of adjacent commit messages.
2822
2823 2012-01-17  Jim Meyering  <meyering@redhat.com>
2824
2825         maint: spell file systems with two words, not one
2826         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
2827         two words, not one.
2828
2829 2012-01-16  Jim Meyering  <meyering@redhat.com>
2830
2831         bootstrap: add a FIXME comment to ensure we eventually remove the hack
2832         * build-aux/bootstrap (gnulib_tool_options): Add comment.
2833
2834 2012-01-16  Eric Blake  <eblake@redhat.com>
2835
2836         bootstrap: cater to autoconf 2.59
2837         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
2838         is not available.
2839
2840         bootstrap: properly check for libtool
2841         * build-aux/bootstrap (libtoolize): Also run libtool when older
2842         usage is detected.
2843
2844 2012-01-15  Bruno Haible  <bruno@clisp.org>
2845
2846         Improve support for MSVC 9.
2847         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
2848         clashes on MSVC.
2849         * lib/fcntl.in.h: Likewise.
2850         * lib/stdlib.in.h: Likewise.
2851         * lib/sys_stat.in.h: Likewise.
2852
2853 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
2854
2855         gnupload: we hold the master copy of this script now
2856         For motivation and more information, see:
2857         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
2858         * build-aux/gnupload: Make it clear in the heading comments that the
2859         master copy of this file is maintained by gnulib.  Since we are at
2860         it, bump its copyright year and ...
2861         ($scriptversion): ... the date in its version.
2862         ($usage): Patches and bug reports should be sent to the gnulib list,
2863         not the automake one.
2864         * config/srclist.txt: Don't try to sync 'gnupload' from automake
2865         anymore.
2866
2867 2012-01-15  Bruno Haible  <bruno@clisp.org>
2868
2869         Fix module 'random'.
2870         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
2871         initstate, setstate are declared.
2872
2873 2012-01-14  Bruno Haible  <bruno@clisp.org>
2874
2875         Tests for module 'random'.
2876         * modules/random-tests: New file.
2877         * tests/test-random.c: New file, based on tests/test-random_r.c.
2878
2879         New module 'random'.
2880         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
2881         declarations.
2882         * lib/random.c: New file, based on glibc/stdlib/random.c.
2883         * m4/random.m4: New file.
2884         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
2885         HAVE_RANDOM.
2886         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
2887         * modules/random: New file.
2888         * config/srclist.txt: Add an entry for random.c.
2889         * doc/posix-functions/random.texi: Mention the 'random' module.
2890         * doc/posix-functions/initstate.texi: Likewise.
2891         * doc/posix-functions/setstate.texi: Likewise.
2892         * doc/posix-functions/srandom.texi: Likewise.
2893
2894 2012-01-12  Bruno Haible  <bruno@clisp.org>
2895
2896         random_r: Use common idioms.
2897         * lib/random_r.c: Include <stdlib.h> first.
2898
2899         random_r: Override incompatible API on AIX, OSF/1.
2900         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
2901         Override the system function if REPLACE_RANDOM_R is 1.
2902         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
2903         and OSF/1, set REPLACE_RANDOM_R.
2904         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
2905         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
2906         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
2907         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
2908         * doc/glibc-functions/random_r.texi: Likewise.
2909         * doc/glibc-functions/setstate_r.texi: Likewise.
2910
2911         random_r: Support for MSVC 9.
2912         * lib/random_r.c: Include stdint.h, not inttypes.h.
2913
2914 2012-01-12  Eric Blake  <eblake@redhat.com>
2915
2916         inet_ntop: guard extra work by IF_LINT
2917         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
2918         better code generation when not checking for warnings.
2919         Suggested by Paul Eggert and Jim Meyering.
2920
2921         strptime: fix regression on mingw
2922         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
2923         Fix regression.  Reported by Bruno Haible.
2924
2925 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
2926             Bruno Haible  <bruno@clisp.org>
2927
2928         copy-file: add error-code-returning variant.
2929         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
2930         (qcopy_file_preserving): New declaration.
2931         * lib/copy-file.c (qcopy_file_preserving): Renamed from
2932         copy_file_preserving. Change return type to 'int'. Don't emit an error
2933         message here.
2934         (copy_file_preserving): New function.
2935         * tests/test-copy-file.c: Include <stdlib.h>.
2936         (main): Test qcopy_file_preserving if the environment variable
2937         NO_STDERR_OUTPUT is set.
2938         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
2939         with NO_STDERR_OUTPUT
2940         * tests/test-copy-file-2.sh: Likewise.
2941
2942 2012-01-10  Bruno Haible  <bruno@clisp.org>
2943
2944         copy-file: Use 'quote' module consistently.
2945         * lib/copy-file.c (copy_file_preserving): Use quote().
2946
2947         copy-file: Refactor.
2948         * lib/copy-file.c: Include quote.h.
2949         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
2950         message here.
2951         * modules/copy-file (Depends-on): Add quote.
2952
2953         acl: Export qcopy_acl.
2954         * lib/acl.h (qcopy_acl): New declaration.
2955         * lib/copy-acl.c (qcopy_acl): Make non-static.
2956
2957         acl: Rename a local variable.
2958         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
2959
2960         acl: Align return values of copy_acl and qcopy_acl.
2961         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
2962         maybe < -1.
2963
2964 2012-01-11  Eric Blake  <eblake@redhat.com>
2965
2966         strptime: silence gcc warnings
2967         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
2968         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
2969         Reported by Daniel P. Berrange.
2970
2971         inet_ntop: silence gcc warning
2972         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
2973         Reported by Daniel P. Berrange.
2974
2975 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
2976
2977         getloadavg test: skip the test on GNU/Linux without /proc mounted
2978         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
2979         file.  When /proc is not mounted, it always fails with ENOENT.
2980         * tests/test-getloadavg.c (main): Treat ENOENT return code from
2981         getloadavg(3) the same way as ENOSYS and ENOTSUP.
2982
2983 2012-01-10  Bruno Haible  <bruno@clisp.org>
2984
2985         regex: Avoid link error on MSVC 9.
2986         * modules/regex (Depends-on): Add wctype.
2987
2988 2012-01-10  Bruno Haible  <bruno@clisp.org>
2989
2990         doc: Mention --with-tests option.
2991         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
2992         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
2993         --with-tests.
2994         Reported by Reuben Thomas.
2995
2996 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
2997
2998         users.txt: order package names lexicographically.
2999         * users.txt: Order package names lexicographically.
3000
3001 2012-01-10  Jim Meyering  <meyering@redhat.com>
3002
3003         maint.mk: fix description in comment
3004         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
3005
3006         ignore-value: remove deprecated ignore_ptr function
3007         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
3008         * NEWS: Note this.
3009
3010 2012-01-09  Jim Meyering  <meyering@redhat.com>
3011
3012         test-init.sh: avoid a subshell
3013         * tests/test-init.sh: Remove protective subshell.
3014         Suggested by Bernhard Voelker.  While a subshell is normally
3015         required to protect against older shells (Solaris, FreeBSD) that
3016         warn about a missing program before performing redirection, the
3017         shell-selection tests performed by init.sh probably exclude any
3018         offending shell.
3019
3020 2012-01-08  Bruno Haible  <bruno@clisp.org>
3021
3022         setlocale tests: Avoid test failure on Solaris 11 2011-11.
3023         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
3024         variable.
3025
3026 2012-01-08  Bruno Haible  <bruno@clisp.org>
3027
3028         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
3029         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3030         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3031         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
3032         macro.
3033         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
3034         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3035         * lib/spawn_faction_addopen.c: Add workaround implementation if
3036         HAVE_WORKING_POSIX_SPAWN.
3037         * modules/spawn (Makefile): Substitute
3038         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3039         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
3040         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
3041         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3042         (Depends-on): Update conditions.
3043         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
3044         the Solaris 11 bug.
3045
3046 2012-01-08  Bruno Haible  <bruno@clisp.org>
3047
3048         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
3049         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3050         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3051         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
3052         macro.
3053         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
3054         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3055         * lib/spawn_faction_adddup2.c: Add workaround implementation if
3056         HAVE_WORKING_POSIX_SPAWN.
3057         * modules/spawn (Makefile): Substitute
3058         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3059         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
3060         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
3061         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3062         (Depends-on): Update conditions.
3063         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
3064         the Solaris 11 bug.
3065
3066 2012-01-08  Bruno Haible  <bruno@clisp.org>
3067
3068         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
3069         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3070         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3071         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
3072         HAVE_WORKING_POSIX_SPAWN.
3073         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
3074         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
3075         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3076         * lib/spawn_faction_addclose.c: Add workaround implementation if
3077         HAVE_WORKING_POSIX_SPAWN.
3078         * modules/spawn (Makefile): Substitute
3079         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3080         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
3081         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
3082         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3083         (Depends-on): Update conditions.
3084         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
3085         the Solaris 11 bug.
3086
3087 2012-01-08  Bruno Haible  <bruno@clisp.org>
3088
3089         doc: Update for Solaris 11 2011-11.
3090         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
3091         * m4/printf.m4: Update comments.
3092
3093 2012-01-08  Bruno Haible  <bruno@clisp.org>
3094
3095         mktime: Avoid compilation error on Solaris 11.
3096         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
3097
3098 2012-01-08  Bruno Haible  <bruno@clisp.org>
3099
3100         doc: Small fix.
3101         * doc/posix-headers/nl_types.texi: Correct platforms list.
3102
3103 2012-01-08  Simon Josefsson  <simon@josefsson.org>
3104
3105         Add lgpl-3.0 module.
3106         * MODULES.html.sh (Support for building documentation): Add
3107         lgpl-3.0.
3108         * modules/lgpl-3.0: New file.
3109
3110 2012-01-08  Jim Meyering  <meyering@redhat.com>
3111
3112         select.c: indent with spaces, not TABs
3113         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
3114
3115 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3116
3117         quotearg: do not use grave accent for left quote
3118         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
3119         locale_quoting_style.
3120         (quotearg_buffer_restyled): Fix example.
3121         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
3122
3123 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3124
3125         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
3126         Most programs do not have translation catalogs for English and much
3127         less separate catalogs for British and American English.  Drop the
3128         suggestion to translators about these two, and provide it
3129         automatically for Unicode locales.  Like most programs, even those
3130         using American English, we use single quotation marks.  This conflicts
3131         with the American typographic convention, but works better when you
3132         cite the entire error message within double quotes.  It also tries not
3133         to clash with established practice and with what non-gnulib programs
3134         will usually do.
3135         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
3136         using an UTF-8 or GB-18030 locale.  The list of other locales with
3137         quotes was provided by Bruno Haible.
3138         (quotearg_buffer_restyled): Adjust instructions to translators.
3139         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
3140         text, since this would be wrong when using Unicode.
3141         * modules/quotearg: Depend on c-strcaseeq.
3142
3143 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3144
3145         quotearg: fix Wikipedia link
3146         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
3147
3148 2012-01-07  Simon Josefsson  <simon@josefsson.org>
3149
3150         Fix for mingw with MSVC9.
3151         * m4/ld-version-script.m4: Check that compiler rejects version
3152         scripts with syntax errors.  Reported by Bruno Haible
3153         <bruno@clisp.org>.
3154
3155 2012-01-06  Bruno Haible  <bruno@clisp.org>
3156
3157         Talk about "native Windows API", not "Woe32".
3158         * lib/accept4.c: Update comments to mention native Windows.
3159         * lib/execute.c: Likewise.
3160         * lib/fatal-signal.c: Likewise.
3161         * lib/localcharset.c: Likewise.
3162         * lib/nanosleep.c: Likewise.
3163         * lib/nl_langinfo.c: Likewise.
3164         * lib/pclose.c: Likewise.
3165         * lib/pipe-filter-gi.c: Likewise.
3166         * lib/pipe-filter-ii.c: Likewise.
3167         * lib/pipe.c: Likewise.
3168         * lib/pipe2.c: Likewise.
3169         * lib/popen.c: Likewise.
3170         * lib/progreloc.c: Likewise.
3171         * lib/relocatable.c: Likewise.
3172         * lib/sigaction.c: Likewise.
3173         * lib/sigprocmask.c: Likewise.
3174         * lib/spawn-pipe.h: Likewise.
3175         * lib/spawn-pipe.c: Likewise.
3176         * lib/spawni.c: Likewise.
3177         * lib/stat-time.h: Likewise.
3178         * lib/w32spawn.h: Likewise.
3179         * tests/test-isatty.c: Likewise.
3180         * lib/config.charset: More comments.
3181         * doc/gnulib-intro.texi: Mention native Windows.
3182         * doc/posix-functions/_Exit_C99.texi: Likewise.
3183         * doc/posix-headers/fcntl.texi: Likewise.
3184
3185 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
3186
3187         argp: Avoid crash if translator uses % characters in a translation.
3188         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
3189         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
3190
3191 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
3192
3193         doc: C11 and C++11 are now official
3194         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
3195         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
3196         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
3197         * modules/stdalign:
3198         Replace references to draft C1X to C11, and to draft C++0X to C++11.
3199
3200 2012-01-06  Bruno Haible  <bruno@clisp.org>
3201
3202         uc-is-grapheme-break tests: Tweak.
3203         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
3204         message.
3205
3206 2012-01-06  Bruno Haible  <bruno@clisp.org>
3207
3208         test-init.sh: correct the test for diff -u
3209         * tests/test-init.sh: Also redirect stdout to /dev/null.
3210
3211 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
3212
3213         Use ', not `, for quoting output.
3214         * build-aux/announce-gen (usage, sizes, print_news_deltas)
3215         (print_changelog_deltas, get_tool_versions, main program):
3216         * build-aux/git-version-gen:
3217         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
3218         * build-aux/move-if-change (help):
3219         * build-aux/useless-if-before-free (usage, main program):
3220         * check-module (parse_module_file, usage)
3221         (find_included_lib_files, check_module):
3222         * lib/argmatch.c (main) [TEST]:
3223         * lib/argp-help.c (_help):
3224         * lib/getopt1.c (main) [TEST]:
3225         * lib/git-merge-changelog.c (usage):
3226         * lib/xstrtol-error.c (xstrtol_error):
3227         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
3228         * m4/argz.m4 (gl_FUNC_ARGZ):
3229         * m4/bison.m4 (gl_BISON):
3230         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
3231         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
3232         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
3233         * m4/fpending.m4 (gl_PREREQ_FPENDING):
3234         * m4/gc-random.m4 (gl_GC_RANDOM):
3235         * m4/intl.m4 (gt_CHECK_DECL):
3236         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
3237         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
3238         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
3239         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
3240         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
3241         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
3242         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
3243         * tests/test-dirname.c (main):
3244         * tests/test-getpass.c (main):
3245         * tests/test-iconvme.c (main):
3246         * tests/test-parse-datetime.c (LOG):
3247         * tests/test-xstrtoimax.sh:
3248         * tests/test-xstrtol.sh:
3249         * tests/test-xstrtoll.sh:
3250         * tests/test-xstrtoumax.sh:
3251         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
3252         * top/GNUmakefile (abort-due-to-no-makefile):
3253         Quote 'like this', not `like this', as per the recent change to
3254         the GNU coding standards.
3255
3256 2012-01-05  Bruno Haible  <bruno@clisp.org>
3257
3258         strtoimax: Don't force a replacement on systems where intmax_t is int.
3259         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
3260         'intmax_t' is not larger than 'int'.
3261         Reported by Pádraig Brady <P@draigBrady.com>.
3262
3263 2012-01-05  Bruno Haible  <bruno@clisp.org>
3264
3265         doc: Mention NetBSD bugs.
3266         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
3267         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
3268
3269 2012-01-05  Bruno Haible  <bruno@clisp.org>
3270
3271         strtoumax tests: Enhance tests.
3272         * tests/test-strtoumax.c (main): Add tests for large values.
3273
3274 2012-01-05  Bruno Haible  <bruno@clisp.org>
3275
3276         strtoimax: Work around AIX 5.1 bug.
3277         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
3278         definition.
3279         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
3280         Set HAVE_STRTOIMAX.
3281         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
3282         REPLACE_STRTOIMAX.
3283         * modules/inttypes-incomplete (Makefile.am): Substitute
3284         REPLACE_STRTOIMAX.
3285         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
3286         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
3287         (Depends-on): Update conditions.
3288         * tests/test-strtoimax.c (main): Add tests for large values.
3289         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
3290
3291 2012-01-05  Bruno Haible  <bruno@clisp.org>
3292
3293         inttypes: Modernize.
3294         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
3295         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
3296         (Makefile.am): Update inttypes.h rule.
3297
3298 2012-01-05  Jim Meyering  <meyering@redhat.com>
3299
3300         init.sh: don't waste a subshell just to redirect stderr
3301         * tests/init.sh: In testing for diff -u and diff -c, use a
3302         stderr-redirecting exec inside `...` rather than a subshell.
3303
3304         test-init.sh: avoid failure on HP-UX 11.00
3305         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
3306         resolves to diff -c or cmp.  Reported by Bruno Haible.
3307
3308 2012-01-05  Bruno Haible  <bruno@clisp.org>
3309
3310         Tests for module 'strtoull'.
3311         * modules/strtoull-tests: New file.
3312         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
3313
3314 2012-01-05  Bruno Haible  <bruno@clisp.org>
3315
3316         Tests for module 'strtoll'.
3317         * modules/strtoll-tests: New file.
3318         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
3319
3320 2012-01-05  Bruno Haible  <bruno@clisp.org>
3321
3322         Tests for module 'strtoul'.
3323         * modules/strtoul-tests: New file.
3324         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
3325
3326 2012-01-05  Bruno Haible  <bruno@clisp.org>
3327
3328         Tests for module 'strtol'.
3329         * modules/strtol-tests: New file.
3330         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
3331
3332 2012-01-04  Jim Meyering  <meyering@redhat.com>
3333
3334         test-init.sh: accommodate Solaris 5.10's different diff -u output
3335         * tests/test-init.sh: Also exempt @@ lines from the comparison
3336         of diff output, since Solaris 5.10 and GNU diff formats differ.
3337         Reported by Stefano Lattarini.
3338
3339 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
3340
3341         test-posixtm: don't assume signed integer wraparound
3342         * tests/test-posixtm.c (main): Don't assume wraparound semantics
3343         after signed integer overflow.  Inspired by (though it may not
3344         fix) Bruno Haible's bug report in
3345         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
3346
3347         Spell out "Windows 9x" and "Windows XP".
3348         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
3349         "Windows 9x" and "WinXP" with "Windows XP".
3350
3351 2012-01-04  Jim Meyering  <meyering@redhat.com>
3352
3353         test-vc-list-files-cvs.sh: remove obsolete comment
3354         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
3355         double exit.  Now that's all encapsulated via skip_ and Exit.
3356
3357 2012-01-04  Bruno Haible  <bruno@clisp.org>
3358
3359         Talk about "native Windows API", not "Win32".
3360         * lib/classpath.c: Update comments to mention native Windows.
3361         * lib/csharpexec.c: Likewise.
3362         * lib/dup2.c: Likewise.
3363         * lib/error.c: Likewise.
3364         * lib/fcntl.c: Likewise.
3365         * lib/filename.h: Likewise.
3366         * lib/findprog.c: Likewise.
3367         * lib/get-rusage-as.c: Likewise.
3368         * lib/get-rusage-data.c: Likewise.
3369         * lib/getpagesize.c: Likewise.
3370         * lib/javaexec.c: Likewise.
3371         * lib/msvc-inval.c: Likewise.
3372         * lib/msvc-nothrow.c: Likewise.
3373         * lib/nanosleep.c: Likewise.
3374         * lib/nonblocking.c: Likewise.
3375         * lib/printf-parse.c: Likewise.
3376         * lib/setlocale.c: Likewise.
3377         * lib/sigaction.c: Likewise.
3378         * lib/strerror_r.c: Likewise.
3379         * lib/tmpdir.c: Likewise.
3380         * lib/vasnprintf.c: Likewise.
3381         * lib/w32spawn.h: Likewise.
3382         * lib/waitpid.c: Likewise.
3383         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
3384         * m4/locale-ar.m4: Likewise.
3385         * m4/locale-fr.m4: Likewise.
3386         * m4/locale-ja.m4: Likewise.
3387         * m4/locale-tr.m4: Likewise.
3388         * m4/locale-zh.m4: Likewise.
3389         * m4/printf.m4: Likewise.
3390         * tests/test-cloexec.c: Likewise.
3391         * tests/test-copy-acl.sh: Likewise.
3392         * tests/test-copy-file.sh: Likewise.
3393         * tests/test-file-has-acl.sh: Likewise.
3394         * tests/test-set-mode-acl.sh: Likewise.
3395         * tests/test-dup-safer.c: Likewise.
3396         * tests/test-dup2.c: Likewise.
3397         * tests/test-dup3.c: Likewise.
3398         * tests/test-fcntl.c: Likewise.
3399         * tests/test-nonblocking-pipe.h: Likewise.
3400         * tests/test-nonblocking-socket.h: Likewise.
3401         * tests/test-pipe.c: Likewise.
3402         * tests/test-pipe2.c: Likewise.
3403         * tests/test-spawn-pipe-child.c: Likewise.
3404         * doc/acl-resources.txt: Likewise.
3405         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3406         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
3407         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
3408         * lib/localcharset.c: Update comments to mention native Windows.
3409         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3410         * lib/localename.c: Likewise.
3411         * lib/progreloc.c: Likewise.
3412         * lib/relocatable.c: Likewise.
3413         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3414         (windows_compute_revents): Renamed from win32_compute_revents.
3415         (windows_compute_revents_socket): Renamed from
3416         win32_compute_revents_socket.
3417         * lib/select.c: Update comments to mention native Windows.
3418         (windows_poll_handle): Renamed from win32_poll_handle.
3419         * m4/threadlib.m4: Update comments to mention native Windows.
3420         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
3421         --enable-threads=windows instead of --enable-threads=win32. Set
3422         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
3423         * lib/glthread/lock.h: Update comments to mention native Windows.
3424         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
3425         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
3426         USE_WIN32_THREADS.
3427         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
3428         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
3429         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
3430         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
3431         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
3432         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
3433         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
3434         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
3435         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
3436         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
3437         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
3438         * tests/test-tls.c: Likewise.
3439         Rationale:
3440         Microsoft renamed the "Win32 API" to "Windows API", as it is available
3441         on both 32-bit and 64-bit Windows systems.
3442         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
3443         line of distinction is between "native Windows" on one side and Unix/
3444         POSIX systems on the other side. More details in
3445         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
3446         Suggested by Paul Eggert.
3447
3448 2012-01-03  Bruno Haible  <bruno@clisp.org>
3449
3450         isatty: Support for MSVC 9.
3451         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
3452         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
3453         (_isatty_nothrow): New function.
3454         (isatty): Use it instead of _isatty.
3455         (IsConsoleHandle): Add comment, from Paolo Bonzini.
3456         * lib/poll.c (IsConsoleHandle): Likewise.
3457         * lib/select.c (IsConsoleHandle): Likewise.
3458         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
3459         (gl_PREREQ_ISATTY): New macro.
3460         * modules/isatty (Depends-on): Add msvc-inval.
3461         (configure.ac): Invoke gl_PREREQ_ISATTY.
3462
3463 2012-01-03  Jim Meyering  <meyering@redhat.com>
3464
3465         maint.mk: remove temporary transition aid from over 1.5 years ago
3466         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
3467         purpose was to aid in the transition (avoiding silent malfunction)
3468         from that old name to the new _sc_search_regexp.  This shim was
3469         added by commit 219c504b.
3470
3471         init.sh: do not try to accommodate compare arguments starting with "-"
3472         * tests/init.sh (compare_dev_null_): Do not try to accommodate
3473         compare arguments that start with "-".  Besides, we do not worry
3474         about this when invoking diff or cmp; why start now with sed?
3475         Using "--" to separate options from argument would trigger sed
3476         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
3477         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
3478
3479 2012-01-02  Bruno Haible  <bruno@clisp.org>
3480
3481         Enhance tests for module 'isatty'.
3482         * modules/isatty-tests (Depends-on): Add pipe-posix.
3483         * tests/test-isatty.c: Include <fcntl.h>.
3484         (DEV_NULL): New macro.
3485         (main): Test the resut of isatty() also on regular files, pipes, and
3486         /dev/null.
3487
3488         New module 'isatty'.
3489         * lib/unistd.in.h (isatty): New declaration.
3490         * lib/isatty.c: New file, based on an idea of
3491         Bastien Roucariès <roucaries.bastien@gmail.com>.
3492         * m4/isatty.m4: New file.
3493         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
3494         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
3495         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
3496         REPLACE_ISATTY.
3497         * modules/isatty: New file.
3498         * doc/posix-functions/isatty.texi: Mention the new module.
3499         Suggested by Paolo Bonzini.
3500
3501 2012-01-02  Bruno Haible  <bruno@clisp.org>
3502
3503         canonicalize: Tweak 2011-12-29 commit.
3504         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
3505         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
3506
3507 2012-01-02  Jim Meyering  <meyering@redhat.com>
3508
3509         gitlog-to-changelog: describe input syntax in --help output
3510         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
3511
3512         gitlog-to-changelog: fix typo in --help: show backslash before email @
3513         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
3514         in sources, but not in actual output.
3515
3516 2011-12-30  Jim Meyering  <meyering@redhat.com>
3517
3518         gitlog-to-changelog: don't malfunction when name contains %-directive
3519         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
3520         in a name string cause trouble.  E.g., with a user name of "%s",
3521         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
3522
3523 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
3524
3525         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
3526         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
3527         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
3528         the "  (tiny change)" notation that is appended to the standard
3529         ChangeLog "date  name  email" header line.
3530
3531 2012-01-01  Jim Meyering  <meyering@redhat.com>
3532
3533         test-framework-sh: init.sh: fix "make dist" failure
3534         When using gnulib-tool's --with-tests option and any module that
3535         depends on test-framework-sh, "make dist" would fail due to the
3536         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
3537         in the gltests directory, and not in the gllib/ directory.
3538         One way to work around that is to move the EXTRA_DIST += init.sh
3539         from the primary module to the -tests one:
3540         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
3541         * modules/test-framework-sh (Makefile.am): ...not here.
3542         Reported by Tom G. Christensen in
3543         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
3544
3545         version-etc: update copyright year reported by --version
3546         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
3547
3548 2011-12-31  Pádraig Brady  <P@draigBrady.com>
3549
3550         canonicalize: only stat() if required
3551         * lib/canonicalize.c (canonicalize_filename_mode):
3552         Avoid calling l?stat() when both CAN_MISSING,
3553         and CAN_NOLINKS are set, as we neither need
3554         to resolve symlinks or test component existence.
3555
3556 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
3557
3558         doc: cover st_ino issues once; add OpenVMS etc.
3559         * doc/posix-functions/stat.texi (stat):
3560         * doc/posix-functions/lstat.texi (lstat):
3561         * doc/posix-functions/fstatat.texi (fstatat):
3562         * doc/posix-functions/fstat.texi (fstat):
3563         Move general 'struct stat' stuff to sys_stat.texi,
3564         leaving behind a pointer.
3565         * doc/posix-headers/sys_stat.texi (sys/stat.h):
3566         Merge duplicate info about 'struct stat' problems into here.
3567         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
3568         and suggest partial workarounds.
3569
3570         same-inode: port to OpenVMS
3571         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
3572         three st_ino values.
3573
3574 2011-12-30  Pádraig Brady  <P@draigBrady.com>
3575
3576         canonicalize: fix references to stat() and lstat()
3577         * lib/canonicalize.c (canonicalize_filename_mode):
3578         Ensure references always resolve to a replacement
3579         function if required (even via a macro).
3580
3581 2011-12-30  Jim Meyering  <meyering@redhat.com>
3582
3583         gitlog-to-changelog: remove a little duplication
3584         * build-aux/gitlog-to-changelog (main): Grep @lines once,
3585         rather than twice.
3586
3587 2011-12-29  Pádraig Brady  <P@draigBrady.com>
3588
3589         canonicalize: add support for not resolving symlinks
3590         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
3591         indicate we don't want to follow symlinks.  Also
3592         provide CAN_MODE_MASK to aid setting these existing
3593         mutually exclusive values.
3594         * lib/canonicalize.c (canonicalize_filename_mode):
3595         Extract the flags from can_mode parameter, which
3596         are currently just used to select between stat()
3597         and lstat().  Also ensure that mutually exclusive
3598         values are flagged immediately as invalid.
3599         * tests/test-canonicalize.c: Verify symlinks are
3600         not followed, and that invalid flag combinations
3601         are diagnosed.
3602
3603 2011-12-25  Jim Meyering  <meyering@redhat.com>
3604
3605         gitlog-to-changelog: do not clump multi-paragraph entries
3606         Identical header lines (date,name,email+coauthors) are suppressed,
3607         thus putting all entries with those same characteristics under
3608         a single header.  However, when a log entry consists of two or
3609         more paragraphs, it may not be clear where it starts and ends.
3610         This change makes it so that such an entry is always separated
3611         from others by a header line, even when that header would
3612         otherwise be suppressed.
3613         * build-aux/gitlog-to-changelog: Implement the above.
3614         Inspired by a related request from Stefano Lattarini in
3615         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
3616
3617 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
3618
3619         announce-gen: fix `cmd' typo in diagnostic
3620         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
3621         diagnostic: a missing '$' meant that the command was not output.
3622
3623 2011-12-23  Jim Meyering  <meyering@redhat.com>
3624
3625         test-framework-sh: distribute init.sh
3626         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
3627         Otherwise, "make -C gnulib-tests check" (at least in grep) would
3628         fail due to the lack of init.sh.
3629
3630         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
3631         * modules/atexit-tests: Rather than listing tests/init.sh,
3632         now that there's a module for it, simply depend on that new module.
3633         * modules/closein-tests: Likewise.
3634         * modules/exclude-tests: Likewise.
3635         * modules/getcwd-tests: Likewise.
3636         * modules/perror-tests: Likewise.
3637         * modules/pread-tests: Likewise.
3638         * modules/pwrite-tests: Likewise.
3639         * modules/vc-list-files-tests: Likewise.
3640         * modules/verify-tests: Likewise.
3641         * modules/xalloc-die-tests: Likewise.
3642         * modules/xstrtoimax-tests: Likewise.
3643         * modules/xstrtol-tests: Likewise.
3644         * modules/xstrtoll-tests: Likewise.
3645         * modules/xstrtoumax-tests: Likewise.
3646         * modules/yesno-tests: Likewise.
3647
3648 2011-12-22  Jim Meyering  <meyering@redhat.com>
3649
3650         test-framework-sh: add minimal tests of init.sh's compare function
3651         * modules/test-framework-sh-tests: New file.
3652         * tests/test-init.sh: New file.
3653
3654         test-framework-sh: new module
3655         * modules/test-framework-sh: New file.
3656         * MODULES.html.sh (Support for maintaining and releasing projects):
3657         List it.
3658
3659         init.sh: do not emit simulated diff output to stderr
3660         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
3661
3662 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3663
3664         .gitignore: ignore gnulib.dvi and regex.info
3665         * doc/.gitignore:add gnulib.dvi and regex.info
3666
3667 2011-12-22  Jim Meyering  <meyering@redhat.com>
3668
3669         init.sh: correct previous change
3670         * tests/init.sh (compare): My previous change was wrong.
3671         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
3672
3673         init.sh: avoid unwarranted test failure when using "set -e"
3674         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
3675         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
3676         a use like "compare exp out" would get evoke an unconditional failure.
3677
3678 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
3679
3680         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
3681         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
3682         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
3683         autoreconf that did not.
3684         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
3685         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
3686
3687 2011-12-17  Jim Meyering  <meyering@redhat.com>
3688
3689         bootstrap: remove some now-unneeded code
3690         This script arose back when gnulib-tool was young.
3691         Since then, it has seen improvements that render much of this
3692         script unnecessary.  In particular, it can now make symlinks
3693         to the files it uses.  Also, I no longer see as much value in
3694         marking files as read-only via comments.
3695         If you relied on the symlink-creation feature of the preceding
3696         version of this script, you can get most of that functionality
3697         by adding the --symlink option to the definition of
3698         gnulib_tool_option_extras in your bootstrap.conf file.
3699         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
3700         Run autopoint and libtoolize *before* gnulib-tool.
3701         After it, run an abbreviated autoreconf, rather than a loop around
3702         all tools.
3703         (slirp, bt_mark_as_generated): Remove functions.
3704
3705 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3706
3707         ftoastr: fix typo
3708         * lib/ftoastr.h: Fix misspelling in comment.
3709
3710 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
3711
3712         * top/README-release: fix punctuation.
3713
3714 2011-12-17  Jim Meyering  <meyering@redhat.com>
3715
3716         bootstrap: correct the recent buildreq change
3717         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
3718         had no effect.
3719         * build-aux/bootstrap (buildreq): Bracket each search term with
3720         "*...*", so that the shell "case" statement works as intended.
3721         Add comments.
3722
3723 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
3724
3725         build: let bootstrap resort to wget when downloading .po files
3726         * build-aux/bootstrap (download_po_files): Fallback to wget when
3727         downloading the .po files via rsync fails.  This is necessary to
3728         bootstrap from behind a strict firewall.
3729
3730 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
3731
3732         stdint: don't assume C++11 when compiling with g++
3733         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
3734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
3735         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
3736         work also in C++ before C++11, as that improperly inhibits
3737         generating a substitute stdint.h for that case.
3738
3739 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
3740
3741         alloca: protect comment from gnulib-tool
3742         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
3743         that gnulib-tool doesn't think it's a license, and munge it to
3744         say "GCC version 3".
3745
3746 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
3747
3748         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
3749         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
3750         $(abs_top_builddir) instead of $(top_builddir).
3751
3752 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
3753
3754         strftime-tests: also test nanoseconds
3755         * tests/test-strftime.c (T): Add a test of %N.
3756
3757 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
3758
3759         inttypes, stdint: add C++11 support
3760         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
3761         when including inttypes.h and stdint.h.  Support this change to
3762         the standard.
3763         * doc/posix-headers/inttypes.texi (inttypes.h):
3764         * doc/posix-headers/stdint.texi (stdint.h): Document this.
3765         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
3766         Define if not defined already, for the benefit of pre-C++11 hosts.
3767         Define the standard format macros (e.g., PRId8) always.
3768         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
3769         Likewise, if __cpluspus.  Define the standard constant and limit
3770         macros (e.g., INT8_C, INT8_MAX) always.
3771         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
3772         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
3773         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
3774         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
3775         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
3776         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
3777         Likewise.
3778
3779 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
3780
3781         nonblocking tests: Fix test failure on Linux/PPC.
3782         Suggested by Prerna Saxena in
3783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
3784         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
3785         Set to 1100000.
3786
3787 2011-12-12  Jim Meyering  <meyering@redhat.com>
3788
3789         argmatch: don't hard-code `' when listing valid option arguments
3790         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
3791         use the quote function to add quotes.  Use fputs rather than
3792         fprintf for the format string with no format directive.
3793
3794 2011-12-07  Eric Blake  <eblake@redhat.com>
3795
3796         bootstrap: detect tools required by gnulib-tool
3797         * build-aux/bootstrap (buildreq): Provide minimum implicit
3798         dependencies.
3799         * DEPENDENCIES: Mention patch as a prereq.
3800
3801 2011-12-04  Bruno Haible  <bruno@clisp.org>
3802
3803         sethostname: Port to Windows platforms.
3804         * lib/sethostname.c: Provide an alternate implementation for Windows
3805         platforms.
3806         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
3807         (main): Skip the test if sethostname() fails with EPERM. On Windows
3808         platforms, don't check the result of gethostname().
3809
3810 2011-12-04  Bruno Haible  <bruno@clisp.org>
3811             Jim Meyering  <meyering@redhat.com>
3812
3813         tests: Avoid spurious error message on platforms without mktemp program.
3814         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
3815
3816 2011-12-04  Bruno Haible  <bruno@clisp.org>
3817
3818         sethostname: Fix documentation.
3819         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
3820         "not fixed" section.
3821
3822 2011-12-03  Bruno Haible  <bruno@clisp.org>
3823
3824         gnulib-tool: Verify that the License field is present and non-empty.
3825         * gnulib-tool (func_get_license_raw): New function, extracted from
3826         func_get_license.
3827         (func_get_license): Use it. Warn if the module is not a test module and
3828         has no license.
3829         Suggested by Jim Meyering.
3830
3831 2011-12-03  Bruno Haible  <bruno@clisp.org>
3832
3833         sethostname tests: Fix link error on mingw.
3834         * tests/test-sethostname1.c: New file, extracted from
3835         tests/test-sethostname.c.
3836         * tests/test-sethostname2.c: New file, extracted from
3837         tests/test-sethostname.c.
3838         * tests/test-sethostname.c: Remove file.
3839         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
3840         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
3841         (Depends-on): Add gethostname.
3842         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
3843         Link the latter with $(GETHOSTNAME_LIB).
3844
3845         sethostname tests: Fix compilation error on mingw.
3846         * tests/test-sethostname.c: Don't include <sys/types.h>.
3847         (geteuid): Use a dummy value without uid_t.
3848         * modules/sethostname-tests (Depends-on): Remove sys_types.
3849
3850         sethostname tests: Avoid a gcc warning.
3851         * tests/test-sethostname.c (main): Remove an unused variable.
3852
3853         Tweak last commit.
3854         * modules/sethostname-tests (Files): Sort by decreasing importance.
3855         (configure.ac): Check for geteuid.
3856         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
3857         the test when there's nothing to test. Drop an unnecessary cast.
3858         Improve an error message. Verify that the final sethostname() call
3859         succeeds.
3860
3861 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3862
3863         Add a test suite for the sethostname module.
3864         * modules/sethostname-tests: New file.  A test program
3865         for the sethostname module.
3866         * tests/test-sethostname.c: Likewise.
3867
3868 2011-12-03  Bruno Haible  <bruno@clisp.org>
3869
3870         Tweak last commit.
3871         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
3872         Fix preprocessor directives indentation. Fix typos.
3873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
3874         * modules/unistd (Makefile): Likewise.
3875
3876 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3877
3878         Integrate the sethostname module into unistd.
3879         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
3880         into the unistd.h header.
3881         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
3882         preprocessor directives.
3883         * modules/unistd: Setup the Makefile substitutions of the
3884         SETHOSTNAME preprocessor directives.
3885
3886 2011-12-03  Bruno Haible  <bruno@clisp.org>
3887
3888         Tweak last commit.
3889         * lib/sethostname.c: Don't include <string.h>.
3890         (sethostname): No need to copy the argument string to the stack. Don't
3891         call clearerr. Preserve errno when fprintf failed.
3892         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
3893         Don't invoke AC_REPLACE_FUNCS.
3894         * modules/sethostname (Link): Remove empty section.
3895         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
3896         failure problem.
3897
3898 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3899
3900         New module 'sethostname'.
3901         * lib/sethostname.c (sethostname): New file.  Provide sethostname
3902         for systems that lack it.
3903         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
3904         sethostname declaration and function.
3905         * modules/sethostname: New file.  Define the sethostname module.
3906
3907 2011-12-03  Bruno Haible  <bruno@clisp.org>
3908
3909         Tweak last commit.
3910         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
3911
3912 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3913
3914         Split the HOST_NAME_MAX detection into a separate m4 macro.
3915         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
3916         macro so it can be used by the pending sethostname module.
3917
3918 2011-12-03  Bruno Haible  <bruno@clisp.org>
3919
3920         Fix module descriptions syntax.
3921         * modules/argv-iter (License): Fix syntax.
3922         * modules/di-set (License): Likewise.
3923         * modules/ino-map (License): Likewise.
3924         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
3925
3926 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
3927
3928         stdalign: port to Clang 3.0
3929         Problem reported by Simon Josefsson in
3930         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
3931         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
3932         which has <stdalign.h> but which does not define alignof.
3933         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
3934
3935 2011-12-01  Eric Blake  <eblake@redhat.com>
3936
3937         mktempd: silence dd usage
3938         * build-aux/mktempd (rand_bytes): Silence dd.
3939
3940 2011-11-30  Simon Josefsson  <simon@josefsson.org>
3941
3942         manywarnings: Don't mention gcc version in docstring.
3943         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
3944         Jim Meyering <meyering@redhat.com>.
3945
3946 2011-11-30  Jim Meyering  <meyering@redhat.com>
3947
3948         hash: mark a few floating point constants with "f" suffix
3949         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
3950         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
3951         floating point constants with "f", since they're destined to be
3952         saved/used as "float"s.
3953
3954 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
3955
3956         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
3957         * tests/test-float.c (test_long_double): Correct and re-enable the
3958         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
3959
3960 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
3961
3962         Avoid subtracting two pointers that don't point into the same block.
3963         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
3964         only pointers into the same memory block are subtracted. We cannot
3965         assume that sizeof (ptrdiff_t) == sizeof (void *).
3966
3967 2011-11-29  Eric Blake  <eblake@redhat.com>
3968
3969         maint.mk: add syntax check for use of compare from init.sh
3970         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
3971         moved here from coreutils.
3972
3973         manywarnings: drop -Wunsuffixed-float-constants
3974         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
3975         '1.0D', which is the only way to silence this warning for 'double'.
3976
3977 2011-11-29  Jim Meyering  <meyering@redhat.com>
3978
3979         hash: mark compute_bucket_size with the pure attribute
3980         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
3981
3982         quotearg, propername: correct pragma guard expression
3983         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
3984         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
3985
3986 2011-11-28  Jim Meyering  <meyering@redhat.com>
3987
3988         propername: do not mark proper_name with the const attribute
3989         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
3990         since it examines data pointed to by its parameter.
3991         * lib/propername.c (proper_name): Instead, add a pragma to suppress
3992         the suggestion from -Wsuggest-attribute=const.
3993
3994         propername: mark one more function as const
3995         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
3996
3997 2011-11-27  Jim Meyering  <meyering@redhat.com>
3998
3999         mark functions with const and pure attributes
4000
4001         Mark functions per suggestions from gcc-4.6 when using these options:
4002         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
4003         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
4004         Follow these guidelines: when possible, apply the attribute to
4005         an extern declaration, not to its definition.  Apply it to the
4006         definition only when the definition is static.
4007         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
4008         * lib/argv-iter.h (argv_iter_n_args): Likewise.
4009         * lib/base64.h (isbase64): Likewise.
4010         * lib/basename-lgpl.c (last_component, base_len): Likewise.
4011         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
4012         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
4013         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
4014         (c_tolower, c_toupper): Likewise.
4015         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
4016         * lib/chdir-long.c (find_non_slash): Likewise.
4017         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
4018         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
4019         * lib/file-type.h (file_type): Likewise.
4020         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
4021         * lib/filevercmp.c (verrevcmp): Likewise.
4022         * lib/freadahead.h (freadahead): Likewise.
4023         * lib/fts.c (fts_maxarglen): Likewise.
4024         * lib/hash-pjw.h (hash_pjw): Likewise.
4025         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
4026         * lib/hash.c (is_prime, next_prime): Likewise.
4027         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
4028         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
4029         (hash_table_ok, hash_get_first, hash_string): Likewise.
4030         (compute_bucket_size): Likewise.
4031         * lib/i-ring.h (i_ring_empty): Likewise.
4032         * lib/isnan.c (isnanl): Likewise.
4033         * lib/math.h (isnanl, rpl_isnanl): Likewise.
4034         * lib/memcasecmp.h (memcasecmp): Likewise.
4035         * lib/memchr2.h (memchr2): Likewise.
4036         * lib/memcmp2.h (memcmp2): Likewise.
4037         * lib/parse-datetime.y (lookup_zone): Likewise.
4038         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
4039         [!WINDOWS_SOCKETS]: Likewise.
4040         * lib/strnlen1.h (strnlen1): Likewise.
4041         * lib/uniwidth.in.h (uc_width): Likewise.
4042         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
4043         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
4044         (quoting_options_from_style): Add a comment.
4045         * lib/propername.h (proper_name): Add a comment.
4046
4047 2011-11-27  Bruno Haible  <bruno@clisp.org>
4048
4049         Remove unused macros from !_LIBC code in glibc-borrowed files.
4050         * lib/fnmatch.c (STRCOLL): Remove macro.
4051         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
4052         * lib/glob.c (__stat, __readdir64): Remove macros.
4053         * lib/tempname.c (__open64, __xstat64): Remove macros.
4054         Suggested by Paul Eggert.
4055
4056 2011-11-27  Bruno Haible  <bruno@clisp.org>
4057
4058         getcwd: Fix link error on MSVC 9.
4059         * modules/getcwd (Depends-on): Add readdir, rewinddir.
4060
4061 2011-11-27  Bruno Haible  <bruno@clisp.org>
4062
4063         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
4064         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
4065         HAVE_OPENDIR is 0.
4066         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
4067         HAVE_CLOSEDIR is 0.
4068         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
4069         is 0.
4070         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
4071
4072 2011-11-27  Bruno Haible  <bruno@clisp.org>
4073
4074         getcwd: Fix bug from 2011-08-17.
4075         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
4076         platforms that need it.
4077         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
4078         code of 4 to be a failure, not a success. This ensures that
4079         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
4080
4081 2011-11-27  Bruno Haible  <bruno@clisp.org>
4082
4083         binary-io tests: Avoid test failure on mingw when libtool is used.
4084         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
4085         Don't verify the size of t-bin-out1.tmp here.
4086         * tests/test-binary-io.sh: Verify it here.
4087         Reported by Simon Josefsson.
4088
4089 2011-11-26  Bruno Haible  <bruno@clisp.org>
4090
4091         Fix conflict between two instantiations of module 'unistd'.
4092         * gnulib-tool (func_emit_autoconf_snippet): Substitute
4093         ${include_guard_prefix} also in the autoconf snippet.
4094         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
4095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
4096         GNULIB_UNISTD_H_GETOPT.
4097         * modules/getopt-posix (configure.ac): Set the
4098         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
4099         * modules/getopt-gnu (configure.ac): Likewise.
4100         * modules/unistd (Makefile.am): Change the substitution value of
4101         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
4102         Reported by Simon Josefsson.
4103
4104 2011-11-25  Bruno Haible  <bruno@clisp.org>
4105
4106         pagealign_alloc: Doc and comments.
4107         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
4108         module.
4109         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
4110
4111 2011-11-25  Jim Meyering  <meyering@redhat.com>
4112
4113         test-update-copyright.sh: avoid false-positive failure
4114         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
4115         around false positive failure on Cygwin/Windows.  The latter was
4116         matching erroneously-created files with names like
4117         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
4118
4119 2011-11-25  Simon Josefsson  <simon@josefsson.org>
4120
4121         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
4122         * m4/valgrind-tests.m4: Check that the parameters that will be
4123         used works, not just a subset of them.  Reported by Bruno Haible
4124         <bruno@clisp.org>.
4125
4126 2011-11-24  Jim Meyering  <meyering@redhat.com>
4127
4128         test-stdalign.c: comment out long double tests
4129         * tests/test-stdalign.c: Don't try to reduce alignment of long double
4130         variables.  That provokes errors like this from gcc-4.7.0 20111124:
4131         error: '_Alignas' specifiers cannot reduce alignment of \
4132         'static_longdouble_alignas'.
4133
4134 2011-11-22  Jim Meyering  <meyering@redhat.com>
4135
4136         init.sh: make "compare /dev/null FILE" output more readable
4137         * tests/init.sh (compare_): Document the preferred order of arguments.
4138         (emit_diff_u_header_): New function.
4139         (compare_dev_null_): Emit a simulated diff, rather than just the
4140         contents of the unexpected file.  Suggestion from Bruno Haible.
4141
4142 2011-11-21  Jim Meyering  <meyering@redhat.com>
4143             Eric Blake  <eblake@redhat.com>
4144
4145         init.sh: work around OSF/1 5.1's mishandling of /dev/null
4146         * tests/init.sh: Make our compare function slightly more portable.
4147         Reported by Bruno Haible in
4148         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
4149
4150 2011-11-21  Simon Josefsson  <simon@josefsson.org>
4151
4152         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
4153         before using it, in code that ends up in config.h.
4154
4155 2011-11-20  Bruno Haible  <bruno@clisp.org>
4156
4157         getcwd: Work around getcwd bug on AIX 5..7.
4158         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
4159         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
4160         Use a different value for gl_cv_func_getcwd_path_max. Move the
4161         definition of HAVE_PARTLY_WORKING_GETCWD from here...
4162         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
4163         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
4164         Define HAVE_MINIMALLY_WORKING_GETCWD.
4165         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
4166         where it is not even minimally working, that is, on AIX.
4167         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
4168         m4/getcwd-path-max.m4.
4169         (main): Update exit code computation.
4170         * doc/posix-functions/getcwd.texi: Mention list of platforms where
4171         getcwd does not handle long file names.
4172
4173 2011-11-20  Bruno Haible  <bruno@clisp.org>
4174
4175         getcwd: Fix bug from 2009-09-10.
4176         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
4177         like "no".
4178
4179 2011-11-20  Simon Josefsson  <simon@josefsson.org>
4180
4181         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
4182
4183 2011-11-20  Bruno Haible  <bruno@clisp.org>
4184
4185         fma tests: Avoid shadowing local variables.
4186         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
4187         expected.
4188
4189 2011-11-20  Bruno Haible  <bruno@clisp.org>
4190
4191         copysignf tests: Fix.
4192         * tests/test-copysignf.c: Fix signature check.
4193
4194 2011-11-20  Bruno Haible  <bruno@clisp.org>
4195
4196         fma: Remove unused code.
4197         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
4198         unused macros.
4199
4200 2011-11-20  Bruno Haible  <bruno@clisp.org>
4201
4202         sethostname: Fix doc about AIX.
4203         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
4204         sethostname; it has it.
4205
4206         sethostname: Mention more portability problems.
4207         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
4208         problem.
4209         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
4210
4211 2011-11-19  Bruno Haible  <bruno@clisp.org>
4212
4213         Depend on module fcntl-h when AT_FDCWD is used.
4214         * modules/utimens (Depends-on): Add fcntl-h.
4215         * modules/areadlinkat (Depends-on): Likewise.
4216         * modules/areadlinkat-with-size (Depends-on): Likewise.
4217         * modules/faccessat (Depends-on): Likewise.
4218         * modules/fchmodat (Depends-on): Likewise.
4219         * modules/fchownat (Depends-on): Likewise.
4220         * modules/getcwd (Depends-on): Likewise.
4221         * modules/mkdirat (Depends-on): Likewise.
4222         * modules/mkfifoat (Depends-on): Likewise.
4223         * modules/readlinkat (Depends-on): Likewise.
4224         * modules/symlinkat (Depends-on): Likewise.
4225         * modules/dup2-tests (Depends-on): Likewise.
4226         * modules/fdutimensat-tests (Depends-on): Likewise.
4227         * modules/futimens-tests (Depends-on): Likewise.
4228
4229 2011-11-19  Bruno Haible  <bruno@clisp.org>
4230
4231         euidaccess: Update a comment.
4232         * lib/euidaccess.c: Update comment about platforms with faccessat.
4233
4234 2011-11-19  Bruno Haible  <bruno@clisp.org>
4235
4236         openat: Fix file list.
4237         * modules/openat (Files): Remove lib/at-func.c.
4238
4239 2011-11-19  Bruno Haible  <bruno@clisp.org>
4240
4241         fstatat: Simplify.
4242         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
4243         gnulib should define rpl_fstatat, there is a
4244         "#define fstatat rpl_fstatat" in <sys/stat.h>.
4245
4246 2011-11-19  Bruno Haible  <bruno@clisp.org>
4247
4248         Ensure 'inline' can be used in tests/test-utimens-common.h.
4249         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
4250         * modules/futimens-tests (configure.ac): Likewise.
4251         * modules/utimens-tests (configure.ac): Likewise.
4252         * modules/utimensat-tests (configure.ac): Likewise.
4253
4254 2011-11-19  Simon Josefsson  <simon@josefsson.org>
4255
4256         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
4257         not hash_insert0.
4258         (hash_insert_if_absent): Doc fix.
4259
4260 2011-11-19  Simon Josefsson  <simon@josefsson.org>
4261
4262         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
4263
4264 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
4265
4266         test-getcwd: disambiguate exit status
4267         * tests/test-getcwd.c (test_long_name): Return 0..7.
4268         (main): Exit with an unambiguous exit status.  The old
4269         code yielded a mysterious mixture of two failure codes.
4270
4271         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
4272         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
4273         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
4274         rpl_fstatat or fstatat.  This should fix the other problem
4275         reported by Kai Habel in
4276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
4277         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
4278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
4279         and I reproduced it on a Solaris 8 host we still have in production.
4280
4281 2011-11-18  Jim Meyering  <meyering@redhat.com>
4282
4283         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
4284         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
4285         Add a sentence to the comment.
4286         (hash_insert0): New function that simply calls hash_insert_if_absent.
4287         * lib/hash.h (hash_insert_if_absent): Declare it.
4288         (hash_insert0): Add deprecation attribute.
4289         (_GL_ATTRIBUTE_DEPRECATED): Define.
4290         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
4291         not hash_insert0.
4292         * NEWS: Mention it, even though it's not really an incompatible change.
4293
4294 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
4295
4296         openat: avoid compilation failure due to lack of <errno.h> inclusion
4297         * lib/openat.c: Include <errno.h>.
4298
4299 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4300
4301         * modules/getcwd (Depends-on): Add fdopendir.
4302         This fixes one of the two problems reported by Kai Habel in
4303         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
4304
4305         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
4306         stdalign problem reported by Ian Beckwith in
4307         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
4308         * modules/crypto/gc-arcfour (Depends-on):
4309         Depend conditionally on crypto/arcfour.
4310         * modules/crypto/gc-arctwo (Depends-on):
4311         Depend conditionally on crypto/arctwo.
4312         * modules/crypto/gc-des (Depends-on):
4313         Depend conditionally on crypto/des.
4314         * modules/crypto/gc-hmac-md5 (Depends-on):
4315         Depend conditionally on crypto/hmac-md5.
4316         * modules/crypto/gc-hmac-sha1 (Depends-on):
4317         Depend conditionally on crypto/hmac-sha1.
4318         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
4319         * modules/crypto/gc-md4 (Depends-on):
4320         Depend conditionally on crypto/md4.
4321         * modules/crypto/gc-md5 (Depends-on):
4322         Depend conditionally on crypto/md5.
4323         * modules/crypto/gc-rijndael (Depends-on):
4324         Depend conditionally on crypto/rijndael.
4325         * modules/crypto/gc-sha1 (Depends-on):
4326         Depend conditionally on crypto/sha1.
4327         * modules/crypto/gc-arcfour:
4328         * modules/crypto/gc-arctwo:
4329         * modules/crypto/gc-des:
4330         * modules/crypto/gc-hmac-md5:
4331         * modules/crypto/gc-hmac-sha1:
4332         * modules/crypto/gc-md2:
4333         * modules/crypto/gc-md4:
4334         * modules/crypto/gc-md5:
4335         * modules/crypto/gc-rijndael:
4336         * modules/crypto/gc-sha1:
4337         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
4338         now that the conditional dependencies do the work for us.
4339
4340 2011-11-17  Jim Meyering  <meyering@redhat.com>
4341
4342         tests: factor st_ctime-comparison out of two headers
4343         * tests/test-utimens-common.h (ctime_compare): Define.
4344         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
4345         * tests/test-lutimens.h (test_lutimens): Likewise.
4346         * tests/test-utimens.h (test_utimens): Likewise.
4347
4348         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
4349         Invoke the test program via an init.sh-using wrapper.
4350         * tests/test-getcwd.sh: New file.
4351         * modules/getcwd-tests (Files): Add it.
4352         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
4353
4354 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
4355
4356         gitlog-to-changelog: support multi-author commits.
4357         The FSF cares about keeping track of all authors of patches to its
4358         projects, but Git doesn't provide obvious support for multi-author
4359         changesets. Consensus seems to be forming around the use of extra
4360         Signed-off-by inspired lines in the log message formatted as
4361         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
4362         multi-author commits between version control systems.
4363         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
4364         log message and output in standard ChangeLog multi-author format.
4365         Reported by Peter Rosin <peda@lysator.liu.se>
4366
4367 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
4368             Bruno Haible  <bruno@clisp.org>
4369
4370         Fix some modules' file list.
4371         * modules/fstatat (Files): Add m4/lstat.m4.
4372         * modules/openat (Files): Likewise.
4373         * modules/unlinkat (Files): Likewise.
4374
4375 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
4376
4377         maint.mk: fix tight-scope.mk generation in VPATH builds.
4378         * top/maint.mk (tight-scope.mk): Make sure to prefix file
4379         reference with $(srcdir) so that the file is found correctly even
4380         when running `make syntax-check' in a VPATH build.
4381
4382 2011-11-13  Bruno Haible  <bruno@clisp.org>
4383             Jim Meyering  <meyering@redhat.com>
4384
4385         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
4386         * tests/init.sh (compare): Remove "No differences encountered" or
4387         synonymous output from the 'diff' program.
4388
4389 2011-11-13  Bruno Haible  <bruno@clisp.org>
4390
4391         Makefile: Tweak indentation.
4392         * Makefile: Use tab as first character in every line that contains rule
4393         commands.
4394
4395 2011-11-13  Bruno Haible  <bruno@clisp.org>
4396
4397         Syntax check for copyright statements.
4398         * check-copyright: New file.
4399         * Makefile (sc_check_copyright): New rule.
4400
4401 2011-11-13  Simon Josefsson  <simon@josefsson.org>
4402
4403         * build-aux/git-version-gen: Add --prefix to configure the tag
4404         match string.
4405
4406 2011-11-13  Simon Josefsson  <simon@josefsson.org>
4407
4408         * build-aux/git-version-gen: Add --help and --version.
4409
4410 2011-11-12  Jim Meyering  <meyering@redhat.com>
4411
4412         revamp the other test-exclude?.sh scripts to use init.sh, too
4413         * tests/test-exclude1.sh: Use init.sh.
4414         * tests/test-exclude2.sh: Likewise.
4415         * tests/test-exclude3.sh: Likewise.
4416         * tests/test-exclude4.sh: Likewise.
4417         * tests/test-exclude5.sh: Likewise.
4418         * tests/test-exclude6.sh: Likewise.
4419         * tests/test-exclude7.sh: Likewise.
4420         * tests/test-exclude8.sh: Likewise.
4421         * modules/exclude-tests (Files): List init.sh.
4422
4423         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
4424         These shell scripts ignored failure of the binary test-exclude,
4425         so making the latter return 77 didn't cause them to be skipped.
4426         * tests/test-exclude5.sh: Exit with test-exclude's error status
4427         when that program fails.  Revamp to use init.sh.
4428         * tests/test-exclude2.sh: Likewise.
4429
4430         test-exclude: fix a typo
4431         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
4432
4433 2011-11-11  Bruno Haible  <bruno@clisp.org>
4434
4435         obstack: Fix compilation error on MSVC 9.
4436         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
4437
4438 2011-11-11  Jim Meyering  <meyering@redhat.com>
4439
4440         test-exclude: skip tests rather than failing on deficient systems
4441         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
4442         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
4443         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
4444         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
4445
4446 2011-11-10  Bruno Haible  <bruno@clisp.org>
4447
4448         ptsname_r test: Avoid gcc warning on glibc systems.
4449         * tests/test-ptsname_r.c (null_ptr): New function.
4450         (test_errors): Use it.
4451
4452 2011-11-10  Bruno Haible  <bruno@clisp.org>
4453
4454         ptsname_r: Avoid compilation error on OSF/1 5.1.
4455         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
4456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
4457         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
4458         function is not declared or incompatibly declared.
4459         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
4460         * modules/ptsname_r (Depends-on, configure.ac): Update.
4461         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
4462
4463 2011-11-10  Bruno Haible  <bruno@clisp.org>
4464
4465         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
4466         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
4467         When cross-compiling, guess yes on all platforms except AIX.
4468         Reported by Ludovic Courtès <ludo@gnu.org>.
4469
4470 2011-11-09  Bruno Haible  <bruno@clisp.org>
4471
4472         ptsname_r tests: Fix bugs.
4473         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
4474         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
4475
4476 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
4477
4478         fstatat: work with cross-compilation
4479         Problem reported by Ludovic Courtès in
4480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
4481         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
4482         "cross-compiling" and assume the bug is present.  Replace
4483         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
4484         an inverted sense, to be more conservative about our assumptions.
4485         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
4486
4487 2011-11-09  Bruno Haible  <bruno@clisp.org>
4488
4489         Improve MODULES.html output.
4490         * modules/mkfifoat (Description): Use the word "function".
4491         * modules/readlinkat (Description): Likewise.
4492         * modules/symlinkat (Description): Likewise.
4493
4494 2011-11-09  Eric Blake  <eblake@redhat.com>
4495
4496         ptsname_r-tests: new test module
4497         * modules/ptsname_r-tests: New module.
4498         * tests/test-ptsname_r.c: New file.
4499
4500         ptsname_r: new module
4501         * modules/ptsname_r: New module.
4502         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
4503         * lib/ptsname.c (__ptsname_r): Split...
4504         * lib/ptsname_r.c: ...into new file.
4505         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
4506         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
4507         * modules/stdlib (Makefile.am): Substitute witnesses.
4508         * lib/stdlib.in.h (ptsname_r): Declare it.
4509         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
4510         * MODULES.html.sh (Misc): Likewise.
4511         * modules/ptsname (Depends-on): Alter dependency.
4512         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
4513
4514 2011-11-09  Jim Meyering  <meyering@redhat.com>
4515
4516         announce-gen: be more concise when there's only one URL+tarball
4517         * build-aux/announce-gen (get_tool_versions): When you distribute
4518         only one type of tarball, combine the first two "Here are..."
4519         sections and make the key-checking grammar independent of
4520         how many tarballs there are.
4521
4522 2011-11-09  Eric Blake  <eblake@redhat.com>
4523
4524         openpty: provide a stub on mingw
4525         * lib/pty.in.h (includes): Provide forward declarations.
4526         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
4527
4528         raise: fix mingw handling of SIGPIPE
4529         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
4530
4531 2011-11-08  Bruno Haible  <bruno@clisp.org>
4532
4533         More conditional dependencies.
4534         * modules/faccessat (Depends-on): Add conditions.
4535         * modules/fchmodat (Depends-on): Likewise.
4536         * modules/fchownat (Depends-on): Likewise.
4537         * modules/fstatat (Depends-on): Likewise.
4538         * modules/mkfifoat (Depends-on): Likewise.
4539         * modules/readlinkat (Depends-on): Likewise.
4540         * modules/symlinkat (Depends-on): Likewise.
4541         * modules/unlinkat (Depends-on): Likewise.
4542         * modules/utimensat (Depends-on): Likewise.
4543         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
4544         * modules/linkat (Depends-on): Refine the conditions.
4545         * modules/renameat (Depends-on): Likewise.
4546
4547 2011-11-08  Bruno Haible  <bruno@clisp.org>
4548
4549         faccessat: Move AC_LIBOBJ invocation to module description.
4550         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
4551         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
4552         invocation from here...
4553         * modules/faccessat (configure.ac): ... to here. Invoke
4554         gl_PREREQ_FACCESSAT.
4555
4556 2011-11-08  Bruno Haible  <bruno@clisp.org>
4557
4558         faccessat: Simplify autoconf macro.
4559         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
4560         gl_FUNC_EUIDACCESS.
4561
4562 2011-11-08  Bruno Haible  <bruno@clisp.org>
4563
4564         renameat: Fix dependencies.
4565         * modules/renameat (Depends-on): Add stdbool.
4566
4567 2011-11-08  Bruno Haible  <bruno@clisp.org>
4568
4569         mkfifoat: Fix module description.
4570         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
4571         not gl_UNISTD_MODULE_INDICATOR.
4572
4573 2011-11-08  Bruno Haible  <bruno@clisp.org>
4574
4575         fstatat: Remove unused dependency.
4576         * modules/fstatat (Depends-on): Remove fstat.
4577
4578 2011-11-08  Simon Josefsson  <simon@josefsson.org>
4579
4580         GNUmakefile: behave when Makefile is missing.
4581         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
4582
4583 2011-11-08  Bruno Haible  <bruno@clisp.org>
4584
4585         openat: Conditionalize dependencies.
4586         * lib/openat.c: Reduce the scope of some #includes.
4587         * modules/openat (Depends-on): Add conditions.
4588
4589 2011-11-07  Jim Meyering  <meyering@redhat.com>
4590
4591         maint.mk: extract GPG key ID without using a temporary file
4592         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
4593         without using a temporary file.  Based on a suggestion from Werner Koch
4594         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
4595
4596 2011-11-07  Eric Blake  <eblake@redhat.com>
4597
4598         grantpt: fix typo
4599         * lib/stdlib.in.h (grantpt): Check correct function.
4600
4601         maint.mk: silence new syntax check
4602         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
4603
4604 2011-11-06  Bruno Haible  <bruno@clisp.org>
4605
4606         Doc about floating-point and math API.
4607         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
4608         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
4609
4610 2011-11-06  Bruno Haible  <bruno@clisp.org>
4611
4612         stdalign tests: Skip the test when compiled by Sun C.
4613         * tests/test-stdalign.c (main): Skip the test on Sun C.
4614
4615 2011-11-06  Bruno Haible  <bruno@clisp.org>
4616
4617         ansi-c++-opt: Complete the 2011-06-05 change.
4618         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
4619         does not support namespaces, set the variable to "no", not to ":".
4620
4621 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
4622
4623         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
4624
4625 2011-11-06  Bruno Haible  <bruno@clisp.org>
4626
4627         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
4628         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
4629         (minus_zerol) [HP-UX]: New macro.
4630         (unary_minus) [HP-UX]: New function.
4631         (copysignl) [HP-UX]: Use unary_minus function.
4632
4633 2011-11-06  Bruno Haible  <bruno@clisp.org>
4634
4635         ldexp, ldexpf, ldexpl: Enhance tests.
4636         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
4637         and tests/test-ldexpl.c.
4638         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
4639         LDEXP, MIN_EXP, MAX_EXP): New macros.
4640         Include test-ldexp.h.
4641         (main): Just call test_function.
4642         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
4643         infinity.h, nan.h.
4644         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
4645         MAX_EXP): New macros.
4646         Include test-ldexp.h.
4647         (x, y): Remove variables.
4648         (main): Just call test_function.
4649         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
4650         infinity.h, nan.h.
4651         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
4652         MAX_EXP): New macros.
4653         Include test-ldexp.h.
4654         (x, y): Remove variables.
4655         (main): Just call test_function.
4656         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
4657         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
4658         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
4659         (Depends-on): Add isnand-nolibm, signbit, float.
4660         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
4661         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
4662         (Depends-on): Add isnanf-nolibm, signbit, float.
4663
4664 2011-11-06  Bruno Haible  <bruno@clisp.org>
4665
4666         math tests: Cosmetics.
4667         * tests/test-math-c++.cc: Reorder declarations.
4668
4669 2011-11-05  Bruno Haible  <bruno@clisp.org>
4670
4671         fma*: Simplify test.
4672         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
4673         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
4674
4675         Tests for module 'fmal'.
4676         * modules/fmal-tests: New file.
4677         * tests/test-fmal1.c: New file.
4678         * tests/test-fmal2.c: New file.
4679
4680         New module 'fmal'.
4681         * lib/math.in.h (fmal): New declaration.
4682         * lib/fmal.c: New file.
4683         * m4/fmal.m4: New file.
4684         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
4685         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
4686         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
4687         REPLACE_FMAL.
4688         * modules/fmal: New file.
4689         * doc/posix-functions/fmal.texi: Mention the new module and the various
4690         bugs.
4691
4692         Tests for module 'fmaf'.
4693         * modules/fmaf-tests: New file.
4694         * tests/test-fmaf1.c: New file.
4695         * tests/test-fmaf2.c: New file.
4696
4697         New module 'fmaf'.
4698         * lib/math.in.h (fmaf): New declaration.
4699         * lib/fmaf.c: New file.
4700         * m4/fmaf.m4: New file.
4701         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
4702         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
4703         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
4704         REPLACE_FMAF.
4705         * modules/fmaf: New file.
4706         * doc/posix-functions/fmaf.texi: Mention the new module and the various
4707         bugs.
4708
4709         Tests for module 'fma'.
4710         * modules/fma-tests: New file.
4711         * tests/test-fma1.c: New file.
4712         * tests/test-fma1.h: New file.
4713         * tests/test-fma2.c: New file.
4714         * tests/test-fma2.h: New file.
4715
4716         New module 'fma'.
4717         * lib/math.in.h (fma): New declaration.
4718         * lib/fma.c: New file.
4719         * m4/fma.m4: New file.
4720         * m4/fegetround.m4: New file.
4721         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
4722         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
4723         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
4724         REPLACE_FMA.
4725         * modules/fma: New file.
4726         * doc/posix-functions/fma.texi: Mention the new module and the various
4727         bugs.
4728
4729         Extend gl_MATHFUNC.
4730         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
4731         Support 'void' as argument type.
4732         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
4733
4734 2011-11-05  Jim Meyering  <meyering@redhat.com>
4735
4736         maint.mk: also prohibit inclusion of dirent.h without use
4737         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
4738
4739 2011-11-05  Bruno Haible  <bruno@clisp.org>
4740
4741         ldexpl tests: Avoid test failure on MSVC 9.
4742         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
4743         value. Needed in order to enforce the conversion from a value greater
4744         than LDBL_MAX to Infinity.
4745
4746 2011-11-05  Bruno Haible  <bruno@clisp.org>
4747
4748         New modules 'at-internal', 'openat-h', split off from module 'openat'.
4749         * modules/at-internal: New file, extracted from modules/openat.
4750         * modules/openat-h: New file.
4751         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
4752         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
4753         * modules/openat (Description): Add reference to POSIX function.
4754         (Files): Remove lib/openat.h, lib/openat-proc.c.
4755         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
4756         intprops, unistd.
4757         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
4758         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
4759         gl_FCNTL_MODULE_INDICATOR.
4760         (Include): Remove unistd.h, openat.h.
4761         * modules/areadlinkat (Files): Add lib/at-func.c.
4762         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4763         openat-die, openat-h, save-cwd.
4764         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
4765         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4766         openat-die, openat-h, save-cwd, unistd.
4767         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
4768         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4769         openat-h, save-cwd. Remove fcntl-h, openat.
4770         * modules/fchmodat (Files): Remove lib/openat.h.
4771         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4772         openat, stdbool, unistd.
4773         * modules/fchownat (Files): Remove lib/openat.h.
4774         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4775         openat, stdbool, sys_stat.
4776         * modules/fdopendir (Files): Remove lib/openat-priv.h,
4777         lib/openat-proc.c.
4778         (Depends-on): Add at-internal.
4779         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
4780         * modules/fstatat (Files): Remove lib/openat.h.
4781         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
4782         stdbool, unistd.
4783         * modules/fts (Depends-on): Add openat-h.
4784         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
4785         openat.
4786         * modules/mkdirat (Files): Remove lib/openat.h.
4787         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4788         openat, stdbool, sys_stat.
4789         * modules/mkfifoat (Files): Add lib/at-func.c.
4790         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4791         openat-h, save-cwd. Remove fcntl-h, openat.
4792         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
4793         * modules/readlinkat (Files): Add lib/at-func.c.
4794         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4795         openat-h, save-cwd. Remove fcntl-h, openat.
4796         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
4797         openat.
4798         * modules/selinux-at (Files): Add lib/at-func.c.
4799         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4800         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
4801         * modules/symlinkat (Files): Add lib/at-func.c.
4802         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4803         openat-h, save-cwd. Remove fcntl-h, openat.
4804         * modules/unlinkat (Files): Remove lib/openat.h.
4805         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
4806         stdbool.
4807         * modules/utimensat (Files): Add lib/at-func.c.
4808         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
4809         openat-die, openat-h, save-cwd.
4810         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
4811         * modules/fdutimensat-tests (Depends-on): Add openat.
4812         * modules/fstatat-tests (Depends-on): Add openat-h.
4813         * modules/readlinkat-tests (Depends-on): Add openat.
4814         * modules/symlinkat-tests (Depends-on): Add openat.
4815
4816 2011-11-05  Bruno Haible  <bruno@clisp.org>
4817
4818         openat: Include <stdbool.h>.
4819         * lib/openat.c: Include <stdbool.h>.
4820
4821 2011-11-04  Bruno Haible  <bruno@clisp.org>
4822
4823         fchownat, renameat, unlinkat: Fix dependencies.
4824         * modules/fchownat (Depends-on): Add fstatat.
4825         * modules/renameat (Depends-on): Likewise.
4826         * modules/unlinkat (Depends-on): Likewise.
4827
4828 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
4829
4830         openat: remove direct dependency on dirent
4831         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
4832         and hasn't been needed ever since fdopendir was split into its own
4833         module on 2009-08-31.
4834         * modules/openat (Depends-on): Remove dirent.
4835
4836 2011-11-04  Bruno Haible  <bruno@clisp.org>
4837
4838         renameat: Optimize code size.
4839         * modules/renameat (configure.ac): Don't compile at-func2.c if
4840         REPLACE_RENAMEAT is 1.
4841
4842 2011-11-04  Bruno Haible  <bruno@clisp.org>
4843
4844         openat tests: Fix file list.
4845         * modules/openat-tests (Files): Add tests/test-open.h.
4846
4847 2011-11-04  Bruno Haible  <bruno@clisp.org>
4848
4849         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
4850         * modules/fchmodat (Depends-on): Add openat-die.
4851         * modules/fchownat (Depends-on): Likewise.
4852         * modules/linkat (Depends-on): Likewise.
4853         * modules/renameat (Depends-on): Likewise.
4854         * modules/openat (Depends-on): Add dirent.
4855
4856 2011-11-04  Jim Meyering  <meyering@redhat.com>
4857
4858         at-func*.c: fix comments
4859         * lib/at-func2.c: Correct/improve first-line comment.
4860         * lib/at-func.c: Correct grammar in first-line comment.
4861
4862 2011-11-04  Bruno Haible  <bruno@clisp.org>
4863
4864         New module 'mkdirat', split off from module 'openat'.
4865         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
4866         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
4867         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
4868         * modules/mkdirat: New file, extracted from modules/openat.
4869         * modules/openat (Files): Remove lib/mkdirat.c.
4870         (Depends-on): Remove mkdir.
4871         (configure.ac): Remove AC_LIBOBJ of mkdirat.
4872         (Include): Remove <sys/stat.h>.
4873         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
4874         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
4875         tests/test-mkdir.h.
4876         (Depends-on): Remove ignore-value.
4877         (Makefile.am): Remove rules for test-mkdirat.
4878         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
4879         of module 'openat'.
4880         * NEWS: Mention the change.
4881
4882 2011-11-04  Bruno Haible  <bruno@clisp.org>
4883
4884         closedir: Avoid warning on mingw.
4885         * lib/closedir.c: Include <unistd.h>.
4886
4887 2011-11-04  Bruno Haible  <bruno@clisp.org>
4888
4889         New module 'fstatat', split off from module 'openat'.
4890         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
4891         defined.
4892         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
4893         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
4894         gl_FUNC_FSTATAT.
4895         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
4896         * modules/fstatat: New file, extracted from modules/openat.
4897         * modules/openat (Files): Remove lib/fstatat.c.
4898         (Depends-on): Remove lstat.
4899         (configure.ac): Remove AC_LIBOBJ of fstatat.
4900         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
4901         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
4902         tests/test-lstat.h, tests/test-stat.h.
4903         (Depends-on): Remove getcwd-lgpl.
4904         (Makefile.am): Remove rules for test-fstatat.
4905         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
4906         of module 'openat'.
4907         * NEWS: Mention the change.
4908         * modules/getcwd (Depends-on): Add fstatat.
4909         * modules/linkat (Depends-on): Likewise.
4910         * modules/mkfifoat-tests (Depends-on): Likewise.
4911         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
4912
4913 2011-11-03  Bruno Haible  <bruno@clisp.org>
4914
4915         New module 'unlinkat', split off from module 'openat'.
4916         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
4917         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
4918         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
4919         * modules/unlinkat: New file, extracted from modules/openat. Correct
4920         the dependency conditions.
4921         * modules/openat (Files): Remove lib/unlinkat.c.
4922         (Depends-on): Remove rmdir, unlink.
4923         (configure.ac): Remove AC_LIBOBJ of unlinkat.
4924         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
4925         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
4926         tests/test-rmdir.h, tests/test-unlink.h.
4927         (Depends-on): Remove unlinkdir.
4928         (Makefile.am): Remove rules for test-unlinkat.
4929         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
4930         of module 'openat'.
4931         * NEWS: Mention the change.
4932         * modules/linkat-tests (Depends-on): Add unlinkat.
4933         * modules/mkfifoat-tests (Depends-on): Likewise.
4934         * modules/readlinkat-tests (Depends-on): Likewise.
4935
4936 2011-11-02  Bruno Haible  <bruno@clisp.org>
4937
4938         New module 'fchmodat', split off from module 'openat'.
4939         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
4940         defined.
4941         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
4942         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
4943         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
4944         * modules/fchmodat: New file, extracted from modules/openat.
4945         * modules/openat (Files): Remove lib/fchmodat.c.
4946         (configure.ac): Remove AC_LIBOBJ of fchmodat.
4947         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
4948         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
4949         (Makefile.am): Remove rules for test-fchmodat.
4950         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
4951         of module 'openat'.
4952         * NEWS: Mention the change.
4953
4954 2011-11-02  Jim Meyering  <meyering@redhat.com>
4955
4956         putenv: indent #definition of "environ" to placate cppi
4957         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
4958
4959         gitlog-to-changelog: provide a ChangeLog-repair mechanism
4960         Git logs are often treated as immutable, because editing them
4961         changes the SHA1 checksums of all descendants.  Thus, errors in
4962         git logs tend to stay there forever.  However, when we generate
4963         a ChangeLog file -- typically for distribution -- from that git log,
4964         we can actually make corrections in the generated file.  The key
4965         lies in recording in machine-readable/applicable form the desired
4966         corrections.  See --help for description and an example.
4967         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
4968         (usage): Describe it; alphabetize option descriptions.
4969         (main): Honor the new option, carefully.
4970
4971 2011-11-01  Jim Meyering  <meyering@redhat.com>
4972
4973         gitlog-to-changelog: avoid an infloop
4974         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
4975         that ends up being empty.
4976
4977 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
4978
4979         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
4980         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
4981         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
4982         contains (possibly-quoted) backslashes.  This should avoid
4983         all-too-common shell bugs if COMPLICATED contains backslashes in
4984         the "wrong" places.  Reported by David Evans in
4985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
4986         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
4987         because we want ASCII ranges.  Is there some reason we don't use
4988         the C locale everywhere in this script?
4989         (func_module, top level): Avoid unwanted pathname expansion when
4990         $repo_url_prefix or $repo_url_suffix_repl contain shell
4991         metacharacters like '?' and '*'.
4992
4993 2011-11-01  Bruno Haible  <bruno@clisp.org>
4994
4995         fchownat: Improve description.
4996         * modules/fchownat (Description): Add link to function.
4997
4998 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
4999
5000         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
5001         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
5002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
5003         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
5004
5005 2011-11-01  Bruno Haible  <bruno@clisp.org>
5006
5007         alignof: Avoid collision with stdalign module.
5008         * lib/alignof.h (alignof): Remove macro.
5009         * NEWS: Mention the change.
5010         Reported by Paul Eggert.
5011
5012 2011-11-01  Bruno Haible  <bruno@clisp.org>
5013
5014         New module 'fchownat', split off from module 'openat'.
5015         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
5016         defined.
5017         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
5018         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
5019         invoke gl_FUNC_FCHOWNAT.
5020         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
5021         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
5022         * modules/fchownat: New file, extracted from modules/openat.
5023         * modules/openat (Files): Remove lib/fchownat.c.
5024         (Depends-on): Remove lchown.
5025         (configure.ac): Remove AC_LIBOBJ of fchownat.
5026         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
5027         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
5028         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
5029         (Depends-on): Remove mgetgroups, usleep, stat-time.
5030         (configure.ac): Remove test for getegid.
5031         (Makefile.am): Remove rules for test-fchownat.
5032         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
5033         of module 'openat'.
5034         * NEWS: Mention the change.
5035
5036 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
5037
5038         stdalign: port better to MSVC and to Sun C 5.11
5039         This fixes some of the problems reported by Bruno Haible in
5040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
5041         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
5042         shortcomings of MSVC and of Sun C 5.11.
5043         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
5044         around __declspec arg.
5045         * modules/stdalign-tests (Files): Add tests/macros.h.
5046         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
5047         Include macros.h, for ASSERT.
5048         (DECLARE_ALIGNED): Remove.
5049         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
5050         to catch bug), and to 1 if not (simplifies the rest of the code).
5051         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
5052         (CHECK_AUTO): Remove.
5053         (CHECK_ALIGNED): Check only the alignment of the static vars,
5054         since auto var alignment isn't supported by Sun C 5.11.
5055         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
5056         ASSERT failures are easier to diagnose.
5057
5058 2011-10-31  Bruno Haible  <bruno@clisp.org>
5059
5060         doc about some IRIX 5.3 problems.
5061         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
5062         on IRIX 5.3.
5063         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
5064         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
5065         5.3.
5066         * doc/posix-functions/grantpt.texi: Likewise.
5067         * doc/posix-functions/unlockpt.texi: Likewise.
5068         * doc/posix-functions/lgamma.texi: Likewise.
5069         * doc/posix-functions/nextafter.texi: Likewise.
5070         * doc/posix-functions/remainder.texi: Likewise.
5071         * doc/posix-functions/select.texi: Mention misplaced declaration on
5072         IRIX 5.3.
5073         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5074
5075 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
5076
5077         gitlog-to-changelog: fix git-log invocation.
5078         git-log mishandles date strings before 1970-01-01 UTC, and there is
5079         no use to specify --since=1970-01-01 by default anyway.
5080         * build-aux/gitlog-to-changelog: By default, when no --since option
5081         was given, do not specify explicit --since option to git-log.
5082
5083 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
5084
5085         gitlog-to-changelog: new option --append-dot.
5086         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
5087         first non-blank line of each commit message terminated with a dot.
5088
5089 2011-10-30  Bruno Haible  <bruno@clisp.org>
5090
5091         ffsl, ffsll: Avoid compilation error due to 'restrict'.
5092         * lib/ffsl.h: Include <config.h>.
5093         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
5094
5095 2011-10-30  Jim Meyering  <meyering@redhat.com>
5096
5097         GNUmakefile: reenable "make syntax-check" for most projects
5098         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
5099         build-aux variable", "syntax-check" would do nothing but succeed with
5100         the "No version control files detected..." diagnostic (unless you
5101         happened to override _build-aux via cfg.mk).
5102         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
5103         to precede inclusion of maint.mk.  Otherwise, these variables would
5104         be used undefined in any project that does not override the default.
5105
5106 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
5107
5108         gitlog-to-changelog: treat a message with only blank lines as empty.
5109         * build-aux/gitlog-to-changelog: Move the code that removes leading and
5110         trailing blank lines before the code that issues a warning about an
5111         empty commit message.
5112
5113 2011-10-30  Jim Meyering  <meyering@redhat.com>
5114
5115         test-parse-datetime.c: avoid new DST-related false positive test failure
5116         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
5117         based on the time/date we'll convert, not the current time.
5118         Otherwise, the moment we cross a DST boundary like today's in
5119         Europe, (CEST to CET), that offset ends up being one hour off.
5120
5121 2011-10-27  Bruno Haible  <bruno@clisp.org>
5122
5123         fstat: Tweak documentation.
5124         * modules/fstat (Description): More precise description.
5125
5126 2011-10-27  Bruno Haible  <bruno@clisp.org>
5127
5128         Update documentation regarding 'largefile' module.
5129         * doc/posix-functions/fstat.texi: Tweak wording.
5130         * doc/posix-functions/opendir.texi: Mention that the module fixes the
5131         problems with huge directories and/or small ino_t types.
5132         * doc/posix-functions/readdir.texi: Likewise.
5133         * doc/posix-functions/rewinddir.texi: Likewise.
5134
5135 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
5136
5137         maint.mk: don't maintain a second build-aux variable.
5138         * maint.mk (build_aux): Removed.  The maintainer-makefile module
5139         depends on GNUmakefile, which already maintains a cfg.mk
5140         overridable $(_build-aux) for projects with a non-standard
5141         build-aux directory location, although without the $(srcdir)
5142         prefix.  Use that variable consistently instead of introducing a
5143         second one.  Adjust all call sites.
5144
5145 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
5146
5147         Add stdalign module and use it in other modules.
5148         This is based on a previous proposal by Bruno Haible
5149         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
5150
5151         stdalign: new module
5152         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
5153         * modules/stdalign: New files.
5154         * MODULES.html.sh (c1x_core_properties): Add stdalign.
5155         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
5156
5157         stdalign-tests: new module
5158         * modules/stdalign-tests, tests/test-stdalign.c: New files.
5159
5160         argp: use stdalign
5161         * lib/argp-parse.c: Include <stdalign.h>.
5162         (alignof): Remove.
5163         * modules/argp (Depends-on): Add stdalign.
5164
5165         crypto libraries: use stdalign
5166         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
5167         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
5168         Do not include <stdlib.h> twice, in md4.c.
5169         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
5170         because we are accessing a pointer's bit-pattern, not a size.
5171         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
5172         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
5173         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
5174         * modules/crypto/sha512: Likewise.
5175
5176         sys_socket: use stdalign, not alignof
5177         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
5178         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
5179
5180 2011-10-27  Bruno Haible  <bruno@clisp.org>
5181
5182         raise test: Avoid a test failure on Linux/MIPS.
5183         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
5184         because 99 is a valid signal on Linux/MIPS.
5185
5186 2011-10-27  Bruno Haible  <bruno@clisp.org>
5187
5188         nonblocking tests: Fix test failure on Linux/MIPS.
5189         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
5190         Set to 270000.
5191
5192 2011-10-27  Bruno Haible  <bruno@clisp.org>
5193
5194         utimensat: Work around problem on Linux/hppa.
5195         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
5196         values.
5197         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
5198
5199 2011-10-25  Jim Meyering  <meyering@redhat.com>
5200
5201         maint.mk: fix a bug in sc_prohibit_stddef_without_use
5202         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
5203         after symbols like NULL, size_t, etc.
5204         Reported by Alfred M. Szmidt.
5205
5206         maint.mk: exempt ENODATA from a syntax-check rule
5207         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
5208         from the sc_prohibit_always-defined_macros syntax-check rule.
5209         Add a comment.  See this for more details:
5210         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
5211
5212 2011-10-23  Jim Meyering  <meyering@redhat.com>
5213
5214         fts: close parent dir FD before returning from post-traversal fts_read
5215         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
5216         unlink A, even though an FD open on A remained.  This is suboptimal
5217         (holding a file descriptor open longer than needed), but otherwise not
5218         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
5219         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
5220         that represents a real problem: it causes the removal of A to fail
5221         with e.g., "rm: cannot remove `A': Device or resource busy"
5222
5223         fts visits each directory twice and keeps a cache (fts_fd_ring) of
5224         directory file descriptors.  After completing the final, FTS_DP,
5225         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
5226         cache, but then proceeded to add a new FD to it via the subsequent
5227         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
5228         final file descriptor would be closed only via fts_close's call to
5229         fd_ring_clear.  Now, it is usually closed earlier, via the final
5230         FTS_DP-returning fts_read call.
5231         * lib/fts.c (restore_initial_cwd): New function, converted from
5232         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
5233         Update callers.
5234         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
5235         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
5236
5237 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
5238             Bruno Haible  <bruno@clisp.org>
5239             Jim Meyering  <jim@meyering.net>
5240
5241         readme-release: improve safety of release prep instructions.
5242         * README-release: Don't git pull all branches when only master
5243         is needed for the release process.
5244         Run make maintainer-clean before changing trees and merging.
5245         Don't try to run ./configure right after git pull in case files
5246         that influence the bootstrap process have changed, move the
5247         ./configure step to after running ./bootstrap.
5248         Don't bootstrap "one last time"... it's the first time!
5249
5250 2011-10-22  Bruno Haible  <bruno@clisp.org>
5251
5252         errno, strerror-override: Support for MSVC 10.
5253         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
5254         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
5255         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
5256         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
5257         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
5258         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
5259         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
5260         Assign values compatible with MSVC 10.
5261         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
5262         New macros.
5263         (GNULIB_defined_EWINSOCK): New macro.
5264         * lib/strerror-override.c (strerror_override): Update accordingly.
5265         * lib/strerror-override.h: Likewise.
5266         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
5267         longer equal to the corresponding errno value.
5268         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5269
5270 2011-10-22  Bruno Haible  <bruno@clisp.org>
5271
5272         perror: Recognize when test program crashes.
5273         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
5274         strerror, set gl_cv_func_perror_works to no.
5275         Reported by Daniel Richard G. <skunk@iskunk.org>.
5276
5277         perror: Fix indentation.
5278         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
5279
5280 2011-10-22  Bruno Haible  <bruno@clisp.org>
5281
5282         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
5283         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
5284         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
5285         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
5286         functions, not as a macro.
5287         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
5288         macros.
5289         (isfinite, isinf, isnan, signbit): Check overloaded functions and
5290         absence of macro.
5291         Suggested by Eric Blake.
5292         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5293
5294 2011-10-21  Bruno Haible  <bruno@clisp.org>
5295
5296         relocatable-prog-wrapper: Don't leave object files behind.
5297         * build-aux/install-reloc: Re-synchronize list of .o files to be
5298         removed with list of compilation units.
5299
5300 2011-10-20  Bruno Haible  <bruno@clisp.org>
5301
5302         openpty, posix_openpt: Remove code duplication.
5303         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
5304         * lib/openpty.c: Include <stdlib.h>.
5305         (openpty): Use posix_openpt on all platforms except IRIX.
5306         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
5307
5308 2011-10-20  Bruno Haible  <bruno@clisp.org>
5309
5310         unlockpt: Detect invalid argument.
5311         * lib/unlockpt.c: Include <fcntl.h>.
5312         (unlockpt): Check whether fd is valid, using fcntl().
5313         * modules/unlockpt (Depends-on): Add fcntl-h.
5314
5315 2011-10-20  Bruno Haible  <bruno@clisp.org>
5316
5317         openpty: Avoid compilation error on AIX 6.1.
5318         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
5319
5320 2011-10-20  Bruno Haible  <bruno@clisp.org>
5321
5322         posix_openpt: Support for OpenBSD.
5323         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
5324         (posix_openpt) [OpenBSD]: New code.
5325         * lib/grantpt.c: Include <fcntl.h>.
5326         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
5327         * modules/grantpt (Depends-on): Add fcntl-h.
5328
5329 2011-10-20  Bruno Haible  <bruno@clisp.org>
5330
5331         posix_openpt test: Coding style.
5332         * tests/test-posix_openpt.c: Use GNU coding style.
5333
5334 2011-10-20  Bruno Haible  <bruno@clisp.org>
5335
5336         grantpt: Support --avoid=pt_chown.
5337         * modules/grantpt (Files): Add lib/pty-private.h.
5338
5339 2011-10-20  Bruno Haible  <bruno@clisp.org>
5340
5341         posix_openpt: Fix autoconf macro.
5342         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
5343         unneeded check for _getpty.
5344
5345 2011-10-20  Bruno Haible  <bruno@clisp.org>
5346
5347         openpty: Update comments.
5348         * lib/openpty.c: Add comments about Minix.
5349
5350 2011-10-19  Eric Blake  <eblake@redhat.com>
5351
5352         openpty: relax license
5353         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
5354
5355         pt_chown: use configmake to simplify build
5356         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
5357
5358         ptsname and others: relax license
5359         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
5360         * modules/unlockpt (License): Likewise.
5361         * modules/pt_chown (License): Likewise.
5362         * modules/ptsname (License): Likewise.
5363         * modules/ttyname_r (License): Likewise.
5364
5365 2011-10-19  Jim Meyering  <meyering@redhat.com>
5366
5367         posix_openpt: remove spurious #endif
5368         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
5369
5370 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
5371
5372         maint.mk: Respect $(build_aux) in web-manual rule.
5373         * top/maint.mk (web-manual): Find gen-announce script in user's
5374         $(build_aux) directory instead of hard-coding 'build-aux'.
5375
5376 2011-10-19  Bruno Haible  <bruno@clisp.org>
5377
5378         posix_openpt: Fix compilation error.
5379         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
5380         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
5381         Mention the openpty module as an alternative.
5382
5383 2011-10-19  Bruno Haible  <bruno@clisp.org>
5384
5385         Support for old NeXTstep 3.3 frexp().
5386         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
5387         execution time of the test to 5 seconds.
5388         Reported by Daniel Richard G. <skunk@iskunk.org>.
5389
5390 2011-10-19  Bruno Haible  <bruno@clisp.org>
5391
5392         Support for old NeXTstep 3.3 sed.
5393         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
5394         part, use /.../, not \|...|. Escape periods in the header file name.
5395         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5396         Reported by Daniel Richard G. <skunk@iskunk.org>.
5397
5398 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5399
5400         Support for old NeXTstep 3.3 gcc.
5401         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
5402         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
5403         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
5404         * lib/spawn.in.h (_Restrict_arr_): Likewise.
5405         * lib/regex.h (_Restrict_arr_): Likewise.
5406         * lib/regex_internal.h (re_token_t): Likewise.
5407         * lib/regexec.c (check_node_accept_bytes): Likewise.
5408         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
5409
5410 2011-10-18  Eric Blake  <eblake@redhat.com>
5411
5412         posix_openpt: new module
5413         * modules/posix_openpt: New module.
5414         * m4/posix_openpt.m4: New file.
5415         * lib/posix_openpt.c: Likewise.
5416         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5417         (gl_STDLIB_H_DEFAULTS): Set defaults.
5418         * modules/stdlib (Makefile.am): Substitute macros.
5419         * lib/stdlib.in.h (posix_openpt): Declare.
5420         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
5421         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
5422         * modules/posix_openpt-tests: New test module.
5423         * tests/test-posix_openpt.c: New test.
5424
5425 2011-10-15  Bruno Haible  <bruno@clisp.org>
5426
5427         xstrtoll: Fix compilation failure.
5428         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
5429         from lib/strtol.c.
5430         * doc/posix-headers/limits.texi: Mention missing numerical limits on
5431         some platforms.
5432         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5433
5434 2011-10-15  Bruno Haible  <bruno@clisp.org>
5435
5436         vasnprintf: Optimize bit search operation.
5437         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
5438         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
5439         gl_DOUBLE_EXPONENT_LOCATION.
5440         * modules/vasnprintf (Files): Add m4/exponentd.m4.
5441         * modules/unistdio/u8-vasnprintf (Files): Likewise.
5442         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
5443         * modules/unistdio/u16-vasnprintf (Files): Likewise.
5444         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
5445         * modules/unistdio/u32-vasnprintf (Files): Likewise.
5446         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
5447         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
5448         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
5449
5450 2011-10-15  Bruno Haible  <bruno@clisp.org>
5451
5452         vasnprintf: Fix comments.
5453         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
5454
5455 2011-10-14  Bruno Haible  <bruno@clisp.org>
5456
5457         Tests for module 'integer_length_ll'.
5458         * modules/integer_length_ll-tests: New file.
5459         * tests/test-integer_length_ll.c: New file.
5460
5461         New module 'integer_length_ll'.
5462         * lib/integer_length_ll.c: New file.
5463         * modules/integer_length_ll: New file.
5464
5465 2011-10-14  Bruno Haible  <bruno@clisp.org>
5466
5467         Tests for module 'integer_length_l'.
5468         * modules/integer_length_l-tests: New file.
5469         * tests/test-integer_length_l.c: New file.
5470
5471         New module 'integer_length_l'.
5472         * lib/integer_length_l.c: New file.
5473         * modules/integer_length_l: New file.
5474
5475 2011-10-14  Bruno Haible  <bruno@clisp.org>
5476
5477         Tests for module 'integer_length'.
5478         * modules/integer_length-tests: New file.
5479         * tests/test-integer_length.c: New file.
5480
5481         New module 'integer_length'.
5482         * lib/integer_length.h: New file.
5483         * lib/integer_length.c: New file.
5484         * modules/integer_length: New file.
5485
5486 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5487
5488         popen: Fix dependency conditions.
5489         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
5490
5491 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5492
5493         perror: Fix autoconf test.
5494         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
5495         <stdlib.h> and <string.h>.
5496
5497 2011-10-14  Bruno Haible  <bruno@clisp.org>
5498
5499         ffsl: Optimize on 64-bit platforms.
5500         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
5501         unrolling.
5502
5503 2011-10-13  Bruno Haible  <bruno@clisp.org>
5504
5505         ffsl: Optimize on 32-bit platforms.
5506         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
5507         use ffs() without a loop.
5508
5509         ffsl, ffsll: Optimize for GCC.
5510         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
5511         * lib/ffsl.c (GCC_BUILTIN): New macro.
5512         * lib/ffsll.c (GCC_BUILTIN): Likewise.
5513
5514 2011-10-13  Bruno Haible  <bruno@clisp.org>
5515
5516         ffs, bcopy, memset: Support symbol renaming via config.h.
5517         * lib/ffs.c: Include <config.h>.
5518         * lib/bcopy.c: Likewise.
5519         * lib/memset.c: Likewise.
5520
5521 2011-10-10  Bruno Haible  <bruno@clisp.org>
5522
5523         atanl: Simplify for platforms where 'long double' == 'double'.
5524         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5525         alternative implementation.
5526         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5527         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5528         * modules/atanl (Depends-on): Add atan. Update conditions.
5529
5530 2011-10-10  Bruno Haible  <bruno@clisp.org>
5531
5532         acosl: Simplify for platforms where 'long double' == 'double'.
5533         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5534         alternative implementation.
5535         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5536         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5537         * modules/acosl (Depends-on): Add acos. Update conditions.
5538
5539 2011-10-10  Bruno Haible  <bruno@clisp.org>
5540
5541         asinl: Simplify for platforms where 'long double' == 'double'.
5542         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5543         alternative implementation.
5544         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5545         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5546         * modules/asinl (Depends-on): Add asin. Update conditions.
5547
5548 2011-10-10  Bruno Haible  <bruno@clisp.org>
5549
5550         tanl: Simplify for platforms where 'long double' == 'double'.
5551         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5552         implementation.
5553         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5554         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5555         * modules/tanl (Depends-on): Add tan. Update conditions.
5556         (configure.ac): Don't compile trigl.c if
5557         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5558
5559 2011-10-10  Bruno Haible  <bruno@clisp.org>
5560
5561         cosl: Simplify for platforms where 'long double' == 'double'.
5562         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5563         implementation.
5564         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5565         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5566         * modules/cosl (Depends-on): Add cos. Update conditions.
5567         (configure.ac): Don't compile sincosl.c and trigl.c if
5568         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5569
5570 2011-10-10  Bruno Haible  <bruno@clisp.org>
5571
5572         sinl: Simplify for platforms where 'long double' == 'double'.
5573         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5574         implementation.
5575         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5576         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5577         * modules/sinl (Depends-on): Add sin. Update conditions.
5578         (configure.ac): Don't compile sincosl.c and trigl.c if
5579         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5580
5581 2011-10-10  Bruno Haible  <bruno@clisp.org>
5582
5583         logl: Simplify for platforms where 'long double' == 'double'.
5584         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5585         implementation.
5586         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5587         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5588         * modules/logl (Depends-on): Add log. Update conditions.
5589
5590 2011-10-10  Bruno Haible  <bruno@clisp.org>
5591
5592         expl: Simplify for platforms where 'long double' == 'double'.
5593         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5594         implementation.
5595         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5596         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5597         * modules/expl (Depends-on): Add exp. Update conditions.
5598
5599 2011-10-10  Bruno Haible  <bruno@clisp.org>
5600
5601         sqrtl: Simplify for platforms where 'long double' == 'double'.
5602         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5603         alternative implementation.
5604         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5605         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5606         * modules/sqrtl (Depends-on): Update conditions.
5607
5608 2011-10-10  Bruno Haible  <bruno@clisp.org>
5609
5610         ldexpl: Simplify for platforms where 'long double' == 'double'.
5611         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5612         alternative implementation.
5613         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5614         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5615         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
5616
5617 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
5618
5619         ffsll: set correct witness
5620         * modules/ffsll (configure.ac): Fix typo.
5621
5622 2011-10-10  Bruno Haible  <bruno@clisp.org>
5623
5624         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
5625         * lib/printf-frexpl.c: Include <config.h>.
5626         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5627         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
5628         second time.
5629         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
5630         gl_LONG_DOUBLE_VS_DOUBLE.
5631         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
5632         conditions.
5633
5634 2011-10-10  Bruno Haible  <bruno@clisp.org>
5635
5636         frexpl: Simplify for platforms where 'long double' == 'double'.
5637         * lib/frexpl.c: Include <config.h>.
5638         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5639         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5640         time.
5641         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5642         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5643         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
5644         * modules/frexpl (Depends-on): Add frexp. Update conditions.
5645         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
5646         conditions.
5647
5648 2011-10-10  Jim Meyering  <meyering@redhat.com>
5649
5650         test-renameat: don't leave behind a temporary file
5651         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
5652           ERROR: files left in build directory after distclean:
5653           ./gltests/test-renameat.too
5654           make[1]: *** [distcleancheck] Error 1
5655         Reported by Tom G. Christensen.
5656
5657 2011-10-09  Bruno Haible  <bruno@clisp.org>
5658
5659         rint: Determine RINT_LIBM correctly on AIX 7.
5660         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
5661         directly, not only through a function pointer. Also accept an optional
5662         4th argument with extra code.
5663         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
5664         rintf() call by gcc when optimizing.
5665
5666         mathfunc.m4: Refactor.
5667         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
5668         m4 variable.
5669
5670 2011-10-09  Bruno Haible  <bruno@clisp.org>
5671
5672         rintl: Simplify for platforms where 'long double' == 'double'.
5673         * lib/rintl.c: Include <config.h>.
5674         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5675         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5676         time.
5677         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5678         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5679         * modules/rintl (Depends-on): Add rint. Update conditions.
5680
5681 2011-10-09  Bruno Haible  <bruno@clisp.org>
5682
5683         roundl: Simplify for platforms where 'long double' == 'double'.
5684         * lib/roundl.c: Include <config.h>.
5685         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5686         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5687         time.
5688         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5689         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5690         * modules/roundl (Depends-on): Add round. Update conditions.
5691
5692 2011-10-09  Bruno Haible  <bruno@clisp.org>
5693
5694         truncl: Simplify for platforms where 'long double' == 'double'.
5695         * lib/truncl.c: Include <config.h>.
5696         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5697         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5698         time.
5699         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5700         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5701         * modules/truncl (Depends-on): Add trunc. Update conditions.
5702
5703 2011-10-09  Bruno Haible  <bruno@clisp.org>
5704
5705         ceill: Simplify for platforms where 'long double' == 'double'.
5706         * lib/ceill.c: Include <config.h>.
5707         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5708         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5709         time.
5710         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5711         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5712         * modules/ceill (Depends-on): Add ceil. Update conditions.
5713
5714 2011-10-09  Bruno Haible  <bruno@clisp.org>
5715
5716         floorl: Simplify for platforms where 'long double' == 'double'.
5717         * lib/floorl.c: Include <config.h>.
5718         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5719         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5720         time.
5721         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5722         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5723         * modules/floorl (Depends-on): Add floor. Update conditions.
5724
5725 2011-10-09  Bruno Haible  <bruno@clisp.org>
5726
5727         rint: Fix ordering constraints.
5728         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
5729         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5730         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5731
5732 2011-10-09  Bruno Haible  <bruno@clisp.org>
5733
5734         copysignl: Simplify for platforms where 'long double' == 'double'.
5735         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5736         alternative.
5737         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5738         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5739         * modules/copysignl (Depends-on): Add copysign. Update conditions.
5740
5741 2011-10-09  Bruno Haible  <bruno@clisp.org>
5742
5743         Tests for module 'rintl'.
5744         * modules/rintl-tests: New file.
5745         * tests/test-rintl.c: New file.
5746
5747         New module 'rintl'.
5748         * lib/math.in.h (rintl): New declaration.
5749         * lib/rintl.c: New file.
5750         * m4/rintl.m4: New file.
5751         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
5752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
5753         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
5754         * modules/rintl: New file.
5755         * tests/test-math-c++.cc: Check the declaration of rintl.
5756         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5757         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
5758         * doc/posix-functions/rintl.texi: Mention the new module.
5759
5760 2011-10-09  Bruno Haible  <bruno@clisp.org>
5761
5762         Tests for module 'rintf'.
5763         * modules/rintf-tests: New file.
5764         * tests/test-rintf.c: New file.
5765
5766         New module 'rintf'.
5767         * lib/math.in.h (rintf): New declaration.
5768         * lib/rintf.c: New file.
5769         * m4/rintf.m4: New file.
5770         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
5771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
5772         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
5773         * modules/rintf: New file.
5774         * tests/test-math-c++.cc: Check the declaration of rintf.
5775         * doc/posix-functions/rintf.texi: Mention the new module.
5776
5777 2011-10-09  Bruno Haible  <bruno@clisp.org>
5778
5779         rint: Support for MSVC.
5780         * lib/math.in.h (rint): New declaration.
5781         * lib/rint.c: New file.
5782         * m4/rint.m4: New file.
5783         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
5784         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
5785         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
5786         * modules/rint (Description): Fix.
5787         (Files): Add lib/rint.c, m4/rint.m4.
5788         (Depends-on): Add math.
5789         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
5790         gl_MATH_MODULE_INDICATOR.
5791         * tests/test-math-c++.cc: Check the declaration of rint.
5792         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5793         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
5794         * doc/posix-functions/rint.texi: Mention the replacement provided by
5795         the module.
5796
5797         rint tests: More tests.
5798         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
5799         minus-zero.h, infinity.h, nan.h.
5800         (main): Skip the test if the current rounding mode is not standard. Add
5801         tests for negative numbers, minus zero, infinity, NaN.
5802         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
5803         tests/nan.h.
5804         (Depends-on): Add isnand-nolibm.
5805
5806 2011-10-09  Bruno Haible  <bruno@clisp.org>
5807
5808         Tests for module 'copysignl'.
5809         * modules/copysignl-tests: New file.
5810         * tests/test-copysignl.c: New file.
5811
5812         New module 'copysignl'.
5813         * lib/math.in.h (copysignl): New declaration.
5814         * lib/copysignl.c: New file.
5815         * m4/copysignl.m4: New file.
5816         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
5817         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
5818         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
5819         HAVE_COPYSIGNL.
5820         * modules/copysignl: New file.
5821         * tests/test-math-c++.cc: Check the declaration of copysignl.
5822         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5823         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
5824         * doc/posix-functions/copysignl.texi: Mention the new module.
5825
5826 2011-10-09  Bruno Haible  <bruno@clisp.org>
5827
5828         Tests for module 'copysignf'.
5829         * modules/copysignf-tests: New file.
5830         * tests/test-copysignf.c: New file.
5831
5832         New module 'copysignf'.
5833         * lib/math.in.h (copysignf): New declaration.
5834         * lib/copysignf.c: New file.
5835         * m4/copysignf.m4: New file.
5836         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
5837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
5838         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
5839         HAVE_COPYSIGNF.
5840         * modules/copysignf: New file.
5841         * tests/test-math-c++.cc: Check the declaration of copysignf.
5842         * doc/posix-functions/copysignf.texi: Mention the new module.
5843
5844 2011-10-09  Bruno Haible  <bruno@clisp.org>
5845
5846         Ensure that HAVE_* variables are set to 1 before they are set to 0.
5847         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
5848         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
5849         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5850         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
5851         gl_SIGNAL_H_DEFAULTS.
5852
5853 2011-10-09  Bruno Haible  <bruno@clisp.org>
5854
5855         poll: Make macro safer.
5856         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
5857         ac_cv_header_poll_h is not set.
5858
5859 2011-10-09  Bruno Haible  <bruno@clisp.org>
5860
5861         copysign: Provide replacement.
5862         * lib/math.in.h (copysign): New declaration.
5863         * lib/copysign.c: New file.
5864         * m4/copysign.m4: New file.
5865         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
5866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
5867         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
5868         HAVE_COPYSIGN.
5869         * modules/copysign (Description): Clarify.
5870         (Files): Add lib/copysign.c, m4/copysign.m4.
5871         (Depends-on): Add math, signbit.
5872         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
5873         gl_MATH_MODULE_INDICATOR.
5874         * tests/test-math-c++.cc: Check the declaration of copysign.
5875         * doc/posix-functions/copysign.texi: Mention the effects of the module
5876         on Minix and MSVC.
5877
5878 2011-10-09  Bruno Haible  <bruno@clisp.org>
5879
5880         isinf: Ensure macro on AIX 5.1.
5881         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
5882         macro.
5883         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
5884
5885 2011-10-09  Bruno Haible  <bruno@clisp.org>
5886
5887         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
5888         * modules/snprintf-posix-tests (configure.ac): Require
5889         gl_LONG_DOUBLE_VS_DOUBLE.
5890         * modules/sprintf-posix-tests (configure.ac): Likewise.
5891         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
5892         * modules/vasprintf-posix-tests (configure.ac): Likewise.
5893         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
5894         * modules/vsprintf-posix-tests (configure.ac): Likewise.
5895         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
5896         tests on platforms where 'long double' is the same as 'double'.
5897         * tests/test-sprintf-posix.h (test_function): Likewise.
5898         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5899         * tests/test-vasprintf-posix.c (test_function): Likewise.
5900
5901         *printf: Fix for platforms where 'long double' == 'double'.
5902         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
5903         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
5904         * modules/dprintf-posix (Files): Add m4/math_h.m4.
5905         * modules/fprintf-posix (Files): Likewise.
5906         * modules/obstack-printf-posix (Files): Likewise.
5907         * modules/snprintf-posix (Files): Likewise.
5908         * modules/sprintf-posix (Files): Likewise.
5909         * modules/vasnprintf (Files): Likewise.
5910         * modules/vasnprintf-posix (Files): Likewise.
5911         * modules/vasprintf-posix (Files): Likewise.
5912         * modules/vdprintf-posix (Files): Likewise.
5913         * modules/vfprintf-posix (Files): Likewise.
5914         * modules/vsnprintf-posix (Files): Likewise.
5915         * modules/vsprintf-posix (Files): Likewise.
5916         * modules/unistdio/u8-vasnprintf (Files): Likewise.
5917         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
5918         * modules/unistdio/u16-vasnprintf (Files): Likewise.
5919         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
5920         * modules/unistdio/u32-vasnprintf (Files): Likewise.
5921         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
5922         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
5923
5924         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
5925         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
5926         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5927         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
5928         'long double'.
5929         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
5930
5931         isinf: Fix for platforms where 'long double' == 'double'.
5932         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
5933         Don't blindly assume 80-bit 'long double'.
5934
5935         isfinite: Fix for platforms where 'long double' == 'double'.
5936         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
5937         Don't blindly assume 80-bit 'long double'.
5938
5939         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
5940         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
5941         * modules/isfinite-tests (configure.ac): Require
5942         gl_LONG_DOUBLE_VS_DOUBLE.
5943         * modules/isinf-tests (configure.ac): Likewise.
5944         * modules/isnan-tests (configure.ac): Likewise.
5945         * modules/isnanl-tests (configure.ac): Likewise.
5946         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
5947         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
5948         tests on platforms where 'long double' is the same as 'double'.
5949         * tests/test-isinf.c (test_isinfl): Likewise.
5950         * tests/test-isnan.c (test_long_double): Likewise.
5951         * tests/test-isnanl.h (main): Likewise.
5952
5953 2011-10-08  Bruno Haible  <bruno@clisp.org>
5954
5955         Tests for module 'tanhf'.
5956         * modules/tanhf-tests: New file.
5957         * tests/test-tanhf.c: New file.
5958
5959         New module 'tanhf'.
5960         * lib/math.in.h (tanhf): New declaration.
5961         * lib/tanhf.c: New file.
5962         * m4/tanhf.m4: New file.
5963         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
5964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
5965         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
5966         * modules/tanhf: New file.
5967         * tests/test-math-c++.cc: Check the declaration of tanhf.
5968         * doc/posix-functions/tanhf.texi: Mention the new module.
5969
5970         tanh: Use a .m4 file.
5971         * m4/tanh.m4: New file.
5972         * modules/tanh (Files): Add it.
5973         (configure.ac): Just invoke gl_FUNC_TANH.
5974
5975 2011-10-08  Bruno Haible  <bruno@clisp.org>
5976
5977         Tests for module 'coshf'.
5978         * modules/coshf-tests: New file.
5979         * tests/test-coshf.c: New file.
5980
5981         New module 'coshf'.
5982         * lib/math.in.h (coshf): New declaration.
5983         * lib/coshf.c: New file.
5984         * m4/coshf.m4: New file.
5985         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
5986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
5987         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
5988         * modules/coshf: New file.
5989         * tests/test-math-c++.cc: Check the declaration of coshf.
5990         * doc/posix-functions/coshf.texi: Mention the new module.
5991
5992         cosh: Use a .m4 file.
5993         * m4/cosh.m4: New file.
5994         * modules/cosh (Files): Add it.
5995         (configure.ac): Just invoke gl_FUNC_COSH.
5996
5997 2011-10-08  Bruno Haible  <bruno@clisp.org>
5998
5999         Tests for module 'sinhf'.
6000         * modules/sinhf-tests: New file.
6001         * tests/test-sinhf.c: New file.
6002
6003         New module 'sinhf'.
6004         * lib/math.in.h (sinhf): New declaration.
6005         * lib/sinhf.c: New file.
6006         * m4/sinhf.m4: New file.
6007         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
6008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
6009         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
6010         * modules/sinhf: New file.
6011         * tests/test-math-c++.cc: Check the declaration of sinhf.
6012         * doc/posix-functions/sinhf.texi: Mention the new module.
6013
6014         sinh: Use a .m4 file.
6015         * m4/sinh.m4: New file.
6016         * modules/sinh (Files): Add it.
6017         (configure.ac): Just invoke gl_FUNC_SINH.
6018
6019 2011-10-08  Bruno Haible  <bruno@clisp.org>
6020
6021         Tests for module 'atan2f'.
6022         * modules/atan2f-tests: New file.
6023         * tests/test-atan2f.c: New file.
6024
6025         New module 'atan2f'.
6026         * lib/math.in.h (atan2f): New declaration.
6027         * lib/atan2f.c: New file.
6028         * m4/atan2f.m4: New file.
6029         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
6030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
6031         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
6032         * modules/atan2f: New file.
6033         * tests/test-math-c++.cc: Check the declaration of atan2f.
6034         * doc/posix-functions/atan2f.texi: Mention the new module.
6035
6036         atan2: Use a .m4 file.
6037         * m4/atan2.m4: New file.
6038         * modules/atan2 (Files): Add it.
6039         (configure.ac): Just invoke gl_FUNC_ATAN2.
6040
6041 2011-10-08  Bruno Haible  <bruno@clisp.org>
6042
6043         Tests for module 'atanf'.
6044         * modules/atanf-tests: New file.
6045         * tests/test-atanf.c: New file.
6046
6047         New module 'atanf'.
6048         * lib/math.in.h (atanf): New declaration.
6049         * lib/atanf.c: New file.
6050         * m4/atanf.m4: New file.
6051         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
6052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
6053         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
6054         * modules/atanf: New file.
6055         * tests/test-math-c++.cc: Check the declaration of atanf.
6056         * doc/posix-functions/atanf.texi: Mention the new module.
6057
6058         atan: Use a .m4 file.
6059         * m4/atan.m4: New file.
6060         * modules/atan (Files): Add it.
6061         (configure.ac): Just invoke gl_FUNC_ATAN.
6062
6063 2011-10-08  Bruno Haible  <bruno@clisp.org>
6064
6065         Tests for module 'acosf'.
6066         * modules/acosf-tests: New file.
6067         * tests/test-acosf.c: New file.
6068
6069         New module 'acosf'.
6070         * lib/math.in.h (acosf): New declaration.
6071         * lib/acosf.c: New file.
6072         * m4/acosf.m4: New file.
6073         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
6074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
6075         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
6076         * modules/acosf: New file.
6077         * tests/test-math-c++.cc: Check the declaration of acosf.
6078         * doc/posix-functions/acosf.texi: Mention the new module.
6079
6080         acos: Use a .m4 file.
6081         * m4/acos.m4: New file.
6082         * modules/acos (Files): Add it.
6083         (configure.ac): Just invoke gl_FUNC_ACOS.
6084
6085 2011-10-08  Bruno Haible  <bruno@clisp.org>
6086
6087         Tests for module 'asinf'.
6088         * modules/asinf-tests: New file.
6089         * tests/test-asinf.c: New file.
6090
6091         New module 'asinf'.
6092         * lib/math.in.h (asinf): New declaration.
6093         * lib/asinf.c: New file.
6094         * m4/asinf.m4: New file.
6095         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
6096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
6097         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
6098         * modules/asinf: New file.
6099         * tests/test-math-c++.cc: Check the declaration of asinf.
6100         * doc/posix-functions/asinf.texi: Mention the new module.
6101
6102         asin: Use a .m4 file.
6103         * m4/asin.m4: New file.
6104         * modules/asin (Files): Add it.
6105         (configure.ac): Just invoke gl_FUNC_ASIN.
6106
6107 2011-10-08  Bruno Haible  <bruno@clisp.org>
6108
6109         Tests for module 'tanf'.
6110         * modules/tanf-tests: New file.
6111         * tests/test-tanf.c: New file.
6112
6113         New module 'tanf'.
6114         * lib/math.in.h (tanf): New declaration.
6115         * lib/tanf.c: New file.
6116         * m4/tanf.m4: New file.
6117         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
6118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
6119         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
6120         * modules/tanf: New file.
6121         * tests/test-math-c++.cc: Check the declaration of tanf.
6122         * doc/posix-functions/tanf.texi: Mention the new module.
6123
6124         tan: Use a .m4 file.
6125         * m4/tan.m4: New file.
6126         * modules/tan (Files): Add it.
6127         (configure.ac): Just invoke gl_FUNC_TAN.
6128
6129 2011-10-08  Bruno Haible  <bruno@clisp.org>
6130
6131         Tests for module 'cosf'.
6132         * modules/cosf-tests: New file.
6133         * tests/test-cosf.c: New file.
6134
6135         New module 'cosf'.
6136         * lib/math.in.h (cosf): New declaration.
6137         * lib/cosf.c: New file.
6138         * m4/cosf.m4: New file.
6139         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
6140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
6141         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
6142         * modules/cosf: New file.
6143         * tests/test-math-c++.cc: Check the declaration of cosf.
6144         * doc/posix-functions/cosf.texi: Mention the new module.
6145
6146         cos: Use a .m4 file.
6147         * m4/cos.m4: New file.
6148         * modules/cos (Files): Add it.
6149         (configure.ac): Just invoke gl_FUNC_COS.
6150
6151 2011-10-08  Bruno Haible  <bruno@clisp.org>
6152
6153         Tests for module 'sinf'.
6154         * modules/sinf-tests: New file.
6155         * tests/test-sinf.c: New file.
6156
6157         New module 'sinf'.
6158         * lib/math.in.h (sinf): New declaration.
6159         * lib/sinf.c: New file.
6160         * m4/sinf.m4: New file.
6161         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
6162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
6163         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
6164         * modules/sinf: New file.
6165         * tests/test-math-c++.cc: Check the declaration of sinf.
6166         * doc/posix-functions/sinf.texi: Mention the new module.
6167
6168         sin: Use a .m4 file.
6169         * m4/sin.m4: New file.
6170         * modules/sin (Files): Add it.
6171         (configure.ac): Just invoke gl_FUNC_SIN.
6172
6173 2011-10-08  Bruno Haible  <bruno@clisp.org>
6174
6175         Tests for module 'powf'.
6176         * modules/powf-tests: New file.
6177         * tests/test-powf.c: New file.
6178
6179         New module 'powf'.
6180         * lib/math.in.h (powf): New declaration.
6181         * lib/powf.c: New file.
6182         * m4/powf.m4: New file.
6183         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
6184         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
6185         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
6186         * modules/powf: New file.
6187         * tests/test-math-c++.cc: Check the declaration of powf.
6188         * doc/posix-functions/powf.texi: Mention the new module.
6189
6190         pow: Use a .m4 file.
6191         * m4/pow.m4: New file.
6192         * modules/pow (Files): Add it.
6193         (configure.ac): Just invoke gl_FUNC_POW.
6194
6195 2011-10-08  Bruno Haible  <bruno@clisp.org>
6196
6197         Tests for module 'log10f'.
6198         * modules/log10f-tests: New file.
6199         * tests/test-log10f.c: New file.
6200
6201         New module 'log10f'.
6202         * lib/math.in.h (log10f): New declaration.
6203         * lib/log10f.c: New file.
6204         * m4/log10f.m4: New file.
6205         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
6206         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
6207         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
6208         * modules/log10f: New file.
6209         * tests/test-math-c++.cc: Check the declaration of log10f.
6210         * doc/posix-functions/log10f.texi: Mention the new module.
6211
6212         log10: Use a .m4 file.
6213         * m4/log10.m4: New file.
6214         * modules/log10 (Files): Add it.
6215         (configure.ac): Just invoke gl_FUNC_LOG10.
6216
6217 2011-10-08  Bruno Haible  <bruno@clisp.org>
6218
6219         Tests for module 'logf'.
6220         * modules/logf-tests: New file.
6221         * tests/test-logf.c: New file.
6222
6223         New module 'logf'.
6224         * lib/math.in.h (logf): New declaration.
6225         * lib/logf.c: New file.
6226         * m4/logf.m4: New file.
6227         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
6228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
6229         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
6230         * modules/logf: New file.
6231         * tests/test-math-c++.cc: Check the declaration of logf.
6232         * doc/posix-functions/logf.texi: Mention the new module.
6233
6234         log: Use a .m4 file.
6235         * m4/log.m4: New file.
6236         * modules/log (Files): Add it.
6237         (configure.ac): Just invoke gl_FUNC_LOG.
6238
6239 2011-10-08  Bruno Haible  <bruno@clisp.org>
6240
6241         Tests for module 'expf'.
6242         * modules/expf-tests: New file.
6243         * tests/test-expf.c: New file.
6244
6245         New module 'expf'.
6246         * lib/math.in.h (expf): New declaration.
6247         * lib/expf.c: New file.
6248         * m4/expf.m4: New file.
6249         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
6250         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
6251         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
6252         * modules/expf: New file.
6253         * tests/test-math-c++.cc: Check the declaration of expf.
6254         * doc/posix-functions/expf.texi: Mention the new module.
6255
6256         exp: Use a .m4 file.
6257         * m4/exp.m4: New file.
6258         * modules/exp (Files): Add it.
6259         (configure.ac): Just invoke gl_FUNC_EXP.
6260
6261 2011-10-08  Bruno Haible  <bruno@clisp.org>
6262
6263         Tests for module 'sqrtf'.
6264         * modules/sqrtf-tests: New file.
6265         * tests/test-sqrtf.c: New file.
6266
6267         New module 'sqrtf'.
6268         * lib/math.in.h (sqrtf): New declaration.
6269         * lib/sqrtf.c: New file.
6270         * m4/sqrtf.m4: New file.
6271         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
6272         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
6273         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
6274         * modules/sqrtf: New file.
6275         * tests/test-math-c++.cc: Check the declaration of sqrtf.
6276         * doc/posix-functions/sqrtf.texi: Mention the new module.
6277
6278 2011-10-08  Bruno Haible  <bruno@clisp.org>
6279
6280         Tests: Avoid link failures w.r.t. libintl.
6281         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
6282         $(LIBINTL).
6283         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
6284         $(LIBINTL).
6285         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
6286         against $(LIBINTL).
6287         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
6288         $(LIBINTL).
6289         * modules/openat-tests (Makefile.am): Link test-fchmodat against
6290         $(LIBINTL).
6291         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
6292
6293 2011-10-08  Bruno Haible  <bruno@clisp.org>
6294
6295         pow tests: Defeat compiler optimizations.
6296         * tests/test-pow.c (main): Assign arguments to x and y before use.
6297
6298 2011-10-08  Bruno Haible  <bruno@clisp.org>
6299
6300         gnulib-tool: Improve last commit.
6301         * gnulib-tool (func_modules_transitive_closure): Simplify code.
6302         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
6303         ignore dependencies that are not among the modules list.
6304
6305 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
6306
6307         gnulib-tool: don't follow dependencies to avoided modules
6308         This fixes a bug that is related to the previous one.
6309         * gnulib-tool (func_modules_transitive_closure)
6310         (func_emit_autoconf_snippets):
6311         Check whether a dependency is acceptable before using it.
6312         (--extract-dependencies): Report an error if --avoid is also used,
6313         since this combination of options is not yet supported.
6314
6315         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
6316         Problem reported by Peter Dyballa in
6317         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
6318         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
6319         when echoing "$condition".
6320
6321 2011-10-07  Bruno Haible  <bruno@clisp.org>
6322
6323         Fix documentation about math functions on MacOS X.
6324         * doc/posix-functions/exp2.texi: Don't say the function is missing on
6325         MacOS X 10.5.
6326         * doc/posix-functions/fdim.texi: Likewise.
6327         * doc/posix-functions/feclearexcept.texi: Likewise.
6328         * doc/posix-functions/fegetenv.texi: Likewise.
6329         * doc/posix-functions/fegetround.texi: Likewise.
6330         * doc/posix-functions/feholdexcept.texi: Likewise.
6331         * doc/posix-functions/feraiseexcept.texi: Likewise.
6332         * doc/posix-functions/fesetenv.texi: Likewise.
6333         * doc/posix-functions/fesetround.texi: Likewise.
6334         * doc/posix-functions/fetestexcept.texi: Likewise.
6335         * doc/posix-functions/feupdateenv.texi: Likewise.
6336         * doc/posix-functions/fmax.texi: Likewise.
6337         * doc/posix-functions/fmin.texi: Likewise.
6338         * doc/posix-functions/log2.texi: Likewise.
6339         * doc/posix-functions/modff.texi: Likewise.
6340         * doc/posix-functions/nan.texi: Likewise.
6341         * doc/posix-functions/nanf.texi: Likewise.
6342         * doc/posix-functions/nextafterf.texi: Likewise.
6343         * doc/posix-functions/remquo.texi: Likewise.
6344
6345 2011-10-07  Bruno Haible  <bruno@clisp.org>
6346
6347         modff: Drop assumption about library that defines modff.
6348         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
6349         AC_CHECK_FUNCS.
6350         * modules/modff (Files): Add m4/mathfunc.m4.
6351
6352 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
6353
6354         raise tests: Avoid a GCC warning.
6355         * tests/test-raise.c (handler): Use _Noreturn.
6356
6357 2011-10-07  Bruno Haible  <bruno@clisp.org>
6358
6359         Tests for module 'ldexpf'.
6360         * modules/ldexpf-tests: New file.
6361         * tests/test-ldexpf.c: New file.
6362
6363         New module 'ldexpf'.
6364         * lib/math.in.h (ldexpf): New declaration.
6365         * lib/ldexpf.c: New file.
6366         * m4/ldexpf.m4: New file.
6367         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
6368         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
6369         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
6370         * modules/ldexpf: New file.
6371         * tests/test-math-c++.cc: Check the declaration of ldexpf.
6372         * doc/posix-functions/ldexpf.texi: Mention the new module.
6373
6374 2011-10-06  Bruno Haible  <bruno@clisp.org>
6375
6376         frexpf: Work around problems on IRIX and mingw.
6377         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
6378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
6379         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
6380         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
6381         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
6382         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
6383         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
6384
6385 2011-10-06  Bruno Haible  <bruno@clisp.org>
6386
6387         fabsf: Drop assumption about library that defines fabsf.
6388         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
6389         AC_CHECK_FUNCS.
6390         * modules/fabsf (Files): Add m4/mathfunc.m4.
6391
6392 2011-10-06  Bruno Haible  <bruno@clisp.org>
6393
6394         frexpf: Drop assumption about library that defines frexpf.
6395         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
6396         'int *', 'float *', 'long double *', 'float', 'long double'.
6397         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
6398         AC_CHECK_FUNCS.
6399         * modules/frexpf (Files): Add m4/mathfunc.m4.
6400
6401         Tests for module 'frexpf'.
6402         * modules/frexpf-tests: New file.
6403         * tests/test-frexpf.c: New file.
6404
6405         New module 'frexpf'.
6406         * lib/math.in.h (frexpf): New declaration.
6407         * lib/frexpf.c: New file.
6408         * m4/frexpf.m4: New file.
6409         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
6410         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
6411         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
6412         * modules/frexpf: New file.
6413         * tests/test-math-c++.cc: Check the declaration of frexpf.
6414         * doc/posix-functions/frexpf.texi: Mention the new module.
6415
6416 2011-10-06  Bruno Haible  <bruno@clisp.org>
6417
6418         math: Sort function declarations of math.in.h.
6419         * lib/math.in.h (frexp, logb): Move declarations.
6420
6421 2011-10-05  Bruno Haible  <bruno@clisp.org>
6422
6423         Tests for module 'modff'.
6424         * modules/modff-tests: New file.
6425         * tests/test-modff.c: New file.
6426
6427         New module 'modff'.
6428         * lib/math.in.h (modff): New declaration.
6429         * lib/modff.c: New file.
6430         * m4/modff.m4: New file.
6431         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
6432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
6433         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
6434         * modules/modff: New file.
6435         * tests/test-math-c++.cc: Check the declaration of modff.
6436         * doc/posix-functions/modff.texi: Mention the new module.
6437
6438         modf tests: Make test sharper.
6439         * tests/test-modf.c (main): Strengthen upper bound.
6440
6441         modf: Use a .m4 file.
6442         * m4/modf.m4: New file.
6443         * modules/modf (Files): Add it.
6444         (configure.ac): Just invoke gl_FUNC_MODF.
6445
6446 2011-10-05  Bruno Haible  <bruno@clisp.org>
6447
6448         Tests for module 'fmodf'.
6449         * modules/fmodf-tests: New file.
6450         * tests/test-fmodf.c: New file.
6451
6452         New module 'fmodf'.
6453         * lib/math.in.h (fmodf): New declaration.
6454         * lib/fmodf.c: New file.
6455         * m4/fmodf.m4: New file.
6456         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
6457         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
6458         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
6459         * modules/fmodf: New file.
6460         * tests/test-math-c++.cc: Check the declaration of fmodf.
6461         * doc/posix-functions/fmodf.texi: Mention the new module.
6462
6463         fmod: Use a .m4 file.
6464         * m4/fmod.m4: New file.
6465         * modules/fmod (Files): Add it.
6466         (configure.ac): Just invoke gl_FUNC_FMOD.
6467
6468 2011-10-05  Bruno Haible  <bruno@clisp.org>
6469
6470         Tests for module 'fabsf'.
6471         * modules/fabsf-tests: New file.
6472         * tests/test-fabsf.c: New file.
6473
6474         New module 'fabsf'.
6475         * lib/math.in.h (fabsf): New declaration.
6476         * lib/fabsf.c: New file.
6477         * m4/fabsf.m4: New file.
6478         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
6479         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
6480         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
6481         * modules/fabsf: New file.
6482         * tests/test-math-c++.cc: Check the declaration of fabsf.
6483         * doc/posix-functions/fabsf.texi: Mention the new module.
6484
6485         fabs: Use a .m4 file.
6486         * m4/fabs.m4: New file.
6487         * modules/fabs (Files): Add it.
6488         (configure.ac): Just invoke gl_FUNC_FABS.
6489
6490 2011-10-05  Jim Meyering  <meyering@redhat.com>
6491
6492         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
6493         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
6494         ls -lL regression introduced in coreutils-8.12, it does so at the
6495         cost of an additional stat call in the common case.  Besides, now
6496         that the kernel change that prompted commit 95f7c57f has been reverted
6497         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
6498         we have no use for commit 95f7c57f, "file-has-acl: use
6499         acl_extended_file_nofollow if available".
6500
6501 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
6502
6503         file-has-acl: revert unintended change in behavior of ls -L
6504         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
6505         derived from...
6506         (file_has_acl): ...code here.  Call it.
6507         This problem was introduced with 2011-07-22 commit 95f7c57f,
6508         "file-has-acl: use acl_extended_file_nofollow if available".
6509         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
6510
6511 2011-10-03  Bruno Haible  <bruno@clisp.org>
6512
6513         poll: Avoid link errors on MSVC.
6514         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
6515         * modules/poll (Depends-on): Add sockets.
6516         (Link): New section.
6517         * NEWS: Mention the change.
6518         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
6519         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
6520         $(LIB_POLL) instead of $(LIBSOCKET).
6521
6522 2011-10-03  Bruno Haible  <bruno@clisp.org>
6523
6524         sys_select tests: Fix link error on MSVC 9.
6525         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
6526         with $(LIB_SELECT) instead of $(LIBSOCKET).
6527
6528 2011-10-03  Bruno Haible  <bruno@clisp.org>
6529
6530         sys_select: Fix compilation error on mingw.
6531         * lib/sys_select.in.h: On native Windows, include <io.h>.
6532
6533 2011-10-03  Bruno Haible  <bruno@clisp.org>
6534
6535         wmemset: Support for MSVC.
6536         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
6537         whether wmemset() exists.
6538
6539 2011-10-03  Bruno Haible  <bruno@clisp.org>
6540
6541         wmemmove: Support for MSVC.
6542         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
6543         whether wmemmove() exists.
6544
6545 2011-10-03  Bruno Haible  <bruno@clisp.org>
6546
6547         wmemcpy: Support for MSVC.
6548         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
6549         whether wmemcpy() exists.
6550
6551 2011-10-03  Bruno Haible  <bruno@clisp.org>
6552
6553         wmemcmp: Support for MSVC.
6554         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
6555         whether wmemcmp() exists.
6556
6557 2011-10-03  Bruno Haible  <bruno@clisp.org>
6558
6559         wmemchr: Support for MSVC.
6560         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
6561         whether wmemchr() exists.
6562
6563 2011-10-03  Bruno Haible  <bruno@clisp.org>
6564
6565         glthread/*, strsignal: Support for MSVC.
6566         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
6567         including <winsock.h> on MSVC 9.
6568         * lib/glthread/lock.h: Likewise.
6569         * lib/glthread/thread.h: Likewise.
6570         * lib/glthread/tls.h: Likewise.
6571         * lib/glthread/yield.h: Likewise.
6572         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
6573         if HAVE_UNISTD_H is false.
6574         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
6575
6576 2011-10-03  Bruno Haible  <bruno@clisp.org>
6577
6578         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
6579         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
6580         Set to 100000.
6581
6582 2011-10-03  Bruno Haible  <bruno@clisp.org>
6583
6584         acl: Fix specification.
6585         * lib/file-has-acl.c (file_has_acl): Fix specification.
6586
6587 2011-10-03  Bruno Haible  <bruno@clisp.org>
6588
6589         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
6590         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
6591         (compute_curr_prefix, shared_library_fullname,
6592         find_shared_library_fullname, get_shared_library_fullname, relocate):
6593         Use it together with PIC && INSTALLDIR.
6594         Reported by <jojelino@gmail.com>
6595         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
6596
6597 2011-10-01  Jim Meyering  <meyering@redhat.com>
6598
6599         maint.mk: adjust a release-related rule not to require use of gzip
6600         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
6601         Instead, check each file in $(DIST_ARCHIVES).  This is better for
6602         projects that build only .tar.xz files.  Also fix an erroneous test.
6603
6604         test-linkat: don't leave behind a temporary file
6605         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
6606         Otherwise, coreutils' "make distcheck" would fail with this:
6607           Only in /c/cu/tests/torture/coreutils/test/\
6608             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
6609           make[2]: *** [my-distcheck] Error 1
6610
6611         float, math: add omitted file
6612         * lib/itold.c: Add file, required for yesterday's float change.
6613
6614 2011-10-01  Bruno Haible  <bruno@clisp.org>
6615
6616         isinf: Fix for OpenBSD/x86.
6617         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
6618         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
6619         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
6620
6621 2011-10-01  Bruno Haible  <bruno@clisp.org>
6622
6623         isfinite: Fix syntax error in configure test.
6624         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
6625
6626         isfinite: Fix typo.
6627         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
6628         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
6629
6630 2011-10-01  Bruno Haible  <bruno@clisp.org>
6631
6632         nonblocking tests: Fix test failure on Linux/IA-64.
6633         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
6634         Set to 270000.
6635
6636 2011-10-01  Bruno Haible  <bruno@clisp.org>
6637
6638         mkfifoat tests: Fix a test failure on mingw.
6639         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
6640         with error ENOSYS.
6641
6642 2011-09-30  Bruno Haible  <bruno@clisp.org>
6643
6644         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
6645         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
6646         'long double'. Set REPLACE_ITOLD.
6647         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
6648         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
6649         * lib/itold.c: New file.
6650         * modules/float (Files): Add lib/itold.c.
6651         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
6652         (Makefile.am): Substitute REPLACE_ITOLD.
6653         * modules/math (Depends-on): Add float.
6654         (Makefile.am): Substitute REPLACE_ITOLD.
6655         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
6656         * doc/posix-headers/math.texi: Likewise.
6657         * doc/posix-functions/logl.texi: Likewise.
6658
6659 2011-09-30  Bruno Haible  <bruno@clisp.org>
6660
6661         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
6662         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
6663         Set to 140000.
6664
6665 2011-09-30  Bruno Haible  <bruno@clisp.org>
6666
6667         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
6668         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
6669         invocation, say "right after AC_PROG_CC_STDC", not "right after
6670         AC_PROG_CC".
6671         Reported by Gary V. Vaughan <gary@gnu.org>.
6672
6673 2011-09-30  Bruno Haible  <bruno@clisp.org>
6674
6675         Centralize C99 requirement.
6676         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
6677         * modules/stdarg (configure.ac-early): Invoke it instead of
6678         AC_PROG_CC_STDC.
6679         Reported by Gary V. Vaughan and Paul Eggert.
6680
6681 2011-09-29  Bruno Haible  <bruno@clisp.org>
6682
6683         float: Fix LDBL_MAX value on Linux/PowerPC.
6684         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
6685         on Linux/PowerPC.
6686         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
6687         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
6688         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
6689         platform.
6690         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
6691
6692 2011-09-29  Bruno Haible  <bruno@clisp.org>
6693
6694         doc: Improve doc about gl_EARLY.
6695         * doc/gnulib-tool.texi (Initial import): Mention where to place an
6696         AC_PROG_CC_STDC invocation.
6697         Reported by Gary V. Vaughan <gary@gnu.org>.
6698
6699 2011-09-28  Bruno Haible  <bruno@clisp.org>
6700
6701         fgetc, fputc, fread, fwrite tests: Fix link error.
6702         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
6703         on non-MSVC platforms.
6704         * tests/test-fputc.c (main): Likewise.
6705         * tests/test-fread.c (main): Likewise.
6706         * tests/test-fwrite.c (main): Likewise.
6707         Reported by Jim Meyering.
6708
6709 2011-09-27  Bruno Haible  <bruno@clisp.org>
6710
6711         fputc, fwrite tests: Avoid test failure on MSVC.
6712         * tests/test-fgetc.c: Include msvc-inval.h.
6713         (main): Invoke gl_msvc_inval_ensure_handler.
6714         * tests/test-fputc.c: Include msvc-inval.h.
6715         (main): Invoke gl_msvc_inval_ensure_handler.
6716         * tests/test-fread.c: Include msvc-inval.h.
6717         (main): Invoke gl_msvc_inval_ensure_handler.
6718         * tests/test-fwrite.c: Include msvc-inval.h.
6719         (main): Invoke gl_msvc_inval_ensure_handler.
6720         * modules/fgetc-tests (Depends-on): Add msvc-inval.
6721         * modules/fputc-tests (Depends-on): Likewise.
6722         * modules/fread-tests (Depends-on): Likewise.
6723         * modules/fwrite-tests (Depends-on): Likewise.
6724
6725 2011-09-27  Bruno Haible  <bruno@clisp.org>
6726
6727         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
6728         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
6729         (raise): Remove older, duplicated declaration.
6730         (_gl_raise_SIGPIPE): New declaration.
6731         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
6732         (rpl_raise): Remove function.
6733         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
6734         a gnulib-defined SIGPIPE here.
6735         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
6736         'sigprocmask' has detected missing signal-blocking and the module
6737         'sigpipe' is enabled.
6738         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
6739
6740 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
6741
6742         base64-tests: avoid memory leak
6743         * tests/test-base64.c (main): Plug memory leak.
6744
6745         base32: new module
6746         * modules/base32: New module.
6747         * lib/base32.c: New file.
6748         * lib/base32.h: Likewise.
6749         * m4/base32.m4: Likewise.
6750         * modules/base32-tests: New test.
6751         * tests/test-base32.c: Likewise.
6752         * MODULES.html.sh (Misc): Mention it.
6753
6754 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
6755
6756         gnulib: use more-standard license notice wording
6757         * gnulib-tool (func_emit_copyright_notice): When emitting a
6758         license notice into a file, use the standard wording as suggested
6759         by the current information for GNU maintainers, except say "file"
6760         rather than "program".  The new wording gives a license version
6761         number, which addresses an issue raised by Glenn Morris in
6762         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
6763         * m4/onceonly.m4: Use that same wording here, too.
6764
6765         dup2: minor simplification
6766         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
6767         as lib/dup2.c no longer uses 'inline'.
6768
6769 2011-09-25  Bruno Haible  <bruno@clisp.org>
6770
6771         strings: Fix compilation error on MSVC.
6772         * lib/strings.in.h: Include <stddef.h> for size_t.
6773
6774 2011-09-25  Bruno Haible  <bruno@clisp.org>
6775
6776         fflush et al.: Document limitation on MSVC.
6777         * doc/posix-functions/fflush.texi: Document possible crash in handling
6778         mode other than DEFAULT_HANDLING.
6779         * doc/posix-functions/fgetc.texi: Likewise.
6780         * doc/posix-functions/fputc.texi: Likewise.
6781         * doc/posix-functions/fread.texi: Likewise.
6782         * doc/posix-functions/fwrite.texi: Likewise.
6783
6784 2011-09-25  Bruno Haible  <bruno@clisp.org>
6785
6786         msvc-inval: Allow three invalid parameter handling modes.
6787         * lib/msvc-inval.h: Don't include <stdlib.h> here.
6788         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
6789         macros.
6790         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
6791         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
6792         SANE_LIBRARY_HANDLING as a no-op.
6793         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
6794         <stdlib.h>.
6795         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
6796
6797 2011-09-25  Bruno Haible  <bruno@clisp.org>
6798
6799         msvc-inval: Make handler multithread-safe.
6800         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
6801         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
6802         declarations.
6803         (gl_msvc_inval_current): New declaration.
6804         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
6805         Operate on the structure returned by gl_msvc_inval_current().
6806         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
6807         Remove varaiables.
6808         (tls_index, tls_initialized): New variables.
6809         (not_per_thread): New variable.
6810         (gl_msvc_inval_current): New function.
6811         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
6812         returned by gl_msvc_inval_current().
6813
6814 2011-09-25  Bruno Haible  <bruno@clisp.org>
6815
6816         msvc-inval: Install handler globally.
6817         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
6818         !_MSC_VER.
6819         (gl_msvc_invalid_parameter_handler): Remove declaration.
6820         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
6821         declarations.
6822         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
6823         Install the handler globally, don't uninstall it.
6824         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
6825         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
6826         currently valid, call RaiseException instead.
6827         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
6828         for !_MSC_VER.
6829
6830 2011-09-25  Bruno Haible  <bruno@clisp.org>
6831
6832         strerror_r-posix: Fix for MSVC 9.
6833         * lib/strerror_r.c (local_snprintf): New function.
6834         (snprintf): Define to local_snprintf, not to _snprintf.
6835
6836 2011-09-25  Bruno Haible  <bruno@clisp.org>
6837
6838         ftruncate: Support for MSVC 9.
6839         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
6840         (chsize_nothrow): New function.
6841         (chsize): Redefine as a macro.
6842         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
6843         * modules/ftruncate (Depends-on): Add msvc-inval.
6844
6845 2011-09-25  Bruno Haible  <bruno@clisp.org>
6846
6847         New module 'fstat'.
6848         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
6849         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
6850         * lib/fchdir.c (rpl_fstat): Remove function.
6851         * m4/fstat.m4: New file.
6852         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
6853         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
6854         declared.
6855         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
6856         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
6857         * modules/fstat: New file.
6858         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
6859         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
6860         is set.
6861         * doc/posix-functions/fstat.texi: Mention the new module and the
6862         problem on MSVC.
6863         * NEWS: Mention the change.
6864         * modules/acl (Depends-on): Add fstat.
6865         * modules/chdir-safer (Depends-on): Likewise.
6866         * modules/chown (Depends-on): Likewise.
6867         * modules/copy-file (Depends-on): Likewise.
6868         * modules/fchdir (Depends-on): Likewise.
6869         * modules/fdopendir (Depends-on): Likewise.
6870         * modules/fopen (Depends-on): Likewise.
6871         * modules/fts (Depends-on): Likewise.
6872         * modules/getcwd (Depends-on): Likewise.
6873         * modules/isapipe (Depends-on): Likewise.
6874         * modules/linkat (Depends-on): Likewise.
6875         * modules/lseek (Depends-on): Likewise.
6876         * modules/mkdir-p (Depends-on): Likewise.
6877         * modules/open (Depends-on): Likewise.
6878         * modules/openat (Depends-on): Likewise.
6879         * modules/read-file (Depends-on): Likewise.
6880         * modules/renameat (Depends-on): Likewise.
6881         * modules/utimens (Depends-on): Likewise.
6882
6883 2011-09-25  Bruno Haible  <bruno@clisp.org>
6884
6885         linkat: Fix compilation on MSVC 9.
6886         * lib/linkat.c: Don't include <stdint.h>.
6887
6888 2011-09-25  Bruno Haible  <bruno@clisp.org>
6889
6890         fclose: Support for MSVC 9.
6891         * lib/fclose.c: Include msvc-inval.h.
6892         (fclose_nothrow): New function.
6893         (rpl_fclose): Use it.
6894         * modules/fclose (Depends-on): Add msvc-inval.
6895         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
6896
6897 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
6898
6899         dup2: minor simplifications
6900         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
6901         that it's a performance win.
6902         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
6903         ! defined __CYGWIN__)" to "ifdef F_GETFL".
6904
6905 2011-09-24  Jim Meyering  <meyering@redhat.com>
6906
6907         test-futimens: avoid a warning from gcc -Wshadow
6908         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
6909         to avoid a shadowing warning.
6910
6911 2011-09-24  Bruno Haible  <bruno@clisp.org>
6912
6913         fdopen: Support for MSVC 9.
6914         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
6915         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
6916         * lib/fdopen.c: Include msvc-inval.h.
6917         (fdopen_nothrow): New function.
6918         (rpl_fdopen): Use it.
6919         * modules/fdopen (Depends-on): Add msvc-inval.
6920         * modules/fclose-tests (Depends-on): Add fdopen.
6921         * modules/fflush-tests (Depends-on): Likewise.
6922         * modules/fgetc-tests (Depends-on): Likewise.
6923         * modules/fputc-tests (Depends-on): Likewise.
6924         * modules/fread-tests (Depends-on): Likewise.
6925         * modules/freopen-tests (Depends-on): Likewise.
6926         * modules/fseeko-tests (Depends-on): Likewise.
6927         * modules/ftello-tests (Depends-on): Likewise.
6928         * modules/fwrite-tests  (Depends-on): Likewise.
6929         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
6930
6931 2011-09-24  Bruno Haible  <bruno@clisp.org>
6932
6933         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
6934         * modules/fgetc-tests (Depends-on): Add unistd.
6935         * modules/fputc-tests (Depends-on): Likewise.
6936         * modules/fread-tests (Depends-on): Likewise.
6937         * modules/fwrite-tests (Depends-on): Likewise.
6938
6939 2011-09-24  Bruno Haible  <bruno@clisp.org>
6940
6941         dup: Simplify autoconf test.
6942         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
6943         on gl_MSVC_INVAL's result.
6944
6945 2011-09-24  Bruno Haible  <bruno@clisp.org>
6946
6947         Tests for function fwrite().
6948         * modules/fwrite-tests: New file.
6949         * tests/test-fwrite.c: New file.
6950         * modules/stdio-tests (Depends-on): Add fwrite-tests.
6951
6952         Tests for function fread().
6953         * modules/fread-tests: New file.
6954         * tests/test-fread.c: New file.
6955         * modules/stdio-tests (Depends-on): Add fread-tests.
6956
6957         Activate fputc tests.
6958         * modules/stdio-tests (Depends-on): Add fputc-tests.
6959
6960         Enhance fgetc, fputc tests.
6961         * tests/test-fgetc.c (main): Also test the stream's error indicator.
6962         * tests/test-fputc.c (main): Likewise.
6963
6964 2011-09-24  Bruno Haible  <bruno@clisp.org>
6965
6966         write: Support for MSVC 9.
6967         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
6968         is not 1.
6969         * lib/write.c (write_nothrow): New function.
6970         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
6971         not 1. Use write_nothrow.
6972         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
6973         invalid parameter handler.
6974         (gl_PREREQ_WRITE): New macro.
6975         * modules/write (Depends-on): Add msvc-inval.
6976         (configure.ac): Invoke gl_PREREQ_WRITE.
6977         * doc/posix-functions/write.texi: Mention the problem on MSVC.
6978
6979 2011-09-24  Bruno Haible  <bruno@clisp.org>
6980
6981         read: Fix last commit.
6982         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
6983
6984 2011-09-24  Bruno Haible  <bruno@clisp.org>
6985
6986         dup2: Fix last commit.
6987         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
6988         (rpl_dup2): Disable fcntl workaround on native Windows.
6989
6990         sigprocmask: Make code safer.
6991         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
6992         section that changes macro definitions for this compilation unit.
6993
6994 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
6995
6996         dup2: clarify by coalescing Windows-specific material
6997         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
6998         "msvc-nothrow.h"' to the Windows-specific section, so that the
6999         Emacs source need not contain these include files.
7000         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
7001         Windows-specific fixes into this function rather than just the
7002         nothrow fix, as this shortens and clarifies the code.  Always
7003         define as a function, as that's a bit cleaner than having it be
7004         sometimes a function and sometimes a macro.
7005         (rpl_dup2): Move the Windows-specific stuff out of here and into
7006         ms_windows_dup2.  Don't protect the Haiku-related fix with
7007         "#if !defined __linux__", as the same code also works around
7008         a Linux kernel bug, and it doesn't add any system calls on any
7009         platform.  Add comment about FreeBSD 6.1.
7010
7011         sigprocmask: move #include directive
7012         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
7013         Windows-specific section, so that the Emacs source need not
7014         contain msvc-inval.h.
7015
7016 2011-09-23  Bruno Haible  <bruno@clisp.org>
7017
7018         read: Support for MSVC 9.
7019         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7020         is not 1.
7021         * lib/read.c (read_nothrow): New function.
7022         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
7023         read_nothrow.
7024         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
7025         invalid parameter handler.
7026         (gl_PREREQ_READ): New macro.
7027         * modules/read (Depends-on): Add msvc-inval.
7028         (configure.ac): Invoke gl_PREREQ_READ.
7029         * doc/posix-functions/read.texi: Mention the problem on MSVC.
7030
7031 2011-09-23  Bruno Haible  <bruno@clisp.org>
7032
7033         close: Support for MSVC 9.
7034         * lib/close.c: Include <errno.h>, msvc-inval.h.
7035         (close_nothrow): New function.
7036         (rpl_close): Use it.
7037         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
7038         invalid parameter handler.
7039         * modules/close (Depends-on): Add msvc-inval.
7040         * modules/dup2-tests (Depends-on): Add close.
7041         * modules/dup3-tests (Depends-on): Likewise.
7042         * modules/fcntl-tests (Depends-on): Likewise.
7043         * modules/spawn-pipe-tests (Depends-on): Likewise.
7044         * modules/unistd-safer-tests (Depends-on): Likewise.
7045         * doc/posix-functions/close.texi: Mention the problem on MSVC.
7046
7047 2011-09-23  Bruno Haible  <bruno@clisp.org>
7048
7049         New module 'dup'.
7050         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
7051         Allow replacement.
7052         * lib/dup.c: New file.
7053         * lib/fchdir.c (rpl_dup): Remove function.
7054         * m4/dup.m4: New file.
7055         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
7056         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
7057         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
7058         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
7059         * modules/dup: New file.
7060         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
7061         'dup' module is in use.
7062         * modules/fdopendir (Depends-on): Add dup.
7063         * modules/fdutimensat-tests (Depends-on): Likewise.
7064         * modules/fts (Depends-on): Likewise.
7065         * modules/futimens-tests (Depends-on): Likewise.
7066         * modules/posix_spawnp-tests (Depends-on): Likewise.
7067         * modules/unistd-safer-tests (Depends-on): Likewise.
7068         * modules/utimens-tests (Depends-on): Likewise.
7069         * doc/posix-functions/dup.texi: Mention the new module and the problem
7070         on MSVC.
7071
7072 2011-09-23  Bruno Haible  <bruno@clisp.org>
7073
7074         getdtablesize: Support for MSVC 9.
7075         * lib/getdtablesize.c: Include msvc-inval.h.
7076         (_setmaxstdio_nothrow): New function.
7077         (_setmaxstdio): Redefine it.
7078         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
7079         * modules/getdtablesize (Depends-on): Add msvc-inval.
7080         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
7081
7082 2011-09-23  Bruno Haible  <bruno@clisp.org>
7083
7084         signal-h: Rename from signal.
7085         * modules/signal-h: Renamed from modules/signal.
7086         * modules/pthread_sigmask (Depends-on): Update.
7087         * modules/raise (Depends-on): Likewise.
7088         * modules/sigaction (Depends-on): Likewise.
7089         * modules/sigpipe (Depends-on): Likewise.
7090         * modules/sigprocmask (Depends-on): Likewise.
7091         * modules/sys_select (Depends-on): Likewise.
7092         * modules/signal-h-tests: Renamed from modules/signal-tests.
7093         (Files, Depends-on, Makefile.am): Update.
7094         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
7095         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
7096         (Files, Makefile.am): Update.
7097         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
7098         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
7099         * modules/signal: New placeholder file.
7100         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
7101         * doc/posix-headers/signal.texi: Update.
7102         * NEWS: Mention the change.
7103
7104 2011-09-23  Bruno Haible  <bruno@clisp.org>
7105
7106         sigprocmask: Avoid crashes through signal() on MSVC 9.
7107         * lib/sigprocmask.c: Include msvc-inval.h.
7108         (signal_nothrow): New function.
7109         (signal): Redefine it.
7110         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
7111         * modules/sigprocmask (Depends-on): Add msvc-inval.
7112         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
7113
7114 2011-09-23  Bruno Haible  <bruno@clisp.org>
7115
7116         Tests for module 'raise'.
7117         * modules/raise-tests: New file.
7118         * tests/test-raise.c: New file.
7119
7120         raise: Support for MSVC.
7121         * lib/signal.in.h (raise): New declaration.
7122         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
7123         for native Windows platforms.
7124         * m4/raise.m4: New file.
7125         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
7126         HAVE_RAISE, REPLACE_RAISE.
7127         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
7128         REPLACE_RAISE.
7129         * modules/raise (Status, Notice): Remove fields.
7130         (Files): Add m4/raise.m4.
7131         (Depends-on): Add signal, msvc-inval.
7132         (configure.ac): Use the common idioms.
7133         (Maintainer): Add me.
7134         * tests/test-signal-c++.cc: Check the signature of raise.
7135         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
7136
7137 2011-09-23  Bruno Haible  <bruno@clisp.org>
7138
7139         pipe2: Fix compilation on pre-C99 compilers.
7140         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
7141
7142 2011-09-23  Bruno Haible  <bruno@clisp.org>
7143
7144         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
7145         * lib/msvc-nothrow.h: New file.
7146         * lib/msvc-nothrow.c: New file.
7147         * m4/msvc-nothrow.m4: New file.
7148         * modules/msvc-nothrow: New file.
7149         * lib/dup2.c: Include msvc-nothrow.h.
7150         (rpl_dup2): No need to protect _get_osfhandle call here.
7151         * lib/accept4.c: Include msvc-nothrow.h.
7152         * lib/error.c: Likewise.
7153         * lib/fcntl.c: Likewise.
7154         * lib/lseek.c: Likewise.
7155         * lib/nonblocking.c: Likewise.
7156         * lib/poll.c: Likewise.
7157         * lib/read.c: Likewise.
7158         * lib/select.c: Likewise.
7159         * lib/sockets.h: Likewise.
7160         * lib/sockets.c: Likewise.
7161         * lib/stdio-read.c: Likewise.
7162         * lib/stdio-write.c: Likewise.
7163         * lib/write.c: Likewise.
7164         * lib/w32sock.h: Likewise.
7165         * lib/w32spawn.h: Likewise.
7166         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
7167         * lib/fsync.c: Likewise.
7168         * lib/isapipe.c: Likewise.
7169         * modules/dup2 (Depends-on): Add msvc-nothrow.
7170         * modules/accept4 (Depends-on): Likewise.
7171         * modules/error (Depends-on): Likewise.
7172         * modules/fcntl (Depends-on): Likewise.
7173         * modules/lseek (Depends-on): Likewise.
7174         * modules/nonblocking (Depends-on): Likewise.
7175         * modules/poll (Depends-on): Likewise.
7176         * modules/read (Depends-on): Likewise.
7177         * modules/select (Depends-on): Likewise.
7178         * modules/sockets (Depends-on): Likewise.
7179         * modules/sigpipe (Depends-on): Likewise.
7180         * modules/write (Depends-on): Likewise.
7181         * modules/accept (Depends-on): Likewise.
7182         * modules/bind (Depends-on): Likewise.
7183         * modules/connect (Depends-on): Likewise.
7184         * modules/gethostname (Depends-on): Likewise.
7185         * modules/getpeername (Depends-on): Likewise.
7186         * modules/getsockname (Depends-on): Likewise.
7187         * modules/getsockopt (Depends-on): Likewise.
7188         * modules/ioctl (Depends-on): Likewise.
7189         * modules/listen (Depends-on): Likewise.
7190         * modules/recv (Depends-on): Likewise.
7191         * modules/recvfrom (Depends-on): Likewise.
7192         * modules/send (Depends-on): Likewise.
7193         * modules/sendto (Depends-on): Likewise.
7194         * modules/setsockopt (Depends-on): Likewise.
7195         * modules/shutdown (Depends-on): Likewise.
7196         * modules/socket (Depends-on): Likewise.
7197         * modules/execute (Depends-on): Likewise.
7198         * modules/spawn-pipe (Depends-on): Likewise.
7199         * modules/flock (Depends-on): Likewise.
7200         * modules/fsync (Depends-on): Likewise.
7201         * modules/isapipe (Depends-on): Likewise.
7202         * tests/test-cloexec.c: Include msvc-nothrow.h.
7203         * tests/test-dup-safer.c: Likewise.
7204         * tests/test-dup2.c: Likewise.
7205         * tests/test-dup3.c: Likewise.
7206         * tests/test-fcntl.c: Likewise.
7207         * tests/test-pipe.c: Likewise.
7208         * tests/test-pipe2.c: Likewise.
7209         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
7210         * modules/unistd-safer-tests (Depends-on): Likewise.
7211         * modules/dup2-tests (Depends-on): Likewise.
7212         * modules/dup3-tests (Depends-on): Likewise.
7213         * modules/fcntl-tests (Depends-on): Likewise.
7214         * modules/pipe-posix-tests (Depends-on): Likewise.
7215         * modules/pipe2-tests (Depends-on): Likewise.
7216
7217 2011-09-23  Bruno Haible  <bruno@clisp.org>
7218
7219         dup2: Make code more maintainable.
7220         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
7221         (rpl_dup2): Use it.
7222         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
7223         * modules/dup2 (configure.ac): Invoke it.
7224         Reported by Paul Eggert.
7225
7226 2011-09-23  Bruno Haible  <bruno@clisp.org>
7227
7228         msvc-inval: Fix compilation error.
7229         * lib/msvc-inval.h: Include <excpt.h>.
7230
7231 2011-09-23  Bruno Haible  <bruno@clisp.org>
7232
7233         mkdir: Tweak for MSVC 9.
7234         * lib/sys_stat.in.h: Update comments.
7235         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
7236
7237         Tests for module 'chdir'.
7238         * modules/chdir-tests: New file.
7239         * tests/test-chdir.c: New file.
7240
7241         New module 'chdir'.
7242         * modules/chdir: New file.
7243         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
7244         (chdir): New declaration.
7245         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
7246         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
7247         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
7248         * tests/test-unistd-c++.cc: Check signature of chdir.
7249         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
7250         * modules/chdir-long (Depends-on): Add chdir.
7251         * modules/fchdir (Depends-on): Likewise.
7252         * modules/rename (Depends-on): Likewise.
7253         * modules/savewd (Depends-on): Likewise.
7254
7255         rmdir: Support for mingw, MSVC 9.
7256         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
7257         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
7258
7259         getcwd: Tweak for MSVC 9.
7260         * lib/unistd.in.h: Update comments.
7261         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
7262
7263 2011-09-22  Bruno Haible  <bruno@clisp.org>
7264
7265         strerror_r-posix: Avoid a link error on MSVC.
7266         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
7267         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
7268
7269 2011-09-22  Bruno Haible  <bruno@clisp.org>
7270
7271         select: Avoid link errors on MSVC.
7272         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
7273         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
7274         * modules/pselect (Link): Likewise.
7275         * NEWS: Mention the change.
7276         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
7277         test-select-stdin against $(LIB_SELECT).
7278         * modules/pselect-tests (Makefile.am): Link test-pselect against
7279         $(LIB_SELECT).
7280
7281 2011-09-22  Bruno Haible  <bruno@clisp.org>
7282
7283         select: Avoid compilation error on MSVC.
7284         * lib/select.c: Don't include <stdbool.h>.
7285
7286 2011-09-21  Bruno Haible  <bruno@clisp.org>
7287
7288         Consolidate all uses of PATH_MAX in *.m4 files.
7289         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
7290         macros.
7291         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
7292         and gl_PATHMAX_SNIPPET.
7293         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
7294         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7295         * modules/chdir-long (Files): Add m4/pathmax.m4.
7296         * modules/getcwd (Files): Likewise.
7297
7298 2011-09-21  Bruno Haible  <bruno@clisp.org>
7299
7300         ftruncate: Un-deprecate, concentrate on Win32 support.
7301         * modules/ftruncate (Status, Notice): Remove sections.
7302         (Depends-on): Add largefile.
7303         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
7304         non-mingw platforms.
7305         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
7306         include <io.h>.
7307         * modules/perror-tests (Depends-on): Add ftruncate.
7308         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
7309         'ftruncate' module.
7310
7311 2011-09-21  Bruno Haible  <bruno@clisp.org>
7312
7313         Add dependencies to new dirent related modules.
7314         * modules/opendir (Depends-on): Add closedir.
7315         * modules/getcwd (Depends-on): Add opendir, closedir.
7316         * modules/dirent-safer-tests (Depends-on): Likewise.
7317         * modules/fdopendir-tests (Depends-on): Likewise.
7318         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
7319         * modules/renameat-tests (Depends-on): Likewise.
7320
7321 2011-09-21  Bruno Haible  <bruno@clisp.org>
7322
7323         opendir: Avoid compilation error on mingw.
7324         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
7325         * modules/opendir (Depends-on): Add unistd.
7326
7327 2011-09-21  Bruno Haible  <bruno@clisp.org>
7328
7329         ftruncate tests: Avoid a test failure on mingw.
7330         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
7331
7332 2011-09-21  Bruno Haible  <bruno@clisp.org>
7333
7334         select tests: Avoid test failures on OSF/1 5.1 and mingw.
7335         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
7336         native Windows.
7337
7338 2011-09-21  Bruno Haible  <bruno@clisp.org>
7339
7340         New module 'fdopen'.
7341         * lib/stdio.in.h (fdopen): New declaration.
7342         * lib/fdopen.c: New file.
7343         * m4/fdopen.m4: New file.
7344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
7345         REPLACE_FDOPEN.
7346         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
7347         REPLACE_FDOPEN.
7348         * modules/fdopen: New file.
7349         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
7350         * tests/test-stdio-c++.cc: Check signature of fdopen.
7351         * doc/posix-functions/fdopen.texi: Mention the new module.
7352
7353 2011-09-21  Bruno Haible  <bruno@clisp.org>
7354
7355         unlockpt tests: Avoid test failure on NetBSD 5.1.
7356         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
7357         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
7358
7359 2011-09-21  Bruno Haible  <bruno@clisp.org>
7360
7361         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
7362         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
7363         * tests/test-getlogin_r.c (main): Likewise.
7364
7365 2011-09-20  Bruno Haible  <bruno@clisp.org>
7366
7367         time tests: Don't require pid_t.
7368         * doc/posix-headers/time.texi: Revert last change.
7369         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
7370         * tests/test-time.c: Comment out the check for pid_t.
7371
7372 2011-09-20  Bruno Haible  <bruno@clisp.org>
7373
7374         fsync tests: Avoid a test failure on mingw.
7375         * tests/test-fsync.c (main): Allow a failure with EIO.
7376
7377 2011-09-20  Bruno Haible  <bruno@clisp.org>
7378
7379         euidaccess: Update comments.
7380         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
7381
7382 2011-09-20  Bruno Haible  <bruno@clisp.org>
7383
7384         Ensure EBADF returns for socket functions on mingw.
7385         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
7386         descriptor is invalid.
7387         * lib/bind.c (rpl_bind): Likewise.
7388         * lib/connect.c (rpl_connect): Likewise.
7389         * lib/getpeername.c (rpl_getpeername): Likewise.
7390         * lib/getsockname.c (rpl_getsockname): Likewise.
7391         * lib/getsockopt.c (rpl_getsockopt): Likewise.
7392         * lib/listen.c (rpl_listen): Likewise.
7393         * lib/recv.c (rpl_recv): Likewise.
7394         * lib/recvfrom.c (rpl_recvfrom): Likewise.
7395         * lib/send.c (rpl_send): Likewise.
7396         * lib/sendto.c (rpl_sendto): Likewise.
7397         * lib/setsockopt.c (rpl_setsockopt): Likewise.
7398         * lib/shutdown.c (rpl_shutdown): Likewise.
7399
7400 2011-09-20  Bruno Haible  <bruno@clisp.org>
7401
7402         select tests: EBADF tests.
7403         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
7404         test_bad_fd): New functions.
7405         (test_function): Invoke also test_bad_fd.
7406
7407 2011-09-20  Bruno Haible  <bruno@clisp.org>
7408
7409         Tests for module 'posix_spawn_file_actions_addopen.
7410         * modules/posix_spawn_file_actions_addopen-tests: New file.
7411         * tests/test-posix_spawn_file_actions_addopen.c: New file.
7412
7413         Tests for module 'posix_spawn_file_actions_adddup2'.
7414         * modules/posix_spawn_file_actions_adddup2-tests: New file.
7415         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
7416
7417         Tests for module 'posix_spawn_file_actions_addclose'.
7418         * modules/posix_spawn_file_actions_addclose-tests: New file.
7419         * tests/test-posix_spawn_file_actions_addclose.c: New file.
7420
7421 2011-09-20  Bruno Haible  <bruno@clisp.org>
7422
7423         Tests for module 'unlockpt'.
7424         * modules/unlockpt-tests: New file.
7425         * tests/test-unlockpt.c: New file.
7426         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
7427
7428         Tests for module 'grantpt'.
7429         * modules/grantpt-tests: New file.
7430         * tests/test-grantpt.c: New file.
7431         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
7432
7433 2011-09-20  Bruno Haible  <bruno@clisp.org>
7434
7435         freopen tests: EBADF tests.
7436         * tests/test-freopen.c: Include errno.h, unistd.h.
7437         (main): Add tests for EBADF, commented out for the moment.
7438
7439         fclose tests: EBADF tests.
7440         * tests/test-fclose.c (main): Add tests for EBADF.
7441
7442         fflush tests: EBADF tests.
7443         * tests/test-fflush.c: Include errno.h, macros.h.
7444         (main): Add tests for EBADF.
7445
7446         ftello tests: EBADF tests.
7447         * tests/test-ftello4.sh: New file.
7448         * tests/test-ftello4.c: New file.
7449         * modules/ftello-tests (Files): Add them.
7450         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
7451
7452         fseeko tests: EBADF tests.
7453         * tests/test-fseeko4.sh: New file.
7454         * tests/test-fseeko4.c: New file.
7455         * modules/fseeko-tests (Files): Add them.
7456         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
7457
7458         Tests for function fputc().
7459         * modules/fputc-tests: New file.
7460         * tests/test-fputc.c: New file.
7461         * modules/stdio-tests (Depends-on): Add fputc-tests.
7462
7463         Tests for function fgetc().
7464         * modules/fgetc-tests: New file.
7465         * tests/test-fgetc.c: New file.
7466         * modules/stdio-tests (Depends-on): Add fgetc-tests.
7467
7468         Tests for function fdopen().
7469         * modules/fdopen-tests: New file.
7470         * tests/test-fdopen.c: New file.
7471         * modules/stdio-tests (Depends-on): Add fdopen-tests.
7472
7473         Tests for module 'vdprintf'.
7474         * modules/vdprintf-tests: New file.
7475         * tests/test-vdprintf.c: New file.
7476
7477         Tests for module 'dprintf'.
7478         * modules/dprintf-tests: New file.
7479         * tests/test-dprintf.c: New file.
7480
7481 2011-09-20  Bruno Haible  <bruno@clisp.org>
7482
7483         Tests for module 'ioctl'.
7484         * modules/ioctl-tests: New file.
7485         * tests/test-ioctl.c: New file.
7486
7487 2011-09-20  Bruno Haible  <bruno@clisp.org>
7488
7489         fcntl tests: EBADF tests.
7490         * tests/test-fcntl.c (main): Add more tests for EBADF.
7491
7492 2011-09-20  Bruno Haible  <bruno@clisp.org>
7493
7494         utimensat tests: EBADF tests.
7495         * tests/test-utimensat.c (main): Add tests for EBADF.
7496
7497         renameat tests: EBADF tests.
7498         * tests/test-renameat.c (main): Add tests for EBADF.
7499
7500         mkfifoat tests: EBADF tests.
7501         * tests/test-mkfifoat.c (main): Add tests for EBADF.
7502
7503         readlinkat tests: EBADF tests.
7504         * tests/test-readlinkat.c (main): Add tests for EBADF.
7505
7506         symlinkat tests: EBADF tests.
7507         * tests/test-symlinkat.c (main): Add tests for EBADF.
7508
7509         linkat tests: EBADF tests.
7510         * tests/test-linkat.c (main): Add tests for EBADF.
7511
7512         Tests for module 'faccessat'.
7513         * modules/faccessat-tests: New file.
7514         * tests/test-faccessat.c: New file.
7515
7516         fdopendir tests: EBADF tests.
7517         * tests/test-fdopendir.c (main): Add more tests for EBADF.
7518
7519         openat tests: EBADF tests.
7520         * tests/test-fchownat.c (main): Add tests for EBADF.
7521         * tests/test-fstatat.c (main): Likewise.
7522         * tests/test-mkdirat.c (main): Likewise.
7523         * tests/test-openat.c (main): Likewise.
7524         * tests/test-unlinkat.c (main): Likewise.
7525         * tests/test-fchmodat.c: New file.
7526         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
7527         (Makefile.am): Also run 'test-fchmodat'.
7528
7529 2011-09-20  Bruno Haible  <bruno@clisp.org>
7530
7531         utimens, futimens, fdutimensat tests: EBADF tests.
7532         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
7533
7534         Tests for function fstat().
7535         * modules/fstat-tests: New file.
7536         * tests/test-fstat.c: New file.
7537         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
7538
7539 2011-09-20  Bruno Haible  <bruno@clisp.org>
7540
7541         test-ttyname_r tests: EBADF tests.
7542         * tests/test-ttyname_r.c (main): Add tests for EBADF.
7543
7544         Tests for module 'isatty'.
7545         * modules/isatty-tests: New file.
7546         * tests/test-isatty.c: New file.
7547
7548         Tests for module 'write'.
7549         * modules/write-tests: New file.
7550         * tests/test-write.c: New file.
7551
7552         Tests for module 'read'.
7553         * modules/read-tests: New file.
7554         * tests/test-read.c: New file.
7555
7556         pwrite tests: EBADF tests.
7557         * tests/test-pwrite.c (main): Add tests for EBADF.
7558
7559         pread tests: EBADF tests.
7560         * tests/test-pread.c (main): Add tests for EBADF.
7561
7562         lseek tests: EBADF tests.
7563         * tests/test-lseek.c (main): Add more tests for EBADF.
7564
7565         Tests for module 'ftruncate'.
7566         * modules/ftruncate-tests: New file.
7567         * tests/test-ftruncate.sh: New file.
7568         * tests/test-ftruncate.c: New file.
7569
7570         fsync tests: EBADF tests.
7571         * tests/test-fsync.c (main): Add more tests for EBADF.
7572
7573         fdatasync tests: EBADF tests.
7574         * tests/test-fdatasync.c (main): Add more tests for EBADF.
7575
7576         Tests for module 'fchown'.
7577         * modules/fchown-tests: New file.
7578         * tests/test-fchown.c: New file.
7579
7580         Tests for module 'fchmod'.
7581         * modules/fchmod-tests: New file.
7582         * tests/test-fchmod.c: New file.
7583
7584         fchdir tests: EBADF tests.
7585         * tests/test-fchdir.c (main): Add more tests for EBADF.
7586
7587         dup2 tests: EBADF tests.
7588         * tests/test-dup2.c (main): Add more tests for EBADF.
7589
7590         Tests for module 'dup'.
7591         * modules/dup-tests: New file.
7592         * tests/test-dup.c: New file.
7593
7594         Tests for module 'close'.
7595         * modules/close-tests: New file.
7596         * tests/test-close.c: New file.
7597
7598 2011-09-20  Bruno Haible  <bruno@clisp.org>
7599
7600         Tests for module 'shutdown'.
7601         * modules/shutdown-tests: New file.
7602         * tests/test-shutdown.c: New file.
7603
7604         Tests for module 'setsockopt'.
7605         * modules/setsockopt-tests: New file.
7606         * tests/test-setsockopt.c: New file.
7607
7608         Tests for module 'sendto'.
7609         * modules/sendto-tests: New file.
7610         * tests/test-sendto.c: New file.
7611
7612         Tests for module 'send'.
7613         * modules/send-tests: New file.
7614         * tests/test-send.c: New file.
7615
7616         Tests for module 'recvfrom'.
7617         * modules/recvfrom-tests: New file.
7618         * tests/test-recvfrom.c: New file.
7619
7620         Tests for module 'recv'.
7621         * modules/recv-tests: New file.
7622         * tests/test-recv.c: New file.
7623
7624         Tests for module 'listen'.
7625         * modules/listen-tests: New file.
7626         * tests/test-listen.c: New file.
7627
7628         Tests for module 'getsockopt'.
7629         * modules/getsockopt-tests: New file.
7630         * tests/test-getsockopt.c: New file.
7631
7632         Tests for module 'getsockname'.
7633         * modules/getsockname-tests: New file.
7634         * tests/test-getsockname.c: New file.
7635
7636         Tests for module 'getpeername'.
7637         * modules/getpeername-tests: New file.
7638         * tests/test-getpeername.c: New file.
7639
7640         Tests for module 'connect'.
7641         * modules/connect-tests: New file.
7642         * tests/test-connect.c: New file.
7643
7644         Tests for module 'bind'.
7645         * modules/bind-tests: New file.
7646         * tests/test-bind.c: New file.
7647
7648         accept4 tests: Fix for native Windows.
7649         * tests/test-accept4.c: Include sockets.h.
7650         (main): Invoke gl_sockets_startup.
7651         * modules/accept4-tests (Depends-on): Add sockets.
7652
7653         accept tests: Fix for native Windows.
7654         * tests/test-accept.c: Include sockets.h.
7655         (main): Invoke gl_sockets_startup.
7656         * modules/accept-tests (Depends-on): Add sockets.
7657
7658 2011-09-19  Bruno Haible  <bruno@clisp.org>
7659
7660         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
7661         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
7662         do...while(0).
7663         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
7664         Suggested by Paul Eggert.
7665
7666 2011-09-19  Bruno Haible  <bruno@clisp.org>
7667
7668         sched: Ensure pid_t is defined.
7669         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
7670         not define pid_t.
7671         * lib/sched.in.h: Include <sys/types.h>.
7672         * doc/posix-headers/sched.texi: Mention the pid_t problem.
7673         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7674
7675 2011-09-19  Bruno Haible  <bruno@clisp.org>
7676
7677         msvc-inval: Ensure the entire expansion is a single statement.
7678         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
7679         of braces.
7680
7681 2011-09-19  Jim Meyering  <meyering@redhat.com>
7682
7683         tests: use printf, not echo in init.sh's warn_ function
7684         * tests/init.sh (warn_): Use printf, not echo.  The latter would
7685         misbehave when given strings containing a backslash or starting
7686         with e.g., -n.  James Youngman suggested setting IFS.
7687
7688 2011-09-19  Eric Blake  <eblake@redhat.com>
7689
7690         futimens: enhance test
7691         * tests/test-futimens.h (test_futimens): Also check for EBADF on
7692         closed non-negative fd.
7693
7694         date: accept 'hence' as opposite of 'ago'
7695         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
7696         * tests/test-parse-datetime.c (main): Enhance test.
7697         Suggested by Jesse Wilson.
7698
7699 2011-09-19  Jim Meyering  <meyering@redhat.com>
7700
7701         getcwd: don't fail in a deep directory on a system without openat
7702         Before this change, getcwd would fail when called from a directory
7703         of depth PATH_MAX / 3 or greater.  That was due to the fact that
7704         the non-openat implementation used "..", "../..", "../../..", etc.
7705         to access ancestor directories.  With too many, that string would
7706         be longer than PATH_MAX.
7707         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
7708         using gnulib's openat replacement.
7709         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
7710         we're using the replacement function.
7711
7712 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
7713
7714         maint.mk: avoid warnings from perl about missing files
7715         * top/maint.mk (def_sym_regex): Ignore files listed in
7716         $(gl_other_headers_) that do not exist, say because a project
7717         does not use a corresponding module.
7718
7719 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
7720
7721         stat: use pathmax.h only if needed
7722         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
7723         This is better for Emacs, which does not have a mingw port and
7724         therefore can avoid the pathmax module.
7725
7726         utimens: remove dependency on dup2
7727         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
7728         to work around the Linux kernel bug.
7729         * modules/utimens (Depends-on): Remove dup2.
7730
7731 2011-09-18  Bruno Haible  <bruno@clisp.org>
7732
7733         inet_ntop, inet_pton: Look for it also in libresolv.
7734         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
7735         libnsl, search for it in libresolv.
7736         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7737         Needed on Solaris 7.
7738
7739 2011-09-18  Bruno Haible  <bruno@clisp.org>
7740
7741         accept, accept4 tests: Avoid link error on Solaris.
7742         * modules/accept-tests (Makefile.am): Link test-accept against
7743         $(LIBSOCKET).
7744         * modules/accept4-tests (Makefile.am): Link test-accept4 against
7745         $(LIBSOCKET).
7746
7747         accept4: Avoid link error on Solaris.
7748         * modules/accept4 (Link): New section.
7749
7750         socket functions: Avoid link errors on Solaris.
7751         * modules/accept (Depends-on): Add socketlib.
7752         (Link): New section.
7753         * modules/bind (Depends-on): Add socketlib.
7754         (Link): New section.
7755         * modules/connect (Depends-on): Add socketlib.
7756         (Link): New section.
7757         * modules/getpeername (Depends-on): Add socketlib.
7758         (Link): New section.
7759         * modules/getsockname (Depends-on): Add socketlib.
7760         (Link): New section.
7761         * modules/getsockopt (Depends-on): Add socketlib.
7762         (Link): New section.
7763         * modules/listen (Depends-on): Add socketlib.
7764         (Link): New section.
7765         * modules/recv (Depends-on): Add socketlib.
7766         (Link): New section.
7767         * modules/recvfrom (Depends-on): Add socketlib.
7768         (Link): New section.
7769         * modules/send (Depends-on): Add socketlib.
7770         (Link): New section.
7771         * modules/sendto (Depends-on): Add socketlib.
7772         (Link): New section.
7773         * modules/setsockopt (Depends-on): Add socketlib.
7774         (Link): New section.
7775         * modules/shutdown (Depends-on): Add socketlib.
7776         (Link): New section.
7777         * modules/socket (Depends-on): Add socketlib.
7778         (Link): New section.
7779
7780 2011-09-18  Bruno Haible  <bruno@clisp.org>
7781
7782         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
7783         * tests/test-ptsname.c (main): Terminate the test if it takes longer
7784         than 5 seconds.
7785         * modules/ptsname-tests (configure.ac): Test for alarm.
7786
7787 2011-09-18  Bruno Haible  <bruno@clisp.org>
7788
7789         posix_spawn_file_actions_add*: Fix module dependencies.
7790         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
7791         posix_spawn_file_actions_init.
7792         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
7793         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
7794
7795 2011-09-18  Bruno Haible  <bruno@clisp.org>
7796
7797         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
7798         * tests/test-rename.h (test_rename): Allow error code EEXIST.
7799         * tests/test-renameat.c (main): Likewise.
7800
7801 2011-09-18  Bruno Haible  <bruno@clisp.org>
7802
7803         Tests for module 'accept4'.
7804         * modules/accept4-tests: New file.
7805         * tests/test-accept4.c: New file.
7806
7807 2011-09-18  Bruno Haible  <bruno@clisp.org>
7808
7809         Tests for module 'accept'.
7810         * modules/accept-tests: New file.
7811         * tests/test-accept.c: New file.
7812
7813 2011-09-18  Bruno Haible  <bruno@clisp.org>
7814
7815         dup2: Support for MSVC.
7816         * lib/dup2.c: Include msvc-inval.h.
7817         (rpl_dup2): Handle invalid parameter notifications during dup2 and
7818         _get_osfhandle calls.
7819         * modules/dup2 (Depends-on): Add msvc-inval.
7820         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
7821
7822         New module 'msvc-inval'.
7823         * lib/msvc-inval.h: New file.
7824         * lib/msvc-inval.c: New file.
7825         * m4/msvc-inval.m4: New file.
7826         * modules/msvc-inval: New file.
7827
7828 2011-09-17  Bruno Haible  <bruno@clisp.org>
7829
7830         Tests for module 'pclose'.
7831         * modules/pclose-tests: New file.
7832
7833         New module 'pclose'.
7834         * lib/stdio.in.h (pclose): New declaration.
7835         * lib/pclose.c: New file.
7836         * m4/pclose.m4: New file.
7837         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
7838         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
7839         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
7840         * modules/pclose: New file.
7841         * modules/popen-tests (Depends-on): Add pclose.
7842         * modules/popen-safer-tests (Depends-on): Likewise.
7843         * doc/posix-functions/pclose.texi: Mention the new module.
7844
7845 2011-09-17  Bruno Haible  <bruno@clisp.org>
7846
7847         popen: Support for MSVC.
7848         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
7849         * lib/popen.c (popen): Provide alternate definition for native Windows.
7850         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
7851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
7852         * modules/popen (Depends-on, configure.ac): Update condition.
7853         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
7854         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
7855         fixed.
7856
7857 2011-09-17  Bruno Haible  <bruno@clisp.org>
7858
7859         isnanl, isnand, isnanf: Work around MSVC bug.
7860         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
7861
7862 2011-09-17  Bruno Haible  <bruno@clisp.org>
7863
7864         sys_socket tests: Fix recent mistake.
7865         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
7866
7867 2011-09-17  Bruno Haible  <bruno@clisp.org>
7868
7869         putenv: Support for MSVC.
7870         * modules/putenv (Depends-on): Add environ.
7871         * lib/putenv.c (environ): Disable declaration.
7872         * lib/unistd.in.h: Update comment.
7873
7874 2011-09-17  Bruno Haible  <bruno@clisp.org>
7875
7876         math: Avoid macro redefinition warnings on MSVC.
7877         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
7878         Undefine before redefining.
7879
7880 2011-09-17  Bruno Haible  <bruno@clisp.org>
7881
7882         doc: Mention functions which are declared as macros.
7883         * doc/posix-functions/*[fl].texi: Mention that some functions are
7884         defined as macros with arguments only.
7885
7886 2011-09-17  Bruno Haible  <bruno@clisp.org>
7887
7888         Add dependencies to new dirent related modules.
7889         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
7890         * modules/fts (Depends-on): Likewise.
7891         * modules/glob (Depends-on): Likewise.
7892         * modules/savedir (Depends-on): Likewise.
7893         * modules/scandir (Depends-on): Likewise.
7894         * modules/dirent-safer (Depends-on): Add opendir, closedir.
7895         * modules/fdopendir (Depends-on): Add opendir.
7896
7897 2011-09-17  Bruno Haible  <bruno@clisp.org>
7898
7899         inet_pton: Support for MSVC on Windows Vista or newer.
7900         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
7901         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
7902         HAVE_DECL_INET_PTON is defined.
7903         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
7904         On platforms with <winsock2.h>, test whether inet_pton is declared in
7905         <ws2tcpip.h>. If so, arrange to replace it.
7906         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
7907         REPLACE_INET_PTON.
7908         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
7909         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
7910         (Depends-on, configure.ac): Update condition.
7911         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
7912
7913 2011-09-17  Bruno Haible  <bruno@clisp.org>
7914
7915         inet_ntop: Support for MSVC on Windows Vista or newer.
7916         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
7917         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
7918         HAVE_DECL_INET_NTOP is defined.
7919         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
7920         On platforms with <winsock2.h>, test whether inet_ntop is declared in
7921         <ws2tcpip.h>. If so, arrange to replace it.
7922         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
7923         REPLACE_INET_NTOP.
7924         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
7925         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
7926         (Depends-on, configure.ac): Update condition.
7927         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
7928
7929 2011-09-16  Eric Blake  <eblake@redhat.com>
7930
7931         test-fsync: yet another enhancement
7932         * tests/test-fsync.c (main): Also test behavior on read-only text
7933         file.
7934
7935 2011-09-16  Bruno Haible  <bruno@clisp.org>
7936
7937         Enhance fsync, fdatasync tests.
7938         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
7939         * tests/test-fdatasync.c (main): Likewise.
7940
7941 2011-09-16  Bruno Haible  <bruno@clisp.org>
7942
7943         Support for MSVC compiler: Ensure mode_t gets defined.
7944         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
7945         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7946         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7947         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
7948         * tests/test-fcntl-h.c: Check that mode_t is defined.
7949         * tests/test-sys_stat.c: Likewise.
7950         * tests/test-sys_types.c: Likewise.
7951         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
7952         * doc/posix-headers/sys_stat.texi: Likewise.
7953         * doc/posix-headers/sys_types.texi: Likewise.
7954
7955 2011-09-16  Bruno Haible  <bruno@clisp.org>
7956
7957         sys_stat: Support for MSVC.
7958         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
7959         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
7960         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
7961         MSVC.
7962
7963 2011-09-16  Bruno Haible  <bruno@clisp.org>
7964
7965         Support for MSVC compiler: Ensure off_t gets defined.
7966         * lib/unistd.in.h: Include <sys/types.h>.
7967         * tests/test-fcntl-h.c: Check that off_t is defined.
7968         * tests/test-sys_stat.c: Likewise.
7969         * tests/test-sys_types.c: Likewise.
7970
7971 2011-09-16  Eric Blake  <eblake@redhat.com>
7972
7973         fdatasync: port to Solaris
7974         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
7975         * modules/fdatasync (Link): Document it.
7976         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
7977
7978         fdatasync: port to MacOS X 10.7
7979         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
7980         declared.
7981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
7982         * modules/unistd (Makefile.am): Substitute it.
7983         * lib/unistd.in.h (fdatasync): Declare on MacOS.
7984         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
7985
7986         fdatasync: minor improvements
7987         * modules/fdatasync (Depends-on): Add condition for fsync.
7988         * lib/fdatasync.c (fdatasync): Add comment.
7989         * tests/test-unistd-c++.cc: Test fdatasync.
7990
7991         unistd: update refs to newer POSIX
7992         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
7993         Suggested by Bruno Haible.
7994
7995         fdatasync: new module
7996         * modules/fsync (Description): Document difference to fdatasync.
7997         * modules/fdatasync: New module.
7998         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
7999         * lib/fdatasync.c (fdatasync): Likewise.
8000         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
8001         defaults.
8002         * modules/unistd (Makefile.am): Set witnesses.
8003         * lib/unistd.in.h (fdatasync): Declare.
8004         * MODULES.html.sh: Document it.
8005         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
8006         * modules/fdatasync-tests: New test.
8007         * tests/test-fdatasync.c: Likewise.
8008
8009 2011-09-16  Eric Blake  <eblake@redhat.com>
8010
8011         test-fsync: enhance tests
8012         * modules/fsync-tests (Depends-on): Add errno, for mingw.
8013         * tests/test-fsync.c (main): Enhance test.
8014
8015 2011-09-15  Bruno Haible  <bruno@clisp.org>
8016
8017         Support for MSVC compiler: Ensure ssize_t gets defined.
8018         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
8019         * doc/posix-headers/stdio.texi: Likewise.
8020         * modules/stdio (Depends-on): Add ssize_t.
8021         * modules/sys_socket (Depends-on): Likewise.
8022         * modules/sys_types (Depends-on): Likewise.
8023         * modules/sys_uio (Depends-on): Likewise.
8024         * modules/unistd (Depends-on): Likewise.
8025         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
8026         * tests/test-sys_types.c: Check that ssize_t is defined.
8027
8028 2011-09-14  Bruno Haible  <bruno@clisp.org>
8029
8030         Avoid using #, the m4 comment starter character, near brackets.
8031         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
8032         delimiter character in sed expressions.
8033         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8034         Suggested by Eric Blake.
8035
8036         Properly quote AC_CHECK_DECLS' 4th argument.
8037         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
8038         argument.
8039         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8040         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8041         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8042         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
8043         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8044         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
8045         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
8046         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
8047         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
8048         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8049         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
8050         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8051         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
8052         * m4/isinf.m4 (gl_ISINF): Likewise.
8053         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
8054         * m4/readutmp.m4 (gl_READUTMP): Likewise.
8055         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8056         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8057         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8058         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8059         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8060         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8061         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
8062         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8063         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8064         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8065         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
8066         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8068         Reported by Eric Blake.
8069
8070         Properly quote AC_CHECK_DECL's 4th argument.
8071         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
8072         argument.
8073         * m4/argp.m4 (gl_ARGP): Likewise.
8074         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8075         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8076         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8077         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8078         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
8079         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
8080         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
8081         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
8082         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8083         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8084         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8085         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8086         Reported by Eric Blake.
8087
8088 2011-09-14  Eric Blake  <eblake@redhat.com>
8089
8090         opendir: avoid compile warning
8091         * lib/opendir.c (includes): Always include errno.h.
8092         Reported by Tatsuro MATSUOKA.
8093
8094 2011-09-14  Jim Meyering  <meyering@redhat.com>
8095
8096         maint.mk: sc_tight_scope: propagate failure from sub-make
8097         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
8098         Reported by Martin von Gagern.
8099
8100 2011-09-13  Bruno Haible  <bruno@clisp.org>
8101
8102         tempname: Support for MSVC.
8103         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
8104         MSVC.
8105         * modules/tempname (Depends-on): Add fcntl-h.
8106
8107 2011-09-13  Bruno Haible  <bruno@clisp.org>
8108
8109         sys_time: Support for MSVC.
8110         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
8111         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
8112         include <winsock2.h>.
8113         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
8114         function declarations that collide with POSIX.
8115         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
8116         (Makefile.am): Substitute HAVE_WINSOCK2_H.
8117
8118 2011-09-13  Bruno Haible  <bruno@clisp.org>
8119
8120         stat: Support for MSVC.
8121         * lib/stat.c: Include pathmax.h.
8122         * modules/stat (Depends-on): Add pathmax.
8123
8124         pathmax: Support for native Windows.
8125         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
8126
8127 2011-09-12  Bruno Haible  <bruno@clisp.org>
8128
8129         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
8130         * lib/dirent.in.h (struct dirent): New type.
8131         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
8132         DT_WHT): New macros.
8133         (DIR): New type.
8134         (opendir, closedir): Declare only if the module 'opendir' is enabled.
8135         (readdir, rewinddir): New declarations.
8136         * lib/dirent-private.h: New file.
8137         * lib/opendir.c: New file.
8138         * lib/readdir.c: New file.
8139         * lib/rewinddir.c: New file.
8140         * lib/closedir.c: New file.
8141         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
8142         * m4/opendir.m4: New file.
8143         * m4/readdir.m4: New file.
8144         * m4/rewinddir.m4: New file.
8145         * m4/closedir.m4: New file.
8146         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
8147         REPLACE_CLOSEDIR here.
8148         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
8149         readdir, rewinddir are declared.
8150         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
8151         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
8152         HAVE_REWINDDIR, HAVE_CLOSEDIR.
8153         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
8154         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
8155         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
8156         * modules/opendir: New file.
8157         * modules/readdir: New file.
8158         * modules/rewinddir: New file.
8159         * modules/closedir: New file.
8160         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
8161         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
8162         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
8163         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
8164         * NEWS: Mention the 'fchdir' change.
8165
8166 2011-09-11  Bruno Haible  <bruno@clisp.org>
8167
8168         asm-underscore.m4: Support for MSVC.
8169         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
8170         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
8171
8172 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
8173
8174         Doc about crypt functions.
8175         * doc/posix-functions/crypt.texi: Expand range of glibc versions
8176         needing for _GNU_SOURCE to get crypt.
8177         * doc/posix-functions/encrypt.texi: Likewise.
8178         * doc/posix-functions/setkey.texi: Likewise.
8179
8180 2011-09-11  Bruno Haible  <bruno@clisp.org>
8181
8182         doc: Update regarding MSVC 9.
8183         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
8184         tested".
8185         * doc/posix-functions/*.texi: Update with info about MSVC 9.
8186         * doc/posix-headers/*.texi: Likewise.
8187         * doc/pastposix-functions/*.texi: Likewise.
8188         * doc/glibc-functions/*.texi: Likewise.
8189         * doc/glibc-headers/*.texi: Likewise.
8190
8191 2011-09-11  Bruno Haible  <bruno@clisp.org>
8192
8193         unistd et al.: Don't assume <unistd.h> exists.
8194         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
8195         does not exist.
8196         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
8197         exist. But include <stdlib.h>.
8198         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
8199         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
8200         symlink() does not exist.
8201         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
8202         include <io.h> instead.
8203         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
8204         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
8205         include <direct.h> instead.
8206         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8207         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8208         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
8209         <io.h> instead.
8210         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
8211         correctly if the system does not have hard links.
8212         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
8213         <direct.h> instead.
8214         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
8215         it when looking for function declarations.
8216         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
8217         <direct.h> and <io.h> instead.
8218         * doc/posix-headers/unistd.texi: More details about MSVC problem.
8219
8220 2011-09-11  Bruno Haible  <bruno@clisp.org>
8221
8222         strcase: Support for MSVC.
8223         * modules/strcase (Status, Notice): Remove obsoletion mark.
8224         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
8225         * doc/posix-functions/strncasecmp.texi: Likewise.
8226
8227         strings: Don't assume <strings.h> exists.
8228         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
8229         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
8230         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
8231         * doc/posix-headers/strings.texi: Mention the MSVC problem.
8232
8233 2011-09-11  Bruno Haible  <bruno@clisp.org>
8234
8235         dirent: Don't assume <dirent.h> exists.
8236         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
8237         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
8238         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
8239         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
8240
8241 2011-09-11  Bruno Haible  <bruno@clisp.org>
8242
8243         Fix wint_t on MSVC.
8244         * lib/wchar.in.h (wint_t): On MSVC, override it.
8245         * lib/wctype.in.h (wint_t): Likewise.
8246         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
8247         MSVC.
8248         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
8249         * doc/posix-headers/wctype.texi: Likewise.
8250
8251 2011-09-11  Bruno Haible  <bruno@clisp.org>
8252
8253         sys_types: Fix typo.
8254         * lib/sys_types.in.h: Fix typo in comment.
8255         Reported by Paul Eggert.
8256
8257         Support for MSVC compiler: Ensure size_t gets defined.
8258         * modules/strings (Depends-on): Add 'sys_types'.
8259         * modules/sys_uio (Depends-on): Likewise.
8260         * lib/sys_uio.in.h: Update comment.
8261
8262         C++ tests for module 'sys_types'.
8263         * modules/sys_types-c++-tests: New file.
8264         * tests/test-sys_types-c++.cc: New file.
8265
8266         Tests for module 'sys_types'.
8267         * modules/sys_types-tests: New file.
8268         * tests/test-sys_types.c: New file.
8269
8270         New module 'sys_types'.
8271         * lib/sys_types.in.h: New file.
8272         * m4/sys_types_h.m4: New file.
8273         * modules/sys_types: New file.
8274         * doc/posix-headers/sys_types.texi: Mention the new module and the
8275         size_t problem on MSVC 9.
8276
8277 2011-09-11  Bruno Haible  <bruno@clisp.org>
8278
8279         Support for MSVC compiler: Avoid division by a literal 0.
8280         * lib/math.in.h (NAN): Define through a function call also on MSVC.
8281         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
8282         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
8283         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
8284         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
8285         * tests/infinity.h: New file.
8286         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
8287         on MSVC.
8288         * tests/test-ceilf1.c: Include infinity.h.
8289         (main): Use Infinityf.
8290         * tests/test-ceil1.c: Include infinity.h.
8291         (main): Use Infinityd.
8292         * tests/test-ceill.c: Include infinity.h.
8293         (main): Use Infinityl.
8294         * tests/test-dprintf-posix.c: Include infinity.h.
8295         (test_function): Use Infinityd.
8296         * tests/test-floorf1.c: Include infinity.h.
8297         (main): Use Infinityf.
8298         * tests/test-floor1.c: Include infinity.h.
8299         (main): Use Infinityd.
8300         * tests/test-floorl.c: Include infinity.h.
8301         (main): Use Infinityl.
8302         * tests/test-fprintf-posix.c: Include infinity.h.
8303         (test_function): Use Infinityd.
8304         * tests/test-frexp.c: Include infinity.h.
8305         (main): Use Infinityd.
8306         * tests/test-frexpl.c: Include infinity.h.
8307         (main): Use Infinityl.
8308         * tests/test-isfinite.c: Include infinity.h.
8309         (test_isfinitef): Use Infinityf.
8310         (test_isfinited): Use Infinityd.
8311         (test_isfinitel): Use Infinityl.
8312         * tests/test-isinf.c: Include infinity.h.
8313         (test_isinff): Use Infinityf.
8314         (test_isinfd): Use Infinityd.
8315         (test_isinfl): Use Infinityl.
8316         * tests/test-isnan.c: Include infinity.h.
8317         (test_float): Use Infinityf.
8318         (test_double): Use Infinityd.
8319         (test_long_double): Use Infinityl.
8320         * tests/test-isnanf.h: Include infinity.h.
8321         (main): Use Infinityf.
8322         * tests/test-isnand.h: Include infinity.h.
8323         (main): Use Infinityd.
8324         * tests/test-isnanl.h: Include infinity.h.
8325         (main): Use Infinityl.
8326         * tests/test-ldexpl.c: Include infinity.h.
8327         (main): Use Infinityl.
8328         * tests/test-printf-posix.h: Include infinity.h.
8329         (test_function): Use Infinityd.
8330         * tests/test-roundf1.c: Include infinity.h.
8331         (main): Use Infinityf.
8332         * tests/test-round1.c: Include infinity.h.
8333         (main): Use Infinityd.
8334         * tests/test-roundl.c: Include infinity.h.
8335         (main): Use Infinityl.
8336         * tests/test-signbit.c: Include infinity.h.
8337         (test_signbitf): Use Infinityf.
8338         (test_signbitd): Use Infinityd.
8339         (test_signbitl): Use Infinityl.
8340         * tests/test-snprintf-posix.h: Include infinity.h.
8341         (test_function): Use Infinityd, Infinityl.
8342         * tests/test-sprintf-posix.h: Include infinity.h.
8343         (test_function): Use Infinityd, Infinityl.
8344         * tests/test-truncf1.c: Include infinity.h.
8345         (main): Use Infinityf.
8346         * tests/test-trunc1.c: Include infinity.h.
8347         (main): Use Infinityd.
8348         * tests/test-truncl.c: Include infinity.h.
8349         (main): Use Infinityl.
8350         * tests/test-vasnprintf-posix.c: Include infinity.h.
8351         (test_function): Use Infinityd, Infinityl.
8352         * tests/test-vasprintf-posix.c: Include infinity.h.
8353         (test_function): Use Infinityd, Infinityl.
8354         * modules/ceilf-tests (Files): Add tests/infinity.h.
8355         * modules/ceil-tests (Files): Likewise.
8356         * modules/ceill-tests (Files): Likewise.
8357         * modules/dprintf-posix-tests (Files): Likewise.
8358         * modules/floorf-tests (Files): Likewise.
8359         * modules/floor-tests (Files): Likewise.
8360         * modules/floorl-tests (Files): Likewise.
8361         * modules/fprintf-posix-tests (Files): Likewise.
8362         * modules/frexp-tests (Files): Likewise.
8363         * modules/frexp-nolibm-tests (Files): Likewise.
8364         * modules/frexpl-tests (Files): Likewise.
8365         * modules/frexpl-nolibm-tests (Files): Likewise.
8366         * modules/isfinite-tests (Files): Likewise.
8367         * modules/isinf-tests (Files): Likewise.
8368         * modules/isnan-tests (Files): Likewise.
8369         * modules/isnanf-tests (Files): Likewise.
8370         * modules/isnanf-nolibm-tests (Files): Likewise.
8371         * modules/isnand-tests (Files): Likewise.
8372         * modules/isnand-nolibm-tests (Files): Likewise.
8373         * modules/isnanl-tests (Files): Likewise.
8374         * modules/isnanl-nolibm-tests (Files): Likewise.
8375         * modules/ldexpl-tests (Files): Likewise.
8376         * modules/printf-posix-tests (Files): Likewise.
8377         * modules/roundf-tests (Files): Likewise.
8378         * modules/round-tests (Files): Likewise.
8379         * modules/roundl-tests (Files): Likewise.
8380         * modules/signbit-tests (Files): Likewise.
8381         * modules/snprintf-posix-tests (Files): Likewise.
8382         * modules/sprintf-posix-tests (Files): Likewise.
8383         * modules/truncf-tests (Files): Likewise.
8384         * modules/trunc-tests (Files): Likewise.
8385         * modules/truncl-tests (Files): Likewise.
8386         * modules/vasnprintf-posix-tests (Files): Likewise.
8387         * modules/vasprintf-posix-tests (Files): Likewise.
8388         * modules/vdprintf-posix-tests (Files): Likewise.
8389         * modules/vfprintf-posix-tests (Files): Likewise.
8390         * modules/vprintf-posix-tests (Files): Likewise.
8391         * modules/vsnprintf-posix-tests (Files): Likewise.
8392         * modules/vsprintf-posix-tests (Files): Likewise.
8393         * modules/xprintf-posix-tests (Files): Likewise.
8394
8395 2011-09-11  Bruno Haible  <bruno@clisp.org>
8396
8397         Ensure pid_t gets defined.
8398         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
8399         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
8400         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8401         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8402         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
8403         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
8404         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
8405         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8406         * tests/test-fcntl-h.c: Check that pid_t is defined.
8407         * tests/test-sched.c: Likewise.
8408         * tests/test-termios.c: Likewise.
8409         * tests/test-time.c: Likewise.
8410         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
8411         * doc/posix-headers/signal.texi: Likewise.
8412         * doc/posix-headers/sys_types.texi: Likewise.
8413         * doc/posix-headers/time.texi: Likewise.
8414
8415 2011-09-11  Bruno Haible  <bruno@clisp.org>
8416
8417         acl: Fix compilation on Solaris 10 (older version).
8418         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
8419         of ACE_EVERYONE.
8420         * lib/set-mode-acl.c (qset_acl): Likewise.
8421         Reported by Christian Jullien <eligis@orange.fr>.
8422
8423 2011-09-10  Bruno Haible  <bruno@clisp.org>
8424
8425         iconv, unsetenv: Add support for MSVC compiler.
8426         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
8427         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
8428
8429 2011-09-10  Bruno Haible  <bruno@clisp.org>
8430
8431         *printf: Add support for MSVC compiler.
8432         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
8433         handles the exception caused by the %n directive. When cross-compiling,
8434         guess no on native Windows.
8435         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
8436         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
8437         emulate it through vsnprintf.
8438         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
8439         * doc/posix-functions/dprintf.texi: Update documentation regarding
8440         MSVC 9.
8441         * doc/posix-functions/fprintf.texi: Likewise.
8442         * doc/posix-functions/printf.texi: Likewise.
8443         * doc/posix-functions/snprintf.texi: Likewise.
8444         * doc/posix-functions/sprintf.texi: Likewise.
8445         * doc/posix-functions/swprintf.texi: Likewise.
8446         * doc/posix-functions/vdprintf.texi: Likewise.
8447         * doc/posix-functions/vfprintf.texi: Likewise.
8448         * doc/posix-functions/vprintf.texi: Likewise.
8449         * doc/posix-functions/vsnprintf.texi: Likewise.
8450         * doc/posix-functions/vsprintf.texi: Likewise.
8451         * doc/glibc-functions/asprintf.texi: Likewise.
8452         * doc/glibc-functions/obstack_printf.texi: Likewise.
8453         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8454         * doc/glibc-functions/vasprintf.texi: Likewise.
8455
8456 2011-09-10  Bruno Haible  <bruno@clisp.org>
8457
8458         nocrash: Add support for native Windows.
8459         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
8460
8461 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
8462             Bruno Haible  <bruno@clisp.org>
8463
8464         absolute-header, include-next: Add support for MSVC compiler.
8465         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
8466         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
8467         directory separator in #line directives.
8468         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
8469         recognize also backslash as directory separator in #line directives.
8470
8471 2011-09-08  Jim Meyering  <meyering@redhat.com>
8472
8473         maint.mk: mark the post-release commit log with "maint: " prefix
8474         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
8475         one-line commit-log summary.
8476
8477 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
8478             Bruno Haible  <bruno@clisp.org>
8479
8480         Doc about crypt functions.
8481         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
8482         systems.
8483         * doc/posix-functions/encrypt.texi: Likewise.
8484         * doc/posix-functions/setkey.texi: Likewise.
8485
8486 2011-09-08  Simon Josefsson  <simon@josefsson.org>
8487
8488         * lib/gc.h: Fix copyright header.
8489
8490 2011-09-07  Bruno Haible  <bruno@clisp.org>
8491
8492         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
8493         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
8494         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
8495
8496 2011-09-07  Bruno Haible  <bruno@clisp.org>
8497
8498         openat: Work around compilation error with OSF/1 5.1 DTK cc.
8499         * lib/fopen.c: Use different syntax for include of <stdio.h>.
8500         * lib/freopen.c: Likewise.
8501         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
8502         * lib/lstat.c: Likewise.
8503         * lib/stat.c: Likewise.
8504         * lib/open.c: Use different syntax for include of <fcntl.h>.
8505         * lib/openat.c: Include fcntl.h again, explicitly.
8506
8507 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
8508
8509         parse-datetime: document the newly accepted format
8510         * doc/parse-datetime.texi (Combined date and time of day items):
8511         New section.
8512
8513 2011-09-06  Bruno Haible  <bruno@clisp.org>
8514
8515         acl: Fix a test failure on newer Solaris 10 with ZFS.
8516         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
8517         ENOSYS as no ACL.
8518         Reported by Jim Meyering.
8519
8520 2011-09-06  Bruno Haible  <bruno@clisp.org>
8521
8522         acl: Update for AIX >= 5.3 with NFS.
8523         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
8524         ENOSYS as no ACL.
8525
8526         acl: Fix a test failure on AIX >= 5.3 with NFS.
8527         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
8528         as no ACL.
8529
8530 2011-09-06  Bruno Haible  <bruno@clisp.org>
8531
8532         acl: Fix a test failure on IRIX 6.5 with NFS.
8533         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
8534         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
8535         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
8536         * lib/copy-acl.c (qcopy_acl): Likewise.
8537
8538 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
8539
8540         openat: port to AIX 7.1 with large files
8541         AIX 7.1 does a "#define openat open64at" if large files are in use,
8542         so we can't simply #undef openat.  Use the orig_openat trick (similar
8543         to orig_open in lib/open.c) to work around the problem.  Problem
8544         reported by Kevin Brott for GNU tar, in the thread containing
8545         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
8546         * lib/openat.c (__need_system_fcntl_h): Define first.
8547         Include <fcntl.h> and <sys/types.h> before undefining.
8548         (orig_openat) [HAVE_OPENAT]: New inline function.
8549         (openat) [HAVE_OPENAT]: Do not undef.
8550         (rpl_openat): Use orig_openat, not openat.
8551
8552 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
8553             Bruno Haible  <bruno@clisp.org>
8554
8555         acl: Avoid errors on NonStop Kernel.
8556         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
8557         ENOTSUP errors.
8558
8559 2011-09-05  Bruno Haible  <bruno@clisp.org>
8560
8561         acl: Clean up Solaris code.
8562         * lib/acl-internal.h: Remove no-op #if.
8563         * lib/file-has-acl.c: Likewise.
8564         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
8565         * lib/copy-acl.c (qcopy_acl): Likewise.
8566
8567 2011-09-05  Bruno Haible  <bruno@clisp.org>
8568
8569         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
8570         binaries built on the original Solaris 10.
8571         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
8572         trivial.
8573
8574 2011-09-05  Bruno Haible  <bruno@clisp.org>
8575
8576         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
8577         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
8578         10.
8579         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
8580         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
8581         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
8582         instead of acl_get, facl_get, acl_set, facl_set.
8583
8584 2011-09-05  Bruno Haible  <bruno@clisp.org>
8585
8586         copy-file: Try unit tests on more file systems.
8587         * tests/test-copy-file-1.sh: New file.
8588         * tests/test-copy-file-2.sh: New file.
8589         * modules/copy-file-tests (Files): Add them.
8590         (Makefile.am): Add them to TESTS.
8591
8592         acl: Try unit tests on more file systems.
8593         * tests/test-file-has-acl-1.sh: New file.
8594         * tests/test-file-has-acl-2.sh: New file.
8595         * tests/test-set-mode-acl-1.sh: New file.
8596         * tests/test-set-mode-acl-2.sh: New file.
8597         * tests/test-copy-acl-1.sh: New file.
8598         * tests/test-copy-acl-2.sh: New file.
8599         * modules/acl-tests (Files): Add them.
8600         (Makefile.am): Add them to TESTS.
8601
8602 2011-09-04  Bruno Haible  <bruno@clisp.org>
8603
8604         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
8605         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
8606         10.
8607         (OLD_ALLOW, OLD_DENY): New macros.
8608         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
8609         ACE_ACCESS_ALLOWED_ACE_TYPE.
8610         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
8611         ACE_ACCESS_DENIED_ACE_TYPE.
8612         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
8613         (NEW_ACE_EXECUTE): Fix value.
8614         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
8615         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
8616         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
8617         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
8618         NEW_ACE_SYNCHRONIZE): New macros.
8619         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
8620         instead of acl_fromtext, acl_set, facl_set.
8621         Fixes a coreutils/tests/cp/perm failure.
8622
8623 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
8624
8625         openat: test for fstatat (..., 0) bug
8626         Further testing with tar suggests that fstatat (..., 0)
8627         does not work in general, on AIX 7.1; see
8628         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
8629         So, give up entirely on AIX 7.1's fstatat, and fall back on our
8630         replacement fstatat (which is what older AIX releases were using
8631         anyway).
8632         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
8633         use is now changed to orig_fstatat.  This was probably the right
8634         thing to do anyway.
8635         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
8636         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
8637         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
8638         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
8639         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
8640         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
8641         if the bug is found.
8642
8643         openat: test for fstatat (AT_FDCWD, ..., 0) bug
8644         This tests for another fstatat bug on AIX 7.1:
8645         fstatat (AT_FDCWD, ..., 0) does not work.  See
8646         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
8647         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
8648         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
8649         (rpl_fstatat): Adjust so that it works around either (or both)
8650         bugs if present.
8651         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
8652
8653 2011-09-03  Karl Berry  <karl@gnu.org>
8654
8655         * doc/regex.texi (Character Class Operators): Avoid literal ":"
8656         in index entries.
8657
8658 2011-09-02  Bruno Haible  <bruno@clisp.org>
8659
8660         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
8661         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
8662         values of AR, ARFLAGS, RANLIB.
8663         Reported by John W. Eaton <jwe@gnu.org> for Octave.
8664
8665 2011-09-02  Bruno Haible  <bruno@clisp.org>
8666
8667         Find 'ar' program that fits with --host argument.
8668         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
8669
8670 2011-09-02  Bruno Haible  <bruno@clisp.org>
8671
8672         tests: init.sh: Support any non-GNU diff.
8673         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
8674         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
8675         Solaris 8.
8676
8677 2011-09-02  Bruno Haible  <bruno@clisp.org>
8678
8679         tests: init.sh: work also with any non-GNU diff that supports -u
8680         * tests/init.sh: Relax check for diff -u support.
8681         Rather than checking for GNU diff via --version, simply check
8682         for support for -u itself.  Useful at least on OpenBSD 4.9,
8683         AIX 7.1, IRIX 6.5, and Solaris 10.
8684
8685 2011-09-01  Bruno Haible  <bruno@clisp.org>
8686
8687         strtoimax, strtoumax: Document problem on HP-UX 11.
8688         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
8689         * doc/posix-functions/strtoumax.texi: Likewise.
8690
8691 2011-09-01  Bruno Haible  <bruno@clisp.org>
8692
8693         strtoumax: Avoid link error on OSF/1 with DTK cc.
8694         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
8695         defined as a function.
8696         * modules/strtoumax (Depends-on, configure.ac): Test only whether
8697         strtoumax is defined, not whether it is declared.
8698
8699 2011-09-01  Bruno Haible  <bruno@clisp.org>
8700
8701         strtoimax: Avoid link error on OSF/1 with DTK cc.
8702         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
8703         defined as a function.
8704         * modules/strtoimax (Depends-on, configure.ac): Test only whether
8705         strtoimax is defined, not whether it is declared.
8706
8707 2011-09-01  Bruno Haible  <bruno@clisp.org>
8708
8709         imaxdiv: Avoid link error on OSF/1 with DTK cc.
8710         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
8711         as a function.
8712         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
8713         whether it is declared.
8714
8715 2011-09-01  Bruno Haible  <bruno@clisp.org>
8716
8717         imaxabs: Avoid link error on OSF/1 with DTK cc.
8718         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
8719         as a function.
8720         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
8721         whether it is declared.
8722
8723 2011-09-01  Bruno Haible  <bruno@clisp.org>
8724
8725         Tests for module 'strtoumax'.
8726         * modules/strtoumax-tests: New file.
8727         * tests/test-strtoumax.c: New file.
8728
8729         Tests for module 'strtoimax'.
8730         * modules/strtoimax-tests: New file.
8731         * tests/test-strtoimax.c: New file.
8732
8733         Tests for module 'imaxdiv'.
8734         * modules/imaxdiv-tests: New file.
8735         * tests/test-imaxdiv.c: New file.
8736
8737         Tests for module 'imaxabs'.
8738         * modules/imaxabs-tests: New file.
8739         * tests/test-imaxabs.c: New file.
8740
8741 2011-09-01  Bruno Haible  <bruno@clisp.org>
8742
8743         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
8744         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
8745         pthread_create.
8746
8747 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8748
8749         openat: work around AIX 7.1 fstatat issue
8750         This should fix the problem that was not properly fixed
8751         in the previous change, dated 2011-08-30.
8752         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
8753         __need_system_stat_h defined.
8754         (orig_fstatat) [HAVE_FSTATAT]: New function.
8755         (rpl_fstatat): Go back to the old way of doing things,
8756         except call orig_fstatat instead of fstatat.
8757         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
8758         Remove unnecessary check whether fstatat fills in st_size etc.
8759
8760 2011-09-01  Bruno Haible  <bruno@clisp.org>
8761
8762         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
8763         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
8764         just include the system's header.
8765
8766 2011-08-31  Jim Meyering  <meyering@redhat.com>
8767
8768         tests: avoid spurious assertion failure in test-float.c on ppc64
8769         * tests/test-float.c (test_long_double): Comment out an assertion,
8770         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
8771         with gcc-4.4.4.
8772
8773         maint: indent with spaces, not TABs
8774         I need to get in the habit of running gnulib's "make check".
8775         Both of these would have been caught.
8776         * m4/largefile.m4: Indent with spaces, not TABs.
8777         * lib/parse-datetime.y (iso_8601_time): Likewise.
8778         Spotted by Pádraig Brady.
8779
8780         test-parse-datetime.c: accommodate a relatively strict gcc warning
8781         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
8782         to avoid a warning from gcc's -Werror=missing-declarations.
8783         Insert a few spaces-before-funcall-parenthesis.
8784
8785 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
8786
8787         parse-datetime: accept ISO 8601 date and time rep with "T" separator
8788         The parser now accepts ISO 8601 date-time strings with "T" as the
8789         separator.  It has long parsed dates like "2004-02-29 16:21:42"
8790         with a space between the date and time strings.  Now it also parses
8791         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
8792         variants like "2004-02-29T16:21:42.333-07:00"
8793         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
8794         of day representation using the 'T' separator character.
8795         * doc/parse-datetime.texi (General date syntax): replace use of
8796         deprecated --iso-8601 option with --rfc-3339 in example of date
8797         command output formats that can be parsed.
8798         * tests/test-parse-datetime.c (tm_diff): New function, taken from
8799         lib/parse-datetime.y.
8800         (gmt_offset): New function.
8801         (main): Add additional test cases to validate ISO8601 extended
8802         date and time of day parsing.
8803
8804 2011-08-31  Bruno Haible  <bruno@clisp.org>
8805
8806         freopen: Documentation.
8807         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
8808         name.
8809         Reported by Claudio Bley <claudio.bley@gmail.com>.
8810
8811 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
8812
8813         freopen: Don't crash if the filename argument is NULL.
8814         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
8815         NULL.
8816
8817 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
8818
8819         openat: work around AIX 7.1 fstatat bug
8820         Problem reported by Kevin Brott for GNU tar, in the thread containing
8821         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
8822         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
8823         FSTATAT_ST_SIZE_ETC_BROKEN.
8824         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
8825         rpl_fstatat.
8826         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
8827         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
8828         AC_CHECK_FUNCS_ONCE for fstatat.
8829         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
8830         fchmodat, mkdirat, openat and unlinkat.
8831
8832 2011-08-30  Bruno Haible  <bruno@clisp.org>
8833
8834         Avoid endless recursions if config.h includes some header files.
8835         * lib/fopen.c (__need_FILE): Define already before including config.h.
8836         * lib/freopen.c (__need_FILE): Likewise.
8837         * lib/open.c (__need_system_fcntl_h): Likewise.
8838         * lib/stat.c (__need_system_sys_stat_h): Likewise.
8839         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
8840         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8841
8842 2011-08-25  Karl Berry  <karl@gnu.org>
8843
8844         * config/srclist.txt (ylwrap): new try.
8845         * build-aux/ylwrap: new file.
8846
8847 2011-08-23  Bruno Haible  <bruno@clisp.org>
8848
8849         tmpdir: Use a good default directory on native Windows.
8850         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
8851         (P_tmpdir): Default to _P_tmpdir on native Windows.
8852         (path_search): On native Windows, try the value returned by GetTempPath
8853         before trying P_tmpdir.
8854         * modules/tmpdir (Depends-on): Add pathmax.
8855         Suggested by John Darrington <john@darrington.wattle.id.au>.
8856
8857 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
8858
8859         doc: fix typo in README-release
8860         * top/README-release: Capitalize first word of a sentence.
8861
8862 2011-08-19  Jim Meyering  <meyering@redhat.com>
8863
8864         fts: do not exhaust memory when processing million-entry directories
8865         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
8866         directory would require about 256*N bytes of memory.  Thus, it was
8867         easy to construct a directory too large to be processed by any of
8868         those tools.  With this change, fts' maximum memory utilization is
8869         now limited to around 30MB.
8870         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
8871         (fts_read): When we've processed the final entry (i.e., when
8872         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
8873         using the parent entry to read any remaining entries.  Dispatch
8874         depending on what fts_build returns:
8875         - NULL+stop, aka failure: stop
8876         - NULL otherwise: move up in the dir hierarchy
8877         - non-NULL: handle this new entry
8878         (fts_build): Declare and use new local, continue_readdir.
8879         Prepare to be called from fts_read, when the entries
8880         from a partially-read directory have just been exhausted.
8881         In that case, we'll skip the opendir and instead use the parent's
8882         fts_dirp and derive dir_fd from that.
8883         Finally, in the readdir loop, if we read max_entries entries,
8884         exit the loop ensuring *not* to call closedir.  This is required
8885         so that fts_dirp can be reused on a subsequent call.
8886         Prompted by Ben England's report of memory exhaustion in find
8887         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
8888
8889         maint: fts: move decl of `dp' down into while loop; split a long line
8890         * lib/fts.c (fts_build): No semantic change.
8891
8892         fts: add/use new struct member, fts_dirp
8893         We are about to use this to manage any directory with
8894         too many entries to read all of them into memory at once.
8895         To do that, we'll need to save the DIR* pointer in each
8896         affected FTSENT struct.
8897         * lib/fts_.h: Include <dirent.h>.
8898         (struct FTSENT) [fts_dirp]: New member.
8899         * lib/fts.c (closedir_and_clear): Define.
8900         Use it in place of closedir so that we are sure to
8901         clear the new fts_dirp member when done with it.
8902         (fts_alloc): Initialize the new member.
8903         (fts_lfree): Free, if needed.
8904
8905         maint: fts: give __opendir2 a new parameter and rename
8906         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
8907         than surreptitiously using sole caller's "dir_fd".
8908         (fts_opendir): Rename from __opendir2.
8909
8910         maint: fts.c: remove __opendir2's now-unused parameter, oflag
8911         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
8912
8913         maint: fts.c: correct off-by-one indentation
8914         * lib/fts.c (fts_build): Correct indentation, change style
8915         of a couple of block comments, and bracing style.
8916
8917         maint: fts.c: move __opendir2 #define "up" out of function body
8918         * lib/fts.c (__opendir2): Move "up".  No semantic change.
8919
8920         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
8921         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
8922         out for a long time and besides was useful only on BSD systems.
8923
8924 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
8925
8926         regex: port to Stratus OpenVOS
8927         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
8928         define to empty, rather than attempting nonportable optimizations.
8929         Problem reported by Paul Green in:
8930         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
8931         and fix suggested by Eric Blake in:
8932         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
8933
8934 2011-08-17  Eric Blake  <eblake@redhat.com>
8935
8936         getcwd: fix test failures on mingw
8937         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
8938         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
8939         test if long directory cannot be created, and allow mingw errno.
8940
8941         getcwd-lgpl: fix m4 to match relaxed test for BSD
8942         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
8943         (gl_FUNC_GETCWD_SIGNATURE): New macro.
8944         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
8945         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
8946         signature problem.
8947
8948         getcwd: fix compilation on mingw64
8949         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
8950         getcwd.
8951         Reported by Marc-André Lureau.
8952
8953         pipe2: silence compiler warning
8954         * lib/pipe2.c (pipe2): Hide label if it is not used.
8955
8956 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
8957
8958         relocatable-prog: fix link error
8959         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
8960         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
8961         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
8962         into modules/relocatable-lib without noticing that
8963         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
8964         also needs to build relocatable.c.
8965
8966 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
8967
8968         getaddrinfo: fix sh typo in gai_strerrorA decl checking
8969         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
8970         shell code: it contained a 'break' that was not in a loop.
8971         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
8972         via a shell-language loop; this may have been true in old Autoconf
8973         versions, but it's not true in Autoconf 2.68.  I found this bug
8974         when testing coreutils git on Solaris 8, whose shell complains
8975         about the syntax error.
8976
8977 2011-08-12  Simon Josefsson  <simon@josefsson.org>
8978
8979         * lib/base64.c: Fix comment to reference RFC 4648.
8980         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
8981         <gvtulder@gmail.com>.
8982
8983 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
8984
8985         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
8986
8987         po/Makefile.in.in: fix make -q problem
8988         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
8989         rule, since there's no file named 'check-macro-version' and its
8990         use as a file breaks make -q.
8991         (all): Don't depend on check-macro-version.
8992         (CHECK_MACRO_VERSION): New macro.
8993         (stamp-po): Use it.
8994
8995         configmake: fix make -q problem
8996         * modules/configmake (configmake.h): Update configmake.h's time stamp
8997         even if the file does not change.  Otherwise, 'make -q' fails.
8998         Problem reported by Simon Josefsson in
8999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
9000
9001 2011-08-11  Jim Meyering  <meyering@redhat.com>
9002
9003         git-version-gen: correct the advice in a comment
9004         * build-aux/git-version-gen: Correct comment.
9005         Don't recommend to list .tarball-version in .gitignore.
9006
9007 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9008
9009         base64: fix off-by-one buffer size bug
9010         Problem and (trivial) fix reported by Gijs van Tulder in
9011         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
9012         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
9013         * tests/test-base64.c (main): Catch the bug.
9014
9015 2011-08-10  Eric Blake  <eblake@redhat.com>
9016
9017         closein: correct comments
9018         * lib/closein.c (close_stdin): Improve comments.
9019
9020 2011-08-09  Bruno Haible  <bruno@clisp.org>
9021
9022         More tests for 'fseeko'.
9023         * tests/test-fseeko3.c: New file, from Eric Blake.
9024         * tests/test-fseeko3.sh: New file.
9025         * modules/fseeko-tests (Files): Add them.
9026         (TESTS): Add test-fseeko3.sh.
9027         (check_PROGRAMS): Add test-fseeko3.
9028
9029 2011-08-09  Eric Blake  <eblake@redhat.com>
9030
9031         fseeko: remove unneeded hack
9032         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
9033
9034         fseeko: fix bug on glibc
9035         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
9036         Reported by John W. Eaton.
9037
9038 2011-08-08  Bruno Haible  <bruno@clisp.org>
9039
9040         unictype/base: Fix interoperability with preinstalled libunistring.
9041         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
9042         Reported by Simon Josefsson.
9043
9044 2011-08-08  Bruno Haible  <bruno@clisp.org>
9045
9046         iswblank: Detect declaration correctly.
9047         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
9048         AC_CHECK_DECLS invocation.
9049
9050 2011-08-08  Bruno Haible  <bruno@clisp.org>
9051
9052         tcgetsid: Detect declaration correctly.
9053         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
9054         AC_CHECK_DECLS invocation.
9055         Reported by Simon Josefsson.
9056
9057 2011-08-08  Eric Blake  <eblake@redhat.com>
9058
9059         largefile: fix typo that regressed large file support
9060         * modules/largefile (configure.ac-early): Fix section name.
9061
9062 2011-08-06  Karl Berry  <karl@gnu.org>
9063
9064         * MODULES.html.sh (func_all_files): _Noreturn is no longer
9065         a separate module.
9066
9067 2011-08-05  Simon Josefsson  <simon@josefsson.org>
9068
9069         openat: Fix warnings and commens when building unlinkat.c on Hurd.
9070         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
9071         get prototype for free.
9072
9073 2011-08-04  Bruno Haible  <bruno@clisp.org>
9074
9075         Tests for module 'pathmax'.
9076         * modules/pathmax-tests: New file.
9077         * tests/test-pathmax.c: New file.
9078
9079         canonicalize-lgpl: Support larger filenames on the Hurd.
9080         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
9081         Reported by Paul Eggert.
9082
9083         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
9084         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
9085         * lib/chdir-long.h: Include pathmax.h.
9086         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
9087         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
9088         (PATH_MAX): Remove code that is done by pathmax.h.
9089         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
9090         * lib/tmpfile.c: Add a comment.
9091         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
9092         * modules/chdir-long (Depends-on): Add pathmax.
9093         * modules/getcwd (Depends-on): Add pathmax.
9094         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
9095         is not defined.
9096         * doc/posix-headers/limits.texi: Mention the pathmax module.
9097         * NEWS: Mention the change.
9098
9099 2011-08-02  Bruno Haible  <bruno@clisp.org>
9100
9101         pthread_sigmask: Actually use results of gl_THREADLIB.
9102         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
9103         gl_THREADLIB, not gl_[]THREADLIB.
9104         Reported by Eric Blake.
9105
9106 2011-08-02  Jim Meyering  <meyering@redhat.com>
9107
9108         maint.mk: relax the default _gl_TS_function_match regexp
9109         * top/maint.mk (_gl_TS_function_match): Don't require at least one
9110         space between function name and "(" in an "extern" declaration.
9111         That would fail to match a decl with no space there: extern void foo();
9112
9113 2011-07-31  Iain Nicol  <iain@thenicols.net>
9114
9115         git-version-gen: document that EXTRA_DIST must include .version
9116         * build-aux/git-version-gen: In the how-to-use comment, document
9117         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
9118         will fail when run from an unpacked distribution tarball.
9119
9120 2011-08-01  Bruno Haible  <bruno@clisp.org>
9121
9122         wctype-h: Fix last change.
9123         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
9124         REPLACE_TOWLOWER to 0.
9125         Reported by Sam Steingold <sds@gnu.org>.
9126
9127 2011-07-31  Bruno Haible  <bruno@clisp.org>
9128
9129         frexpl: Update autoconf test.
9130         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
9131         according to changes of 2011-06-20.
9132
9133 2011-07-31  Bruno Haible  <bruno@clisp.org>
9134
9135         sys_utsname: Add support for Minix.
9136         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
9137         <sys/utsname.h>.
9138         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9139         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
9140
9141 2011-07-31  Bruno Haible  <bruno@clisp.org>
9142
9143         strings: Add support for Minix.
9144         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
9145         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9146         * doc/posix-headers/strings.texi: Document the Minix problem.
9147
9148 2011-07-31  Bruno Haible  <bruno@clisp.org>
9149
9150         wctype-h: Add support for Minix.
9151         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
9152         REPLACE_TOWLOWER.
9153         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
9154         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
9155         REPLACE_ISWCNTRL.
9156
9157 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
9158
9159         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
9160         This is a performance improvement for 64-bit hosts: it causes the
9161         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
9162
9163 2011-07-31  Bruno Haible  <bruno@clisp.org>
9164
9165         stdioext: Add support for Minix.
9166         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
9167         * lib/fpurge.c (fpurge): Likewise.
9168         * lib/freadahead.c (freadahead): Likewise.
9169         * lib/freadable.c (freadable): Likewise.
9170         * lib/freading.c (freading): Likewise.
9171         * lib/freadptr.c (freadptr): Likewise.
9172         * lib/freadseek.c (freadptrinc): Likewise.
9173         * lib/fseeko.c (rpl_fseeko): Likewise.
9174         * lib/fseterr.c (fseterr): Likewise.
9175         * lib/fwritable.c (fwritable): Likewise.
9176         * lib/fwriting.c (fwriting): Likewise.
9177         * lib/fflush.c (clear_ungetc_buffer): Update comment.
9178         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
9179
9180 2011-07-31  Bruno Haible  <bruno@clisp.org>
9181
9182         errno: Port to Minix.
9183         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
9184         ECONNABORTED are defined.
9185         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
9186         GNULIB_defined_ECONNABORTED): New macros.
9187         * lib/strerror-override.h (strerror_override): Test also
9188         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
9189         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
9190         ECONNABORTED.
9191         * doc/posix-headers/errno.texi: Mention the Minix problem.
9192
9193 2011-07-31  Bruno Haible  <bruno@clisp.org>
9194
9195         Work around declaration collisions on Minix.
9196         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
9197         defined, set REPLACE_MBSINIT.
9198         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
9199         defined, set REPLACE_MBRTOWC.
9200         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
9201         set REPLACE_MBRLEN.
9202         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
9203         defined, set REPLACE_MBSRTOWCS.
9204         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
9205         defined, set REPLACE_WCRTOMB.
9206         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
9207         defined, set REPLACE_WCSRTOMBS.
9208
9209 2011-07-31  Bruno Haible  <bruno@clisp.org>
9210
9211         Add support for Minix with ACK compiler.
9212         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
9213         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
9214         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
9215
9216 2011-07-31  Bruno Haible  <bruno@clisp.org>
9217
9218         Documentation about Minix.
9219         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
9220         * doc/glibc-headers/*.texi: Likewise.
9221         * doc/posix-functions/*.texi: Likewise.
9222         * doc/glibc-functions/*.texi: Likewise.
9223
9224 2011-07-31  Bruno Haible  <bruno@clisp.org>
9225
9226         snippet/warn-on-use: Fix indentation.
9227         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
9228
9229 2011-07-25  Jim Meyering  <meyering@redhat.com>
9230
9231         tests: test-update-copyright.sh: remove unnecessary "rm" commands
9232         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
9233         commands.
9234
9235 2011-07-27  Jim Meyering  <meyering@redhat.com>
9236
9237         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
9238         * top/maint.mk (gl_extract_significant_defines_): Now that
9239         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
9240         gnulib/lib/signal.in.h, and now that we recommend to
9241         define-if-undefined those two symbols in application code,
9242         we must filter them out of the "significant" list.
9243         This avoids a "make syntax-check" failure in coreutils.
9244
9245 2011-07-26  Eric Blake  <eblake@redhat.com>
9246
9247         warnings: add comments about previous patch
9248         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
9249         * m4/include_next.m4: Likewise.
9250         * m4/warn-on-use.m4: Likewise.
9251         * m4/warnings.m4: Likewise, and simplify use.
9252         Suggested by Stefano Lattarini.
9253
9254         include-next, warnings: support older autoconf
9255         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
9256         AS_VAR_PUSHDEF in a way that works with older autoconf.
9257         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
9258         Reported by Daniel P. Berrange.
9259
9260 2011-07-25  Bruno Haible  <bruno@clisp.org>
9261
9262         fseek, ftell: Fix doc.
9263         * doc/posix-functions/fseek.texi: Reword statement about
9264         AC_SYS_LARGEFILE.
9265         * doc/posix-functions/ftell.texi: Likewise.
9266
9267 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9268             Bruno Haible  <bruno@clisp.org>
9269
9270         Add dependencies to the 'largefile' module.
9271         * modules/fopen (Depends-on): Add 'largefile'.
9272         * modules/freopen (Depends-on): Likewise.
9273         * modules/fseeko (Depends-on): Likewise.
9274         * modules/ftello (Depends-on): Likewise.
9275         * modules/glob (Depends-on): Likewise.
9276         * modules/lseek (Depends-on): Likewise.
9277         * modules/lstat (Depends-on): Likewise.
9278         * modules/mkostemp (Depends-on): Likewise.
9279         * modules/mkostemps (Depends-on): Likewise.
9280         * modules/mkstemp (Depends-on): Likewise.
9281         * modules/mkstemps (Depends-on): Likewise.
9282         * modules/open (Depends-on): Likewise.
9283         * modules/openat (Depends-on): Likewise.
9284         * modules/pread (Depends-on): Likewise.
9285         * modules/pwrite (Depends-on): Likewise.
9286         * modules/scandir (Depends-on): Likewise.
9287         * modules/stat (Depends-on): Likewise.
9288         * modules/tmpfile (Depends-on): Likewise.
9289         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
9290         since the containing module now depends on the largefile module.
9291         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
9292         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
9293         off_t is fixed by gnulib.
9294         * doc/posix-functions/freopen.texi: Likewise.
9295         * doc/posix-functions/fseeko.texi: Likewise.
9296         * doc/posix-functions/fstatat.texi: Likewise.
9297         * doc/posix-functions/ftello.texi: Likewise.
9298         * doc/posix-functions/glob.texi: Likewise.
9299         * doc/posix-functions/lseek.texi: Likewise.
9300         * doc/posix-functions/lstat.texi: Likewise.
9301         * doc/posix-functions/mkstemp.texi: Likewise.
9302         * doc/posix-functions/open.texi: Likewise.
9303         * doc/posix-functions/openat.texi: Likewise.
9304         * doc/posix-functions/pread.texi: Likewise.
9305         * doc/posix-functions/pwrite.texi: Likewise.
9306         * doc/posix-functions/scandir.texi: Likewise.
9307         * doc/posix-functions/stat.texi: Likewise.
9308         * doc/posix-functions/tmpfile.texi: Likewise.
9309         * doc/glibc-functions/mkostemp.texi: Likewise.
9310         * doc/glibc-functions/mkostemps.texi: Likewise.
9311         * doc/glibc-functions/mkstemps.texi: Likewise.
9312
9313 2011-07-25  Bruno Haible  <bruno@clisp.org>
9314
9315         fcntl: Move AC_LIBOBJ invocation to module description.
9316         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
9317         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
9318
9319         fcntl: Remove call-in from fchdir.m4.
9320         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
9321         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
9322
9323         dup3: Remove potential call-in from fchdir.m4.
9324         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
9325         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
9326
9327         dup2: Move AC_LIBOBJ invocation to module description.
9328         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
9329         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
9330         Don't invoke AC_LIBOBJ.
9331         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
9332
9333         dup2: Remove call-in from fchdir.m4.
9334         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
9335         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
9336
9337         fclose: Move AC_LIBOBJ invocation to module description.
9338         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
9339         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
9340         to 1.
9341         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
9342
9343         fclose: Remove call-in from close.m4.
9344         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
9345         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
9346
9347         close: Move AC_LIBOBJ invocation to module description.
9348         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
9349         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
9350         1.
9351         * modules/close (configure.ac): Invoke AC_LIBOBJ.
9352
9353         close: Remove call-in from fchdir.m4.
9354         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
9355         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
9356
9357         open: Move AC_LIBOBJ invocation to module description.
9358         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
9359         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
9360         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
9361
9362         open: Remove call-in from fchdir.m4.
9363         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
9364         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
9365
9366         fchdir: Start to remove gl_REPLACE_* idiom.
9367         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
9368         (gl_FUNC_FCHDIR): Invoke it.
9369
9370 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9371
9372         * lib/ftell.c (ftell): Comment out cast.
9373
9374         close: use gl_REPLACE_FCLOSE only if defined
9375         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
9376         is defined.  The close module doesn't depend on the fclose module
9377         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
9378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
9379         I reproduced the problem with "./gnulib-tool --test close sys_socket".
9380
9381 2011-07-24  Jim Meyering  <meyering@redhat.com>
9382
9383         test-select.h: avoid warning when using gcc's -Wmissing-declarations
9384         * tests/test-select.h (test_function): Declare as "static".
9385
9386 2011-07-24  Bruno Haible  <bruno@clisp.org>
9387
9388         doc: Mention the effects of AC_SYS_LARGEFILE.
9389         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
9390         on this function.
9391         * doc/posix-functions/aio_error.texi: Likewise.
9392         * doc/posix-functions/aio_fsync.texi: Likewise.
9393         * doc/posix-functions/aio_read.texi: Likewise.
9394         * doc/posix-functions/aio_return.texi: Likewise.
9395         * doc/posix-functions/aio_suspend.texi: Likewise.
9396         * doc/posix-functions/aio_write.texi: Likewise.
9397         * doc/posix-functions/fgetpos.texi: Likewise.
9398         * doc/posix-functions/fopen.texi: Likewise.
9399         * doc/posix-functions/freopen.texi: Likewise.
9400         * doc/posix-functions/fsetpos.texi: Likewise.
9401         * doc/posix-functions/fstatvfs.texi: Likewise.
9402         * doc/posix-functions/ftruncate.texi: Likewise.
9403         * doc/posix-functions/ftw.texi: Likewise.
9404         * doc/posix-functions/getrlimit.texi: Likewise.
9405         * doc/posix-functions/glob.texi: Likewise.
9406         * doc/posix-functions/lio_listio.texi: Likewise.
9407         * doc/posix-functions/lockf.texi: Likewise.
9408         * doc/posix-functions/mkstemp.texi: Likewise.
9409         * doc/posix-functions/mmap.texi: Likewise.
9410         * doc/posix-functions/nftw.texi: Likewise.
9411         * doc/posix-functions/openat.texi: Likewise.
9412         * doc/posix-functions/opendir.texi: Likewise.
9413         * doc/posix-functions/posix_fadvise.texi: Likewise.
9414         * doc/posix-functions/posix_fallocate.texi: Likewise.
9415         * doc/posix-functions/pread.texi: Likewise.
9416         * doc/posix-functions/pwrite.texi: Likewise.
9417         * doc/posix-functions/readdir.texi: Likewise.
9418         * doc/posix-functions/readdir_r.texi: Likewise.
9419         * doc/posix-functions/rewinddir.texi: Likewise.
9420         * doc/posix-functions/scandir.texi: Likewise.
9421         * doc/posix-functions/seekdir.texi: Likewise.
9422         * doc/posix-functions/setrlimit.texi: Likewise.
9423         * doc/posix-functions/statvfs.texi: Likewise.
9424         * doc/posix-functions/telldir.texi: Likewise.
9425         * doc/posix-functions/tmpfile.texi: Likewise.
9426         * doc/posix-functions/truncate.texi: Likewise.
9427         * doc/glibc-functions/fallocate.texi: Likewise.
9428         * doc/glibc-functions/fstatfs.texi: Likewise.
9429         * doc/glibc-functions/fts_children.texi: Likewise.
9430         * doc/glibc-functions/fts_read.texi: Likewise.
9431         * doc/glibc-functions/getdirentries.texi: Likewise.
9432         * doc/glibc-functions/mkostemp.texi: Likewise.
9433         * doc/glibc-functions/mkostemps.texi: Likewise.
9434         * doc/glibc-functions/mkstemps.texi: Likewise.
9435         * doc/glibc-functions/preadv.texi: Likewise.
9436         * doc/glibc-functions/pwritev.texi: Likewise.
9437         * doc/glibc-functions/sendfile.texi: Likewise.
9438         * doc/glibc-functions/statfs.texi: Likewise.
9439
9440 2011-07-24  Bruno Haible  <bruno@clisp.org>
9441
9442         doc: Fix typo.
9443         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
9444
9445 2011-07-24  Bruno Haible  <bruno@clisp.org>
9446
9447         doc: Mention fsusage.
9448         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
9449
9450 2011-07-24  Bruno Haible  <bruno@clisp.org>
9451
9452         doc: Mention new glibc headers and functions.
9453         * doc/glibc-headers/gshadow.texi: New file.
9454         * doc/glibc-functions/endsgent.texi: New file.
9455         * doc/glibc-functions/fgetsgent.texi: New file.
9456         * doc/glibc-functions/fgetsgent_r.texi: New file.
9457         * doc/glibc-functions/getsgent.texi: New file.
9458         * doc/glibc-functions/getsgent_r.texi: New file.
9459         * doc/glibc-functions/getsgnam.texi: New file.
9460         * doc/glibc-functions/getsgnam_r.texi: New file.
9461         * doc/glibc-functions/putsgent.texi: New file.
9462         * doc/glibc-functions/setsgent.texi: New file.
9463         * doc/glibc-functions/sgetsgent.texi: New file.
9464         * doc/glibc-functions/sgetsgent_r.texi: New file.
9465         * doc/glibc-functions/malloc_info.texi: New file.
9466         * doc/glibc-functions/preadv.texi: New file.
9467         * doc/glibc-functions/pwritev.texi: New file.
9468         * doc/glibc-functions/register_printf_modifier.texi: New file.
9469         * doc/glibc-functions/register_printf_specifier.texi: New file.
9470         * doc/glibc-functions/register_printf_type.texi: New file.
9471         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
9472         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
9473         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
9474         * doc/glibc-functions/pthread_getname_np.texi: New file.
9475         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
9476         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
9477         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
9478         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
9479         * doc/glibc-functions/pthread_setname_np.texi: New file.
9480         * doc/glibc-functions/pthread_sigqueue.texi: New file.
9481         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
9482         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
9483         * doc/glibc-functions/qsort_r.texi: New file.
9484         * doc/glibc-functions/quick_exit.texi: New file.
9485         * doc/glibc-functions/syncfs.texi: New file.
9486         * doc/gnulib.texi: Include them.
9487         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
9488         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
9489         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
9490         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
9491         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
9492         * doc/glibc-functions/execvpe.texi: Likewise.
9493
9494 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
9495
9496         ftell: don't include <unistd.h>
9497         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
9498         guaranteed to define off_t, and the ftell module depends on the
9499         stdio module.
9500
9501         ftell: do not assume wraparound signed arithmetic
9502         * lib/ftell.c: Include <limits.h>.
9503         (ftell): Don't assume wraparound signed arithmetic.
9504
9505 2011-07-24  Bruno Haible  <bruno@clisp.org>
9506
9507         close: No longer depend on module 'fclose'.
9508         * modules/close (Depends-on): Remove fclose.
9509         * NEWS: Mention the change.
9510         Suggested by Sam Steingold <sds@gnu.org>.
9511
9512 2011-07-24  Bruno Haible  <bruno@clisp.org>
9513
9514         fsusage: Enable large volume support on AIX >= 5.2.
9515         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
9516         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
9517         instead of STAT_STATVFS.
9518         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
9519
9520         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
9521         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
9522         f_blocks field only on MacOS X.
9523
9524         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
9525         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
9526         * modules/fsusage (Depends-on): Add largefile.
9527
9528 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
9529
9530         * README: Modernize discussion of signed integers.
9531         Assuming overflow wraparound is no longer safe.
9532         Mention ones' complement and signed magnitude.
9533
9534 2011-07-22  Bruno Haible  <bruno@clisp.org>
9535
9536         select tests, pselect tests: Refactor.
9537         * tests/test-select.h: New file, extracted from tests/test-select.c.
9538         (select_fn): New type.
9539         (test, do_select, do_select_nowait, do_select_wait, test_tty,
9540         test_connect_first, test_accept_first, test_pair, test_socket_pair,
9541         test_pipe): Add my_select argument.
9542         (test_function): Renamed from main. Add my_select argument.
9543         * tests/test-select.c: Move most code to tests/test-select.h. Include
9544         test-select.h.
9545         * modules/select-tests (Files): Add tests/test-select.h.
9546         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
9547         (my_select, main): New functions.
9548         * modules/pselect-tests (Files): Add tests/test-select.h,
9549         tests/macros.h, tests/signature.h.
9550         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
9551         (configure.ac): Check for <sys/wait.h>.
9552
9553 2011-07-22  Bruno Haible  <bruno@clisp.org>
9554
9555         sys_select tests: Check the signature of FD_*.
9556         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
9557         signature tests from here...
9558         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
9559         here.
9560         * modules/sys_select-tests (Files): Add tests/signature.h.
9561
9562 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
9563
9564         largefile: new module, replacing large-inode
9565         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
9566         * MODULES.html.sh: Add largefile, remove large-inode.
9567         * modules/largefile, m4/largefile.m4: New files.
9568         * modules/large-inode, m4/large-inode.m4: Remove.
9569
9570         fsusage: port to MacOS X 10.7 with 4 TiB file systems
9571         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
9572         implementations that use only 32 bits to count blocks.
9573         On typical hosts with 1024-byte blocks, this fails with file
9574         systems as small as 4 TiB.  Problem reported by Herb Wartens
9575         <http://debbugs.gnu.org/9140> and this should also fix a similar
9576         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
9577
9578         large-inode: New module
9579         * MODULES.html.sh: Add it.
9580         * modules/large-inode, m4/large-inode.m4: New files.
9581
9582         extensions: Enable extensions on MacOS X 10.5 and later.
9583         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
9584
9585 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
9586
9587         file-has-acl: use acl_extended_file_nofollow if available
9588         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
9589         (acl_extended_file): New macro.
9590         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
9591         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
9592
9593 2011-07-21  Bruno Haible  <bruno@clisp.org>
9594
9595         Declare system functions in a way that works with C++.
9596         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
9597         declare fdopendir as extern "C".
9598         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
9599         declare frexpl as extern "C".
9600         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
9601         declare gai_strerror as extern "C".
9602         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
9603         programs, declare gai_strerror as extern "C".
9604         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
9605         declare getlogin_r as extern "C".
9606         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
9607         as extern "C".
9608         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
9609         declare ldexpl as extern "C".
9610         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
9611         as extern "C".
9612         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
9613         program, declare getmntinfo as extern "C".
9614         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
9615         stpncpy as extern "C".
9616         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
9617         program, declare __xpg_strerror_r as extern "C".
9618         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
9619         strndup as extern "C".
9620         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
9621         declare memset and bzero as extern "C".
9622         Reported by Sam Steingold <sds@gnu.org>.
9623
9624 2011-07-12  Jim Meyering  <meyering@redhat.com>
9625
9626         maint.mk: prohibit inclusion of "verify.h" without use
9627         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
9628
9629 2011-07-19  Pádraig Brady  <P@draigBrady.com>
9630
9631         timer-time: A new module to check for timer_settime()
9632         * m4/timer_time.m4: Check for the posix function.
9633         * modules/timer-time: Add the new module.
9634         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
9635         Mention it.
9636
9637 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
9638             Bruno Haible  <bruno@clisp.org>
9639
9640         pthread_sigmask: assume POSIX threads if --avoid=threadlib
9641         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
9642         not defined, assume POSIX threads and look for pthread_sigmask in
9643         $LIBS, without changing $CPPFLAGS.
9644
9645 2011-07-19  Bruno Haible  <bruno@clisp.org>
9646
9647         strstr: Update cross-compilation guess.
9648         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
9649         CPUs, guess no, in view of glibc
9650         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
9651         Suggested by Eric Blake. Reported by Reuben Thomas.
9652
9653 2011-07-19  Pádraig Brady  <P@draigBrady.com>
9654
9655         getopt-gnu: suppress core dumps from detection code
9656         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
9657         to suppress core dumps that may well occur on glibc systems.
9658         * modules/getopt-gnu: Depend on nocrash.
9659
9660 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
9661
9662         pthread_sigmask: ensure usleep is declared
9663         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
9664         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
9665
9666 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
9667
9668         doc: Document NonStop portability issues.
9669         * doc/posix-functions/sigaction.texi (sigaction):
9670         * doc/posix-headers/signal.texi (signal.h):
9671         Document NonStop.  See Joachim Schmitz in
9672         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
9673
9674 2011-07-15  Bruno Haible  <bruno@clisp.org>
9675
9676         ffsl, ffsll: Avoid unportable behaviour.
9677         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
9678
9679 2011-07-15  Bruno Haible  <bruno@clisp.org>
9680
9681         ffs: More tests.
9682         * tests/test-ffs.c (NBITS): New macro.
9683         (main): Add more tests.
9684         * tests/test-ffsl.c (NBITS): New macro.
9685         (main): Add more tests.
9686         * tests/test-ffsll.c (NBITS): New macro.
9687         (main): Add more tests.
9688
9689 2011-07-15  Eric Blake  <eblake@redhat.com>
9690
9691         ffsl, ffsll: new modules
9692         * modules/ffsl: New file.
9693         * modules/ffsll: Likewise.
9694         * m4/ffsl.m4: Likewise.
9695         * m4/ffsll.m4: Likewise.
9696         * lib/ffsl.c: Likewise.
9697         * lib/ffsl.h: Likewise.
9698         * lib/ffsll.c: Likewise.
9699         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
9700         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
9701         * modules/string (Makefile.am): Substitute witnesses.
9702         * lib/strings.in.h (ffsl, ffsll): Declare.
9703         * modules/ffsl-tests: New test file.
9704         * modules/ffsll-tests: Likewise.
9705         * tests/test-ffsl.c: Likewise.
9706         * tests/test-ffsll.c: Likewise.
9707         * MODULES.html.sh (Integer arithmetic functions): Mention it.
9708         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
9709         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
9710
9711         ffs: fix m4 prerequisite
9712         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
9713
9714         ffs: avoid undefined behavior
9715         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
9716         * tests/test-ffs.c (naive, main): Avoid signed shifts.
9717         Reported by Bruno Haible.
9718
9719 2011-07-12  Bruno Haible  <bruno@clisp.org>
9720
9721         pthread_sigmask: Rely on module 'threadlib'.
9722         * modules/pthread_sigmask (Depends-on): Add threadlib.
9723         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
9724         is defined.
9725
9726 2011-07-12  Bruno Haible  <bruno@clisp.org>
9727
9728         regex: Depend on module 'strcase'.
9729         * modules/regex (Depends-on): Add strcase, for strcasecmp().
9730
9731 2011-07-12  Jim Meyering  <meyering@redhat.com>
9732
9733         warn-on-use: fix typo in file name
9734         * modules/snippet/warn-on-use (Files): Correct file name:
9735         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
9736
9737 2011-07-12  Bruno Haible  <bruno@clisp.org>
9738
9739         strings: Document module.
9740         * doc/posix-headers/strings.texi: Mention module 'strings'.
9741
9742 2011-07-12  Bruno Haible  <bruno@clisp.org>
9743
9744         Rename module '_Noreturn' to 'snippet/_Noreturn'.
9745         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
9746         (Files, Makefile.am): Update.
9747         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
9748         * modules/stdlib (Depends-on): Update.
9749
9750 2011-07-12  Bruno Haible  <bruno@clisp.org>
9751
9752         * NEWS: Mention the changes.
9753
9754         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
9755         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
9756         (Files, Makefile.am): Update.
9757         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
9758         * modules/arpa_inet (Depends-on): Update.
9759         * modules/ctype (Depends-on): Update.
9760         * modules/dirent (Depends-on): Update.
9761         * modules/fcntl-h (Depends-on): Update.
9762         * modules/glob (Depends-on): Update.
9763         * modules/iconv-h (Depends-on): Update.
9764         * modules/inttypes-incomplete (Depends-on): Update.
9765         * modules/langinfo (Depends-on): Update.
9766         * modules/locale (Depends-on): Update.
9767         * modules/math (Depends-on): Update.
9768         * modules/netdb (Depends-on): Update.
9769         * modules/poll-h (Depends-on): Update.
9770         * modules/pty (Depends-on): Update.
9771         * modules/search (Depends-on): Update.
9772         * modules/signal (Depends-on): Update.
9773         * modules/spawn (Depends-on): Update.
9774         * modules/stdio (Depends-on): Update.
9775         * modules/stdlib (Depends-on): Update.
9776         * modules/string (Depends-on): Update.
9777         * modules/strings (Depends-on): Update.
9778         * modules/sys_file (Depends-on): Update.
9779         * modules/sys_ioctl (Depends-on): Update.
9780         * modules/sys_select (Depends-on): Update.
9781         * modules/sys_socket (Depends-on): Update.
9782         * modules/sys_stat (Depends-on): Update.
9783         * modules/sys_time (Depends-on): Update.
9784         * modules/sys_times (Depends-on): Update.
9785         * modules/sys_utsname (Depends-on): Update.
9786         * modules/sys_wait (Depends-on): Update.
9787         * modules/termios (Depends-on): Update.
9788         * modules/time (Depends-on): Update.
9789         * modules/unistd (Depends-on): Update.
9790         * modules/wchar (Depends-on): Update.
9791         * modules/wctype-h (Depends-on): Update.
9792         * MODULES.html.sh (Support for building libraries and executables):
9793         Update.
9794
9795         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
9796         * modules/snippet/unused-parameter: Renamed from
9797         modules/unused-parameter.
9798         (Files, Makefile.am): Update.
9799         * build-aux/snippet/unused-parameter.h: Renamed from
9800         build-aux/unused-parameter.h.
9801         * modules/selinux-h (Depends-on): Update.
9802         * modules/unistr/base (Depends-on): Update.
9803         * MODULES.html.sh (Core language properties): Update.
9804
9805         Rename module 'link-warning' to 'snippet/link-warning'.
9806         * modules/snippet/link-warning: Renamed from modules/link-warning.
9807         (Files, Makefile.am): Update.
9808         * build-aux/snippet/link-warning.h: Renamed from
9809         build-aux/link-warning.h.
9810         * MODULES.html.sh (Support for building libraries and executables):
9811         Update.
9812
9813         Rename module 'c++defs' to 'snippet/c++defs'.
9814         * modules/snippet/c++defs: Renamed from modules/c++defs.
9815         (Files, Makefile.am): Update.
9816         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
9817         * modules/arpa_inet (Depends-on): Update.
9818         * modules/ctype (Depends-on): Update.
9819         * modules/dirent (Depends-on): Update.
9820         * modules/fcntl-h (Depends-on): Update.
9821         * modules/glob (Depends-on): Update.
9822         * modules/iconv-h (Depends-on): Update.
9823         * modules/langinfo (Depends-on): Update.
9824         * modules/locale (Depends-on): Update.
9825         * modules/math (Depends-on): Update.
9826         * modules/netdb (Depends-on): Update.
9827         * modules/poll-h (Depends-on): Update.
9828         * modules/pty (Depends-on): Update.
9829         * modules/search (Depends-on): Update.
9830         * modules/signal (Depends-on): Update.
9831         * modules/spawn (Depends-on): Update.
9832         * modules/stdio (Depends-on): Update.
9833         * modules/stdlib (Depends-on): Update.
9834         * modules/string (Depends-on): Update.
9835         * modules/strings (Depends-on): Update.
9836         * modules/sys_ioctl (Depends-on): Update.
9837         * modules/sys_select (Depends-on): Update.
9838         * modules/sys_socket (Depends-on): Update.
9839         * modules/sys_stat (Depends-on): Update.
9840         * modules/sys_time (Depends-on): Update.
9841         * modules/sys_wait (Depends-on): Update.
9842         * modules/termios (Depends-on): Update.
9843         * modules/time (Depends-on): Update.
9844         * modules/unistd (Depends-on): Update.
9845         * modules/wchar (Depends-on): Update.
9846         * modules/wctype-h (Depends-on): Update.
9847
9848         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
9849         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
9850         (Files, Makefile.am): Update.
9851         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
9852         * modules/argv-iter (Depends-on): Update.
9853         * modules/arpa_inet (Depends-on): Update.
9854         * modules/dirent (Depends-on): Update.
9855         * modules/fcntl-h (Depends-on): Update.
9856         * modules/fnmatch (Depends-on): Update.
9857         * modules/getopt-posix (Depends-on): Update.
9858         * modules/glob (Depends-on): Update.
9859         * modules/iconv-h (Depends-on): Update.
9860         * modules/inttypes-incomplete (Depends-on): Update.
9861         * modules/locale (Depends-on): Update.
9862         * modules/math (Depends-on): Update.
9863         * modules/netdb (Depends-on): Update.
9864         * modules/search (Depends-on): Update.
9865         * modules/signal (Depends-on): Update.
9866         * modules/spawn (Depends-on): Update.
9867         * modules/stdio (Depends-on): Update.
9868         * modules/stdlib (Depends-on): Update.
9869         * modules/string (Depends-on): Update.
9870         * modules/strings (Depends-on): Update.
9871         * modules/sys_socket (Depends-on): Update.
9872         * modules/sys_stat (Depends-on): Update.
9873         * modules/sys_time (Depends-on): Update.
9874         * modules/sys_times (Depends-on): Update.
9875         * modules/sys_utsname (Depends-on): Update.
9876         * modules/time (Depends-on): Update.
9877         * modules/unistd (Depends-on): Update.
9878         * modules/wchar (Depends-on): Update.
9879         * MODULES.html.sh (Support for building libraries and executables):
9880         Update.
9881
9882 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
9883
9884         Improvements on _Noreturn and related modules.
9885
9886         modules/_Exit-tests: test _Noreturn too
9887         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
9888         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
9889         (main): Use them.
9890
9891         stdnoreturn, stdnoreturn-tests: remove modules
9892         They're not needed here and a bit premature for use elsewhere.  See
9893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
9894         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
9895         * tests/test-stdnoreturn.c: Remove files.
9896         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
9897         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
9898         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
9899         and using noreturn.
9900         * modules/openat, modules/sigpipe-die, modules/xalloc:
9901         * modules/xmemdup0, modules/xstrtol:
9902         Remove dependency on stdnoreturn.
9903
9904         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
9905         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
9906         Reparenthesize to avoid GCC warning.
9907         Support Microsoft's syntax.
9908         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
9909
9910         _Noreturn-tests: remove module
9911         * modules/_Noreturn-tests: Remove.
9912         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
9913         * tests/test-_Noreturn.c: Remove.
9914         * tests/test-stdnoreturn.c: Merge from the old
9915         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
9916
9917 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
9918
9919         _Noreturn, stdnoreturn, and related modules.
9920
9921         * top/maint.mk: Adjust to new noreturn support.
9922         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
9923         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
9924
9925         xalloc: use stdnoreturn.h
9926         * lib/xalloc.h: Include <stdnoreturn.h>.
9927         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9928         * modules/xalloc (Depends-on): Add stdnoreturn.
9929
9930         xstrtol: use stdnoreturn.h
9931         * lib/xstrtol.h: Include <stdnoreturn.h>.
9932         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9933         * modules/xstrtol (Depends-on): Add stdnoreturn.
9934
9935         xmemdup0: use stdnoreturn.h
9936         * lib/xmemdup0.h: Include <stdnoreturn.h>.
9937         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9938         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
9939
9940         sigpipe-die: use stdnoreturn.h
9941         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
9942         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9943         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
9944
9945         openat: use stdnoreturn.h
9946         * lib/openat.h: Include <stdnoreturn.h>.
9947         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9948         * modules/openat (Depends-on): Add stdnoreturn.
9949
9950         * lib/openat-die.c (openat_save_fail): Modernize comment.
9951
9952         * lib/xalloc-die.c (xalloc_die): Modernize comment.
9953
9954         * lib/glthread/thread.h: Modernize comment.
9955
9956         obstack: use _Noreturn
9957         * lib/obstack.c (__attribute__): Remove macro.
9958         (print_and_abort): Use _Noreturn.
9959
9960         c-stack: use _Noreturn
9961         * lib/c-stack.c (die, overflow_handler, segv_handler):
9962         Use _Noreturn rather than __attribute__((noreturn)).
9963
9964         argmatch-tests, exclude_tests: use _Noreturn
9965         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
9966         Remove.
9967         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
9968
9969         stdlib: use _Noreturn
9970         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
9971         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
9972         * modules/stdlib (Depends-on): Add _Noreturn.
9973         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
9974
9975         stdnoreturn-tests: new module
9976         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
9977
9978         stdnoreturn: new module
9979         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
9980         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
9981
9982         _Noreturn-tests: new module
9983         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
9984
9985         _Noreturn: new module
9986         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
9987         New section, mentioning it.
9988         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
9989
9990         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
9991
9992 2011-07-11  Eric Blake  <eblake@redhat.com>
9993
9994         ffs: new module
9995         * modules/ffs: New file.
9996         * m4/ffs.m4: Likewise.
9997         * lib/ffs.c: Likewise.
9998         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
9999         * modules/strings (Makefile.am): Substitute witness.
10000         (Depends-on): Add c++defs.
10001         * lib/strings.in.h (ffs): Declare.
10002         * modules/ffs-tests: New test file.
10003         * tests/test-ffs.c: Test new module.
10004         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10005         * doc/posix-functions/ffs.texi (ffs): Likewise.
10006
10007         regex: avoid compiler warning
10008         * lib/regex.c (includes): Include <strings.h>, for use of
10009         strcasecmp in regcomp.c.
10010         Reported by Joachim Schmitz.
10011
10012 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
10013
10014         stdint: respect system's intmax_t if INTMAX_MAX
10015         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
10016         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
10017         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
10018         long but int64_t is long long, and where we will clash with the
10019         system intmax_t if we override it.  See
10020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
10021         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
10022         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
10023         similarly for UINTMAX_C.
10024
10025 2011-07-08  Bruno Haible  <bruno@clisp.org>
10026
10027         pthread_sigmask tests: Avoid a compiler warning.
10028         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
10029         non-zero.
10030
10031         sigprocmask tests: A better way to avoid a compiler warning.
10032         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
10033         (main): Complain if system() returns non-zero.
10034         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
10035
10036 2011-07-08  Bruno Haible  <bruno@clisp.org>
10037
10038         pthread_sigmask: Work around IRIX bug.
10039         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
10040         bug.
10041         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
10042         there may be unblocked pending signals.
10043         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
10044
10045 2011-07-08  Bruno Haible  <bruno@clisp.org>
10046
10047         pthread_sigmask: Work around Cygwin bug.
10048         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
10049         bug.
10050         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
10051         the system's pthread_sigmask function.
10052         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
10053
10054 2011-07-08  Bruno Haible  <bruno@clisp.org>
10055
10056         pthread_sigmask: Work around bug in single-threaded implementation.
10057         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
10058         FreeBSD, HP-UX, Solaris bug.
10059         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
10060         * lib/pthread_sigmask.c: Include <stddef.h>.
10061         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
10062         the system's pthread_sigmask function.
10063         * modules/pthread_sigmask (configure.ac): Invoke
10064         gl_PREREQ_PTHREAD_SIGMASK.
10065         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
10066         HP-UX, Solaris.
10067
10068 2011-07-08  Eric Blake  <eblake@redhat.com>
10069
10070         test-sigprocmask: avoid compiler warning
10071         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
10072         * tests/test-sigprocmask.c (main): Use it to silence warning.
10073         Reported by Jim Meyering.
10074
10075         test-snprintf: avoid compiler warning
10076         * tests/test-snprintf.c (main): Avoid shadowed declaration.
10077         * tests/test-vsnprintf.c (main): Likewise.
10078         Reported by Jim Meyering.
10079
10080 2011-07-08  Bruno Haible  <bruno@clisp.org>
10081
10082         Tests for module 'pthread_sigmask'.
10083         * modules/pthread_sigmask-tests: New file.
10084         * tests/test-pthread_sigmask1.c: New file, based on
10085         tests/test-sigprocmask.c.
10086         * tests/test-pthread_sigmask2.c: New file.
10087
10088 2011-07-08  Jim Meyering  <meyering@redhat.com>
10089
10090         test-getopt.h: avoid warning about an unused variable
10091         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
10092
10093 2011-07-07  Jim Meyering  <meyering@redhat.com>
10094
10095         maint: reduce list of files exempt from sc_prohibit_leading_TABs
10096         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
10097         now that it no longer contains leading TABs.
10098         Remove unused "url=FIXME" statement.
10099
10100 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10101
10102         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
10103         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10104         When gl_THREADLIB is not in use, assume that the POSIX sematics
10105         are desired.  This is better for Emacs, which uses POSIX semantics
10106         on GNUish and/or POSIXish platforms, and does not use threads at
10107         all otherwise.
10108
10109         pthread_sigmask: fix typo when testing for libraries
10110         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10111         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
10112
10113 2011-07-08  Eric Blake  <eblake@redhat.com>
10114
10115         fts: introduce FTS_NOATIME
10116         * lib/fts_.h (FTS_NOATIME): New bit flag.
10117         (FTS_OPTIONMASK): Adjust.
10118         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
10119         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
10120
10121 2011-07-08  Bruno Haible  <bruno@clisp.org>
10122
10123         Tests for module 'thread'.
10124         * modules/thread-tests: New file.
10125         * tests/test-thread_self.c: New file.
10126         * tests/test-thread_create.cc: New file.
10127
10128 2011-07-08  Bruno Haible  <bruno@clisp.org>
10129
10130         thread: Avoid gcc warnings when using gl_thread_self().
10131         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
10132         'void *'.
10133         (gl_thread_self_pointer): Update.
10134
10135 2011-07-07  Bruno Haible  <bruno@clisp.org>
10136
10137         signal-c++-tests: Check declaration of pthread_sigmask.
10138         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
10139         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
10140         $(LIB_PTHREAD_SIGMASK).
10141
10142 2011-07-07  Bruno Haible  <bruno@clisp.org>
10143
10144         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
10145         * lib/signal.in.h (pthread_sigmask): Override if
10146         REPLACE_PTHREAD_SIGMASK is 1.
10147         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10148         REPLACE_PTHREAD_SIGMASK.
10149         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
10150         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
10151         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
10152         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10153         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
10154
10155 2011-07-07  Bruno Haible  <bruno@clisp.org>
10156
10157         pthread_sigmask: Ensure declaration in <signal.h>.
10158         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
10159         include <pthread.h>.
10160         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
10161         problem.
10162
10163 2011-07-07  Bruno Haible  <bruno@clisp.org>
10164
10165         pthread_sigmask: Document the module.
10166         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
10167
10168 2011-07-07  Bruno Haible  <bruno@clisp.org>
10169
10170         pthread_sigmask: Follow gnulib conventions.
10171         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
10172         gl_PTHREAD_SIGMASK.
10173         * modules/pthread_sigmask (configure.ac): Update.
10174
10175 2011-07-07  Bruno Haible  <bruno@clisp.org>
10176
10177         pthread_sigmask: Make declaration C++ safe.
10178         * lib/signal.in.h: In two special conditions, just do an #include_next.
10179         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10180         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
10181         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10182         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10183         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
10184         not REPLACE_PTHREAD_MASK.
10185         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
10186         not REPLACE_PTHREAD_MASK.
10187         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10188
10189 2011-07-07  Bruno Haible  <bruno@clisp.org>
10190
10191         pthread_sigmask: Fix return value.
10192         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
10193         * lib/pthread_sigmask.c: New file.
10194         * modules/pthread_sigmask (Files): Add it.
10195         (configure.ac): Invoke AC_LIBOBJ.
10196
10197 2011-07-07  Eric Blake  <eblake@redhat.com>
10198
10199         getopt: more portable argv creation
10200         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
10201         const, use char arrays rather than strings.
10202         Suggested by Paul Eggert.
10203
10204 2011-07-07  Bruno Haible  <bruno@clisp.org>
10205
10206         Tests for module 'sigprocmask'.
10207         * modules/sigprocmask-tests: New file.
10208         * tests/test-sigprocmask.c: New file.
10209
10210 2011-07-07  Bruno Haible  <bruno@clisp.org>
10211
10212         float tests: Tweak.
10213         * tests/test-float.c (main): Tweak skip message.
10214
10215 2011-07-07  Eric Blake  <eblake@redhat.com>
10216
10217         getopt: avoid compiler warning during configure
10218         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
10219         assigning string literals to non-const pointer.
10220
10221         getopt-gnu: avoid crash in glibc getopt
10222         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
10223         * tests/test-getopt.h (test_getopt): Enhance test.
10224         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10225         * doc/posix-functions/getopt.texi (getopt): Document it.
10226         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10227         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10228         Likewise.
10229
10230 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
10231
10232         getopt: handle W; without long options in getopt [BZ #12922]
10233         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
10234         but no long options are defined, just return 'W'.
10235
10236 2011-07-07  Bruno Haible  <bruno@clisp.org>
10237
10238         Avoid literal tabs.
10239         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
10240         variable containing a tab instead of a literal tab.
10241         Reported by Jim Meyering.
10242
10243 2011-07-07  Bruno Haible  <bruno@clisp.org>
10244
10245         Comments.
10246         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
10247
10248 2011-07-06  Bruno Haible  <bruno@clisp.org>
10249
10250         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
10251         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
10252         <winsock2.h>.
10253         (rpl_fd_isset, FD_ISSET): New definitions, copied from
10254         lib/sys_socket.in.h.
10255         (close, gethostname): Hide declarations from <winsock2.h>.
10256         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
10257         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
10258         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
10259         (select): Don't override if gnulib's <sys/select.h> was already
10260         included.
10261         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
10262         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
10263         setsockopt, shutdown, select): Tweak indentation.
10264
10265 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10266
10267         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
10268         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
10269         in an application that does not use the sys_select module.
10270
10271 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
10272
10273         poll: do not return 0 on timeout=-1
10274         * lib/poll.c: Loop with yield if no events occured
10275
10276 2011-07-06  Eric Blake  <eblake@redhat.com>
10277
10278         pthread_sigmask: always replace when not using pthread
10279         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
10280         replacement when using some threading other than pthread.  Fix
10281         logic bug.
10282
10283 2011-07-06  Bruno Haible  <bruno@clisp.org>
10284
10285         Comments.
10286         * m4/printf.m4: Update comments about mingw.
10287
10288 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10289
10290         sys_select: define sigset_t more portably
10291         * lib/sys_select.in.h: Always include <sys/types.h>, since
10292         we now need sigset_t and mingw defines it there.
10293         Include <signal.h> before split inclusion guard, to avoid
10294         mishaps on Solaris, whose <signal.h> eventually includes us.
10295         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
10296         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
10297         which come from ...
10298         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
10299         gl_CHECK_TYPE_SIGSET_T.
10300         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
10301         does the real work.
10302         * modules/sys_select (Depends-on): Add 'signal'.
10303
10304         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
10305         Suggested by Bruno Haible.
10306
10307         pselect: Use pthread_sigmask, not sigprocmask.
10308         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
10309         multithreaded apps better than sigprocmask does.
10310         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
10311         sigprocmask directly.
10312
10313 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10314
10315         * lib/pselect.c (pselect): Use plain name, without "rpl_".
10316         Don't #undef,  since we don't need any underlying pselect.
10317         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
10318         (Depends-on): Add select.
10319         (Link): Add $(LIBSOCKET).
10320         These changes suggested by Bruno Haible.
10321
10322         pselect: document better
10323         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
10324         * doc/posix-functions/pselect.texi (pselect): Document new module.
10325
10326         pthread_sigmask: new module
10327         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
10328         * doc/posix-functions/pthread_sigmask.texi: Document new module.
10329         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
10330         This is done only as a macro; I don't know how well that'll
10331         work for C++.  Move <sys/types.h> include before the include_next,
10332         to avoid mishap on Solaris.
10333         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
10334         * modules/signal (Makefile.am): Substitute the check's results.
10335         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
10336
10337         test-pselect: new module
10338         * modules/pselect-tests, tests/test-pselect.c: New files.
10339         * tests/test-select.c, tests/test-sys_select-c++.cc:
10340         If TEST_PSELECT is defined, test pselect instead of testing select.
10341
10342         * tests/test-sys_select.c (sigset_t): Test for it, too.
10343         Suggested by Bruno Haible.
10344
10345 2011-07-05  Eric Blake  <eblake@redhat.com>
10346
10347         snprintf: guarantee %1$d, for libintl
10348         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
10349         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
10350         * doc/posix-functions/snprintf.texi (snprintf): Update.
10351         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10352         * tests/test-snprintf.c (main): Enhance test.
10353         * tests/test-vsnprintf.c (main): Likewise.
10354
10355 2011-07-05  Jim Meyering  <meyering@redhat.com>
10356
10357         maint: exempt stdio-read.c and stdio-write.c from the cppi check
10358         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
10359         per Bruno's request, to accommodate this idiom (no space after "#")
10360         even when the function is inside an #if block:
10361         char *
10362         gets (char *s)
10363         #undef gets
10364         {
10365           ...
10366         }
10367
10368 2011-07-04  Jim Meyering  <meyering@redhat.com>
10369
10370         maint: indent with spaces, not TABs, and add a rule to check this
10371         * tests/test-userspec.c: Indent with spaces, not TABs.
10372         * tests/test-argp.c: Likewise.
10373         * tests/test-c-stack2.sh: Likewise.
10374         * tests/test-parse-duration.sh: Likewise
10375         * m4/strtod.m4: Likewise.
10376         * m4/alloca.m4: Likewise.
10377         * m4/pselect.m4: Likewise.
10378         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
10379
10380 2011-07-03  Jim Meyering  <meyering@redhat.com>
10381
10382         maint.mk: correct omissions in prohibit_argmatch_without_use check
10383         This rule would mistakenly report that argmatch.h is included without
10384         use even when both the argmatch and invalid_arg macro were used.
10385         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
10386         of argmatch and invalid_arg.
10387
10388 2011-07-03  Bruno Haible  <bruno@clisp.org>
10389
10390         Comments about EINTR.
10391         * lib/safe-read.h: Explain the purpose of this module.
10392         * lib/safe-write.h: Likewise.
10393         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
10394         module.
10395         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
10396         module.
10397         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10398
10399 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
10400
10401         xnanosleep: Rewrite to use new dtotimespec module.
10402         It has the conversion code that used to be in xnanosleep.
10403         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
10404         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
10405         (TIME_T_MAX): Remove.
10406         (xnanosleep): Rewrite in terms of dtotimespec.
10407         * modules/xnanosleep (Depends-on): Add dtotimespec.
10408         Remove intprops, stdbool.
10409
10410         timespec-add, timespec-sub: new modules
10411         * lib/timespec.h (timespec_add, timespec_sub): New decls.
10412         * lib/timespec-add.c, lib/timespec-sub.c:
10413         * modules/timespec-add, modules/timespec-sub: New files.
10414
10415         dtotimespec: new module
10416         * lib/timespec.h (dtotimespec): New decl.
10417         * lib/dtotimespec.c, modules/dtotimespec: New files.
10418
10419         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
10420
10421         pselect: new module
10422         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
10423         (pselect): New decls.
10424         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
10425         since the standard pselect decl uses 'restrict'.
10426         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
10427         HAVE_PSELECT, REPLACE_PSELECT.
10428         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
10429         HAVE_PSELECT, REPLACE_PSELECT.
10430         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
10431
10432         sys_select: don't depend on sys_socket
10433         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
10434         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
10435         This fix works on GNU and GNU-like platforms, but has not been tested
10436         on native Windows.
10437         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
10438         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
10439         gl_HEADER_SYS_SOCKET.
10440         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
10441         gl_PREREQ_SYS_H_WINSOCK2.
10442
10443 2011-06-29  Eric Blake  <eblake@redhat.com>
10444
10445         pipe2: fix C89 compile problem
10446         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
10447         Reported by Bruno Haible.
10448
10449         pipe, pipe2: don't corrupt fd on error
10450         * lib/pipe.c (pipe): Leave fd unchanged on error.
10451         * lib/pipe2.c (pipe2): Likewise.
10452         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
10453         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
10454
10455 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
10456
10457         mmap-anon: do not use regular expressions inadvertently
10458         * m4/mmap-anon.m4: Remove trailing period from strings sought
10459         in the output.
10460
10461 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
10462
10463         nanosleep: fix integer overflow problem
10464         * lib/nanosleep.c (my_usleep): Don't assume signed integer
10465         arithmetic wraps around on overflow.
10466
10467         nanosleep: simplify carrying
10468         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
10469         first call to the underyling nanosleep, not for the last one.
10470         This doesn't fix any bugs, but it simplifies the computation of
10471         the remaining delay.  Found while auditing integer overflow issues.
10472
10473         dup2: remove test for existence of fcntl
10474         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
10475         "#if HAVE_FCNTL", in the configure-time test program.
10476         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
10477         and therefore speeds up "configure" a bit.  Found while
10478         adding the dup2 module to Emacs.
10479
10480 2011-06-24  Eric Blake  <eblake@redhat.com>
10481
10482         maint.mk: enhance useless header checks
10483         * top/maint.mk (_sc_header_without_use): Check both include
10484         styles.
10485         (sc_prohibit_assert_without_use)
10486         (sc_prohibit_close_stream_without_use)
10487         (sc_prohibit_getopt_without_use)
10488         (sc_prohibit_quotearg_without_use)
10489         (sc_prohibit_quote_without_use)
10490         (sc_prohibit_long_options_without_use)
10491         (sc_prohibit_inttostr_without_use)
10492         (sc_prohibit_ignore_value_without_use)
10493         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
10494         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
10495         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
10496         (sc_prohibit_hash_pjw_without_use)
10497         (sc_prohibit_safe_read_without_use)
10498         (sc_prohibit_argmatch_without_use)
10499         (sc_prohibit_canonicalize_without_use)
10500         (sc_prohibit_root_dev_ino_without_use)
10501         (sc_prohibit_openat_without_use)
10502         (sc_prohibit_c_ctype_without_use)
10503         (sc_prohibit_signal_without_use)
10504         (sc_prohibit_stdio--_without_use)
10505         (sc_prohibit_stdio-safer_without_use)
10506         (sc_prohibit_strings_without_use)
10507         (sc_prohibit_intprops_without_use)
10508         (sc_prohibit_stddef_without_use)
10509         (sc_prohibit_xfreopen_without_use): Update clients.
10510
10511 2011-06-24  Jim Meyering  <meyering@redhat.com>
10512
10513         syntax-check: keep one maint.mk rule in sync with its header
10514         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
10515         of the bug Eric has just fixed, with today's commit 25e4c2ec.
10516         I prefer to avoid temporary files here, so use <(...), but that
10517         is not supported by /bin/sh, so...
10518         (SHELL): Define to /bin/bash.
10519
10520 2011-06-24  Eric Blake  <eblake@redhat.com>
10521
10522         maint.mk: update sc_prohibit_intprops_without_use
10523         * top/maint.mk (_intprops_names): Match recent changes.
10524
10525 2011-06-24  Bruno Haible  <bruno@clisp.org>
10526
10527         strerror-override: No-op tweak.
10528         * lib/strerror-override.h (strerror_override): Reorder conditions,
10529         for consistency with lib/strerror-override.c.
10530
10531 2011-06-23  Eric Blake  <eblake@redhat.com>
10532
10533         maint.mk: test further PATH_MAX issues
10534         * top/maint.mk (sc_prohibit_path_max_array): Rename...
10535         (sc_prohibit_path_max_allocation): ...and also test alloca.
10536         Suggested by Jim Meyering.
10537
10538 2011-06-22  Eric Blake  <eblake@redhat.com>
10539
10540         maint.mk: add syntax-check to avoid char[PATH_MAX]
10541         * top/maint.mk (sc_prohibit_path_max_array): New rule.
10542
10543         stat: be robust to PATH_MAX definition
10544         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
10545         * modules/stat (Depends-on): Add verify.
10546
10547         link: work around IRIX bug
10548         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
10549         * lib/link.c (rpl_link): Work around it.
10550         * tests/test-link.h (test_link): Enhance test.
10551         * doc/posix-functions/link.texi (link): Document the bug.
10552
10553         getopt: silence clang warning
10554         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
10555         dereference.
10556         Reported by Gustavo Martin Domato.
10557
10558 2011-06-22  Jim Meyering  <meyering@redhat.com>
10559
10560         bootstrap: do not insert a blank line into each .gitignore file
10561         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
10562
10563 2011-06-21  Eric Blake  <eblake@redhat.com>
10564
10565         perror: test for output mismatch
10566         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
10567         perror on IRIX.
10568
10569         strerror_r: fix OpenBSD behavior on out-of-range
10570         * lib/strerror_r.c (strerror_r): Always use maximal string.
10571         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10572
10573         strerror_r: fix OpenBSD behavior on 0
10574         * lib/strerror-override.c (strerror_override): Also override 0
10575         when needed.
10576         * lib/strerror-override.h (strerror_override): Likewise.
10577         * lib/strerror.c (strerror): Simplify, now that 0 override is done
10578         earlier.
10579         * lib/strerror_r.c (strerror_r): Likewise.
10580         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
10581         behavior...
10582         (gl_FUNC_STRERROR_0): ...into new macro.
10583         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
10584         is overridden.
10585         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
10586         * modules/strerror-override (Files): Add strerror.m4.
10587         (configure.ac): Also provide override for 0 when needed.
10588         * doc/posix-functions/strerror.texi (strerror): Document this.
10589         * doc/posix-functions/perror.texi (perror): Likewise.
10590
10591         perror: adjust array size
10592         * modules/perror (Depends-on): Add strerror-override.
10593         * lib/perror.c (perror): Use it to avoid magic number.
10594
10595         strerror-override: reduce size
10596         * lib/strerror-override.c (strerror_override): Use fewer lines.
10597
10598 2011-06-20  Bruno Haible  <bruno@clisp.org>
10599
10600         pathmax: Ensure correct value for PATH_MAX on HP-UX.
10601         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
10602
10603 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
10604
10605         alloca: port to compilers that can optimize like GCC 4.6.0
10606         * lib/alloca.c (find_stack_direction): New signature, taken from
10607         Autoconf git.  This works with GCC 4.6.0.  This code should never
10608         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
10609         be used with other compilers that optimize as well as GCC 4.6.0 does.
10610         (alloca): Adjust to new signature.
10611         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
10612         New macro, which patches Autoconf in a similar way.
10613
10614         c-stack: stop worrying about stack direction
10615         * lib/c-stack.c (find_stack_direction): Remove.
10616         (segv_handler): Don't worry about stack direction growth, as it's
10617         too much of a pain to configure this correctly, given how compilers
10618         are optimizing-away our stack-growth detection code.  Instead, assume
10619         that any access to just before or just after the stack is OK.
10620         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
10621         Don't require AC_FUNC_ALLOCA; no longer needed.
10622
10623 2011-06-20  Eric Blake  <eblake@redhat.com>
10624
10625         test-stat: don't allocate PATH_MAX bytes
10626         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
10627         PATH_MAX-sized buffer.
10628         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
10629         * modules/stat-tests (Depends-on): Likewise.
10630         * tests/test-fstatat.c (includes): Drop pathmax.h.
10631         * tests/test-stat.c (includes): Likewise.
10632         Reported by Bruno Haible.
10633
10634 2011-06-20  Bruno Haible  <bruno@clisp.org>
10635
10636         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
10637         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
10638         * lib/float.c: New file.
10639         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
10640         REPLACE_FLOAT_LDBL.
10641         * modules/float (Files): Add lib/float.c.
10642         (configure.ac): Invoke AC_LIBOBJ.
10643         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
10644
10645 2011-06-20  Bruno Haible  <bruno@clisp.org>
10646
10647         Tests for module 'float'.
10648         * modules/float-tests: New file.
10649         * tests/test-float.c: New file.
10650
10651 2011-06-19  Bruno Haible  <bruno@clisp.org>
10652
10653         isinf: Coding style.
10654         * lib/isinf.c: Use GNU coding style.
10655
10656 2011-06-19  Bruno Haible  <bruno@clisp.org>
10657
10658         linkat test: Avoid test failure on AIX 7.1.
10659         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
10660         * tests/test-link.h (test_link): Likewise.
10661
10662 2011-06-19  Bruno Haible  <bruno@clisp.org>
10663
10664         pread test: Avoid test failure on OpenBSD 4.9.
10665         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
10666
10667 2011-06-19  Bruno Haible  <bruno@clisp.org>
10668
10669         sprintf-posix: Fix test failure on AIX 7.1.
10670         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
10671         * doc/posix-functions/dprintf.texi: Mention limited precision problem
10672         on AIX.
10673         * doc/posix-functions/fprintf.texi: Likewise.
10674         * doc/posix-functions/printf.texi: Likewise.
10675         * doc/posix-functions/snprintf.texi: Likewise.
10676         * doc/posix-functions/sprintf.texi: Likewise.
10677         * doc/posix-functions/vdprintf.texi: Likewise.
10678         * doc/posix-functions/vfprintf.texi: Likewise.
10679         * doc/posix-functions/vprintf.texi: Likewise.
10680         * doc/posix-functions/vsnprintf.texi: Likewise.
10681         * doc/posix-functions/vsprintf.texi: Likewise.
10682
10683 2011-06-19  Bruno Haible  <bruno@clisp.org>
10684
10685         roundl-ieee: Fix test failure on AIX 7.1.
10686         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
10687         * doc/posix-functions/roundl.texi: Mention problem with negative
10688         arguments.
10689
10690 2011-06-19  Bruno Haible  <bruno@clisp.org>
10691
10692         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
10693         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
10694         * doc/posix-functions/round.texi: Mention problem with negative
10695         arguments.
10696         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
10697
10698 2011-06-19  Bruno Haible  <bruno@clisp.org>
10699
10700         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
10701         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
10702         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
10703         * doc/posix-functions/roundf.texi: Mention problem with negative
10704         arguments.
10705         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
10706
10707 2011-06-19  Bruno Haible  <bruno@clisp.org>
10708
10709         ceilf-ieee: Work around bug on MacOS X 10.5.
10710         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
10711
10712         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
10713         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
10714         IEEE compliant, avoid compiler optimizations.
10715         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
10716         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10717         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
10718         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10719         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10720         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10721         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10722         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10723         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10724         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10725
10726 2011-06-19  Bruno Haible  <bruno@clisp.org>
10727
10728         ceilf-ieee: Work around bug on AIX 7.1.
10729         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
10730         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
10731
10732 2011-06-19  Bruno Haible  <bruno@clisp.org>
10733
10734         ceil-ieee: Work around bug on AIX 7.1.
10735         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
10736         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
10737
10738 2011-06-18  Bruno Haible  <bruno@clisp.org>
10739
10740         fsync test: Avoid test failure on MacOS X and AIX.
10741         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
10742         EINVAL.
10743
10744 2011-06-18  Bruno Haible  <bruno@clisp.org>
10745
10746         openat, fdopendir tests: Fix link errors.
10747         * modules/openat-tests (Depends-on): Add progname.
10748         * modules/fdopendir-tests (Depends-on): Likewise.
10749         * tests/test-fchownat.c: Include progname.h.
10750         (main): Call set_program_name.
10751         * tests/test-fstatat.c: Include progname.h.
10752         (main): Call set_program_name.
10753         * tests/test-mkdirat.c: Include progname.h.
10754         (main): Call set_program_name.
10755         * tests/test-openat.c: Include progname.h.
10756         (main): Call set_program_name.
10757         * tests/test-unlinkat.c: Include progname.h.
10758         (main): Call set_program_name.
10759         * tests/test-fdopendir.c: Include progname.h.
10760         (main): Call set_program_name.
10761
10762 2011-06-18  Bruno Haible  <bruno@clisp.org>
10763
10764         Doc update.
10765         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
10766         HP-UX.
10767         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
10768
10769 2011-06-18  Bruno Haible  <bruno@clisp.org>
10770
10771         getcwd tests: Avoid compilation error on HP-UX 11.31.
10772         * modules/getcwd-tests (Depends-on): Add pathmax.
10773         * tests/test-getcwd.c: Include pathmax.h.
10774
10775 2011-06-18  Bruno Haible  <bruno@clisp.org>
10776
10777         isfinite, isinf: Fix link error on AIX 6 and 7.
10778         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
10779         needed, also test the macro with a 'float' argument.
10780         * m4/isinf.m4 (gl_ISINF): Likewise.
10781
10782 2011-06-18  Bruno Haible  <bruno@clisp.org>
10783
10784         getloadavg: Don't clobber LIBS. Regression from previous commit.
10785         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
10786         AC_CHECK_LIB from here...
10787         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
10788         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
10789         gl_func_getloadavg_done.
10790         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10791
10792 2011-06-18  Bruno Haible  <bruno@clisp.org>
10793
10794         clean-temp: Improve documentation.
10795         * lib/clean-temp.h: Explain better how to use this module.
10796         Reported by John Darrington <john@darrington.wattle.id.au>.
10797
10798 2011-06-17  Bruno Haible  <bruno@clisp.org>
10799
10800         pread, pwrite: Avoid cc warning on AIX.
10801         * lib/unistd.in.h (pread): Undefine before defining as a macro.
10802         (pwrite): Likewise.
10803
10804 2011-06-17  Bruno Haible  <bruno@clisp.org>
10805
10806         spawn-pipe tests: Fix link error.
10807         * tests/test-spawn-pipe-child.c: Undefine fprintf.
10808         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10809
10810 2011-06-17  Bruno Haible  <bruno@clisp.org>
10811
10812         Tests: Remove unnecessary dependency.
10813         * modules/canonicalize-tests (Depends-on): Remove progname.
10814         * modules/chown-tests (Depends-on): Likewise.
10815         * modules/dirname-tests (Depends-on): Likewise.
10816         * modules/fdopendir-tests (Depends-on): Likewise.
10817         * modules/fdutimensat-tests (Depends-on): Likewise.
10818         * modules/hash-tests (Depends-on): Likewise.
10819         * modules/lchown-tests (Depends-on): Likewise.
10820         * modules/linkat-tests (Depends-on): Likewise.
10821         * modules/renameat-tests (Depends-on): Likewise.
10822         * modules/spawn-pipe-tests (Depends-on): Likewise.
10823         * modules/utimensat-tests (Depends-on): Likewise.
10824
10825 2011-06-17  Bruno Haible  <bruno@clisp.org>
10826
10827         spawn-pipe tests: Fix link error.
10828         * tests/test-spawn-pipe-child.c: Undefine fflush.
10829
10830 2011-06-17  Bruno Haible  <bruno@clisp.org>
10831
10832         Fix tests link errors.
10833         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
10834         * modules/chown-tests (Makefile.am): Don't link test-chown with
10835         LIBINTL.
10836         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
10837         LIBINTL.
10838         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
10839         LIBINTL.
10840         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
10841         LIBINTL.
10842
10843 2011-06-16  Bruno Haible  <bruno@clisp.org>
10844
10845         crypto/gc-sha1: Fix recent regression.
10846         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
10847         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
10848
10849         crypto/gc-md5: Fix recent regression.
10850         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
10851
10852         crypto/gc-md4: Fix recent regression.
10853         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
10854         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
10855
10856         crypto/gc-arctwo: Fix recent regression.
10857         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
10858         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
10859
10860         crypto/gc-rijndael: Fix recent regression.
10861         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
10862         (configure.ac): Invoke AC_LIBOBJ here.
10863         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
10864         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10865
10866         crypto/gc-hmac-sha1: Fix recent regression.
10867         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
10868         (configure.ac): Invoke AC_LIBOBJ here.
10869         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
10870         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10871
10872         crypto/gc-hmac-md5: Fix recent regression.
10873         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
10874         (configure.ac): Invoke AC_LIBOBJ here.
10875         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
10876         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10877
10878         crypto/gc-des: Fix recent regression.
10879         * modules/crypto/gc-des (Files): Remove m4/des.m4.
10880         (configure.ac): Invoke AC_LIBOBJ here.
10881         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
10882         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10883
10884         crypto/gc-arcfour: Fix recent regression.
10885         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
10886         (configure.ac): Invoke AC_LIBOBJ here.
10887         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
10888         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10889
10890 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
10891
10892         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
10893         After the 2011-05-21 change, this macro requires
10894         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
10895         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
10896
10897 2011-06-16  Bruno Haible  <bruno@clisp.org>
10898
10899         fprintftime: Move AC_LIBOBJ invocations to module description.
10900         * m4/fprintftime.m4: Remove file.
10901         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
10902         (configure.ac): Remove gl_FPRINTFTIME call.
10903         (Makefile.am): Augment lib_SOURCES.
10904         Reported by Jim Meyering.
10905
10906 2011-06-16  Bruno Haible  <bruno@clisp.org>
10907
10908         tmpfile-safer: Finish 2011-05-23 commit.
10909         * m4/stdio-safer.m4: Really remove file.
10910         Reported by Jim Meyering.
10911
10912 2011-06-16  Bruno Haible  <bruno@clisp.org>
10913
10914         syntax-check: Fix typo.
10915         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
10916         printf-posix.m4.
10917         Reported by Jim Meyering.
10918
10919 2011-06-13  Jim Meyering  <meyering@redhat.com>
10920
10921         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
10922         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
10923
10924 2011-05-23  Bruno Haible  <bruno@clisp.org>
10925
10926         yesno: Move AC_LIBOBJ invocations to module description.
10927         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
10928         * modules/yesno (Makefile.am): Augment lib_SOURCES.
10929
10930 2011-05-23  Bruno Haible  <bruno@clisp.org>
10931
10932         xstrtol: Move AC_LIBOBJ invocations to module description.
10933         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
10934         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
10935
10936 2011-05-23  Bruno Haible  <bruno@clisp.org>
10937
10938         xstrtold: Move AC_LIBOBJ invocations to module description.
10939         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
10940         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
10941
10942 2011-05-23  Bruno Haible  <bruno@clisp.org>
10943
10944         xstrtod: Move AC_LIBOBJ invocations to module description.
10945         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
10946         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
10947
10948 2011-05-23  Bruno Haible  <bruno@clisp.org>
10949
10950         xnanosleep: Move AC_LIBOBJ invocations to module description.
10951         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
10952         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
10953
10954 2011-05-23  Bruno Haible  <bruno@clisp.org>
10955
10956         xgetcwd: Move AC_LIBOBJ invocations to module description.
10957         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
10958         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
10959
10960 2011-05-23  Bruno Haible  <bruno@clisp.org>
10961
10962         xalloc: Move AC_LIBOBJ invocations to module description.
10963         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
10964         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
10965
10966 2011-05-23  Bruno Haible  <bruno@clisp.org>
10967
10968         write-any-file: Move AC_LIBOBJ invocations to module description.
10969         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
10970         invocation.
10971         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
10972
10973 2011-05-23  Bruno Haible  <bruno@clisp.org>
10974
10975         utimens: Move AC_LIBOBJ invocations to module description.
10976         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
10977         * modules/utimens (Makefile.am): Augment lib_SOURCES.
10978
10979 2011-05-23  Bruno Haible  <bruno@clisp.org>
10980
10981         utimecmp: Move AC_LIBOBJ invocations to module description.
10982         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
10983         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
10984
10985 2011-05-23  Bruno Haible  <bruno@clisp.org>
10986
10987         userspec: Move AC_LIBOBJ invocations to module description.
10988         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
10989         * modules/userspec (Makefile.am): Augment lib_SOURCES.
10990
10991 2011-05-23  Bruno Haible  <bruno@clisp.org>
10992
10993         unlinkdir: Move AC_LIBOBJ invocations to module description.
10994         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
10995         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
10996
10997 2011-05-23  Bruno Haible  <bruno@clisp.org>
10998
10999         unistd-safer: Move AC_LIBOBJ invocations to module description.
11000         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
11001         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
11002
11003 2011-05-23  Bruno Haible  <bruno@clisp.org>
11004
11005         tempname: Move AC_LIBOBJ invocations to module description.
11006         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
11007         * modules/tempname (Makefile.am): Augment lib_SOURCES.
11008
11009 2011-05-23  Bruno Haible  <bruno@clisp.org>
11010
11011         strftime: Move AC_LIBOBJ invocations to module description.
11012         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
11013         * modules/strftime (Makefile.am): Augment lib_SOURCES.
11014
11015 2011-05-23  Bruno Haible  <bruno@clisp.org>
11016
11017         stdlib-safer: Move AC_LIBOBJ invocations to module description.
11018         * m4/stdlib-safer.m4: Remove file.
11019         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
11020         (configure.ac): Remove gl_STDLIB_SAFER call.
11021         (Makefile.am): Augment lib_SOURCES.
11022
11023 2011-05-23  Bruno Haible  <bruno@clisp.org>
11024
11025         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
11026         * m4/stdio-safer.m4: Remove file.
11027         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
11028         (configure.ac): Remove gl_TMPFILE_SAFER call.
11029         (Makefile.am): Augment lib_SOURCES.
11030
11031 2011-05-23  Bruno Haible  <bruno@clisp.org>
11032
11033         popen-safer: Move AC_LIBOBJ invocations to module description.
11034         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
11035         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
11036         (configure.ac): Remove gl_POPEN_SAFER call.
11037         (Makefile.am): Augment lib_SOURCES.
11038
11039 2011-05-23  Bruno Haible  <bruno@clisp.org>
11040
11041         freopen-safer: Move AC_LIBOBJ invocations to module description.
11042         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
11043         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
11044         (configure.ac): Remove gl_FREOPEN_SAFER call.
11045         (Makefile.am): Augment lib_SOURCES.
11046
11047 2011-05-23  Bruno Haible  <bruno@clisp.org>
11048
11049         fopen-safer: Move AC_LIBOBJ invocations to module description.
11050         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
11051         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
11052         (configure.ac): Remove gl_FOPEN_SAFER call.
11053         (Makefile.am): Augment lib_SOURCES.
11054
11055 2011-05-23  Bruno Haible  <bruno@clisp.org>
11056
11057         crypto/sha512: Move AC_LIBOBJ invocations to module description.
11058         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
11059         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
11060
11061 2011-05-23  Bruno Haible  <bruno@clisp.org>
11062
11063         crypto/sha256: Move AC_LIBOBJ invocations to module description.
11064         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
11065         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
11066
11067 2011-05-23  Bruno Haible  <bruno@clisp.org>
11068
11069         crypto/sha1: Move AC_LIBOBJ invocations to module description.
11070         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
11071         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
11072
11073 2011-05-23  Bruno Haible  <bruno@clisp.org>
11074
11075         settime: Move AC_LIBOBJ invocations to module description.
11076         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
11077         * modules/settime (Makefile.am): Augment lib_SOURCES.
11078
11079 2011-05-23  Bruno Haible  <bruno@clisp.org>
11080
11081         savedir: Move AC_LIBOBJ invocations to module description.
11082         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
11083         * modules/savedir (Makefile.am): Augment lib_SOURCES.
11084
11085 2011-05-23  Bruno Haible  <bruno@clisp.org>
11086
11087         save-cwd: Move AC_LIBOBJ invocations to module description.
11088         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
11089         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
11090
11091 2011-05-23  Bruno Haible  <bruno@clisp.org>
11092
11093         same: Move AC_LIBOBJ invocations to module description.
11094         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
11095         * modules/same (Makefile.am): Augment lib_SOURCES.
11096
11097 2011-05-23  Bruno Haible  <bruno@clisp.org>
11098
11099         safe-write: Move AC_LIBOBJ invocations to module description.
11100         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
11101         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
11102         instead of gl_SAFE_WRITE.
11103         (Makefile.am): Augment lib_SOURCES.
11104
11105 2011-05-23  Bruno Haible  <bruno@clisp.org>
11106
11107         safe-read: Move AC_LIBOBJ invocations to module description.
11108         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
11109         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
11110         of gl_SAFE_READ.
11111         (Makefile.am): Augment lib_SOURCES.
11112
11113 2011-05-23  Bruno Haible  <bruno@clisp.org>
11114
11115         safe-alloc: Move AC_LIBOBJ invocations to module description.
11116         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
11117         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
11118
11119 2011-05-23  Bruno Haible  <bruno@clisp.org>
11120
11121         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
11122         * m4/rijndael.m4: Remove file.
11123         * modules/crypto/rijndael (Files): Remove it.
11124         (configure.ac): Remove gl_RIJNDAEL call.
11125         (Makefile.am): Augment lib_SOURCES.
11126
11127 2011-05-23  Bruno Haible  <bruno@clisp.org>
11128
11129         readtokens: Move AC_LIBOBJ invocations to module description.
11130         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
11131         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
11132
11133 2011-05-23  Bruno Haible  <bruno@clisp.org>
11134
11135         read-file: Move AC_LIBOBJ invocations to module description.
11136         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
11137         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
11138         of gl_FUNC_READ_FILE.
11139         (Makefile.am): Augment lib_SOURCES.
11140
11141 2011-05-23  Bruno Haible  <bruno@clisp.org>
11142
11143         quotearg: Move AC_LIBOBJ invocations to module description.
11144         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
11145         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
11146
11147 2011-05-23  Bruno Haible  <bruno@clisp.org>
11148
11149         quote: Move AC_LIBOBJ invocations to module description.
11150         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
11151         * modules/quote (Makefile.am): Augment lib_SOURCES.
11152
11153 2011-05-23  Bruno Haible  <bruno@clisp.org>
11154
11155         posixver: Move AC_LIBOBJ invocations to module description.
11156         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
11157         * modules/posixver (Makefile.am): Augment lib_SOURCES.
11158
11159 2011-05-23  Bruno Haible  <bruno@clisp.org>
11160
11161         posixtm: Move AC_LIBOBJ invocations to module description.
11162         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
11163         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
11164
11165 2011-05-23  Bruno Haible  <bruno@clisp.org>
11166
11167         physmem: Move AC_LIBOBJ invocations to module description.
11168         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
11169         * modules/physmem (Makefile.am): Augment lib_SOURCES.
11170
11171 2011-05-23  Bruno Haible  <bruno@clisp.org>
11172
11173         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
11174         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
11175         invocation.
11176         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
11177
11178 2011-05-23  Bruno Haible  <bruno@clisp.org>
11179
11180         mpsort: Move AC_LIBOBJ invocations to module description.
11181         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
11182         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
11183
11184 2011-05-23  Bruno Haible  <bruno@clisp.org>
11185
11186         modechange: Move AC_LIBOBJ invocations to module description.
11187         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
11188         * modules/modechange (Makefile.am): Augment lib_SOURCES.
11189
11190 2011-05-23  Bruno Haible  <bruno@clisp.org>
11191
11192         mkdir-p: Move AC_LIBOBJ invocations to module description.
11193         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
11194         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
11195
11196 2011-05-23  Bruno Haible  <bruno@clisp.org>
11197
11198         mkancesdirs: Move AC_LIBOBJ invocations to module description.
11199         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
11200         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
11201
11202 2011-05-23  Bruno Haible  <bruno@clisp.org>
11203
11204         mgetgroups: Move AC_LIBOBJ invocations to module description.
11205         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
11206         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
11207
11208 2011-05-23  Bruno Haible  <bruno@clisp.org>
11209
11210         memxor: Move AC_LIBOBJ invocations to module description.
11211         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
11212         * modules/memxor (Makefile.am): Augment lib_SOURCES.
11213
11214 2011-05-23  Bruno Haible  <bruno@clisp.org>
11215
11216         memcoll: Move AC_LIBOBJ invocations to module description.
11217         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
11218         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
11219
11220 2011-05-23  Bruno Haible  <bruno@clisp.org>
11221
11222         memcasecmp: Move AC_LIBOBJ invocations to module description.
11223         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
11224         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
11225
11226 2011-05-23  Bruno Haible  <bruno@clisp.org>
11227
11228         crypto/md5: Move AC_LIBOBJ invocations to module description.
11229         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
11230         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
11231
11232 2011-05-23  Bruno Haible  <bruno@clisp.org>
11233
11234         crypto/md4: Move AC_LIBOBJ invocations to module description.
11235         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
11236         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
11237
11238 2011-05-23  Bruno Haible  <bruno@clisp.org>
11239
11240         crypto/md2: Move AC_LIBOBJ invocations to module description.
11241         * m4/md2.m4: Remove file.
11242         * modules/crypto/md2 (Files): Remove it.
11243         (configure.ac): Remove gl_MD2 call.
11244         (Makefile.am): Augment lib_SOURCES.
11245
11246 2011-05-23  Bruno Haible  <bruno@clisp.org>
11247
11248         long-options: Move AC_LIBOBJ invocations to module description.
11249         * m4/long-options.m4: Remove file.
11250         * modules/long-options (Files): Remove it.
11251         (configure.ac): Remove gl_LONG_OPTIONS call.
11252         (Makefile.am): Augment lib_SOURCES.
11253
11254 2011-05-23  Bruno Haible  <bruno@clisp.org>
11255
11256         i-ring: Move AC_LIBOBJ invocations to module description.
11257         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
11258         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
11259
11260 2011-05-23  Bruno Haible  <bruno@clisp.org>
11261
11262         idcache: Move AC_LIBOBJ invocations to module description.
11263         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
11264         * modules/idcache (Makefile.am): Augment lib_SOURCES.
11265
11266 2011-05-23  Bruno Haible  <bruno@clisp.org>
11267
11268         human: Move AC_LIBOBJ invocations to module description.
11269         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
11270         * modules/human (Makefile.am): Augment lib_SOURCES.
11271
11272 2011-05-23  Bruno Haible  <bruno@clisp.org>
11273
11274         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
11275         * m4/hmac-sha1.m4: Remove file.
11276         * modules/crypto/hmac-sha1 (Files): Remove it.
11277         (configure.ac): Remove gl_HMAC_SHA1 call.
11278         (Makefile.am): Augment lib_SOURCES.
11279
11280 2011-05-23  Bruno Haible  <bruno@clisp.org>
11281
11282         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
11283         * m4/hmac-md5.m4: Remove file.
11284         * modules/crypto/hmac-md5 (Files): Remove it.
11285         (configure.ac): Remove gl_HMAC_MD5 call.
11286         (Makefile.am): Augment lib_SOURCES.
11287
11288 2011-05-23  Bruno Haible  <bruno@clisp.org>
11289
11290         hash: Move AC_LIBOBJ invocations to module description.
11291         * m4/hash.m4: Remove file.
11292         * modules/hash (Files): Remove it.
11293         (configure.ac): Remove gl_HASH call.
11294         (Makefile.am): Augment lib_SOURCES.
11295
11296 2011-05-23  Bruno Haible  <bruno@clisp.org>
11297
11298         hard-locale: Move AC_LIBOBJ invocations to module description.
11299         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
11300         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
11301
11302 2011-05-23  Bruno Haible  <bruno@clisp.org>
11303
11304         getugroups: Move AC_LIBOBJ invocations to module description.
11305         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
11306         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
11307
11308 2011-05-23  Bruno Haible  <bruno@clisp.org>
11309
11310         gettime: Move AC_LIBOBJ invocations to module description.
11311         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
11312         * modules/gettime (Makefile.am): Augment lib_SOURCES.
11313
11314 2011-05-23  Bruno Haible  <bruno@clisp.org>
11315
11316         getndelim2: Move AC_LIBOBJ invocations to module description.
11317         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
11318         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
11319
11320 2011-05-23  Bruno Haible  <bruno@clisp.org>
11321
11322         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
11323         * m4/gc-pbkdf2-sha1.m4: Remove file.
11324         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
11325         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
11326         (Makefile.am): Augment lib_SOURCES.
11327
11328 2011-05-23  Bruno Haible  <bruno@clisp.org>
11329
11330         fts: Move AC_LIBOBJ invocations to module description.
11331         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
11332         * modules/fts (configure.ac): ... to here.
11333
11334 2011-05-23  Bruno Haible  <bruno@clisp.org>
11335
11336         file-type: Move AC_LIBOBJ invocations to module description.
11337         * m4/file-type.m4: Remove file.
11338         * modules/file-type (Files): Remove it.
11339         (configure.ac): Remove gl_FILE_TYPE call.
11340         (Makefile.am): Augment lib_SOURCES.
11341
11342 2011-05-23  Bruno Haible  <bruno@clisp.org>
11343
11344         filenamecat*: Respect rules for use of AC_LIBOBJ.
11345         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
11346         Remove AC_LIBOBJ invocation.
11347         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
11348         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
11349
11350 2011-05-23  Bruno Haible  <bruno@clisp.org>
11351
11352         filemode: Move AC_LIBOBJ invocations to module description.
11353         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
11354         * modules/filemode (Makefile.am): Augment lib_SOURCES.
11355
11356 2011-05-23  Bruno Haible  <bruno@clisp.org>
11357
11358         openat-safer: Move AC_LIBOBJ invocations to module description.
11359         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
11360         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
11361
11362 2011-05-23  Bruno Haible  <bruno@clisp.org>
11363
11364         fcntl-safer: Move AC_LIBOBJ invocations to module description.
11365         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
11366         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
11367
11368 2011-05-23  Bruno Haible  <bruno@clisp.org>
11369
11370         exclude: Move AC_LIBOBJ invocations to module description.
11371         * m4/exclude.m4: Remove file.
11372         * modules/exclude (Files): Remove it.
11373         (configure.ac): Remove gl_EXCLUDE call.
11374         (Makefile.am): Augment lib_SOURCES.
11375
11376 2011-05-23  Bruno Haible  <bruno@clisp.org>
11377
11378         dirname*: Respect rules for use of AC_LIBOBJ.
11379         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
11380         invocations.
11381         * modules/dirname (Makefile.am): Augment lib_SOURCES.
11382         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
11383
11384 2011-05-23  Bruno Haible  <bruno@clisp.org>
11385
11386         dirent-safer: Move AC_LIBOBJ invocations to module description.
11387         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
11388         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
11389
11390 2011-05-23  Bruno Haible  <bruno@clisp.org>
11391
11392         crypto/des: Move AC_LIBOBJ invocations to module description.
11393         * m4/des.m4: Remove file.
11394         * modules/crypto/des (Files): Remove it.
11395         (configure.ac): Remove gl_DES call.
11396         (Makefile.am): Augment lib_SOURCES.
11397
11398 2011-05-23  Bruno Haible  <bruno@clisp.org>
11399
11400         cycle-check: Move AC_LIBOBJ invocations to module description.
11401         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
11402         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
11403
11404 2011-05-23  Bruno Haible  <bruno@clisp.org>
11405
11406         c-strtold: Move AC_LIBOBJ invocations to module description.
11407         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
11408         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
11409
11410 2011-05-23  Bruno Haible  <bruno@clisp.org>
11411
11412         c-strtod: Move AC_LIBOBJ invocations to module description.
11413         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
11414         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
11415
11416 2011-05-23  Bruno Haible  <bruno@clisp.org>
11417
11418         crc: Move AC_LIBOBJ invocations to module description.
11419         * m4/crc.m4: Remove file.
11420         * modules/crc (Files): Remove it.
11421         (configure.ac): Remove gl_CRC call.
11422         (Makefile.am): Augment lib_SOURCES.
11423
11424 2011-05-23  Bruno Haible  <bruno@clisp.org>
11425
11426         close-stream: Move AC_LIBOBJ invocations to module description.
11427         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
11428         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
11429
11430 2011-05-23  Bruno Haible  <bruno@clisp.org>
11431
11432         closeout: Move AC_LIBOBJ invocations to module description.
11433         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
11434         * modules/closeout (Makefile.am): Augment lib_SOURCES.
11435
11436 2011-05-23  Bruno Haible  <bruno@clisp.org>
11437
11438         closein: Move AC_LIBOBJ invocations to module description.
11439         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
11440         * modules/closein (Makefile.am): Augment lib_SOURCES.
11441
11442 2011-05-23  Bruno Haible  <bruno@clisp.org>
11443
11444         cloexec: Move AC_LIBOBJ invocations to module description.
11445         * m4/cloexec.m4: Remove file.
11446         * modules/cloexec (Files): Remove it.
11447         (configure.ac): Remove gl_CLOEXEC call.
11448         (Makefile.am): Augment lib_SOURCES.
11449
11450 2011-05-23  Bruno Haible  <bruno@clisp.org>
11451
11452         check-version: Move AC_LIBOBJ invocations to module description.
11453         * m4/check-version.m4: Remove file.
11454         * modules/check-version (Files): Remove it.
11455         (configure.ac): Remove gl_CHECK_VERSION call.
11456         (Makefile.am): Augment lib_SOURCES.
11457
11458 2011-05-23  Bruno Haible  <bruno@clisp.org>
11459
11460         chdir-safer: Move AC_LIBOBJ invocations to module description.
11461         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
11462         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
11463
11464 2011-05-23  Bruno Haible  <bruno@clisp.org>
11465
11466         canonicalize: Move AC_LIBOBJ invocations to module description.
11467         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
11468         AC_LIBOBJ invocation.
11469         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
11470
11471 2011-05-23  Bruno Haible  <bruno@clisp.org>
11472
11473         canon-host: Move AC_LIBOBJ invocations to module description.
11474         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
11475         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
11476         instead of gl_CANON_HOST.
11477         (Makefile.am): Augment lib_SOURCES.
11478
11479 2011-05-23  Bruno Haible  <bruno@clisp.org>
11480
11481         backupfile: Move AC_LIBOBJ invocations to module description.
11482         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
11483         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
11484
11485 2011-05-23  Bruno Haible  <bruno@clisp.org>
11486
11487         argmatch: Move AC_LIBOBJ invocations to module description.
11488         * m4/argmatch.m4: Remove file.
11489         * modules/argmatch (Files): Remove it.
11490         (configure.ac): Remove gl_ARGMATCH call.
11491         (Makefile.am): Augment lib_SOURCES.
11492
11493 2011-05-23  Bruno Haible  <bruno@clisp.org>
11494
11495         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
11496         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
11497         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
11498
11499 2011-05-23  Bruno Haible  <bruno@clisp.org>
11500
11501         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
11502         * m4/arcfour.m4: Remove file.
11503         * modules/crypto/arcfour (Files): Remove it.
11504         (configure.ac): Remove gl_ARCFOUR call.
11505         (Makefile.am): Augment lib_SOURCES.
11506
11507 2011-05-22  Bruno Haible  <bruno@clisp.org>
11508
11509         write: Move AC_LIBOBJ invocations to module description.
11510         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
11511         * modules/write (configure.ac): ... to here.
11512
11513 2011-05-22  Bruno Haible  <bruno@clisp.org>
11514
11515         wmemset: Move AC_LIBOBJ invocations to module description.
11516         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
11517         here...
11518         * modules/wmemset (configure.ac): ... to here.
11519
11520 2011-05-22  Bruno Haible  <bruno@clisp.org>
11521
11522         wmemmove: Move AC_LIBOBJ invocations to module description.
11523         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
11524         here...
11525         * modules/wmemmove (configure.ac): ... to here.
11526
11527 2011-05-22  Bruno Haible  <bruno@clisp.org>
11528
11529         wmemcpy: Move AC_LIBOBJ invocations to module description.
11530         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
11531         here...
11532         * modules/wmemcpy (configure.ac): ... to here.
11533
11534 2011-05-22  Bruno Haible  <bruno@clisp.org>
11535
11536         wmemcmp: Move AC_LIBOBJ invocations to module description.
11537         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
11538         here...
11539         * modules/wmemcmp (configure.ac): ... to here.
11540
11541 2011-05-22  Bruno Haible  <bruno@clisp.org>
11542
11543         wmemchr: Move AC_LIBOBJ invocations to module description.
11544         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
11545         here...
11546         * modules/wmemchr (configure.ac): ... to here.
11547
11548 2011-05-22  Bruno Haible  <bruno@clisp.org>
11549
11550         wcswidth: Move AC_LIBOBJ invocations to module description.
11551         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
11552         here...
11553         * modules/wcswidth (configure.ac): ... to here.
11554
11555 2011-05-22  Bruno Haible  <bruno@clisp.org>
11556
11557         wcwidth: Respect rules for use of AC_LIBOBJ.
11558         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
11559         invocation from here...
11560         * modules/wcwidth (configure.ac): ... to here.
11561         (Depends-on): Update conditions.
11562
11563 2011-05-22  Bruno Haible  <bruno@clisp.org>
11564
11565         wctype: Move AC_LIBOBJ invocations to module description.
11566         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
11567         invocation from here...
11568         * modules/wctype (configure.ac): ... to here.
11569         (Depends-on): Update conditions.
11570
11571 2011-05-22  Bruno Haible  <bruno@clisp.org>
11572
11573         wctrans: Move AC_LIBOBJ invocations to module description.
11574         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
11575         invocation from here...
11576         * modules/wctrans (configure.ac): ... to here.
11577
11578 2011-05-22  Bruno Haible  <bruno@clisp.org>
11579
11580         wctomb: Move AC_LIBOBJ invocations to module description.
11581         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
11582         invocations from here...
11583         * modules/wctomb (configure.ac): ... to here.
11584
11585 2011-05-22  Bruno Haible  <bruno@clisp.org>
11586
11587         wctob: Move AC_LIBOBJ invocations to module description.
11588         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
11589         gl_PREREQ_WCTOB invocations from here...
11590         * modules/wctob (configure.ac): ... to here.
11591         (Depends-on): Update conditions.
11592
11593 2011-05-22  Bruno Haible  <bruno@clisp.org>
11594
11595         wcsxfrm: Move AC_LIBOBJ invocations to module description.
11596         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
11597         here...
11598         * modules/wcsxfrm (configure.ac): ... to here.
11599
11600 2011-05-22  Bruno Haible  <bruno@clisp.org>
11601
11602         wcstok: Move AC_LIBOBJ invocations to module description.
11603         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
11604         * modules/wcstok (configure.ac): ... to here.
11605
11606 2011-05-22  Bruno Haible  <bruno@clisp.org>
11607
11608         wcsstr: Move AC_LIBOBJ invocations to module description.
11609         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
11610         * modules/wcsstr (configure.ac): ... to here.
11611
11612 2011-05-22  Bruno Haible  <bruno@clisp.org>
11613
11614         wcsspn: Move AC_LIBOBJ invocations to module description.
11615         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
11616         * modules/wcsspn (configure.ac): ... to here.
11617
11618 2011-05-22  Bruno Haible  <bruno@clisp.org>
11619
11620         wcsrtombs: Move AC_LIBOBJ invocations to module description.
11621         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
11622         gl_PREREQ_WCSRTOMBS invocations from here...
11623         * modules/wcsrtombs (configure.ac): ... to here.
11624
11625 2011-05-22  Bruno Haible  <bruno@clisp.org>
11626
11627         wcsrchr: Move AC_LIBOBJ invocations to module description.
11628         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
11629         here...
11630         * modules/wcsrchr (configure.ac): ... to here.
11631
11632 2011-05-22  Bruno Haible  <bruno@clisp.org>
11633
11634         wcspbrk: Move AC_LIBOBJ invocations to module description.
11635         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
11636         here...
11637         * modules/wcspbrk (configure.ac): ... to here.
11638
11639 2011-05-22  Bruno Haible  <bruno@clisp.org>
11640
11641         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
11642         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
11643         gl_PREREQ_WCSNRTOMBS invocations from here...
11644         * modules/wcsnrtombs (configure.ac): ... to here.
11645
11646 2011-05-22  Bruno Haible  <bruno@clisp.org>
11647
11648         wcsnlen: Move AC_LIBOBJ invocations to module description.
11649         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
11650         here...
11651         * modules/wcsnlen (configure.ac): ... to here.
11652
11653 2011-05-22  Bruno Haible  <bruno@clisp.org>
11654
11655         wcsncpy: Move AC_LIBOBJ invocations to module description.
11656         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
11657         here...
11658         * modules/wcsncpy (configure.ac): ... to here.
11659
11660 2011-05-22  Bruno Haible  <bruno@clisp.org>
11661
11662         wcsncmp: Move AC_LIBOBJ invocations to module description.
11663         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
11664         here...
11665         * modules/wcsncmp (configure.ac): ... to here.
11666
11667 2011-05-22  Bruno Haible  <bruno@clisp.org>
11668
11669         wcsncat: Move AC_LIBOBJ invocations to module description.
11670         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
11671         here...
11672         * modules/wcsncat (configure.ac): ... to here.
11673
11674 2011-05-22  Bruno Haible  <bruno@clisp.org>
11675
11676         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
11677         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
11678         from here...
11679         * modules/wcsncasecmp (configure.ac): ... to here.
11680
11681 2011-05-22  Bruno Haible  <bruno@clisp.org>
11682
11683         wcslen: Move AC_LIBOBJ invocations to module description.
11684         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
11685         * modules/wcslen (configure.ac): ... to here.
11686
11687 2011-05-22  Bruno Haible  <bruno@clisp.org>
11688
11689         wcsdup: Move AC_LIBOBJ invocations to module description.
11690         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
11691         * modules/wcsdup (configure.ac): ... to here.
11692
11693 2011-05-22  Bruno Haible  <bruno@clisp.org>
11694
11695         wcscspn: Move AC_LIBOBJ invocations to module description.
11696         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
11697         here...
11698         * modules/wcscspn (configure.ac): ... to here.
11699
11700 2011-05-22  Bruno Haible  <bruno@clisp.org>
11701
11702         wcscpy: Move AC_LIBOBJ invocations to module description.
11703         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
11704         * modules/wcscpy (configure.ac): ... to here.
11705
11706 2011-05-22  Bruno Haible  <bruno@clisp.org>
11707
11708         wcscoll: Move AC_LIBOBJ invocations to module description.
11709         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
11710         here...
11711         * modules/wcscoll (configure.ac): ... to here.
11712
11713 2011-05-22  Bruno Haible  <bruno@clisp.org>
11714
11715         wcscmp: Move AC_LIBOBJ invocations to module description.
11716         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
11717         * modules/wcscmp (configure.ac): ... to here.
11718
11719 2011-05-22  Bruno Haible  <bruno@clisp.org>
11720
11721         wcschr: Move AC_LIBOBJ invocations to module description.
11722         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
11723         * modules/wcschr (configure.ac): ... to here.
11724
11725 2011-05-22  Bruno Haible  <bruno@clisp.org>
11726
11727         wcscat: Move AC_LIBOBJ invocations to module description.
11728         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
11729         * modules/wcscat (configure.ac): ... to here.
11730
11731 2011-05-22  Bruno Haible  <bruno@clisp.org>
11732
11733         wcscasecmp: Move AC_LIBOBJ invocations to module description.
11734         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
11735         here...
11736         * modules/wcscasecmp (configure.ac): ... to here.
11737
11738 2011-05-22  Bruno Haible  <bruno@clisp.org>
11739
11740         wcrtomb: Move AC_LIBOBJ invocations to module description.
11741         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
11742         invocations from here...
11743         * modules/wcrtomb (configure.ac): ... to here.
11744
11745 2011-05-22  Bruno Haible  <bruno@clisp.org>
11746
11747         wcpncpy: Move AC_LIBOBJ invocations to module description.
11748         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
11749         here...
11750         * modules/wcpncpy (configure.ac): ... to here.
11751
11752 2011-05-22  Bruno Haible  <bruno@clisp.org>
11753
11754         wcpcpy: Move AC_LIBOBJ invocations to module description.
11755         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
11756         * modules/wcpcpy (configure.ac): ... to here.
11757
11758 2011-05-22  Bruno Haible  <bruno@clisp.org>
11759
11760         waitpid: Move AC_LIBOBJ invocations to module description.
11761         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
11762         invocation from here...
11763         * modules/waitpid (configure.ac): ... to here.
11764
11765 2011-05-22  Bruno Haible  <bruno@clisp.org>
11766
11767         utimensat: Move AC_LIBOBJ invocations to module description.
11768         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
11769         here...
11770         * modules/utimensat (configure.ac): ... to here.
11771
11772 2011-05-22  Bruno Haible  <bruno@clisp.org>
11773
11774         usleep: Move AC_LIBOBJ invocations to module description.
11775         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
11776         here...
11777         * modules/usleep (configure.ac): ... to here.
11778
11779 2011-05-22  Bruno Haible  <bruno@clisp.org>
11780
11781         unlockpt: Move AC_LIBOBJ invocations to module description.
11782         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
11783         gl_PREREQ_UNLOCKPT invocations from here...
11784         * modules/unlockpt (configure.ac): ... to here.
11785
11786 2011-05-22  Bruno Haible  <bruno@clisp.org>
11787
11788         unlink: Respect rules for use of AC_LIBOBJ.
11789         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
11790         * modules/unlink (configure.ac): ... to here.
11791
11792 2011-05-22  Bruno Haible  <bruno@clisp.org>
11793
11794         uname: Move AC_LIBOBJ invocations to module description.
11795         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
11796         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
11797         here...
11798         * modules/uname (configure.ac): ... to here.
11799
11800 2011-05-22  Bruno Haible  <bruno@clisp.org>
11801
11802         ttyname_r: Move AC_LIBOBJ invocations to module description.
11803         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
11804         gl_PREREQ_TTYNAME_R invocations from here...
11805         * modules/ttyname_r (configure.ac): ... to here.
11806
11807 2011-05-22  Bruno Haible  <bruno@clisp.org>
11808
11809         tsearch: Move AC_LIBOBJ invocations to module description.
11810         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
11811         invocations from here...
11812         * modules/tsearch (configure.ac): ... to here.
11813
11814 2011-05-22  Bruno Haible  <bruno@clisp.org>
11815
11816         towctrans: Move AC_LIBOBJ invocations to module description.
11817         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
11818         AC_LIBOBJ invocation from here...
11819         * modules/towctrans (configure.ac): ... to here.
11820
11821 2011-05-22  Bruno Haible  <bruno@clisp.org>
11822
11823         tmpfile: Move AC_LIBOBJ invocations to module description.
11824         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
11825         invocations from here...
11826         * modules/tmpfile (configure.ac): ... to here.
11827
11828 2011-05-22  Bruno Haible  <bruno@clisp.org>
11829
11830         times: Move AC_LIBOBJ invocations to module description.
11831         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
11832         * modules/times (configure.ac): ... to here.
11833
11834 2011-05-22  Bruno Haible  <bruno@clisp.org>
11835
11836         time_r: Move AC_LIBOBJ invocations to module description.
11837         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
11838         invocations from here...
11839         * modules/time_r (configure.ac): ... to here.
11840
11841 2011-05-22  Bruno Haible  <bruno@clisp.org>
11842
11843         timegm: Move AC_LIBOBJ invocations to module description.
11844         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
11845         invocations from here...
11846         * modules/timegm (configure.ac): ... to here.
11847
11848 2011-05-22  Bruno Haible  <bruno@clisp.org>
11849
11850         tcgetsid: Move AC_LIBOBJ invocations to module description.
11851         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
11852         and gl_PREREQ_TCGETSID invocations from here...
11853         * modules/tcgetsid (configure.ac): ... to here.
11854         (Depends-on): Update conditions.
11855
11856 2011-05-22  Bruno Haible  <bruno@clisp.org>
11857
11858         symlinkat: Move AC_LIBOBJ invocations to module description.
11859         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
11860         here...
11861         * modules/symlinkat (configure.ac): ... to here.
11862
11863 2011-05-22  Bruno Haible  <bruno@clisp.org>
11864
11865         symlink: Move AC_LIBOBJ invocations to module description.
11866         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
11867         here...
11868         * modules/symlink (configure.ac): ... to here.
11869
11870 2011-05-22  Bruno Haible  <bruno@clisp.org>
11871
11872         strverscmp: Move AC_LIBOBJ invocations to module description.
11873         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
11874         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
11875         from here...
11876         * modules/strverscmp (configure.ac): ... to here.
11877
11878 2011-05-22  Bruno Haible  <bruno@clisp.org>
11879
11880         strtok_r: Move AC_LIBOBJ invocations to module description.
11881         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
11882         and gl_PREREQ_STRTOK_R invocations from here...
11883         * modules/strtok_r (configure.ac): ... to here.
11884         (Depends-on): Update conditions.
11885
11886 2011-05-22  Bruno Haible  <bruno@clisp.org>
11887
11888         strtoumax: Move AC_LIBOBJ invocations to module description.
11889         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
11890         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
11891         from here...
11892         * modules/strtoumax (configure.ac): ... to here.
11893
11894 2011-05-22  Bruno Haible  <bruno@clisp.org>
11895
11896         strtoimax: Move AC_LIBOBJ invocations to module description.
11897         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
11898         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
11899         from here...
11900         * modules/strtoimax (configure.ac): ... to here.
11901
11902 2011-05-22  Bruno Haible  <bruno@clisp.org>
11903
11904         strtoull: Move AC_LIBOBJ invocations to module description.
11905         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
11906         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
11907         from here...
11908         * modules/strtoull (configure.ac): ... to here.
11909
11910 2011-05-22  Bruno Haible  <bruno@clisp.org>
11911
11912         strtoll: Move AC_LIBOBJ invocations to module description.
11913         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
11914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
11915         here...
11916         * modules/strtoll (configure.ac): ... to here.
11917
11918 2011-05-22  Bruno Haible  <bruno@clisp.org>
11919
11920         strtoul: Move AC_LIBOBJ invocations to module description.
11921         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
11922         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
11923         * modules/strtoul (configure.ac): ... to here.
11924
11925 2011-05-22  Bruno Haible  <bruno@clisp.org>
11926
11927         strtol: Move AC_LIBOBJ invocations to module description.
11928         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
11929         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
11930         * modules/strtol (configure.ac): ... to here.
11931
11932 2011-05-22  Bruno Haible  <bruno@clisp.org>
11933
11934         strtod: Move AC_LIBOBJ invocations to module description.
11935         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
11936         invocations from here...
11937         * modules/strtod (configure.ac): ... to here.
11938
11939 2011-05-22  Bruno Haible  <bruno@clisp.org>
11940
11941         strstr*: Move AC_LIBOBJ invocations to module description.
11942         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
11943         invocations from here...
11944         * modules/strstr-simple (configure.ac): ... to here.
11945         * modules/strstr (configure.ac): ... and here.
11946
11947 2011-05-22  Bruno Haible  <bruno@clisp.org>
11948
11949         strsignal: Move AC_LIBOBJ invocations to module description.
11950         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
11951         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
11952         * modules/strsignal (configure.ac): ... to here.
11953         (Depends-on): Update conditions.
11954
11955 2011-05-22  Bruno Haible  <bruno@clisp.org>
11956
11957         strsep: Move AC_LIBOBJ invocations to module description.
11958         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
11959         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
11960         here...
11961         * modules/strsep (configure.ac): ... to here.
11962
11963 2011-05-22  Bruno Haible  <bruno@clisp.org>
11964
11965         strptime: Move AC_LIBOBJ invocations to module description.
11966         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
11967         gl_PREREQ_STRPTIME invocations from here...
11968         * modules/strptime (configure.ac): ... to here.
11969
11970 2011-05-22  Bruno Haible  <bruno@clisp.org>
11971
11972         strpbrk: Move AC_LIBOBJ invocations to module description.
11973         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
11974         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
11975         here...
11976         * modules/strpbrk (configure.ac): ... to here.
11977
11978 2011-05-22  Bruno Haible  <bruno@clisp.org>
11979
11980         strnlen: Move AC_LIBOBJ invocations to module description.
11981         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
11982         invocations from here...
11983         * modules/strnlen (configure.ac): ... to here.
11984
11985 2011-05-22  Bruno Haible  <bruno@clisp.org>
11986
11987         strndup: Move AC_LIBOBJ invocations to module description.
11988         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
11989         invocations from here...
11990         * modules/strndup (configure.ac): ... to here.
11991         (Depends-on): Update conditions.
11992
11993 2011-05-22  Bruno Haible  <bruno@clisp.org>
11994
11995         strncat: Move AC_LIBOBJ invocations to module description.
11996         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
11997         invocations from here...
11998         * modules/strncat (configure.ac): ... to here.
11999
12000 2011-05-22  Bruno Haible  <bruno@clisp.org>
12001
12002         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
12003         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
12004         invocations from here...
12005         * modules/strdup (configure.ac): ... to here.
12006         * modules/strdup-posix (configure.ac): ... and here.
12007
12008 2011-05-22  Bruno Haible  <bruno@clisp.org>
12009
12010         strcspn: Move AC_LIBOBJ invocations to module description.
12011         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
12012         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
12013         here...
12014         * modules/strcspn (configure.ac): ... to here.
12015
12016 2011-05-22  Bruno Haible  <bruno@clisp.org>
12017
12018         strchrnul: Move AC_LIBOBJ invocations to module description.
12019         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
12020         gl_PREREQ_STRCHRNUL invocations from here...
12021         * modules/strchrnul (configure.ac): ... to here.
12022
12023 2011-05-22  Bruno Haible  <bruno@clisp.org>
12024
12025         strcasestr*: Move AC_LIBOBJ invocations to module description.
12026         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12027         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
12028         * modules/strcasestr-simple (configure.ac): ... to here.
12029         * modules/strcasestr (configure.ac): ... and here.
12030
12031 2011-05-22  Bruno Haible  <bruno@clisp.org>
12032
12033         strcase: Move AC_LIBOBJ invocations to module description.
12034         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
12035         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
12036         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
12037         gl_PREREQ_STRNCASECMP invocations from here...
12038         * modules/strcase (configure.ac): ... to here.
12039
12040 2011-05-22  Bruno Haible  <bruno@clisp.org>
12041
12042         stpncpy: Move AC_LIBOBJ invocations to module description.
12043         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
12044         here...
12045         * modules/stpncpy (configure.ac): ... to here.
12046
12047 2011-05-22  Bruno Haible  <bruno@clisp.org>
12048
12049         stpcpy: Move AC_LIBOBJ invocations to module description.
12050         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
12051         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
12052         here...
12053         * modules/stpcpy (configure.ac): ... to here.
12054
12055 2011-05-21  Bruno Haible  <bruno@clisp.org>
12056
12057         stat: Move AC_LIBOBJ invocations to module description.
12058         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
12059         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
12060         here...
12061         * modules/stat (configure.ac): ... to here.
12062
12063 2011-05-21  Bruno Haible  <bruno@clisp.org>
12064
12065         sleep: Move AC_LIBOBJ invocations to module description.
12066         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
12067         * modules/sleep (configure.ac): ... to here.
12068
12069 2011-05-21  Bruno Haible  <bruno@clisp.org>
12070
12071         signbit: Move AC_LIBOBJ invocations to module description.
12072         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
12073         * modules/signbit (configure.ac): ... to here.
12074
12075 2011-05-21  Bruno Haible  <bruno@clisp.org>
12076
12077         sigprocmask: Move AC_LIBOBJ invocations to module description.
12078         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
12079         gl_PREREQ_SIGPROMASK invocations from here...
12080         * modules/sigprocmask (configure.ac): ... to here.
12081
12082 2011-05-21  Bruno Haible  <bruno@clisp.org>
12083
12084         sigaction: Move AC_LIBOBJ invocations to module description.
12085         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
12086         gl_PREREQ_SIGACTION invocations from here...
12087         * modules/sigaction (configure.ac): ... to here.
12088
12089 2011-05-21  Bruno Haible  <bruno@clisp.org>
12090
12091         sig2str: Move AC_LIBOBJ invocations to module description.
12092         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
12093         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
12094         here...
12095         * modules/sig2str (configure.ac): ... to here.
12096
12097 2011-05-21  Bruno Haible  <bruno@clisp.org>
12098
12099         setlocale: Move AC_LIBOBJ invocations to module description.
12100         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
12101         gl_PREREQ_SETLOCALE invocations from here...
12102         * modules/setlocale (configure.ac): ... to here.
12103
12104 2011-05-21  Bruno Haible  <bruno@clisp.org>
12105
12106         unsetenv: Move AC_LIBOBJ invocations to module description.
12107         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
12108         and gl_PREREQ_UNSETENV invocations from here...
12109         * modules/unsetenv (configure.ac): ... to here.
12110         (Depends-on): Update.
12111
12112 2011-05-21  Bruno Haible  <bruno@clisp.org>
12113
12114         setenv: Move AC_LIBOBJ invocations to module description.
12115         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
12116         here...
12117         * modules/setenv (configure.ac): ... to here.
12118
12119 2011-05-21  Bruno Haible  <bruno@clisp.org>
12120
12121         selinux-h: Move AC_LIBOBJ invocations to module description.
12122         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
12123         AC_LIBOBJ invocation from here...
12124         * modules/selinux-h (configure.ac): ... to here.
12125
12126 2011-05-21  Bruno Haible  <bruno@clisp.org>
12127
12128         select: Respect rules for use of AC_LIBOBJ.
12129         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
12130         here...
12131         * modules/select (configure.ac): ... to here.
12132
12133 2011-05-21  Bruno Haible  <bruno@clisp.org>
12134
12135         scandir: Move AC_LIBOBJ invocations to module description.
12136         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
12137         invocations from here...
12138         * modules/scandir (configure.ac): ... to here.
12139
12140 2011-05-21  Bruno Haible  <bruno@clisp.org>
12141
12142         rpmatch: Move AC_LIBOBJ invocations to module description.
12143         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
12144         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
12145         here...
12146         * modules/rpmatch (configure.ac): ... to here.
12147
12148 2011-05-21  Bruno Haible  <bruno@clisp.org>
12149
12150         rmdir: Respect rules for use of AC_LIBOBJ.
12151         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
12152         * modules/rmdir (configure.ac): ... to here.
12153
12154 2011-05-21  Bruno Haible  <bruno@clisp.org>
12155
12156         renameat: Move AC_LIBOBJ invocations to module description.
12157         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
12158         here...
12159         * modules/renameat (configure.ac): ... to here.
12160
12161 2011-05-21  Bruno Haible  <bruno@clisp.org>
12162
12163         rename: Respect rules for use of AC_LIBOBJ.
12164         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
12165         here...
12166         * modules/rename (configure.ac): ... to here.
12167
12168 2011-05-21  Bruno Haible  <bruno@clisp.org>
12169
12170         remove: Move AC_LIBOBJ invocations to module description.
12171         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
12172         here...
12173         * modules/remove (configure.ac): ... to here.
12174
12175 2011-05-21  Bruno Haible  <bruno@clisp.org>
12176
12177         relocatable-lib: Move AC_LIBOBJ invocations to module description.
12178         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
12179         macro.
12180         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
12181         * modules/relocatable-lib (configure.ac): ... to here.
12182         * modules/relocatable-prog-wrapper (configure.ac): Invoke
12183         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
12184
12185 2011-05-21  Bruno Haible  <bruno@clisp.org>
12186
12187         relocatable-prog: Move AC_LIBOBJ invocations to module description.
12188         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
12189         here...
12190         * modules/relocatable-prog (configure.ac): ... to here.
12191
12192 2011-05-21  Bruno Haible  <bruno@clisp.org>
12193
12194         regex: Move AC_LIBOBJ invocations to module description.
12195         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
12196         invocations from here...
12197         * modules/regex (configure.ac): ... to here.
12198
12199 2011-05-21  Bruno Haible  <bruno@clisp.org>
12200
12201         realloc-*: Move AC_LIBOBJ invocations to module description.
12202         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
12203         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
12204         AC_LIBOBJ invocations from here...
12205         * modules/realloc-gnu (configure.ac): ... to here.
12206         * modules/realloc-posix (configure.ac): ... and here.
12207
12208 2011-05-21  Bruno Haible  <bruno@clisp.org>
12209
12210         readutmp: Move AC_LIBOBJ invocations to module description.
12211         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
12212         * modules/readutmp (configure.ac): ... to here.
12213
12214 2011-05-21  Bruno Haible  <bruno@clisp.org>
12215
12216         readlinkat: Move AC_LIBOBJ invocations to module description.
12217         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
12218         here...
12219         * modules/readlinkat (configure.ac): ... to here.
12220
12221 2011-05-21  Bruno Haible  <bruno@clisp.org>
12222
12223         readlink: Move AC_LIBOBJ invocations to module description.
12224         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
12225         gl_PREREQ_READLINK invocations from here...
12226         * modules/readlink (configure.ac): ... to here.
12227
12228 2011-05-21  Bruno Haible  <bruno@clisp.org>
12229
12230         readline: Move AC_LIBOBJ invocations to module description.
12231         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
12232         gl_PREREQ_READLINE invocations from here...
12233         * modules/readline (configure.ac): ... to here.
12234
12235 2011-05-21  Bruno Haible  <bruno@clisp.org>
12236
12237         read: Move AC_LIBOBJ invocations to module description.
12238         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
12239         * modules/read (configure.ac): ... to here.
12240
12241 2011-05-21  Bruno Haible  <bruno@clisp.org>
12242
12243         rawmemchr: Move AC_LIBOBJ invocations to module description.
12244         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
12245         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
12246         from here...
12247         * modules/rawmemchr (configure.ac): ... to here.
12248
12249 2011-05-21  Bruno Haible  <bruno@clisp.org>
12250
12251         random_r: Move AC_LIBOBJ invocations to module description.
12252         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
12253         gl_PREREQ_RANDOM_R invocations from here...
12254         * modules/random_r (configure.ac): ... to here.
12255
12256 2011-05-21  Bruno Haible  <bruno@clisp.org>
12257
12258         pwrite: Move AC_LIBOBJ invocations to module description.
12259         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
12260         * modules/pwrite (configure.ac): ... to here.
12261
12262 2011-05-21  Bruno Haible  <bruno@clisp.org>
12263
12264         putenv: Move AC_LIBOBJ invocations to module description.
12265         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
12266         * modules/putenv (configure.ac): ... to here.
12267
12268 2011-05-21  Bruno Haible  <bruno@clisp.org>
12269
12270         login_tty: Move AC_LIBOBJ invocations to module description.
12271         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
12272         * modules/login_tty (configure.ac): ... to here.
12273
12274 2011-05-21  Bruno Haible  <bruno@clisp.org>
12275
12276         openpty: Move AC_LIBOBJ invocations to module description.
12277         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
12278         * modules/openpty (configure.ac): ... to here.
12279
12280 2011-05-21  Bruno Haible  <bruno@clisp.org>
12281
12282         forkpty: Move AC_LIBOBJ invocations to module description.
12283         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
12284         * modules/forkpty (configure.ac): ... to here.
12285
12286 2011-05-21  Bruno Haible  <bruno@clisp.org>
12287
12288         ptsname: Move AC_LIBOBJ invocations to module description.
12289         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
12290         invocations from here...
12291         * modules/ptsname (configure.ac): ... to here.
12292
12293 2011-05-21  Bruno Haible  <bruno@clisp.org>
12294
12295         pread: Move AC_LIBOBJ invocations to module description.
12296         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
12297         * modules/pread (configure.ac): ... to here.
12298
12299 2011-05-21  Bruno Haible  <bruno@clisp.org>
12300
12301         posix_spawn*: Move AC_LIBOBJ invocations to module description.
12302         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
12303         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
12304         * modules/posix_spawn (configure.ac): ... to here.
12305         * modules/posix_spawnp (configure.ac): ... and here.
12306
12307 2011-05-21  Bruno Haible  <bruno@clisp.org>
12308
12309         popen: Move AC_LIBOBJ invocations to module description.
12310         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
12311         invocations from here...
12312         * modules/popen (configure.ac): ... to here.
12313
12314 2011-05-21  Bruno Haible  <bruno@clisp.org>
12315
12316         poll: Move AC_LIBOBJ invocations to module description.
12317         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
12318         invocations from here...
12319         * modules/poll (configure.ac): ... to here.
12320
12321 2011-05-21  Bruno Haible  <bruno@clisp.org>
12322
12323         pipe-posix: Move AC_LIBOBJ invocations to module description.
12324         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
12325         * modules/pipe-posix (configure.ac): ... to here.
12326
12327 2011-05-21  Bruno Haible  <bruno@clisp.org>
12328
12329         openat: Respect rules for use of AC_LIBOBJ.
12330         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
12331         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
12332         * modules/openat (configure.ac): ... to here.
12333
12334 2011-05-21  Bruno Haible  <bruno@clisp.org>
12335
12336         obstack-printf*: Move AC_LIBOBJ invocations to module description.
12337         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
12338         invocation from here...
12339         * modules/obstack-printf (configure.ac): ... to here.
12340         * modules/obstack-printf-posix (configure.ac): ... and here.
12341
12342 2011-05-21  Bruno Haible  <bruno@clisp.org>
12343
12344         nl_langinfo: Move AC_LIBOBJ invocations to module description.
12345         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
12346         from here...
12347         * modules/nl_langinfo (configure.ac): ... to here.
12348
12349 2011-05-21  Bruno Haible  <bruno@clisp.org>
12350
12351         nanosleep: Move AC_LIBOBJ invocations to module description.
12352         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
12353         gl_PREREQ_NANOSLEEP invocations from here...
12354         * modules/nanosleep (configure.ac): ... to here.
12355
12356 2011-05-21  Bruno Haible  <bruno@clisp.org>
12357
12358         mountlist: Move AC_LIBOBJ invocations to module description.
12359         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
12360         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
12361         * modules/mountlist (configure.ac): ... to here.
12362
12363 2011-05-21  Bruno Haible  <bruno@clisp.org>
12364
12365         mktime: Respect rules for use of AC_LIBOBJ.
12366         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
12367         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
12368         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
12369         (gl_FUNC_MKTIME_INTERNAL): ... and here...
12370         * modules/mktime (configure.ac): ... to here.
12371         * modules/mktime-internal (configure.ac): ... and here.
12372         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
12373
12374 2011-05-21  Bruno Haible  <bruno@clisp.org>
12375
12376         mkstemps: Move AC_LIBOBJ invocations to module description.
12377         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
12378         here...
12379         * modules/mkstemps (configure.ac): ... to here.
12380
12381 2011-05-21  Bruno Haible  <bruno@clisp.org>
12382
12383         mkstemp: Move AC_LIBOBJ invocations to module description.
12384         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
12385         gl_PREREQ_MKSTEMP invocations from here...
12386         * modules/mkstemp (configure.ac): ... to here.
12387
12388 2011-05-21  Bruno Haible  <bruno@clisp.org>
12389
12390         mkostemps: Move AC_LIBOBJ invocations to module description.
12391         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
12392         here...
12393         * modules/mkostemps (configure.ac): ... to here.
12394
12395 2011-05-21  Bruno Haible  <bruno@clisp.org>
12396
12397         mkostemp: Move AC_LIBOBJ invocations to module description.
12398         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
12399         gl_PREREQ_MKOSTEMP invocations from here...
12400         * modules/mkostemp (configure.ac): ... to here.
12401
12402 2011-05-21  Bruno Haible  <bruno@clisp.org>
12403
12404         mknod: Move AC_LIBOBJ invocations to module description.
12405         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
12406         * modules/mknod (configure.ac): ... to here.
12407
12408 2011-05-21  Bruno Haible  <bruno@clisp.org>
12409
12410         mkfifoat: Move AC_LIBOBJ invocations to module description.
12411         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
12412         here...
12413         * modules/mkfifoat (configure.ac): ... to here.
12414
12415 2011-05-21  Bruno Haible  <bruno@clisp.org>
12416
12417         mkfifo: Respect rules for use of AC_LIBOBJ.
12418         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
12419         here...
12420         * modules/mkfifo (configure.ac): ... to here.
12421
12422 2011-05-21  Bruno Haible  <bruno@clisp.org>
12423
12424         mkdtemp: Move AC_LIBOBJ invocations to module description.
12425         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
12426         invocations from here...
12427         * modules/mkdtemp (configure.ac): ... to here.
12428
12429 2011-05-21  Bruno Haible  <bruno@clisp.org>
12430
12431         mkdir: Move AC_LIBOBJ invocations to module description.
12432         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
12433         * modules/mkdir (configure.ac): ... to here.
12434
12435 2011-05-21  Bruno Haible  <bruno@clisp.org>
12436
12437         memset: Move AC_LIBOBJ invocations to module description.
12438         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
12439         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
12440         here...
12441         * modules/memset (configure.ac): ... to here.
12442
12443 2011-05-21  Bruno Haible  <bruno@clisp.org>
12444
12445         memrchr: Move AC_LIBOBJ invocations to module description.
12446         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
12447         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
12448         here...
12449         * modules/memrchr (configure.ac): ... to here.
12450
12451 2011-05-21  Bruno Haible  <bruno@clisp.org>
12452
12453         mempcpy: Move AC_LIBOBJ invocations to module description.
12454         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
12455         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
12456         here...
12457         * modules/mempcpy (configure.ac): ... to here.
12458
12459 2011-05-21  Bruno Haible  <bruno@clisp.org>
12460
12461         memmove: Move AC_LIBOBJ invocations to module description.
12462         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
12463         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
12464         here...
12465         * modules/memmove (configure.ac): ... to here.
12466
12467 2011-05-21  Bruno Haible  <bruno@clisp.org>
12468
12469         memmem*: Move AC_LIBOBJ invocations to module description.
12470         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
12471         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
12472         here...
12473         (gl_FUNC_MEMMEM): ... and here...
12474         * modules/memmem-simple (configure.ac): ... to here.
12475         * modules/memmem (configure.ac): ... and here.
12476
12477 2011-05-21  Bruno Haible  <bruno@clisp.org>
12478
12479         memcpy: Move AC_LIBOBJ invocations to module description.
12480         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
12481         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
12482         here...
12483         * modules/memcpy (configure.ac): ... to here.
12484
12485 2011-05-21  Bruno Haible  <bruno@clisp.org>
12486
12487         memcmp: Simplify autoconf macro.
12488         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
12489         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
12490         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
12491
12492 2011-05-21  Bruno Haible  <bruno@clisp.org>
12493
12494         memcmp: Move AC_LIBOBJ invocations to module description.
12495         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
12496         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
12497         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
12498         * modules/memcmp (configure.ac): ... to here.
12499         (Depends-on): Update conditions.
12500
12501 2011-05-21  Bruno Haible  <bruno@clisp.org>
12502
12503         memchr: Respect rules for use of AC_LIBOBJ.
12504         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
12505         invocations from here...
12506         * modules/memchr (configure.ac): ... to here.
12507
12508 2011-05-21  Bruno Haible  <bruno@clisp.org>
12509
12510         mbtowc: Move AC_LIBOBJ invocations to module description.
12511         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
12512         invocations from here...
12513         * modules/mbtowc (configure.ac): ... to here.
12514
12515 2011-05-21  Bruno Haible  <bruno@clisp.org>
12516
12517         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
12518         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
12519         gl_PREREQ_MBSRTOWCS invocations from here...
12520         * modules/mbsrtowcs (configure.ac): ... to here.
12521
12522 2011-05-21  Bruno Haible  <bruno@clisp.org>
12523
12524         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
12525         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
12526         gl_PREREQ_MBSNRTOWCS invocations from here...
12527         * modules/mbsnrtowcs (configure.ac): ... to here.
12528
12529 2011-05-21  Bruno Haible  <bruno@clisp.org>
12530
12531         mbsinit: Move AC_LIBOBJ invocations to module description.
12532         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
12533         invocations from here...
12534         * modules/mbsinit (configure.ac): ... to here.
12535
12536 2011-05-21  Bruno Haible  <bruno@clisp.org>
12537
12538         mbrlen: Move AC_LIBOBJ invocations to module description.
12539         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
12540         invocations from here...
12541         * modules/mbrlen (configure.ac): ... to here.
12542
12543 2011-05-21  Bruno Haible  <bruno@clisp.org>
12544
12545         mbrtowc: Respect rules for use of AC_LIBOBJ.
12546         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
12547         invocations from here...
12548         * modules/mbrtowc (configure.ac): ... to here.
12549
12550 2011-05-21  Bruno Haible  <bruno@clisp.org>
12551
12552         malloc-*: Move AC_LIBOBJ invocations to module description.
12553         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
12554         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
12555         AC_LIBOBJ invocations from here...
12556         * modules/malloc-gnu (configure.ac): ... to here.
12557         * modules/malloc-posix (configure.ac): ... and here.
12558
12559 2011-05-21  Bruno Haible  <bruno@clisp.org>
12560
12561         lstat, openat: Respect rules for use of AC_LIBOBJ.
12562         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
12563         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
12564         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
12565         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
12566         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
12567         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
12568         here.
12569         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
12570
12571 2011-05-21  Bruno Haible  <bruno@clisp.org>
12572
12573         lseek: Move AC_LIBOBJ invocations to module description.
12574         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
12575         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
12576         * modules/lseek (configure.ac): ... to here.
12577
12578 2011-05-21  Bruno Haible  <bruno@clisp.org>
12579
12580         linkat: Move AC_LIBOBJ invocations to module description.
12581         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
12582         here...
12583         * modules/linkat (configure.ac): ... to here.
12584
12585 2011-05-21  Bruno Haible  <bruno@clisp.org>
12586
12587         link: Respect rules for use of AC_LIBOBJ.
12588         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
12589         * modules/link (configure.ac): ... to here.
12590
12591 2011-05-21  Bruno Haible  <bruno@clisp.org>
12592
12593         lchown: Move AC_LIBOBJ invocations to module description.
12594         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
12595         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
12596         * modules/lchown (configure.ac): ... to here.
12597
12598 2011-05-21  Bruno Haible  <bruno@clisp.org>
12599
12600         iswctype: Move AC_LIBOBJ invocations to module description.
12601         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
12602         here...
12603         * modules/iswctype (configure.ac): ... to here.
12604
12605 2011-05-21  Bruno Haible  <bruno@clisp.org>
12606
12607         iswblank: Move AC_LIBOBJ invocations to module description.
12608         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
12609         here...
12610         * modules/iswblank (configure.ac): ... to here.
12611
12612 2011-05-21  Bruno Haible  <bruno@clisp.org>
12613
12614         atanl: Move AC_LIBOBJ invocations to module description.
12615         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
12616         * modules/atanl (configure.ac): ... to here.
12617
12618 2011-05-21  Bruno Haible  <bruno@clisp.org>
12619
12620         acosl: Move AC_LIBOBJ invocations to module description.
12621         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
12622         * modules/acosl (configure.ac): ... to here.
12623
12624 2011-05-21  Bruno Haible  <bruno@clisp.org>
12625
12626         asinl: Respect rules for use of AC_LIBOBJ.
12627         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
12628         * modules/asinl (configure.ac): ... to here.
12629
12630 2011-05-21  Bruno Haible  <bruno@clisp.org>
12631
12632         tanl: Move AC_LIBOBJ invocations to module description.
12633         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
12634         * modules/tanl (configure.ac): ... to here.
12635
12636 2011-05-21  Bruno Haible  <bruno@clisp.org>
12637
12638         cosl: Move AC_LIBOBJ invocations to module description.
12639         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
12640         * modules/cosl (configure.ac): ... to here.
12641
12642 2011-05-21  Bruno Haible  <bruno@clisp.org>
12643
12644         sinl: Move AC_LIBOBJ invocations to module description.
12645         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
12646         * modules/sinl (configure.ac): ... to here.
12647
12648 2011-05-21  Bruno Haible  <bruno@clisp.org>
12649
12650         logl: Move AC_LIBOBJ invocations to module description.
12651         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
12652         * modules/logl (configure.ac): ... to here.
12653
12654 2011-05-21  Bruno Haible  <bruno@clisp.org>
12655
12656         expl: Move AC_LIBOBJ invocations to module description.
12657         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
12658         * modules/expl (configure.ac): ... to here.
12659
12660 2011-05-21  Bruno Haible  <bruno@clisp.org>
12661
12662         roundl: Move AC_LIBOBJ invocations to module description.
12663         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
12664         * modules/roundl (configure.ac): ... to here.
12665
12666 2011-05-21  Bruno Haible  <bruno@clisp.org>
12667
12668         round: Move AC_LIBOBJ invocations to module description.
12669         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
12670         * modules/round (configure.ac): ... to here.
12671
12672 2011-05-21  Bruno Haible  <bruno@clisp.org>
12673
12674         roundf: Move AC_LIBOBJ invocations to module description.
12675         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
12676         * modules/roundf (configure.ac): ... to here.
12677
12678 2011-05-21  Bruno Haible  <bruno@clisp.org>
12679
12680         truncl: Move AC_LIBOBJ invocations to module description.
12681         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
12682         * modules/truncl (configure.ac): ... to here.
12683
12684 2011-05-21  Bruno Haible  <bruno@clisp.org>
12685
12686         trunc: Move AC_LIBOBJ invocations to module description.
12687         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
12688         * modules/trunc (configure.ac): ... to here.
12689
12690 2011-05-21  Bruno Haible  <bruno@clisp.org>
12691
12692         truncf: Move AC_LIBOBJ invocations to module description.
12693         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
12694         * modules/truncf (configure.ac): ... to here.
12695
12696 2011-05-21  Bruno Haible  <bruno@clisp.org>
12697
12698         ceill: Move AC_LIBOBJ invocations to module description.
12699         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
12700         * modules/ceill (configure.ac): ... to here.
12701
12702 2011-05-21  Bruno Haible  <bruno@clisp.org>
12703
12704         ceil: Move AC_LIBOBJ invocations to module description.
12705         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
12706         * modules/ceil (configure.ac): ... to here.
12707
12708 2011-05-21  Bruno Haible  <bruno@clisp.org>
12709
12710         ceilf: Move AC_LIBOBJ invocations to module description.
12711         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
12712         * modules/ceilf (configure.ac): ... to here.
12713
12714 2011-05-21  Bruno Haible  <bruno@clisp.org>
12715
12716         floorl: Respect rules for use of AC_LIBOBJ.
12717         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
12718         * modules/floorl (configure.ac): ... to here.
12719
12720 2011-05-21  Bruno Haible  <bruno@clisp.org>
12721
12722         floor: Respect rules for use of AC_LIBOBJ.
12723         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
12724         * modules/floor (configure.ac): ... to here.
12725
12726 2011-05-21  Bruno Haible  <bruno@clisp.org>
12727
12728         floorf: Move AC_LIBOBJ invocations to module description.
12729         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
12730         * modules/floorf (configure.ac): ... to here.
12731
12732 2011-05-20  Bruno Haible  <bruno@clisp.org>
12733
12734         sqrtl: Respect rules for use of AC_LIBOBJ.
12735         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
12736         * modules/sqrtl (configure.ac): ... to here.
12737
12738 2011-05-20  Bruno Haible  <bruno@clisp.org>
12739
12740         ldexpl: Respect rules for use of AC_LIBOBJ.
12741         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
12742         * modules/ldexpl (configure.ac): ... to here.
12743
12744 2011-05-20  Bruno Haible  <bruno@clisp.org>
12745
12746         frexpl*: Respect rules for use of AC_LIBOBJ.
12747         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
12748         invocation from here...
12749         * modules/frexpl (configure.ac): ... to here.
12750         * modules/frexpl-nolibm (configure.ac): ... and here.
12751
12752 2011-05-20  Bruno Haible  <bruno@clisp.org>
12753
12754         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
12755         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
12756         invocation from here...
12757         * modules/frexp (configure.ac): ... to here.
12758         * modules/frexp-nolibm (configure.ac): ... and here.
12759
12760 2011-05-20  Bruno Haible  <bruno@clisp.org>
12761
12762         isnan: Respect rules for use of AC_LIBOBJ.
12763         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
12764         invocations here.
12765         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
12766         REPLACE_ISNAN.
12767         * modules/isnand (configure.ac): Likewise.
12768         * modules/isnanl (configure.ac): Likewise.
12769
12770 2011-05-20  Bruno Haible  <bruno@clisp.org>
12771
12772         isnanl*: Respect rules for use of AC_LIBOBJ.
12773         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
12774         invocation from here...
12775         * modules/isnanl (configure.ac): ... to here.
12776         * modules/isnanl-nolibm (configure.ac): ... and here.
12777
12778 2011-05-20  Bruno Haible  <bruno@clisp.org>
12779
12780         isnand*: Move AC_LIBOBJ invocations to module description.
12781         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
12782         invocation from here...
12783         * modules/isnand (configure.ac): ... to here.
12784         * modules/isnand-nolibm (configure.ac): ... and here.
12785
12786 2011-05-20  Bruno Haible  <bruno@clisp.org>
12787
12788         isnanf*: Move AC_LIBOBJ invocations to module description.
12789         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
12790         invocation from here...
12791         * modules/isnanf (configure.ac): ... to here.
12792         * modules/isnanf-nolibm (configure.ac): ... and here.
12793
12794 2011-05-20  Bruno Haible  <bruno@clisp.org>
12795
12796         isnan*: Separate the AC_LIBOBJ invocations.
12797         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
12798         AC_LIBOBJ invocation.
12799         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
12800         here.
12801         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
12802         AC_LIBOBJ invocation.
12803         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
12804         here.
12805         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
12806         AC_LIBOBJ invocation.
12807         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
12808         here.
12809         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
12810
12811 2011-05-08  Bruno Haible  <bruno@clisp.org>
12812
12813         isinf: Move AC_LIBOBJ invocations to module description.
12814         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
12815         * modules/isinf (configure.ac): ... to here.
12816
12817 2011-05-08  Bruno Haible  <bruno@clisp.org>
12818
12819         isfinite: Move AC_LIBOBJ invocations to module description.
12820         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
12821         * modules/isfinite (configure.ac): ... to here.
12822
12823 2011-05-08  Bruno Haible  <bruno@clisp.org>
12824
12825         isblank: Move AC_LIBOBJ invocations to module description.
12826         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
12827         here...
12828         * modules/isblank (configure.ac): ... to here.
12829
12830 2011-05-08  Bruno Haible  <bruno@clisp.org>
12831
12832         isapipe: Move AC_LIBOBJ invocations to module description.
12833         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
12834         gl_PREREQ_ISAPIPE invocations from here...
12835         * modules/isapipe (configure.ac): ... to here.
12836         (Depends-on): Update condition.
12837
12838 2011-05-08  Bruno Haible  <bruno@clisp.org>
12839
12840         ioctl: Move AC_LIBOBJ invocations to module description.
12841         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
12842         invocations from here...
12843         * modules/ioctl (configure.ac): ... to here.
12844         (Depends-on): Update condition.
12845
12846 2011-05-08  Bruno Haible  <bruno@clisp.org>
12847
12848         imaxdiv: Move AC_LIBOBJ invocations to module description.
12849         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
12850         invocations from here...
12851         * modules/imaxdiv (configure.ac): ... to here.
12852
12853 2011-05-08  Bruno Haible  <bruno@clisp.org>
12854
12855         imaxabs: Move AC_LIBOBJ invocations to module description.
12856         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
12857         invocations from here...
12858         * modules/imaxabs (configure.ac): ... to here.
12859
12860 2011-05-08  Bruno Haible  <bruno@clisp.org>
12861
12862         getaddrinfo: Move AC_LIBOBJ invocations to module description.
12863         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
12864         AC_LIBOBJ invocations from here...
12865         * modules/getaddrinfo (configure.ac): ... to here.
12866         (Depends-on): Add conditions.
12867
12868 2011-05-08  Bruno Haible  <bruno@clisp.org>
12869
12870         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
12871         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
12872         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
12873         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
12874         (gl_PREREQ_INET_PTON): ... from here.
12875         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
12876         gl_PREREQ_INET_PTON here.
12877         (Depends-on): Update condition.
12878
12879 2011-05-08  Bruno Haible  <bruno@clisp.org>
12880
12881         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
12882         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
12883         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
12884         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
12885         (gl_PREREQ_INET_NTOP): ... from here.
12886         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
12887         gl_PREREQ_INET_NTOP here.
12888         (Depends-on): Update condition.
12889
12890 2011-05-08  Bruno Haible  <bruno@clisp.org>
12891
12892         iconv_open: Move AC_LIBOBJ invocations to module description.
12893         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
12894         AC_LIBOBJ invocations from here...
12895         * modules/iconv_open (configure.ac): ... to here.
12896
12897 2011-05-08  Bruno Haible  <bruno@clisp.org>
12898
12899         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
12900         If module 'iconv_open' is among the main modules and module
12901         'iconv_open-utf' is among the tests dependencies, then
12902         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
12903         return the special iconv_t values. Therefore iconv() and iconv_close()
12904         must support these special iconv_t values, already in lib, not only in
12905         tests.
12906         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
12907         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
12908         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
12909         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
12910         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
12911         (Depends-on): Add the dependencies of iconv_open-utf.
12912         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
12913         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
12914         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
12915
12916 2011-05-08  Bruno Haible  <bruno@clisp.org>
12917
12918         group-member: Move AC_LIBOBJ invocations to module description.
12919         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
12920         gl_PREREQ_GROUP_MEMBER invocations from here...
12921         * modules/group-member (configure.ac): ... to here.
12922
12923 2011-05-08  Bruno Haible  <bruno@clisp.org>
12924
12925         grantpt: Move AC_LIBOBJ invocations to module description.
12926         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
12927         invocations from here...
12928         * modules/grantpt (configure.ac): ... to here.
12929
12930 2011-05-08  Bruno Haible  <bruno@clisp.org>
12931
12932         glob: Move AC_LIBOBJ invocations to module description.
12933         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
12934         from here...
12935         * modules/glob (configure.ac): ... to here.
12936
12937 2011-05-08  Bruno Haible  <bruno@clisp.org>
12938
12939         getusershell: Move AC_LIBOBJ invocations to module description.
12940         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
12941         Move AC_LIBOBJ invocation from here...
12942         * modules/getusershell (configure.ac): ... to here.
12943         (Depends-on): Update condition.
12944
12945 2011-05-08  Bruno Haible  <bruno@clisp.org>
12946
12947         gettimeofday: Move AC_LIBOBJ invocations to module description.
12948         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
12949         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
12950         gl_PREREQ_GETTIMEOFDAY invocations from here...
12951         * modules/gettimeofday (configure.ac): ... to here.
12952
12953 2011-05-08  Bruno Haible  <bruno@clisp.org>
12954
12955         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
12956         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
12957         just gl_FUNC_TZSET.
12958         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
12959         (gl_FUNC_TZSET_CLOBBER): Remove actions.
12960         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
12961         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
12962
12963 2011-05-08  Bruno Haible  <bruno@clisp.org>
12964
12965         getsubopt: Move AC_LIBOBJ invocations to module description.
12966         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
12967         gl_PREREQ_GETSUBOPT invocations from here...
12968         * modules/getsubopt (configure.ac): ... to here.
12969
12970 2011-05-08  Bruno Haible  <bruno@clisp.org>
12971
12972         getpass-gnu: Move AC_LIBOBJ invocations to module description.
12973         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
12974         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
12975         * modules/getpass-gnu (configure.ac): ... to here.
12976
12977 2011-05-08  Bruno Haible  <bruno@clisp.org>
12978
12979         getpass: Move AC_LIBOBJ invocations to module description.
12980         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
12981         gl_PREREQ_GETPASS invocations from here...
12982         * modules/getpass (configure.ac): ... to here.
12983
12984 2011-05-08  Bruno Haible  <bruno@clisp.org>
12985
12986         getpagesize: Move AC_LIBOBJ invocations to module description.
12987         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
12988         from here...
12989         * modules/getpagesize (configure.ac): ... to here.
12990
12991 2011-05-08  Bruno Haible  <bruno@clisp.org>
12992
12993         getopt: Move AC_LIBOBJ invocations to module description.
12994         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
12995         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
12996         invocations from here...
12997         * modules/getopt-gnu (configure.ac): ... to here.
12998         * modules/getopt-posix (configure.ac): ... and here.
12999         (Depends-on): Update condition.
13000
13001 2011-05-08  Bruno Haible  <bruno@clisp.org>
13002
13003         getopt, argp: Respect rules for use of AC_LIBOBJ.
13004         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
13005         (gl_REPLACE_GETOPT_ALWAYS): New macro.
13006         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
13007         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
13008
13009 2011-05-08  Bruno Haible  <bruno@clisp.org>
13010
13011         getlogin_r: Move AC_LIBOBJ invocations to module description.
13012         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
13013         gl_PREREQ_GETLOGIN_R invocations from here...
13014         * modules/getlogin_r (configure.ac): ... to here.
13015
13016 2011-05-08  Bruno Haible  <bruno@clisp.org>
13017
13018         getlogin: Move AC_LIBOBJ invocations to module description.
13019         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
13020         here...
13021         * modules/getlogin (configure.ac): ... to here.
13022
13023 2011-05-08  Bruno Haible  <bruno@clisp.org>
13024
13025         getloadavg: Move AC_LIBOBJ invocations to module description.
13026         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
13027         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
13028         * modules/getloadavg (configure.ac): ... to here.
13029
13030 2011-05-08  Bruno Haible  <bruno@clisp.org>
13031
13032         gethrxtime: Move AC_LIBOBJ invocations to module description.
13033         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
13034         LIB_GETHRXTIME from here...
13035         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
13036         invocations from here...
13037         * modules/gethrxtime (configure.ac): ... to here.
13038
13039 2011-05-08  Bruno Haible  <bruno@clisp.org>
13040
13041         gethostname: Move AC_LIBOBJ invocations to module description.
13042         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
13043         gl_PREREQ_GETHOSTNAME invocations from here...
13044         * modules/gethostname (configure.ac): ... to here.
13045
13046 2011-05-08  Bruno Haible  <bruno@clisp.org>
13047
13048         getgroups: Move AC_LIBOBJ invocations to module description.
13049         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
13050         here...
13051         * modules/getgroups (configure.ac): ... to here.
13052
13053 2011-05-08  Bruno Haible  <bruno@clisp.org>
13054
13055         getdtablesize: Move AC_LIBOBJ invocations to module description.
13056         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
13057         invocation from here...
13058         * modules/getdtablesize (configure.ac): ... to here.
13059
13060 2011-05-08  Bruno Haible  <bruno@clisp.org>
13061
13062         getdomainname: Move AC_LIBOBJ invocations to module description.
13063         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
13064         gl_PREREQ_GETDOMAINNAME invocations from here...
13065         * modules/getdomainname (configure.ac): ... to here.
13066
13067 2011-05-08  Bruno Haible  <bruno@clisp.org>
13068
13069         getline: Move AC_LIBOBJ invocations to module description.
13070         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
13071         invocations from here...
13072         * modules/getline (configure.ac): ... to here.
13073
13074 2011-05-08  Bruno Haible  <bruno@clisp.org>
13075
13076         getline: Simplify.
13077         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
13078         It's already handled through the module dependency.
13079
13080 2011-05-08  Bruno Haible  <bruno@clisp.org>
13081
13082         getdelim: Move AC_LIBOBJ invocations to module description.
13083         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
13084         and gl_PREREQ_GETDELIM invocations from here...
13085         * modules/getdelim (configure.ac): ... to here.
13086         (Depends-on): Fix condition.
13087
13088 2011-05-08  Bruno Haible  <bruno@clisp.org>
13089
13090         getcwd: Move AC_LIBOBJ invocations to module description.
13091         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
13092         invocations from here...
13093         * modules/getcwd (configure.ac): ... to here.
13094
13095 2011-05-08  Bruno Haible  <bruno@clisp.org>
13096
13097         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
13098         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
13099         here...
13100         * modules/getcwd-lgpl (configure.ac): ... to here.
13101
13102 2011-05-07  Bruno Haible  <bruno@clisp.org>
13103
13104         crypto/gc: Move AC_LIBOBJ invocations to module description.
13105         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
13106         * modules/crypto/gc (configure.ac): ... to here.
13107
13108 2011-05-07  Bruno Haible  <bruno@clisp.org>
13109
13110         fwriting: Move AC_LIBOBJ invocations to module description.
13111         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
13112         here...
13113         * modules/fwriting (configure.ac): ... to here.
13114
13115 2011-05-07  Bruno Haible  <bruno@clisp.org>
13116
13117         fwritable: Move AC_LIBOBJ invocations to module description.
13118         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
13119         here...
13120         * modules/fwritable (configure.ac): ... to here.
13121
13122 2011-05-07  Bruno Haible  <bruno@clisp.org>
13123
13124         futimens: Move AC_LIBOBJ invocations to module description.
13125         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
13126         here...
13127         * modules/futimens (configure.ac): ... to here.
13128
13129 2011-05-07  Bruno Haible  <bruno@clisp.org>
13130
13131         ftruncate: Move AC_LIBOBJ invocations to module description.
13132         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
13133         gl_PREREQ_FTRUNCATE invocations from here...
13134         * modules/ftruncate (configure.ac): ... to here.
13135
13136 2011-05-07  Bruno Haible  <bruno@clisp.org>
13137
13138         fsync: Move AC_LIBOBJ invocations to module description.
13139         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
13140         invocations from here...
13141         * modules/fsync (configure.ac): ... to here.
13142
13143 2011-05-07  Bruno Haible  <bruno@clisp.org>
13144
13145         fsusage: Move AC_LIBOBJ invocations to module description.
13146         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
13147         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
13148         * modules/fsusage (configure.ac): ... to here.
13149
13150 2011-05-07  Bruno Haible  <bruno@clisp.org>
13151
13152         freopen: Move AC_LIBOBJ invocations to module description.
13153         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
13154         invocations from here...
13155         * modules/freopen (configure.ac): ... to here.
13156
13157 2011-05-07  Bruno Haible  <bruno@clisp.org>
13158
13159         free: Move AC_LIBOBJ invocations to module description.
13160         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
13161         invocations from here...
13162         * modules/free (configure.ac): ... to here.
13163
13164 2011-05-07  Bruno Haible  <bruno@clisp.org>
13165
13166         freadable: Move AC_LIBOBJ invocations to module description.
13167         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
13168         here...
13169         * modules/freadable (configure.ac): ... to here.
13170
13171 2011-05-07  Bruno Haible  <bruno@clisp.org>
13172
13173         fpurge: Move AC_LIBOBJ invocations to module description.
13174         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
13175         invocations from here...
13176         * modules/fpurge (configure.ac): ... to here.
13177
13178 2011-05-07  Bruno Haible  <bruno@clisp.org>
13179
13180         fpending: Move AC_LIBOBJ invocations to module description.
13181         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
13182         gl_FUNC_FPENDING.
13183         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
13184         invocations from here...
13185         * modules/fpending (configure.ac): ... to here.
13186
13187 2011-05-07  Bruno Haible  <bruno@clisp.org>
13188
13189         fopen: Move AC_LIBOBJ invocations to module description.
13190         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
13191         invocations from here...
13192         * modules/fopen (configure.ac): ... to here.
13193
13194 2011-05-07  Bruno Haible  <bruno@clisp.org>
13195
13196         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
13197         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
13198         gl_FUNC_FNMATCH_POSIX.
13199         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
13200         invocations from here...
13201         * modules/fnmatch (configure.ac): ... to here.
13202         * modules/fnmatch-gnu (configure.ac): ... and here.
13203
13204 2011-05-07  Bruno Haible  <bruno@clisp.org>
13205
13206         flock: Move AC_LIBOBJ invocations to module description.
13207         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
13208         invocations from here...
13209         * modules/flock (configure.ac): ... to here.
13210
13211 2011-05-07  Bruno Haible  <bruno@clisp.org>
13212
13213         fileblocks: Move AC_LIBOBJ invocations to module description.
13214         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
13215         gl_PREREQ_FILEBLOCKS invocations from here...
13216         * modules/fileblocks (configure.ac): ... to here.
13217
13218 2011-05-06  Bruno Haible  <bruno@clisp.org>
13219
13220         fflush: Move AC_LIBOBJ invocations to module description.
13221         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
13222         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
13223         invocations from here...
13224         * modules/fflush (configure.ac): ... to here.
13225
13226 2011-05-06  Bruno Haible  <bruno@clisp.org>
13227
13228         fdopendir: Move AC_LIBOBJ invocations to module description.
13229         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
13230         here...
13231         * modules/fdopendir (configure.ac): ... to here.
13232         (Depends-on): Improve conditions.
13233
13234 2011-05-06  Bruno Haible  <bruno@clisp.org>
13235
13236         _Exit: Move AC_LIBOBJ invocations to module description.
13237         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
13238         invocations from here...
13239         * modules/_Exit (configure.ac): ... to here.
13240
13241 2011-05-21  Bruno Haible  <bruno@clisp.org>
13242
13243         euidaccess: Respect rules for use of AC_LIBOBJ.
13244         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13245         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
13246         from here...
13247         * modules/euidaccess (configure.ac): ... to here.
13248
13249 2011-05-06  Bruno Haible  <bruno@clisp.org>
13250
13251         error: Move AC_LIBOBJ invocations to module description.
13252         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
13253         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
13254         invocations from here...
13255         * modules/error (configure.ac): ... to here.
13256
13257 2011-05-06  Bruno Haible  <bruno@clisp.org>
13258
13259         duplocale: Move AC_LIBOBJ invocations to module description.
13260         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
13261         gl_PREREQ_DUPLOCALE invocations from here...
13262         * modules/duplocale (configure.ac): ... to here.
13263
13264 2011-05-05  Bruno Haible  <bruno@clisp.org>
13265
13266         dirfd: Move AC_LIBOBJ invocations to module description.
13267         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
13268         gl_FUNC_DIRFD.
13269         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
13270         here...
13271         * modules/dirfd (configure.ac): ... to here.
13272         (Depends-on): Fix condition.
13273
13274 2011-05-05  Bruno Haible  <bruno@clisp.org>
13275
13276         chown: Respect rules for use of AC_LIBOBJ.
13277         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
13278         * modules/chown (configure.ac): ... to here.
13279
13280 2011-05-05  Bruno Haible  <bruno@clisp.org>
13281
13282         chdir-long: Move AC_LIBOBJ invocations to module description.
13283         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
13284         gl_PREREQ_CHDIR_LONG invocations from here...
13285         * modules/chdir-long (configure.ac): ... to here.
13286
13287 2011-05-05  Bruno Haible  <bruno@clisp.org>
13288
13289         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
13290         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
13291         from here...
13292         * modules/canonicalize-lgpl (configure.ac): ... to here.
13293
13294 2011-05-05  Bruno Haible  <bruno@clisp.org>
13295
13296         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
13297         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
13298         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
13299         REPLACE_CALLOC.
13300         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
13301         * modules/calloc-gnu (configure.ac): Likewise.
13302
13303 2011-05-05  Bruno Haible  <bruno@clisp.org>
13304
13305         btowc: Move AC_LIBOBJ invocations to module description.
13306         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
13307         invocations from here...
13308         * modules/btowc (configure.ac): ... to here.
13309
13310 2011-05-21  Bruno Haible  <bruno@clisp.org>
13311
13312         atexit: Move AC_LIBOBJ invocations to module description.
13313         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
13314         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
13315         here...
13316         * modules/atexit (configure.ac): ... to here.
13317
13318 2011-05-05  Bruno Haible  <bruno@clisp.org>
13319
13320         atoll: Move AC_LIBOBJ invocations to module description.
13321         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
13322         invocations from here...
13323         * modules/atoll (configure.ac): ... to here.
13324
13325 2011-05-05  Bruno Haible  <bruno@clisp.org>
13326
13327         argz: Move AC_LIBOBJ invocations to module description.
13328         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
13329         * modules/argz (configure.ac): ... to here.
13330
13331 2011-05-05  Bruno Haible  <bruno@clisp.org>
13332
13333         alphasort: Move AC_LIBOBJ invocations to module description.
13334         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
13335         gl_PREREQ_ALPHASORT invocations from here...
13336         * modules/alphasort (configure.ac): ... to here.
13337
13338 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
13339
13340         verify: new macro verify_expr; verify_true deprecated
13341         * NEWS: Mention this.
13342         * doc/verify.texi (Compile-time Assertions): Document this.
13343         * lib/verify.h (verify_true): Deprecate.
13344         (verify_expr): New macro.
13345         * tests/test-verify.c (function): Test verify_expr.
13346
13347 2011-06-14  Jim Meyering  <meyering@redhat.com>
13348
13349         init.sh: give more portable redirection-related advice in a comment
13350         * tests/init.sh (stderr_fileno_): Update the advice in comments.
13351         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
13352         for lots of discussion.  Stefano Lattarini suggested the solution
13353         of putting "9>&2" after the command.  Reported by Bruno Haible.
13354
13355 2011-06-13  Bruno Haible  <bruno@clisp.org>
13356
13357         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
13358         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
13359         'none'.
13360
13361 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
13362
13363         ftoastr: use strtof only if HAVE_STRTOF
13364         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
13365         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
13366         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
13367         * modules/ftoastr (configure.ac): Check for strtof.
13368
13369 2011-06-13  Bruno Haible  <bruno@clisp.org>
13370
13371         gnulib-tool: Addendum to 2011-06-08 commit.
13372         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
13373         and --witness-c-macro have been given, augment AM_CPPFLAGS.
13374
13375 2011-06-13  Bruno Haible  <bruno@clisp.org>
13376
13377         fseeko: Provide a non-inline replacement of fseek().
13378         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
13379         * modules/fseeko (Depends-on): Add fseek.
13380         * modules/fseek (License): Change to LGPLv2+.
13381
13382 2011-06-13  Bruno Haible  <bruno@clisp.org>
13383
13384         ftello: Provide a non-inline replacement of ftell().
13385         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
13386         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
13387         not have ftello() (such as on mingw).
13388         * modules/ftello (Depends-on): Add ftell.
13389         * modules/ftell (License): Change to LGPLv2+.
13390
13391 2011-05-07  Bruno Haible  <bruno@clisp.org>
13392
13393         ftell: Move AC_LIBOBJ invocations to module description.
13394         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
13395         * modules/ftell (configure.ac): ... to here.
13396
13397 2011-05-07  Bruno Haible  <bruno@clisp.org>
13398
13399         ftello: Respect rules for use of AC_LIBOBJ.
13400         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
13401         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
13402         here...
13403         * modules/ftello (configure.ac): ... to here.
13404
13405 2011-05-07  Bruno Haible  <bruno@clisp.org>
13406
13407         fseeko: Simplify.
13408         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
13409         (gl_FUNC_FSEEKO): Inline it here.
13410
13411 2011-05-07  Bruno Haible  <bruno@clisp.org>
13412
13413         fseek: Move AC_LIBOBJ invocations to module description.
13414         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
13415         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13416         * modules/fseek (configure.ac): ... to here.
13417
13418 2011-05-07  Bruno Haible  <bruno@clisp.org>
13419
13420         fseek: Respect rules for use of AC_LIBOBJ.
13421         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
13422         here...
13423         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
13424
13425 2011-05-07  Bruno Haible  <bruno@clisp.org>
13426
13427         fseeko: Respect rules for use of AC_LIBOBJ.
13428         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
13429         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
13430         here...
13431         * modules/fseeko (configure.ac): ... to here.
13432
13433 2011-06-13  Bruno Haible  <bruno@clisp.org>
13434
13435         gnulib-tool: Allow comments in the 'Depends-on' section.
13436         * doc/gnulib.texi (Module description): Mention comment syntax in the
13437         Depends-on section.
13438         * gnulib-tool (func_get_dependencies): Filter out comment lines.
13439
13440 2011-06-13  Bruno Haible  <bruno@clisp.org>
13441
13442         file-set.h: guard __attibute__ use, now that it's not always defined
13443         * lib/file-set.h (record_file): Use __attribute__ only with compiler
13444         versions that support it.  This fixes a coreutils build failure with
13445         the vendor cc on HP-UX 11.31.
13446
13447 2011-06-12  Bruno Haible  <bruno@clisp.org>
13448
13449         acl: Add support for HP-UX >= 11.11 JFS ACLs.
13450         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
13451         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
13452         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
13453         (acl, aclsort): New declarations.
13454         (aclv_nontrivial): New declaration.
13455         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
13456         (file_has_acl): Read also the second kind of HP-UX ACLs.
13457         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
13458         kind of HP-UX ACLs if the first kind fails.
13459         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
13460         second kind of HP-UX ACLs.
13461         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
13462         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
13463         agree.
13464         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
13465         hpuxjfs.
13466         Handle hpuxjfs.
13467         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
13468         hpuxjfs.
13469         Handle hpuxjfs.
13470         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
13471         (func_test_same_acls): Use both lsacl and getacl.
13472         Handle hpuxjfs.
13473         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
13474         (func_test_same_acls): Use both lsacl and getacl.
13475         Handle hpuxjfs.
13476
13477 2011-06-12  Bruno Haible  <bruno@clisp.org>
13478
13479         acl: Complete the 2010-08-10 fix.
13480         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
13481         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
13482         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
13483         explicitly.
13484         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
13485         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
13486
13487 2011-06-12  Bruno Haible  <bruno@clisp.org>
13488
13489         spawn-pipe tests: Comments.
13490         * tests/test-spawn-pipe-child.c (main): Update comment.
13491         Reported by James Youngman <jay@gnu.org>.
13492
13493 2011-06-11  James Youngman  <jay@gnu.org>
13494
13495         New module 'stat-size'.
13496         * modules/stat-size: New module.  Provides macros for accessing
13497         file size information in instances of struct stat.  Depends on the
13498         fileblocks module because it calls st_blocks.
13499         * lib/stat-size.h: New file, adapted from coreutils' system.h.
13500         * doc/gnulib.texi: Include stat-size.texi.
13501         * doc/stat-size.texi: Documentation for this module.
13502         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
13503         * m4/fileblocks.m4: Mention that stat-size depends on the call to
13504         AC_STRUCT_ST_BLOCKS.
13505
13506 2011-06-09  Bruno Haible  <bruno@clisp.org>
13507
13508         thread: Support pthreads-win32.
13509         * lib/glthread/thread.h (gl_thread_self): Define differently on
13510         pthreads-win32.
13511         (gl_null_thread): New declaration.
13512         (gl_thread_self_pointer): New macro.
13513         * lib/glthread/thread.c (gl_null_thread): New constant.
13514         * tests/test-lock.c: Use gl_thread_self_pointer instead of
13515         gl_thread_self.
13516         * tests/test-tls.c: Likewise.
13517         Suggested by Paul Eggert. Reported by Eric Blake.
13518
13519 2011-06-09  Bruno Haible  <bruno@clisp.org>
13520
13521         thread: Fix confusion between NULL and 0.
13522         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
13523         Reported by Paul Eggert.
13524
13525 2011-06-09  Bruno Haible  <bruno@clisp.org>
13526
13527         spawn-pipe tests: Avoid test failure on HP-UX 11.
13528         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
13529         is closed.
13530
13531 2011-06-09  Bruno Haible  <bruno@clisp.org>
13532
13533         acl tests: Fix compilation error on HP-UX 11.
13534         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
13535
13536 2011-06-09  Bruno Haible  <bruno@clisp.org>
13537
13538         rmdir: Avoid test failure on HP-UX 10.20.
13539         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
13540         EEXIST.
13541
13542 2011-06-08  Eric Blake  <eblake@redhat.com>
13543
13544         perror: fix test on mingw
13545         * modules/perror-tests (Depends-on): Add dup2.
13546
13547         strerror_r-posix: fix on MacOS
13548         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
13549         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
13550         logic bug.
13551         * lib/strerror_r.c (strerror_r): Fix the bug.
13552         * lib/strerror.c (strerror): Likewise.
13553         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13554         problem.
13555         * doc/posix-functions/strerror.texi (strerror): Likewise.
13556         * doc/posix-functions/perror.texi (perror): Likewise.
13557         * tests/test-strerror.c (main): Enhance test.
13558         * tests/test-strerror_r.c (main): Likewise.
13559
13560 2011-06-08  Bruno Haible  <bruno@clisp.org>
13561
13562         gnulib-tool: Better isolation between different gnulib-tool invocations.
13563         * gnulib-tool: New option --witness-c-macro.
13564         (witness_c_macro): New variable.
13565         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
13566         AM_CPPFLAGS define it as a C macro.
13567         (func_emit_tests_Makefile_am): Likewise.
13568         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
13569         read it from there.
13570         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
13571         m4_define, not AC_DEFUN.
13572         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
13573         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
13574         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
13575         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
13576         s|...|...|, to substitute the values of the GNULIB_* module indicator
13577         variables.
13578         * modules/dirent (Makefile.am): Likewise.
13579         * modules/fcntl-h (Makefile.am): Likewise.
13580         * modules/iconv-h (Makefile.am): Likewise.
13581         * modules/langinfo (Makefile.am): Likewise.
13582         * modules/locale (Makefile.am): Likewise.
13583         * modules/math (Makefile.am): Likewise.
13584         * modules/netdb (Makefile.am): Likewise.
13585         * modules/poll-h (Makefile.am): Likewise.
13586         * modules/pty (Makefile.am): Likewise.
13587         * modules/search (Makefile.am): Likewise.
13588         * modules/signal (Makefile.am): Likewise.
13589         * modules/spawn (Makefile.am): Likewise.
13590         * modules/stdio (Makefile.am): Likewise.
13591         * modules/stdlib (Makefile.am): Likewise.
13592         * modules/string (Makefile.am): Likewise.
13593         * modules/sys_ioctl (Makefile.am): Likewise.
13594         * modules/sys_select (Makefile.am): Likewise.
13595         * modules/sys_socket (Makefile.am): Likewise.
13596         * modules/sys_stat (Makefile.am): Likewise.
13597         * modules/sys_times (Makefile.am): Likewise.
13598         * modules/sys_utsname (Makefile.am): Likewise.
13599         * modules/sys_wait (Makefile.am): Likewise.
13600         * modules/termios (Makefile.am): Likewise.
13601         * modules/time (Makefile.am): Likewise.
13602         * modules/unistd (Makefile.am): Likewise.
13603         * modules/wchar (Makefile.am): Likewise.
13604
13605 2011-06-08  Eric Blake  <eblake@redhat.com>
13606
13607         strerror: simplify replacement
13608         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
13609         * modules/strerror (configure.ac): No prereqs needed here...
13610         * modules/strerror-override (configure.ac): ...but this needs it.
13611         (Files): Add file for needed prereq macro.
13612
13613 2011-06-08  Bruno Haible  <bruno@clisp.org>
13614
13615         strerror_r-posix: Tweaks.
13616         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
13617         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
13618         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
13619         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
13620         (gl_FUNC_STRERROR_R): ... to here.
13621         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
13622
13623 2011-06-07  Eric Blake  <eblake@redhat.com>
13624
13625         perror: document fixed bugs
13626         * doc/posix-functions/perror.texi (perror): Document recent
13627         patches.
13628
13629 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
13630
13631         stat-time: get_stat_birthtime failure is better-defined
13632         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
13633         return a timestamp whose tv_sec and tv_nsec values are both -1.
13634         Previously, the spec said only that the tv_nsec value was negative.
13635         This upward-compatible change simplifies GNU tar a bit.
13636
13637 2011-06-07  Eric Blake  <eblake@redhat.com>
13638
13639         strerror_r-posix: work around cygwin 1.7.9
13640         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
13641         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
13642         bug without replacing strerror_r.
13643         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
13644         strerror_r is buggy, but without requiring strerror_r compilation.
13645         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
13646
13647         test-perror: relax test to ignore cygwin bug
13648         * tests/test-perror2.c (main): Relax test on requiring detection
13649         of stream errors, and use unbuffered stream.
13650         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
13651         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
13652         * doc/posix-functions/fputc.texi (fputc): Likewise.
13653         * doc/posix-functions/fputs.texi (fputs): Likewise.
13654         * doc/posix-functions/fputws.texi (fputws): Likewise.
13655         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
13656         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
13657         * doc/posix-functions/getopt.texi (getopt): Likewise.
13658         * doc/posix-functions/perror.texi (perror): Likewise.
13659         * doc/posix-functions/printf.texi (printf): Likewise.
13660         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
13661         * doc/posix-functions/psignal.texi (psignal): Likewise.
13662         * doc/posix-functions/putc.texi (putc): Likewise.
13663         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
13664         Likewise.
13665         * doc/posix-functions/putchar.texi (putchar): Likewise.
13666         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
13667         Likewise.
13668         * doc/posix-functions/puts.texi (puts): Likewise.
13669         * doc/posix-functions/putwc.texi (putwc): Likewise.
13670         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
13671         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13672         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13673         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
13674         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13675         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13676         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
13677         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
13678
13679 2011-05-22  Bruno Haible  <bruno@clisp.org>
13680
13681         strerror: Move AC_LIBOBJ invocations to module description.
13682         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
13683         gl_PREREQ_STRERROR invocations from here...
13684         * modules/strerror (configure.ac): ... to here.
13685
13686 2011-05-21  Bruno Haible  <bruno@clisp.org>
13687
13688         perror: Use common idiom.
13689         * modules/perror (configure.ac): Reorder statements.
13690
13691 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
13692
13693         tests: fix usage message in 'mktempd_'
13694         * tests/init.sh (mktempd_): In the usage message, use literal
13695         'mktempd_', not '$ME' (which is even undefined), as the name of
13696         the subroutine.
13697
13698 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
13699
13700         tests init: new function 'fatal_', for hard errors
13701         Before this patch, the only way offered by tests/init.sh to
13702         properly signal a hard error was the `framework_failure_'
13703         function.  But the error message issued by that function,
13704         as its name would suggest, refers to a set-up failure in the
13705         testsuite, while hard errors can obviously also be due to
13706         other reasons.  The best way to fix this inconsistency is to
13707         introduce a new function with a more general error message.
13708         * tests/init.sh (fatal_): New function.
13709
13710 2011-06-06  Eric Blake  <eblake@redhat.com>
13711
13712         canonicalize-lgpl: use common idiom
13713         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
13714         over newer POSIX -Rf.
13715         Reported by Bruno Haible.
13716
13717         canonicalize-lgpl: work around AIX realpath bug
13718         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
13719         * doc/posix-functions/realpath.texi (realpath): Document it.
13720         Reported by Bruno Haible.
13721
13722         strerror: work around FreeBSD bug
13723         * lib/strerror.c (strerror): Special case 0.
13724         Reported by Bruno Haible.
13725
13726         strerror-override: avoid bloating errno module
13727         * modules/errno (Files, configure.ac): Move replacement strings...
13728         * modules/strerror-override: ...to new module.
13729         * modules/strerror (Depends-on): Add strerror-override.
13730         * modules/strerror_r-posix (Depends-on): Likewise.
13731         * MODULES.html.sh: Document new module.
13732         Reported by Bruno Haible.
13733
13734 2011-06-06  Bruno Haible  <bruno@clisp.org>
13735
13736         spawn-pipe tests: Rename program.
13737         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
13738         * tests/test-spawn-pipe-child.c: Update comment.
13739         * tests/test-spawn-pipe.sh: Update.
13740         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
13741
13742         spawn-pipe tests: Link the child program only against libc.
13743         * tests/test-spawn-pipe-child.c: New file, extracted from
13744         tests/test-spawn-pipe.c.
13745         (main): Expect only one argument.
13746         (is_open): New function, copied from tests/test-pipe.c.
13747         * tests/test-spawn-pipe.c: Don't include <errno.h>.
13748         (child_main): Remove function.
13749         (test_pipe): Pass only one argument to the child program.
13750         (main): Remove child process code. Expect the child program's name as
13751         first argument.
13752         * tests/test-spawn-pipe.sh: Pass the child program's name as first
13753         argument.
13754         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
13755         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
13756         test-spawn-pipe-child against no libraries.
13757
13758 2011-06-06  Bruno Haible  <bruno@clisp.org>
13759
13760         careadlinkat: Avoid mismatch between ssize_t and int.
13761         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
13762         * lib/careadlinkat.c (careadlinkatcwd): Define always.
13763
13764 2011-06-06  Jim Meyering  <meyering@redhat.com>
13765
13766         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
13767         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
13768         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
13769
13770 2011-06-05  Bruno Haible  <bruno@clisp.org>
13771
13772         ansi-c++-opt: Interoperability with libtool.
13773         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
13774         set the variable to "no", not to ":".
13775         * NEWS: Mention the change.
13776
13777 2011-06-05  Bruno Haible  <bruno@clisp.org>
13778
13779         acl: Fix test failure on AIX 7.
13780         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
13781         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
13782
13783 2011-06-05  Bruno Haible  <bruno@clisp.org>
13784
13785         pipe-filter-ii: Fix test failure on AIX and IRIX.
13786         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
13787         with EAGAIN, retry with a smaller buffer size.
13788
13789 2011-06-05  Bruno Haible  <bruno@clisp.org>
13790
13791         localename: Fix link dependencies.
13792         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
13793         * modules/localename-tests (Makefile.am): Link test-localename with
13794         $(LIBTHREAD).
13795
13796 2011-06-05  Bruno Haible  <bruno@clisp.org>
13797
13798         error: Avoid gcc warning.
13799         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
13800
13801 2011-06-05  Bruno Haible  <bruno@clisp.org>
13802
13803         unsetenv: Avoid gcc warning.
13804         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
13805
13806 2011-06-05  Bruno Haible  <bruno@clisp.org>
13807
13808         setenv: Avoid gcc warning.
13809         * lib/setenv.c (setenv): Provide declaration if system lacks it.
13810
13811 2011-06-05  Bruno Haible  <bruno@clisp.org>
13812
13813         sys_select: Ensure memset is declared also on AIX 7.
13814         * lib/sys_select.in.h: Include <string.h> also on AIX.
13815         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
13816         self-contained also on AIX 7.1.
13817
13818 2011-06-04  Jim Meyering  <meyering@redhat.com>
13819
13820         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
13821         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
13822         function name, "error".
13823         (_gl_translatable_diag_func_re): New configurable variable.
13824
13825 2011-06-04  Bruno Haible  <bruno@clisp.org>
13826
13827         getopt: Avoid gcc warning.
13828         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
13829
13830 2011-06-04  Bruno Haible  <bruno@clisp.org>
13831
13832         strerror_r: Fix comments.
13833         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
13834         commit.
13835
13836 2011-06-04  Bruno Haible  <bruno@clisp.org>
13837
13838         perror: Fix compilation error.
13839         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
13840         Undefine fprintf, not sprintf.
13841         * modules/perror (Depends-on): Remove intprops, verify.
13842
13843 2011-06-04  Bruno Haible  <bruno@clisp.org>
13844
13845         setlocale: Enable replacement on Cygwin 1.5.
13846         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
13847         Cygwin 1.5.x.
13848         * doc/posix-functions/setlocale.texi: Mention that the problem with the
13849         LC_CTYPE category also exists on Cygwin 1.5.x.
13850
13851 2011-06-04  Bruno Haible  <bruno@clisp.org>
13852
13853         strerror-override: Don't disable symbol renamings.
13854         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
13855         * lib/strerror-override.c: Include config.h.
13856         (strerror_override): Don't undefine.
13857
13858 2011-06-03  Bruno Haible  <bruno@clisp.org>
13859
13860         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
13861         * lib/localename.h: Update copyright header.
13862         * lib/localename.c: Likewise.
13863         * lib/relocatable.h: Likewise.
13864         * lib/relocatable.c: Likewise.
13865
13866 2011-06-02  Bruno Haible  <bruno@clisp.org>
13867
13868         doc: Fix a module name.
13869         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
13870
13871 2011-06-02  Bruno Haible  <bruno@clisp.org>
13872
13873         pipe2: Remove dependency on 'nonblocking' module.
13874         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
13875         O_NONBLOCK is defined by gnulib.
13876         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
13877         is zero.
13878         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
13879         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
13880         defined by gnulib.
13881         (get_nonblocking_flag): New function.
13882         (main): Test O_NONBLOCK flag only if it is nonzero.
13883         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
13884
13885 2011-06-03  Jim Meyering  <meyering@redhat.com>
13886
13887         maint: three new prohibit-header-without-use rules
13888         Prohibit use of cloexec.h, posixver.h, same.h without use.
13889         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
13890         (sc_prohibit_posixver_without_use): Likewise.
13891         (sc_prohibit_same_without_use): Likewise.
13892
13893 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13894
13895         allocator: 'die' routine is now given requested size
13896         * lib/allocator.h (struct allocator.die): New size arg.
13897         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
13898         If the actual problem is an ssize_t limitation, not a size_t or
13899         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
13900
13901 2011-06-01  Eric Blake  <eblake@redhat.com>
13902
13903         strerror: drop strerror_r dependency
13904         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
13905         * lib/strerror-override.c (strerror_override): ...to new file.
13906         * lib/strerror-override.h: Add prototype.
13907         * lib/strerror-impl.h: Delete.
13908         * lib/strerror.c (strerror): New implementation.
13909         * modules/errno (Files): Add new files.
13910         (configure.ac): Compile new file as appropriate.
13911         * modules/strerror (Files): Drop unused file.
13912         (Depends-on): Drop strerror_r-posix.
13913         * MODULES.html.sh: Document strerror_r-posix.
13914         Requested by Sam Steingold.
13915
13916         perror: call strerror_r directly
13917         * modules/perror (Files): Drop strerror-impl.h.
13918         * lib/perror.c (perror): Use our own stack buffer, rather than
13919         calling a wrapper that uses static storage.
13920         * doc/posix-functions/perror.texi (perror): Document a limitation
13921         of our replacement.
13922
13923         strerror_r: fix includes for FreeBSD
13924         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
13925         since we use abort on some platforms.
13926         Reported by Matthias Bolte.
13927
13928 2011-05-31  Bruno Haible  <bruno@clisp.org>
13929
13930         Fix link errors in tests: openat-die uses gettext-h.
13931         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
13932         against $(LIBINTL).
13933         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
13934         against $(LIBINTL).
13935         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
13936         $(LIBINTL).
13937         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
13938         against $(LIBINTL).
13939         * modules/linkat-tests (Makefile.am): Link test-linkat against
13940         $(LIBINTL).
13941         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
13942         $(LIBINTL).
13943         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
13944         against $(LIBINTL).
13945         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
13946         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
13947         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
13948         $(LIBINTL).
13949         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
13950         $(LIBINTL).
13951         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
13952         $(LIBINTL).
13953         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13954
13955 2011-05-31  Bruno Haible  <bruno@clisp.org>
13956
13957         Fix link errors in tests: wait-process uses gettext-h.
13958         * modules/nonblocking-pipe-tests (Makefile.am): Set
13959         test_nonblocking_pipe_main_LDADD.
13960         * modules/nonblocking-socket-tests (Makefile.am): Link
13961         test-nonblocking-socket-main against $(LIBINTL).
13962         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13963
13964 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
13965
13966         assert-h: work around 'verify' incompatibility
13967         * lib/verify.h: Use @...@ directives, not ifdef.
13968         * modules/assert-h (assert.h): Implement the directives.
13969         (assert.h): Substitute the symbol-prefix more consistently.
13970
13971 2011-05-29  Jim Meyering  <meyering@redhat.com>
13972
13973         trim: remove three superfluous assignments
13974         * lib/trim.c (trim2): Remove three superfluous assignments
13975         and correct brace positioning.
13976
13977 2011-05-29  Bruno Haible  <bruno@clisp.org>
13978
13979         wctype-h: Avoid namespace pollution on Solaris 2.6.
13980         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
13981         identifiers.
13982         * doc/posix-headers/wctype.texi: Mention the problem.
13983         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13984
13985 2011-05-28  Jim Meyering  <meyering@redhat.com>
13986
13987         parse-datetime.y: accommodate -Wstrict-overflow
13988         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
13989         placate -Wstrict-overflow.
13990
13991         trim: avoid a warning from -O2 -Wstrict-overflow
13992         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
13993
13994 2011-05-29  Bruno Haible  <bruno@clisp.org>
13995
13996         gnulib-tool: Fix bug in yesterday's commit.
13997         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
13998         twice.
13999
14000 2011-05-29  Bruno Haible  <bruno@clisp.org>
14001
14002         Allow multiple gnulib generated include files to be combined.
14003         * gnulib-tool (func_compute_include_guard_prefix): New function.
14004         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
14005         ${gl_include_guard_prefix} references.
14006         (func_import, func_create_testdir): Invoke
14007         func_compute_include_guard_prefix.
14008         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
14009         * lib/ctype.in.h: Likewise.
14010         * lib/dirent.in.h: Likewise.
14011         * lib/errno.in.h: Likewise.
14012         * lib/fcntl.in.h: Likewise.
14013         * lib/float.in.h: Likewise.
14014         * lib/getopt.in.h: Likewise.
14015         * lib/iconv.in.h: Likewise.
14016         * lib/langinfo.in.h: Likewise.
14017         * lib/locale.in.h: Likewise.
14018         * lib/math.in.h: Likewise.
14019         * lib/netdb.in.h: Likewise.
14020         * lib/netinet_in.in.h: Likewise.
14021         * lib/poll.in.h: Likewise.
14022         * lib/pthread.in.h: Likewise.
14023         * lib/pty.in.h: Likewise.
14024         * lib/sched.in.h: Likewise.
14025         * lib/se-selinux.in.h: Likewise.
14026         * lib/search.in.h: Likewise.
14027         * lib/signal.in.h: Likewise.
14028         * lib/spawn.in.h: Likewise.
14029         * lib/stdarg.in.h: Likewise.
14030         * lib/stddef.in.h: Likewise.
14031         * lib/stdint.in.h: Likewise.
14032         * lib/stdio.in.h: Likewise.
14033         * lib/stdlib.in.h: Likewise.
14034         * lib/string.in.h: Likewise.
14035         * lib/strings.in.h: Likewise.
14036         * lib/sys_file.in.h: Likewise.
14037         * lib/sys_ioctl.in.h: Likewise.
14038         * lib/sys_select.in.h: Likewise.
14039         * lib/sys_socket.in.h: Likewise.
14040         * lib/sys_stat.in.h: Likewise.
14041         * lib/sys_time.in.h: Likewise.
14042         * lib/sys_times.in.h: Likewise.
14043         * lib/sys_uio.in.h: Likewise.
14044         * lib/sys_utsname.in.h: Likewise.
14045         * lib/sys_wait.in.h: Likewise.
14046         * lib/sysexits.in.h: Likewise.
14047         * lib/termios.in.h: Likewise.
14048         * lib/time.in.h: Likewise.
14049         * lib/unistd.in.h: Likewise.
14050         * lib/wchar.in.h: Likewise.
14051         * lib/wctype.in.h: Likewise.
14052         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
14053         * modules/ctype (Makefile.am): Likewise.
14054         * modules/dirent (Makefile.am): Likewise.
14055         * modules/errno (Makefile.am): Likewise.
14056         * modules/fcntl-h (Makefile.am): Likewise.
14057         * modules/float (Makefile.am): Likewise.
14058         * modules/getopt-posix (Makefile.am): Likewise.
14059         * modules/iconv-h (Makefile.am): Likewise.
14060         * modules/langinfo (Makefile.am): Likewise.
14061         * modules/locale (Makefile.am): Likewise.
14062         * modules/math (Makefile.am): Likewise.
14063         * modules/netdb (Makefile.am): Likewise.
14064         * modules/netinet_in (Makefile.am): Likewise.
14065         * modules/poll-h (Makefile.am): Likewise.
14066         * modules/pthread (Makefile.am): Likewise.
14067         * modules/pty (Makefile.am): Likewise.
14068         * modules/sched (Makefile.am): Likewise.
14069         * modules/search (Makefile.am): Likewise.
14070         * modules/selinux-h (Makefile.am): Likewise.
14071         * modules/signal (Makefile.am): Likewise.
14072         * modules/spawn (Makefile.am): Likewise.
14073         * modules/stdarg (Makefile.am): Likewise.
14074         * modules/stddef (Makefile.am): Likewise.
14075         * modules/stdint (Makefile.am): Likewise.
14076         * modules/stdio (Makefile.am): Likewise.
14077         * modules/stdlib (Makefile.am): Likewise.
14078         * modules/string (Makefile.am): Likewise.
14079         * modules/strings (Makefile.am): Likewise.
14080         * modules/sys_file (Makefile.am): Likewise.
14081         * modules/sys_ioctl (Makefile.am): Likewise.
14082         * modules/sys_select (Makefile.am): Likewise.
14083         * modules/sys_socket (Makefile.am): Likewise.
14084         * modules/sys_stat (Makefile.am): Likewise.
14085         * modules/sys_time (Makefile.am): Likewise.
14086         * modules/sys_times (Makefile.am): Likewise.
14087         * modules/sys_uio (Makefile.am): Likewise.
14088         * modules/sys_utsname (Makefile.am): Likewise.
14089         * modules/sys_wait (Makefile.am): Likewise.
14090         * modules/sysexits (Makefile.am): Likewise.
14091         * modules/termios (Makefile.am): Likewise.
14092         * modules/time (Makefile.am): Likewise.
14093         * modules/unistd (Makefile.am): Likewise.
14094         * modules/wchar (Makefile.am): Likewise.
14095         * modules/wctype-h (Makefile.am): Likewise.
14096         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
14097
14098 2011-05-29  Bruno Haible  <bruno@clisp.org>
14099
14100         assert-h: Allow multiple gnulib generated replacements to coexist.
14101         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
14102
14103 2011-05-29  Bruno Haible  <bruno@clisp.org>
14104
14105         argp: Allow coexistence with strerror_r-posix module.
14106         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
14107         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
14108         by gnulib's <string.h> replacement), assume it has the POSIX signature,
14109         not the glibc signature.
14110
14111 2011-05-28  Bruno Haible  <bruno@clisp.org>
14112
14113         gnulib-tool: Alternative structure of testdirs, similar to --import.
14114         * gnulib-tool: New option --single-configure.
14115         (func_usage): Document it.
14116         (single_configure): New variable.
14117         (func_modules_transitive_closure_separately,
14118         func_modules_transitive_closure_separately,
14119         func_determine_use_libtests, func_modules_add_dummy_separately,
14120         func_modules_to_filelist_separately): New functions, extracted from
14121         func_import.
14122         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
14123         (func_import): Use the new functions.
14124         (func_create_testdir): Set final_modules. Handle $single_configure =
14125         true case.
14126
14127 2011-05-28  Bruno Haible  <bruno@clisp.org>
14128
14129         getloadavg: Remove an unreliable safety check.
14130         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
14131         getloadavg.c is in place.
14132         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
14133         Reported by Sam Steingold <sds@gnu.org>.
14134
14135 2011-05-28  Bruno Haible  <bruno@clisp.org>
14136
14137         doc: Cleanup yet another file produced by texinfo.tex.
14138         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
14139
14140 2011-05-28  Bruno Haible  <bruno@clisp.org>
14141
14142         Finish the conditional dependencies mechanism.
14143         * gnulib-tool: New option --no-conditional-dependencies.
14144         (func_usage): Document it. Don't mark --conditional-dependencies as
14145         experimental.
14146         (cond_dependencies): The possible values can now be true, false, empty.
14147         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
14148         (func_import): Store setting in gnulib-cache.m4 and read it from there.
14149         * doc/gnulib-tool.texi (Conditional dependencies): New section.
14150
14151 2011-05-28  Bruno Haible  <bruno@clisp.org>
14152
14153         doc: Use a recent texinfo.tex.
14154         * doc/Makefile (tex_opts): New variable.
14155         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
14156
14157 2011-05-28  Jim Meyering  <meyering@redhat.com>
14158
14159         intprops.h: adjust comment to match code change
14160         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
14161         only once, it *may* have side effects.  Also fix an unrelated typo.
14162         (_GL_INT_SIGNED): Likewise.
14163
14164 2011-05-26  Simon Josefsson  <simon@josefsson.org>
14165
14166         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
14167
14168 2011-05-26  Bruno Haible  <bruno@clisp.org>
14169
14170         mbsrchr: Avoid collision with system function on Interix.
14171         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
14172         Reported by Markus Duft <mduft@gentoo.org>.
14173
14174 2011-05-15  James Youngman  <jay@gnu.org>
14175
14176         getopt: for ambiguous options, enumerate the possibilities.
14177         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
14178         the ambiguous options when an ambiguous prefix is given. This was
14179         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
14180         glibc change was
14181         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
14182
14183 2011-05-25  Eric Blake  <eblake@redhat.com>
14184
14185         getcwd: work around mingw bug
14186         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
14187         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14188         Reported by Matthias Bolte.
14189
14190 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14191
14192         test-intprops: disable -Wtype-limits diagnostics
14193         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
14194         diagnostics.  Otherwise, the integer overflow macros generate many
14195         diagnostics.  Reported by Jim Meyering in
14196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14197
14198         intprops: shorten, to pacify gcc -Woverlength-strings
14199         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
14200         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
14201         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
14202         likely to run afoul of C compiler limits for string constant lengths.
14203         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14204
14205 2011-05-24  Eric Blake  <eblake@redhat.com>
14206
14207         docs: document recently fixed glibc printf bug
14208         * doc/posix-functions/fprintf.texi (fprintf): Document it.
14209         * doc/posix-functions/printf.texi (printf): Likewise.
14210         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14211         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14212
14213         closein-tests: convert to init.sh
14214         * modules/closein-tests (Files): Add init.sh
14215         * tests/test-closein.sh Use it.
14216
14217         yesno-tests: convert to init.sh
14218         * modules/yesno-tests (Files): Add init.sh.
14219         * tests/test-yesno.sh: Use it.
14220
14221         atexit-tests: ensure reliable exit status
14222         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
14223         Reported by Bruno Haible.
14224
14225 2011-05-24  Bruno Haible  <bruno@clisp.org>
14226
14227         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
14228         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
14229         gl_PREREQ_STRERROR_R invocations from here...
14230         * modules/strerror_r-posix (configure.ac): ... to here.
14231
14232 2011-05-24  Eric Blake  <eblake@redhat.com>
14233
14234         strerror_r: fix missing header
14235         * lib/strerror_r.c: Avoid compiler warning about snprintf.
14236
14237         strerror_r: fix AIX test failures
14238         * lib/strerror_r.c (strerror_r): Convert silent truncation to
14239         ERANGE failure.
14240
14241         strerror_r: fix Solaris test failures
14242         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
14243         failures.
14244         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
14245
14246         strerror_r: enforce POSIX recommendations
14247         * lib/strerror_r.c (safe_copy): New helper method.
14248         (strerror_r): Guarantee a non-empty string.
14249         * tests/test-strerror_r.c (main): Enhance tests to incorporate
14250         recent POSIX rulings and to match our strerror guarantees.
14251         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
14252
14253 2011-05-24  Jim Meyering  <meyering@redhat.com>
14254
14255         test-perror2.c: avoid warning about unused variable
14256         * tests/test-perror2.c (main): Remove declaration of unused "fp".
14257
14258 2011-05-24  Eric Blake  <eblake@redhat.com>
14259
14260         perror: avoid spurious test failure on HP-UX
14261         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
14262
14263         tests: fix logic bug in init.sh
14264         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
14265         shell.
14266
14267 2011-05-24  Jim Meyering  <meyering@redhat.com>
14268
14269         utimensat: do not reference an out-of-scope buffer
14270         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
14271         declared in an inner scope, yet "times" would be dereferenced outside
14272         the scope in which "ts" was valid.
14273         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
14274         of ts[2] "out/up", so that the use of aliased "times" (via
14275         "times = ts;") does not end up referencing an out-of-scope "ts"
14276
14277         opendir-safer.c: don't clobber errno; don't close negative FD
14278         * lib/opendir-safer.c (opendir_safer):
14279         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
14280         file descriptor, and more importantly, don't clobber the
14281         offending errno value with EINVAL.  Before, upon failure
14282         of dup_safer, we would pass the negative file descriptor to
14283         fdopendir, which would clobber errno.
14284
14285 2011-05-23  Bruno Haible  <bruno@clisp.org>
14286
14287         idcache: Fix module description.
14288         * modules/idcache (Include): Set to "idcache.h".
14289
14290 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
14291
14292         gnulib-tool: fix portability problem with MacOS sed
14293         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
14294         before the "}".  Problem reported by Leo in
14295         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
14296         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
14297         sed_extract_condition1, sed_extract_condition2.
14298
14299 2011-05-23  Bruno Haible  <bruno@clisp.org>
14300
14301         hash: Simplify autoconf macro.
14302         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
14303
14304 2011-05-23  Bruno Haible  <bruno@clisp.org>
14305
14306         getugroups: Fix module description.
14307         * modules/getugroups (Include): Set to "getugroups.h".
14308
14309 2011-05-23  Bruno Haible  <bruno@clisp.org>
14310
14311         linkat: Simplify autoconf macro.
14312         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
14313
14314 2011-05-23  Bruno Haible  <bruno@clisp.org>
14315             Eric Blake  <eblake@redhat.com>
14316
14317         linkat, renameat: Update dependencies.
14318         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
14319         * modules/linkat (Depends-on): Likewise. Remove also readlink,
14320         symlinkat.
14321
14322 2011-05-23  Jim Meyering  <meyering@redhat.com>
14323
14324         maint.mk: more tight_scope improvements
14325         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
14326         (_gl_TS_headers): Define only in if-0'd block.
14327         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
14328         sometimes we must *not* use it.  Adjust uses accordingly.
14329         (sc_tight_scope): Use much simpler grep-based test to determine
14330         whether we skip this rule.
14331
14332         maint.mk: generalize/improve the tight-scope rule
14333         * top/maint.mk: Emit a warning when the test is skipped.
14334         (_gl_TS_dir): Add $(srcdir)/ prefix.
14335         (_gl_TS_function_match): Simplify, rather than trying
14336         to enumerate common types.  Otherwise, it would fail to match an
14337         "extern unsigned char const *" declaration in idutils.
14338         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
14339         a way to support use of that type of macro.
14340         (_gl_TS_var_match): Simplify regexp.
14341         (_gl_TS_obj_files): New configurable variable.
14342         (_gl_TS_headers): Likewise.
14343
14344 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
14345
14346         verify: fix bug when gnulib <assert.h> is also included
14347         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
14348         is defined, not if _GL_STATIC_ASSERT_H is not defined.
14349         Perhaps there's a better way, but this fixes the immediate problem.
14350         Problem reported by Bruno Haible in
14351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
14352
14353 2011-05-22  Bruno Haible  <bruno@clisp.org>
14354
14355         xgetcwd: Simplify autoconf macro.
14356         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
14357
14358 2011-05-22  Bruno Haible  <bruno@clisp.org>
14359
14360         New module 'mktime-internal'.
14361         * modules/mktime-internal: New file.
14362         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
14363         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
14364         mktime_internal as a C macro if libc has __mktime_internal.
14365         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
14366         conditions.
14367         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
14368
14369 2011-05-22  Bruno Haible  <bruno@clisp.org>
14370
14371         timegm: Correct mktime replacement statements.
14372         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
14373         defining mktime as a C macro. This completes a 2009-07-28 commit.
14374
14375 2011-05-22  Bruno Haible  <bruno@clisp.org>
14376
14377         timegm: Simplify autoconf macro.
14378         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
14379
14380 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
14381
14382         clock-time: change to LGPLv2+.
14383         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
14384         BSD-like but we have no mark for that; this is good enough for now.
14385
14386 2011-05-21  Bruno Haible  <bruno@clisp.org>
14387
14388         strerror_r: Fix comments.
14389         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
14390
14391 2011-05-21  Bruno Haible  <bruno@clisp.org>
14392
14393         relocatable-prog-wrapper: Fix possible link error.
14394         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
14395         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
14396         (gl_FUNC_SETENV): ... to here.
14397         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
14398         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
14399
14400 2011-05-21  Bruno Haible  <bruno@clisp.org>
14401
14402         relocatable-prog-wrapper: Assume strerror() exists.
14403         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
14404         m4/strerror.m4.
14405         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
14406         * lib/relocwrapper.c: Remove mention of strerror module.
14407         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
14408         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
14409         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
14410         C macro.
14411
14412 2011-05-21  Bruno Haible  <bruno@clisp.org>
14413
14414         select: Simplify replacement idiom.
14415         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
14416         Win32 platforms.
14417         * lib/sys_select.in.h (select): Simplify accordingly.
14418         * modules/select (Depends-on): Likewise.
14419
14420 2011-05-21  Bruno Haible  <bruno@clisp.org>
14421
14422         mkdir-p: Simplify autoconf macro.
14423         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
14424         gl_FUNC_LCHOWN.
14425
14426 2011-05-21  Eric Blake  <eblake@redhat.com>
14427
14428         strerror_r: avoid clobbering strerror on cygwin
14429         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
14430         fall back instead to sys_errlist.
14431         * modules/strerror (configure.ac): Add witness.
14432         * tests/test-strerror_r.c (main): Enhance test.
14433         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14434         * tests/test-perror2.c (main): Free memory before exit.
14435
14436 2011-05-21  Bruno Haible  <bruno@clisp.org>
14437
14438         mkdtemp: Use gnulib naming conventions.
14439         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
14440         * modules/mkdtemp (configure.ac): Update.
14441
14442 2011-05-20  Eric Blake  <eblake@redhat.com>
14443
14444         strerror_r: avoid corrupting errno on Solaris
14445         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
14446         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14447
14448         strerror_r: avoid compiler warning
14449         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
14450
14451         strerror_r: simplify AIX code
14452         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
14453
14454         test-perror: avoid spurious failure on FreeBSD
14455         * modules/perror-tests (Depends-on): Add strerror, now that
14456         strerror_r no longer pulls it in.
14457
14458 2011-05-20  Bruno Haible  <bruno@clisp.org>
14459
14460         strerror_r-posix: Remove unused dependencies.
14461         * modules/strerror_r-posix (Depends-on): Remove strerror.
14462         Reported by Eric Blake.
14463
14464 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
14465
14466         intprops: remove assumption about A|B representation
14467         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
14468         is a valid integer if both A and B are.  Although this is true for
14469         all known practical hosts, the C standard doesn't guarantee it,
14470         and the code need not assume it.  Also, this change may work around
14471         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
14472         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
14473
14474 2011-05-20  Eric Blake  <eblake@redhat.com>
14475
14476         perror: work around FreeBSD bug
14477         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
14478         is broken.  Move AC_LIBOBJ...
14479         * modules/perror (configure.ac): Here.
14480         * doc/posix-functions/perror.texi (perror): Document this.
14481         * tests/test-perror2.c (main): Enhance test.
14482
14483         test-perror: check for strerror interactions
14484         * tests/macros.h (STREQ): Add macro.
14485         * modules/perror-tests (Files): Add second test.
14486         * tests/test-perror2.c (main): New file.
14487         * doc/posix-functions/perror.texi (perror): Document glibc bug.
14488
14489         test-perror: rewrite to use init script
14490         * modules/perror-tests (Files): Add init.sh.
14491         * tests/test-perror.sh: Use temporary directory.
14492
14493 2011-05-20  Jim Meyering  <meyering@redhat.com>
14494
14495         maint: replace misused "a" with "an"
14496         * doc/intprops.texi: "a integer"
14497         * doc/regex.texi: "a explanation"
14498         * lib/alignof.h: "a object"
14499         * lib/argmatch.h: "a explanation"
14500         * lib/argp-help.c: "a option" and "a OPTION_DOC"
14501         * lib/stdint.in.h: "a integer"
14502         * lib/userspec.c: "a owner"
14503         * doc/gnulib.texi: Fix "a idea", and reword.
14504
14505 2011-05-19  Jim Meyering  <meyering@redhat.com>
14506
14507         maint: correct misuse of "a" and "an"
14508         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
14509         * lib/argp-help.c: "an docum...": s/an/a/
14510         * lib/argp-parse.c: "An vector": s/An/A/
14511         * lib/execute.c: "an native": s/an/a/
14512         * lib/spawn-pipe.c: Likewise.
14513         * lib/gc.h: "an Gc_rc": s/an/a/
14514         * lib/unigbrk.in.h: "an grapheme": s/an/a/
14515         * lib/fts.c: "an stat.st_dev": s/an/a/
14516
14517 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14518
14519         intprops-tests: work around HP-UX 11.23 cc bug with constants
14520         * tests/test-intprops.c (VERIFY): New macro.
14521         (main): Use it, instead of verify, to work around the compiler bug; see
14522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
14523
14524         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
14525         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
14526         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
14527         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
14528         (_GL_REMAINDER_OVERFLOW): Use it.
14529
14530         intprops-tests: revert unsigned part of previous change
14531         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
14532         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
14533         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
14534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
14535
14536 2011-05-19  Bruno Haible  <bruno@clisp.org>
14537
14538         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
14539         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
14540         strerror_r() returned without filling the buffer.
14541         Reported by Eric Blake.
14542
14543 2011-05-19  Eric Blake  <eblake@redhat.com>
14544
14545         strerror_r: guarantee unchanged errno
14546         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
14547         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
14548         failure.
14549         * tests/test-strerror_r.c (main): Enhance test.
14550
14551 2011-05-19  Bruno Haible  <bruno@clisp.org>
14552
14553         strerror_r: Reorder #if blocks.
14554         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
14555         for consistency with the previous commit.
14556
14557 2011-05-19  Bruno Haible  <bruno@clisp.org>
14558
14559         perror: Avoid clobbering the strerror buffer when possible.
14560         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
14561         * lib/strerror.c: Include it.
14562         * modules/strerror (Files): Add lib/strerror-impl.h.
14563         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
14564         (my_strerror): New function, defined through lib/strerror-impl.h.
14565         (perror): Use it instead of strerror.
14566         * modules/perror (Files): Add lib/strerror-impl.h.
14567         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
14568
14569 2011-05-19  Eric Blake  <eblake@redhat.com>
14570
14571         strerror_r: fix on newer cygwin
14572         * lib/strerror_r.c (strerror_r): Cygwin now has
14573         __xpg_strerror_r, use it.
14574
14575 2011-05-19  Bruno Haible  <bruno@clisp.org>
14576
14577         strerror_r: Avoid clobbering the strerror buffer when possible.
14578         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
14579         (sys_nerr, sys_errlist): New declarations.
14580         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
14581         HP-UX, native Win32, IRIX, and 32-bit Solaris.
14582         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
14583
14584 2011-05-19  Bruno Haible  <bruno@clisp.org>
14585
14586         strerror_r: Fix test failure on mingw.
14587         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
14588         EXTEND_STRERROR_R.
14589         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
14590         macros from errno.in.h instead.
14591
14592 2011-05-19  Eric Blake  <eblake@redhat.com>
14593
14594         strerror: relax test for Solaris
14595         * tests/test-strerror.c (main): Permit Solaris behavior.
14596         * tests/test-strerror_r.c (main): Likewise.
14597
14598         strerror: enforce POSIX ruling on strerror(0)
14599         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
14600         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14601         * lib/strerror_r.c (rpl_strerror_r): Work around it.
14602         * doc/posix-functions/strerror.texi (strerror): Document it.
14603         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
14604         * tests/test-strerror.c (main): Strengthen test.
14605         * tests/test-strerror_r.c (main): Likewise.
14606
14607 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14608
14609         intprop-tests: port to older and more-pedantic compilers
14610         * modules/intprops-tests (Files): Add tests/macros.h.
14611         * tests/test-intprops.c: Include macros.h.
14612         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
14613         it's no longer documented to expand to an integer constant expression.
14614         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
14615         argument is floating point, as it's no longer documented to expand
14616         to an integer constant expression in that case.
14617         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
14618         compiler bugs reported by Bruno Haible.  See
14619         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
14620         (U0, U1): New constants, to work around the same bugs.  Also,
14621         in tests, use e.g., "(unsigned int) 39" rather than "39u".
14622
14623         intprops: work around C compiler bugs
14624         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
14625         bug in Sun C 5.11 2010/08/13 and other compilers; see
14626         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
14627
14628         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
14629         * doc/intprops.texi (Integer Type Determination): Fix
14630         documentation for TYPE_IS_INTEGER: it returns an constant
14631         expression, not an integer constant expression.  Fix doc for
14632         TYPE_SIGNED: it returns an integer constant expression only if its
14633         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
14634         hardly worth documented that way....)
14635
14636 2011-05-18  Bruno Haible  <bruno@clisp.org>
14637
14638         strerror_r: Avoid clobbering the strerror buffer when possible.
14639         * lib/strerror_r.c (strerror_r): Merge the three implementations.
14640         Handle gnulib defined errno values here. When strerror() returns NULL
14641         or an empty string, return EINVAL.
14642         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
14643         gnulib defined errno values here.
14644         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
14645
14646 2011-05-18  Eric Blake  <eblake@redhat.com>
14647
14648         fnmatch: avoid compiler warning
14649         * lib/fnmatch_loop.c (FCT): Use correct type.
14650         Reported by Matthias Bolte.
14651
14652 2011-05-13  Jim Meyering  <meyering@redhat.com>
14653
14654         maint.mk: three new prohibit_<HDR>_without_use rules
14655         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
14656         (sc_prohibit_stdio-safer_without_use): Likewise.
14657         (sc_prohibit_xfreopen_without_use): Likewise.
14658
14659 2011-05-17  Jim Meyering  <meyering@redhat.com>
14660
14661         announce-gen: fail if the NEWS delta is empty
14662         If there's nothing noteworthy in NEWS, then either you forgot
14663         or you shouldn't be releasing.
14664         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
14665
14666 2011-05-17  Pádraig Brady <P@draigBrady.com>
14667
14668         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
14669         reserved symbols starting with double underscore from the check.
14670
14671 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14672
14673         intprops: add doc
14674         * doc/intprops.texi: New file, documenting intprops.
14675         * doc/gnulib.texi (Particular Modules): Include it.
14676
14677         verify: add doc to gnulib manual and fix example
14678         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
14679         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
14680         (Compile-time Assertions): Fix example so it can't overflow.
14681
14682 2011-05-17  Jim Meyering  <meyering@redhat.com>
14683
14684         warnings.m4: don't usurp save_CPPFLAGS variable name
14685         * m4/warnings.m4: Prefix local temporary variable name with gl_.
14686
14687         doc: fix typo
14688         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
14689
14690 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14691             Bruno Haible  <bruno@clisp.org>
14692
14693         doc: Tweak recent change.
14694         * README (Portability guidelines): Tweak new text.
14695         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
14696         Interix 6.1.
14697
14698 2011-05-16  Eric Blake  <eblake@redhat.com>
14699
14700         inttypes: avoid autoconf warning
14701         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
14702         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14703
14704 2011-05-16  Sam Steingold <sds@gnu.org>
14705         and Eric Blake  <eblake@redhat.com>
14706
14707         vc-list-files: accept multiple directory operands
14708         * build-aux/vc-list-files: Iterate over all remaining operands.
14709
14710 2011-05-16  Bruno Haible  <bruno@clisp.org>
14711
14712         Fix confusion regarding deprecated modules.
14713         * modules/calloc (Status, Notice): Mark module as deprecated, not
14714         obsolete.
14715         * modules/fnmatch-posix (Status, Notice): Likewise.
14716         * modules/getdate (Status, Notice): Likewise.
14717         * modules/getopt (Status, Notice): Likewise.
14718         * modules/malloc (Status, Notice): Likewise.
14719         * modules/pipe (Status, Notice): Likewise.
14720         * modules/realloc (Status, Notice): Likewise.
14721         * modules/rename-dest-slash (Status, Notice): Likewise.
14722         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
14723         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
14724         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
14725         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
14726         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
14727
14728 2011-05-16  Bruno Haible  <bruno@clisp.org>
14729
14730         doc: List the target platforms.
14731         * doc/gnulib-intro.texi (Target Platforms): New section.
14732         * doc/gnulib.texi (Introduction): Update menu.
14733         * README (Portability guidelines): Refer to the new section. Update
14734         statement about oldest supported environment. Remove rationale why
14735         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
14736         unportable C89 function.
14737         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
14738         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
14739
14740 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14741
14742         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
14743
14744 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
14745
14746         intprops-tests: new module
14747         * modules/intprops-tests, tests/test-intprops.c: New files.
14748
14749         intprops: add safe, portable integer overflow checking
14750         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
14751         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
14752         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
14753         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
14754         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
14755         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
14756         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
14757         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
14758         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
14759         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
14760         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
14761
14762 2011-05-12  James Youngman  <jay@gnu.org>
14763
14764         Add a test for glibc's Bugzilla bug #12378.
14765         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
14766         doesn't allow the literal matching of a lone "[" (which is
14767         required by POSIX).
14768         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
14769
14770 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
14771
14772         Sync glibc change fixing Bugzilla bug #12378.
14773         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
14774         beginning and fall back to matching as normal character if the
14775         string ends before the matching ']' is found.  This is what POSIX
14776         requires.
14777
14778 2011-05-13  Eric Blake  <eblake@redhat.com>
14779
14780         getcwd-lgpl: relax test for FreeBSD
14781         * doc/posix-functions/getcwd.texi (getcwd): Document portability
14782         issue.
14783         * tests/test-getcwd-lgpl.c (main): Relax test.
14784         Reported by Matthias Bolte.
14785
14786 2011-05-11  Eric Blake  <eblake@redhat.com>
14787
14788         test-fflush: silence compiler warning
14789         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
14790
14791 2011-05-11  Bruno Haible  <bruno@clisp.org>
14792
14793         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
14794         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
14795         * modules/canonicalize (Depends-on): Add 'nocrash'.
14796         * modules/canonicalize-lgpl (Depends-on): Likewise.
14797         * doc/posix-functions/realpath.texi: Update platforms list.
14798         Reported by Ryan Schmidt <ryandesign@macports.org>.
14799
14800 2011-05-11  Bruno Haible  <bruno@clisp.org>
14801
14802         group-member: Declare function in <unistd.h>.
14803         * lib/unistd.in.h (group_member): New declaration.
14804         * lib/group-member.h: Remove file.
14805         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
14806         * tests/test-unistd-c++.cc: Check signature of group_member.
14807         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
14808         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
14809         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
14810         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
14811         HAVE_GROUP_MEMBER.
14812         * modules/group-member (Files): Remove lib/group-member.h.
14813         (Depends-on): Add unistd. Specify conditions.
14814         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14815         (Include): Change to <unistd.h>.
14816         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
14817         HAVE_GROUP_MEMBER.
14818         * NEWS: Mention the change.
14819         * lib/euidaccess.c: Don't include group-member.h.
14820
14821 2011-05-11  Bruno Haible  <bruno@clisp.org>
14822
14823         group-member: Document module.
14824         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
14825         module.
14826
14827 2011-05-11  Bruno Haible  <bruno@clisp.org>
14828
14829         fclose: Fix mistake earlier today.
14830         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
14831
14832 2011-05-11  Eric Blake  <eblake@redhat.com>
14833
14834         fclose: preserve fflush errors
14835         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
14836         Reported by Jim Meyering.
14837
14838         bootstrap: support a prereq of 'rpcgen -' on RHEL5
14839         * build-aux/bootstrap (check_versions): When no specific version
14840         is required, merely check that the app produces an exit status
14841         that indicates its existence.
14842
14843         maint.mk: drop redundant check
14844         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
14845         the same but better.
14846
14847 2011-05-11  Bruno Haible  <bruno@clisp.org>
14848
14849         fclose: Fix possible link error.
14850         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
14851         unregister_shadow_fd. Improve comments.
14852         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
14853         Eric Blake.
14854
14855 2011-05-11  Jim Meyering  <meyering@redhat.com>
14856
14857         maint.mk: improve "can not" detection and generalize rule name
14858         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
14859         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
14860         Use the same technique as in sc_prohibit_doubled_word, so that
14861         we recognize "can not" also when the words are separated by a newline.
14862         Suggested by Eric Blake.
14863         (perl_filename_lineno_text_): Define.  Factored out of...
14864         (prohibit_doubled_word_): ...here.  Use the new definition.
14865         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
14866         (prohibit_undesirable_word_seq_RE_): New overridable variable.
14867         (ignore_undesirable_word_sequence_RE_): New overridable variable.
14868
14869 2011-05-10  Eric Blake  <eblake@redhat.com>
14870
14871         fclose: avoid double close race when possible
14872         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
14873         all but WINDOWS_SOCKETS.
14874
14875 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
14876
14877         openat: correct new comment
14878         * lib/openat-proc.c (openat_proc_name): Correct the comment.
14879
14880 2011-05-10  Jim Meyering  <meyering@redhat.com>
14881
14882         openat: add comments
14883         * lib/openat-proc.c (openat_proc_name): Add comments,
14884         mostly from Eric Blake.
14885
14886 2011-05-09  Eric Blake  <eblake@redhat.com>
14887
14888         openat: reduce syscalls in first probe of /proc
14889         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
14890         be a directory.  Simplify the probe for .. bugs.
14891         * modules/openat (Depends-on): Drop same-inode.
14892         Reported by Bastien ROUCARIES.
14893
14894 2011-05-09  Jim Meyering  <meyering@redhat.com>
14895
14896         maint.mk: change semantics/name of tight_scope variables
14897         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
14898         Rename variables to align with semantics that make them more useful.
14899
14900         maint.mk: tweak new rule's name not to impinge
14901         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
14902         (sc_tight_scope): Use new rule name rather than $@-0.
14903
14904         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
14905         * top/maint.mk (sc_tight_scope): New rule.
14906         (sc_tight_scope-0): New rule, ifdef'd out.
14907         (_gl_TS_dir): Default.
14908         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
14909         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
14910
14911 2011-05-09  Simon Josefsson  <simon@josefsson.org>
14912
14913         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
14914         Haible <bruno@clisp.org>.
14915
14916 2011-05-08  Bruno Haible  <bruno@clisp.org>
14917
14918         Comments.
14919         * m4/isnanf.m4: Add comment.
14920         * m4/isnanl.m4: Likewise.
14921
14922 2011-05-08  Bruno Haible  <bruno@clisp.org>
14923
14924         glob: Remove obsolete macro.
14925         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
14926
14927 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
14928
14929         intprops: Sun C 5.11 supports __typeof__
14930         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
14931         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
14932         which is new.
14933         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
14934
14935         intprops: switch to usual gnulib indenting and naming
14936         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
14937         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
14938
14939         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
14940
14941 2011-05-08  Jim Meyering  <meyering@redhat.com>
14942
14943         maint.mk: suppress "Entering/Leaving directory" diag in announcement
14944         * top/maint.mk (release-prep): Use make's --no-print-directory
14945         option when generating the announcement.  This eliminates the
14946         pesky "make[2]: Entering/Leaving directory" diagnostics in the
14947         generated announcement template.
14948
14949 2011-05-08  Bruno Haible  <bruno@clisp.org>
14950
14951         tzset: Fix gettimeofday wrapper on Solaris 2.6.
14952         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
14953         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
14954
14955 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
14956
14957         ignore-value, verify: Omit include files from lib_SOURCES.
14958         * modules/ignore-value, modules/verify (Makefile.am):
14959         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
14960         that leads Automake to duplicate use of am__objects_... variables
14961         in Makefile.in.  See
14962         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
14963
14964 2011-05-07  Bruno Haible  <bruno@clisp.org>
14965
14966         fclose: Simplify autoconf macro.
14967         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
14968         defined.
14969
14970 2011-05-07  Bruno Haible  <bruno@clisp.org>
14971
14972         canonicalize-lgpl: Fix autoconf macro ordering bug.
14973         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
14974         gl_STDLIB_H_DEFAULTS.
14975
14976 2011-05-06  Eric Blake  <eblake@redhat.com>
14977
14978         maintainer-makefile: make sc_po_check easier to tune
14979         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
14980         to probe for strings, such as an alternate location for gnulib.
14981
14982         fclose: guarantee behavior on seekable stdin
14983         * modules/fclose (Depends-on): Add fflush.
14984         * doc/posix-functions/fclose.texi (fclose): Document this.
14985         * tests/test-fclose.c (main): Make test for this unconditional.
14986
14987 2011-05-06  Bruno Haible  <bruno@clisp.org>
14988
14989         fflush, fpurge: Relicense under LGPLv2+.
14990         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
14991         * modules/fpurge (License): Likewise.
14992         With permission from Eric Blake and Jim Meyering.
14993         Suggested by Eric Blake.
14994
14995 2011-05-06  Karl Berry  <karl@gnu.org>
14996
14997         * MODULES.html.sh (func_all_modules): remove exit.
14998
14999 2011-05-06  Jim Meyering  <meyering@redhat.com>
15000
15001         maint.mk: use info-gnu@ as the default only for a stable release
15002         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
15003         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
15004         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
15005         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
15006
15007 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15008
15009         assert-h: new module, which supports C1X-style static_assert
15010         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
15011         * lib/verify.h: Revamp so that this can be copied into assert.h,
15012         while retaining the ability to use it standalone as before.
15013         Rename private identifiers so as not to encroach on the
15014         standard C namespace, since this is now used by assert.h.
15015         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
15016         the old verify_true.
15017         (_GL_VERIFY_TRUE): New macro, with much of the contents of
15018         the old verify_true.  Use _GL_VERIFY_TYPE.
15019         (_GL_VERIFY): New macro, with much of the contents of the old verify.
15020         (static_assert): New macro, if _GL_STATIC_ASSERT_H
15021         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
15022         defined when this file is copied into the replacement assert.h.
15023         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
15024         and _Static_assert is not built in.
15025         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
15026         defined, and use the new macros mentioned above.
15027         * doc/posix-headers/assert.texi: Document this.
15028
15029 2011-05-05  Bruno Haible  <bruno@clisp.org>
15030
15031         fclose, fflush: Respect rules for use of AC_LIBOBJ.
15032         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
15033         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
15034         gl_REPLACE_FCLOSE here.
15035         * modules/fflush (Depends-on): Remove fclose.
15036         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
15037         combination with module 'fclose'.
15038
15039 2011-05-05  Bruno Haible  <bruno@clisp.org>
15040
15041         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
15042         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
15043         gl_FUNC_FFLUSH.
15044         (gl_FUNC_FFLUSH): Use it.
15045         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
15046         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
15047         gl_REPLACE_FSEEKO here.
15048
15049 2011-05-05  Bruno Haible  <bruno@clisp.org>
15050
15051         tzset: Relicense under LGPL.
15052         * modules/tzset (License): Change to LGPL.
15053         No agreement needed; it's a no-op.
15054
15055         strtoimax, strtoumax: Relicense under LGPL.
15056         * modules/strtoimax (License): Change to LGPL.
15057         * modules/strtoumax (License): Likewise.
15058         With permission from Jim Meyering, Paul Eggert:
15059         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
15060         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
15061
15062         getgroups: Relicense under LGPL.
15063         * modules/getgroups (License): Change to LGPL.
15064         With permission from Jim Meyering, Paul Eggert, Eric Blake:
15065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15068
15069         nanosleep: Relicense under LGPL.
15070         * modules/nanosleep (License): Change to LGPL.
15071         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
15072         Haible:
15073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15075         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15076         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15077
15078         futimens: Relicense under LGPL.
15079         * modules/futimens (License): Change to LGPL.
15080         With permission from Eric Blake:
15081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15082
15083         fflush: Relicense under LGPL.
15084         * modules/fflush (License): Change to LGPL.
15085         With permission from Eric Blake, Bruno Haible, Jim Meyering:
15086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15087         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
15089
15090         tmpfile: Relicense under LGPL.
15091         * modules/tmpfile (License): Change to LGPL.
15092         With permission from Ben Pfaff:
15093         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15094
15095         isfinite: Relicense under LGPL.
15096         * modules/isfinite (License): Change to LGPL.
15097         With permission from Ben Pfaff, Bruno Haible:
15098         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
15100
15101         acosl..tanl: Relicense under LGPL.
15102         * modules/acosl (License): Change to LGPL.
15103         * modules/asinl (License): Likewise.
15104         * modules/atanl (License): Likewise.
15105         * modules/cosl (License): Likewise.
15106         * modules/expl (License): Likewise.
15107         * modules/logl (License): Likewise.
15108         * modules/sinl (License): Likewise.
15109         * modules/sqrtl (License): Likewise.
15110         * modules/tanl (License): Likewise.
15111         Source code originally from glibc and Paolo Bonzini. Agreements:
15112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
15113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
15114
15115 2011-05-05  Bruno Haible  <bruno@clisp.org>
15116
15117         signal: Define sighandler_t.
15118         * lib/signal.in.h (sighandler_t): New type.
15119         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
15120         whether sighandler_t is defined.
15121         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
15122         * modules/signal (Depends-on): Add extensions.
15123         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
15124         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
15125         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
15126
15127 2011-05-05  Eric Blake  <eblake@redhat.com>
15128
15129         maint: remove useless REPLACE_*_H macros
15130         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
15131         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
15132         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
15133         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
15134         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
15135         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
15136         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
15137         * m4/btowc.m4: Update callers.
15138         * m4/dirfd.m4: Likewise.
15139         * m4/duplocale.m4: Likewise.
15140         * m4/fchdir.m4: Likewise.
15141         * m4/fdopendir.m4: Likewise.
15142         * m4/inet_ntop.m4: Likewise.
15143         * m4/inet_pton.m4: Likewise.
15144         * m4/ioctl.m4: Likewise.
15145         * m4/mbrlen.m4: Likewise.
15146         * m4/mbrtowc.m4: Likewise.
15147         * m4/mbsinit.m4: Likewise.
15148         * m4/mbsnrtowcs.m4: Likewise.
15149         * m4/mbsrtowcs.m4: Likewise.
15150         * m4/poll.m4: Likewise.
15151         * m4/setlocale.m4: Likewise.
15152         * m4/wcrtomb.m4: Likewise.
15153         * m4/wcsnrtombs.m4: Likewise.
15154         * m4/wcsrtombs.m4: Likewise.
15155         * m4/wctob.m4: Likewise.
15156         * m4/wcwidth.m4: Likewise.
15157         * modules/posix_spawn: Likewise.
15158         * modules/posix_spawn_file_actions_addclose: Likewise.
15159         * modules/posix_spawn_file_actions_adddup2: Likewise.
15160         * modules/posix_spawn_file_actions_addopen: Likewise.
15161         * modules/posix_spawn_file_actions_destroy: Likewise.
15162         * modules/posix_spawn_file_actions_init: Likewise.
15163         * modules/posix_spawnattr_destroy: Likewise.
15164         * modules/posix_spawnattr_getflags: Likewise.
15165         * modules/posix_spawnattr_getpgroup: Likewise.
15166         * modules/posix_spawnattr_getschedparam: Likewise.
15167         * modules/posix_spawnattr_getschedpolicy: Likewise.
15168         * modules/posix_spawnattr_getsigdefault: Likewise.
15169         * modules/posix_spawnattr_getsigmask: Likewise.
15170         * modules/posix_spawnattr_init: Likewise.
15171         * modules/posix_spawnattr_setflags: Likewise.
15172         * modules/posix_spawnattr_setpgroup: Likewise.
15173         * modules/posix_spawnattr_setschedparam: Likewise.
15174         * modules/posix_spawnattr_setschedpolicy: Likewise.
15175         * modules/posix_spawnattr_setsigdefault: Likewise.
15176         * modules/posix_spawnattr_setsigmask: Likewise.
15177         * modules/posix_spawnp: Likewise.
15178
15179 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
15180
15181         Add option to do-release-commit-and-tag to specify branch.
15182         * build-aux/do-release-commit-and-tag: Add --branch.
15183
15184 2011-05-03  Bruno Haible  <bruno@clisp.org>
15185
15186         Avoid unnecessary compilation units, through conditional dependencies.
15187         * modules/accept (Depends-on): Add conditions to the dependencies.
15188         * modules/acosl (Depends-on): Likewise.
15189         * modules/argz (Depends-on): Likewise.
15190         * modules/asinl (Depends-on): Likewise.
15191         * modules/atanl (Depends-on): Likewise.
15192         * modules/atoll (Depends-on): Likewise.
15193         * modules/bind (Depends-on): Likewise.
15194         * modules/btowc (Depends-on): Likewise.
15195         * modules/canonicalize-lgpl (Depends-on): Likewise.
15196         * modules/ceil (Depends-on): Likewise.
15197         * modules/ceilf (Depends-on): Likewise.
15198         * modules/ceill (Depends-on): Likewise.
15199         * modules/chdir-long (Depends-on): Likewise.
15200         * modules/chown (Depends-on): Likewise.
15201         * modules/close (Depends-on): Likewise.
15202         * modules/connect (Depends-on): Likewise.
15203         * modules/cosl (Depends-on): Likewise.
15204         * modules/dirfd (Depends-on): Likewise.
15205         * modules/dprintf (Depends-on): Likewise.
15206         * modules/dprintf-posix (Depends-on): Likewise.
15207         * modules/error (Depends-on): Likewise.
15208         * modules/euidaccess (Depends-on): Likewise.
15209         * modules/expl (Depends-on): Likewise.
15210         * modules/faccessat (Depends-on): Likewise.
15211         * modules/fchdir (Depends-on): Likewise.
15212         * modules/fclose (Depends-on): Likewise.
15213         * modules/fcntl (Depends-on): Likewise.
15214         * modules/fdopendir (Depends-on): Likewise.
15215         * modules/fflush (Depends-on): Likewise.
15216         * modules/floor (Depends-on): Likewise.
15217         * modules/floorf (Depends-on): Likewise.
15218         * modules/floorl (Depends-on): Likewise.
15219         * modules/fnmatch (Depends-on): Likewise.
15220         * modules/fopen (Depends-on): Likewise.
15221         * modules/fprintf-posix (Depends-on): Likewise.
15222         * modules/frexp (Depends-on): Likewise.
15223         * modules/frexp-nolibm (Depends-on): Likewise.
15224         * modules/frexpl (Depends-on): Likewise.
15225         * modules/frexpl-nolibm (Depends-on): Likewise.
15226         * modules/fseek (Depends-on): Likewise.
15227         * modules/fsusage (Depends-on): Likewise.
15228         * modules/ftell (Depends-on): Likewise.
15229         * modules/ftello (Depends-on): Likewise.
15230         * modules/futimens (Depends-on): Likewise.
15231         * modules/getcwd (Depends-on): Likewise.
15232         * modules/getcwd-lgpl (Depends-on): Likewise.
15233         * modules/getdelim (Depends-on): Likewise.
15234         * modules/getdomainname (Depends-on): Likewise.
15235         * modules/getgroups (Depends-on): Likewise.
15236         * modules/gethostname (Depends-on): Likewise.
15237         * modules/getline (Depends-on): Likewise.
15238         * modules/getlogin_r (Depends-on): Likewise.
15239         * modules/getopt-posix (Depends-on): Likewise.
15240         * modules/getpeername (Depends-on): Likewise.
15241         * modules/getsockname (Depends-on): Likewise.
15242         * modules/getsockopt (Depends-on): Likewise.
15243         * modules/getsubopt (Depends-on): Likewise.
15244         * modules/getusershell (Depends-on): Likewise.
15245         * modules/glob (Depends-on): Likewise.
15246         * modules/grantpt (Depends-on): Likewise.
15247         * modules/iconv_open (Depends-on): Likewise.
15248         * modules/iconv_open-utf (Depends-on): Likewise.
15249         * modules/inet_ntop (Depends-on): Likewise.
15250         * modules/inet_pton (Depends-on): Likewise.
15251         * modules/ioctl (Depends-on): Likewise.
15252         * modules/isapipe (Depends-on): Likewise.
15253         * modules/isfinite (Depends-on): Likewise.
15254         * modules/isinf (Depends-on): Likewise.
15255         * modules/lchown (Depends-on): Likewise.
15256         * modules/ldexpl (Depends-on): Likewise.
15257         * modules/link (Depends-on): Likewise.
15258         * modules/linkat (Depends-on): Likewise.
15259         * modules/listen (Depends-on): Likewise.
15260         * modules/logl (Depends-on): Likewise.
15261         * modules/lstat (Depends-on): Likewise.
15262         * modules/mbrlen (Depends-on): Likewise.
15263         * modules/mbrtowc (Depends-on): Likewise.
15264         * modules/mbsinit (Depends-on): Likewise.
15265         * modules/mbsnrtowcs (Depends-on): Likewise.
15266         * modules/mbsrtowcs (Depends-on): Likewise.
15267         * modules/mbtowc (Depends-on): Likewise.
15268         * modules/memcmp (Depends-on): Likewise.
15269         * modules/mkdir (Depends-on): Likewise.
15270         * modules/mkdtemp (Depends-on): Likewise.
15271         * modules/mkfifo (Depends-on): Likewise.
15272         * modules/mkfifoat (Depends-on): Likewise.
15273         * modules/mknod (Depends-on): Likewise.
15274         * modules/mkostemp (Depends-on): Likewise.
15275         * modules/mkostemps (Depends-on): Likewise.
15276         * modules/mkstemp (Depends-on): Likewise.
15277         * modules/mkstemps (Depends-on): Likewise.
15278         * modules/mktime (Depends-on): Likewise.
15279         * modules/nanosleep (Depends-on): Likewise.
15280         * modules/open (Depends-on): Likewise.
15281         * modules/openat (Depends-on): Likewise.
15282         * modules/perror (Depends-on): Likewise.
15283         * modules/poll (Depends-on): Likewise.
15284         * modules/popen (Depends-on): Likewise.
15285         * modules/posix_spawn (Depends-on): Likewise.
15286         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
15287         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
15288         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
15289         * modules/posix_spawnp (Depends-on): Likewise.
15290         * modules/pread (Depends-on): Likewise.
15291         * modules/printf-posix (Depends-on): Likewise.
15292         * modules/ptsname (Depends-on): Likewise.
15293         * modules/putenv (Depends-on): Likewise.
15294         * modules/pwrite (Depends-on): Likewise.
15295         * modules/readline (Depends-on): Likewise.
15296         * modules/readlink (Depends-on): Likewise.
15297         * modules/readlinkat (Depends-on): Likewise.
15298         * modules/recv (Depends-on): Likewise.
15299         * modules/recvfrom (Depends-on): Likewise.
15300         * modules/regex (Depends-on): Likewise.
15301         * modules/remove (Depends-on): Likewise.
15302         * modules/rename (Depends-on): Likewise.
15303         * modules/renameat (Depends-on): Likewise.
15304         * modules/rmdir (Depends-on): Likewise.
15305         * modules/round (Depends-on): Likewise.
15306         * modules/roundf (Depends-on): Likewise.
15307         * modules/roundl (Depends-on): Likewise.
15308         * modules/rpmatch (Depends-on): Likewise.
15309         * modules/select (Depends-on): Likewise.
15310         * modules/send (Depends-on): Likewise.
15311         * modules/sendto (Depends-on): Likewise.
15312         * modules/setenv (Depends-on): Likewise.
15313         * modules/setlocale (Depends-on): Likewise.
15314         * modules/setsockopt (Depends-on): Likewise.
15315         * modules/shutdown (Depends-on): Likewise.
15316         * modules/sigaction (Depends-on): Likewise.
15317         * modules/signbit (Depends-on): Likewise.
15318         * modules/sigprocmask (Depends-on): Likewise.
15319         * modules/sinl (Depends-on): Likewise.
15320         * modules/sleep (Depends-on): Likewise.
15321         * modules/snprintf (Depends-on): Likewise.
15322         * modules/snprintf-posix (Depends-on): Likewise.
15323         * modules/socket (Depends-on): Likewise.
15324         * modules/sprintf-posix (Depends-on): Likewise.
15325         * modules/sqrtl (Depends-on): Likewise.
15326         * modules/stat (Depends-on): Likewise.
15327         * modules/strchrnul (Depends-on): Likewise.
15328         * modules/strdup-posix (Depends-on): Likewise.
15329         * modules/strerror (Depends-on): Likewise.
15330         * modules/strerror_r-posix (Depends-on): Likewise.
15331         * modules/strndup (Depends-on): Likewise.
15332         * modules/strnlen (Depends-on): Likewise.
15333         * modules/strptime (Depends-on): Likewise.
15334         * modules/strsep (Depends-on): Likewise.
15335         * modules/strsignal (Depends-on): Likewise.
15336         * modules/strstr-simple (Depends-on): Likewise.
15337         * modules/strtod (Depends-on): Likewise.
15338         * modules/strtoimax (Depends-on): Likewise.
15339         * modules/strtok_r (Depends-on): Likewise.
15340         * modules/strtoumax (Depends-on): Likewise.
15341         * modules/symlink (Depends-on): Likewise.
15342         * modules/symlinkat (Depends-on): Likewise.
15343         * modules/tanl (Depends-on): Likewise.
15344         * modules/tcgetsid (Depends-on): Likewise.
15345         * modules/tmpfile (Depends-on): Likewise.
15346         * modules/trunc (Depends-on): Likewise.
15347         * modules/truncf (Depends-on): Likewise.
15348         * modules/truncl (Depends-on): Likewise.
15349         * modules/uname (Depends-on): Likewise.
15350         * modules/unlink (Depends-on): Likewise.
15351         * modules/unlockpt (Depends-on): Likewise.
15352         * modules/unsetenv (Depends-on): Likewise.
15353         * modules/usleep (Depends-on): Likewise.
15354         * modules/utimensat (Depends-on): Likewise.
15355         * modules/vasprintf (Depends-on): Likewise.
15356         * modules/vdprintf (Depends-on): Likewise.
15357         * modules/vdprintf-posix (Depends-on): Likewise.
15358         * modules/vfprintf-posix (Depends-on): Likewise.
15359         * modules/vprintf-posix (Depends-on): Likewise.
15360         * modules/vsnprintf (Depends-on): Likewise.
15361         * modules/vsnprintf-posix (Depends-on): Likewise.
15362         * modules/vsprintf-posix (Depends-on): Likewise.
15363         * modules/wcrtomb (Depends-on): Likewise.
15364         * modules/wcscasecmp (Depends-on): Likewise.
15365         * modules/wcscspn (Depends-on): Likewise.
15366         * modules/wcsdup (Depends-on): Likewise.
15367         * modules/wcsncasecmp (Depends-on): Likewise.
15368         * modules/wcsnrtombs (Depends-on): Likewise.
15369         * modules/wcspbrk (Depends-on): Likewise.
15370         * modules/wcsrtombs (Depends-on): Likewise.
15371         * modules/wcsspn (Depends-on): Likewise.
15372         * modules/wcsstr (Depends-on): Likewise.
15373         * modules/wcstok (Depends-on): Likewise.
15374         * modules/wcswidth (Depends-on): Likewise.
15375         * modules/wctob (Depends-on): Likewise.
15376         * modules/wctomb (Depends-on): Likewise.
15377         * modules/wctype (Depends-on): Likewise.
15378         * modules/wcwidth (Depends-on): Likewise.
15379         * modules/write (Depends-on): Likewise.
15380
15381 2011-05-03  Bruno Haible  <bruno@clisp.org>
15382
15383         Support for conditional dependencies.
15384         * doc/gnulib.texi (Module description): Document the syntax of
15385         conditional dependencies.
15386         * gnulib-tool: New option --conditional-dependencies.
15387         (func_usage): Document it.
15388         (cond_dependencies): New variable.
15389         (func_get_automake_snippet_conditional,
15390         func_get_automake_snippet_unconditional): New functions, extracted from
15391         func_get_automake_snippet.
15392         (func_get_automake_snippet): Use them.
15393         (sed_first_32_chars): New variable.
15394         (func_module_shellfunc_name): New function.
15395         (func_module_shellvar_name): New function.
15396         (func_module_conditional_name): New function.
15397         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
15398         func_cond_module_condition): New functions.
15399         (func_modules_transitive_closure): Add support for conditional
15400         dependencies.
15401         (func_emit_lib_Makefile_am): For a conditional module, enclose the
15402         conditional automake snippet in an automake conditional.
15403         (func_emit_autoconf_snippets): Emit shell functions that contain the
15404         code for conditional modules.
15405         (func_import, func_create_testdir): Update specification.
15406
15407 2011-05-03  Eric Blake  <eblake@redhat.com>
15408
15409         test-getaddrinfo: report error information
15410         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
15411
15412 2011-05-03  Jim Meyering  <meyering@redhat.com>
15413
15414         bootstrap: avoid build failure when $GZIP is set
15415         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
15416         program name.  If defined at all, it is supposed to list gzip options.
15417         Reported by Alan Curry in http://debbugs.gnu.org/8609
15418
15419 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
15420
15421         readme-release: new module with release instructions
15422         * modules/readme-release: New module.
15423         * top/README-release: New file, from coreutils, grep, diffutils.
15424         * MODULES.html.sh (Support for maintaining and releasing): Add it.
15425
15426 2011-05-02  Eric Blake  <eblake@redhat.com>
15427
15428         fflush: also replace fclose when fixing fflush
15429         * modules/fflush (Depends-on): Add fclose.
15430         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
15431         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
15432         memstreams with no backing fd.
15433         * doc/posix-functions/fclose.texi (fclose): Document the use of
15434         fflush module to fix the bug.
15435         * tests/test-fclose.c (main): Relax test when fclose is used in
15436         isolation.
15437
15438         fclose: add some tests
15439         * modules/fclose-tests: New test module.
15440         * tests/test-fclose.c: New file.
15441         * doc/posix-functions/fclose.texi (fclose): Document the bug.
15442
15443         fclose: reduced dependencies
15444         * modules/fclose (Depends-on): Switch from fflush/fseeko to
15445         simpler lseek.
15446         * lib/fclose.c (rpl_fclose): Likewise.
15447         Reported by Simon Josefsson.
15448
15449         exit: drop remaining clients
15450         * modules/argmatch (Depends-on): Replace exit with stdlib.
15451         * modules/copy-file (Depends-on): Likewise.
15452         * modules/execute (Depends-on): Likewise.
15453         * modules/exitfail (Depends-on): Likewise.
15454         * modules/obstack (Depends-on): Likewise.
15455         * modules/pagealign_alloc (Depends-on): Likewise.
15456         * modules/pipe-filter-gi (Depends-on): Likewise.
15457         * modules/pipe-filter-ii (Depends-on): Likewise.
15458         * modules/savewd (Depends-on): Likewise.
15459         * modules/spawn-pipe (Depends-on): Likewise.
15460         * modules/wait-process (Depends-on): Likewise.
15461         * modules/xsetenv (Depends-on): Likewise.
15462         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
15463         * modules/git-merge-changelog (Depends-on): Likewise.
15464         * modules/long-options (Depends-on): Likewise.
15465         * modules/pt_chown (Depends-on): Likewise.
15466         * modules/sysexits (Depends-on): Likewise.
15467
15468         freading: relax license from LGPLv3+ to LGPLv2+
15469         * modules/freading (License): Relax LGPL version.
15470
15471 2011-05-02  Bruno Haible  <bruno@clisp.org>
15472
15473         fchdir: Remove unused dependencies.
15474         * modules/fchdir (Depends-on): Remove include_next.
15475
15476 2011-05-02  Bruno Haible  <bruno@clisp.org>
15477
15478         gnulib-tool: Refactor.
15479         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
15480         from func_emit_autoconf_snippets.
15481         (func_emit_autoconf_snippets): Use it.
15482
15483 2011-05-02  Simon Josefsson  <simon@josefsson.org>
15484
15485         * NEWS: Document removal of 'exit'.
15486         * modules/exit: Remove file.
15487
15488 2011-05-01  Bruno Haible  <bruno@clisp.org>
15489
15490         Update DEPENDENCIES.
15491         * DEPENDENCIES (gettext): Recommend the newest release.
15492         Reported by Simon Josefsson.
15493
15494 2011-05-01  Bruno Haible  <bruno@clisp.org>
15495
15496         gnulib-tool: Reduce code duplication.
15497         * gnulib-tool (func_emit_autoconf_snippets): New function.
15498         (func_import, func_create_testdir): Use it.
15499
15500 2011-04-30  Eric Blake  <eblake@redhat.com>
15501
15502         fclose: don't fail on non-seekable input stream
15503         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
15504         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
15505         since fflush is allowed to fail in that case.
15506
15507 2011-04-30  Bruno Haible  <bruno@clisp.org>
15508
15509         dup3: cleanup
15510         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
15511
15512 2011-04-30  Bruno Haible  <bruno@clisp.org>
15513
15514         netdb: Make it work in C++ mode.
15515         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
15516         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
15517         module.
15518         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
15519         gl_MODULE_INDICATOR_FOR_TESTS.
15520         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
15521         * modules/netdb-c++-tests: New file.
15522         * tests/test-netdb-c++.cc: New file.
15523
15524 2011-04-30  Bruno Haible  <bruno@clisp.org>
15525
15526         New modules 'vfscanf', 'vscanf'.
15527         * modules/vfscanf: New file.
15528         * modules/vscanf: New file.
15529         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
15530         here.
15531         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
15532         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
15533
15534 2011-04-30  Bruno Haible  <bruno@clisp.org>
15535
15536         passfd: Add comments.
15537         * lib/passfd.c: Add comments about platforms.
15538
15539 2011-04-30  Bruno Haible  <bruno@clisp.org>
15540
15541         sys_uio: Make <sys/uio.h> self-contained.
15542         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
15543         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
15544
15545 2011-04-30  Bruno Haible  <bruno@clisp.org>
15546
15547         sys_socket: Ensure 'struct iovec' definition.
15548         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
15549         <sys/socket.h>.
15550         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
15551
15552 2011-04-30  Bruno Haible  <bruno@clisp.org>
15553
15554         sys_uio: Protect definition of 'struct iovec'.
15555         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
15556         it as a C struct.
15557
15558 2011-04-30  Bruno Haible  <bruno@clisp.org>
15559
15560         manywarnings: fix indentation
15561         * m4/manywarnings.m4: Indent by 2 spaces consistently.
15562
15563 2011-04-30  Pádraig Brady <P@draigBrady.com>
15564
15565         manywarnings: add -Wno-missing-field-initializers if needed.
15566         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
15567         option if it's needed to allow initialization with { 0, }
15568
15569 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
15570
15571         announce-gen: cosmetic improvement
15572         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
15573
15574 2011-04-29  Jim Meyering  <meyering@redhat.com>
15575
15576         vc-list-files: indent with spaces, not TABs
15577         * build-aux/vc-list-files: Convert leading TABs to spaces,
15578         to match the style of most other files in gnulib.
15579
15580         announce-gen: indent with spaces, not TABs
15581         * build-aux/announce-gen: Convert all TABs to spaces, to match
15582         the style of most other files in gnulib.
15583
15584 2011-04-29  Eric Blake  <eblake@redhat.com>
15585
15586         quotearg: avoid uninitialized variable use
15587         * lib/quotearg.c (quoting_options_from_style): Initialize
15588         remaining fields, and ensure that custom styles are only used via
15589         quoting_options rather than quoting_style.
15590
15591 2011-04-29  Jim Meyering  <meyering@redhat.com>
15592
15593         maint.mk: remove unused VC-tag variable
15594         * top/maint.mk (VC-tag): Remove unused variable.
15595
15596 2011-04-29  Bruno Haible  <bruno@clisp.org>
15597
15598         netdb: fix gai_strerror replacements
15599         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
15600         * modules/netdb: Substitute it.
15601
15602 2011-04-29  Jim Meyering  <meyering@redhat.com>
15603
15604         test-getcwd.c: avoid new set-but-not-used warning
15605         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
15606         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
15607         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
15608         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
15609
15610         test-hash.c: avoid a new shadowing warning
15611         * tests/test-hash.c (main): Don't shadow "dup".
15612
15613 2011-04-28  Eric Blake  <eblake@redhat.com>
15614
15615         getaddrinfo: fix gai_strerror signature
15616         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
15617         and work around mingw with UNICODE defined.
15618         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
15619         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
15620         * modules/netdb (Makefile.am): Substitute it.
15621         * lib/netdb.in.h (gai_strerror): Declare replacement.
15622         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
15623         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
15624         the fix.
15625
15626         getsockopt: avoid compiler warning
15627         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
15628         Reported by Matthias Bolte.
15629
15630         tests: drop unused link dependency
15631         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
15632         * modules/dirent-safer-tests (Makefile.am): Likewise.
15633         * modules/fdopendir-tests (Makefile.am): Likewise.
15634         * modules/mkfifoat-tests (Makefile.am): Likewise.
15635         * modules/openat-safer-tests (Makefile.am): Likewise.
15636         * modules/openat-tests (Makefile.am): Likewise.
15637         * modules/readlinkat-tests (Makefile.am): Likewise.
15638         * modules/symlinkat-tests (Makefile.am): Likewise.
15639         * modules/linkat-tests (Makefile.am): Likewise.
15640         (Depends-on): Switch to filenamecat-lgpl.
15641         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
15642         LIBINTL.
15643         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
15644         * tests/test-linkat.c (main): Don't require xalloc.
15645
15646         hash, mgetgroups: drop xalloc dependency
15647         * lib/hash.c (includes): Adjust includes.
15648         * lib/mgetgroups.c (includes): Likewise.
15649         (xgetgroups): Move...
15650         * lib/xgetgroups.c: ...to new file.
15651         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
15652         * modules/xgetgroups: New file, split from...
15653         * modules/mgetgroups: ...here.
15654         (Depends-on): Add xalloc-oversized.
15655         * modules/hash (Depends-on): Likewise.
15656         * modules/hash-tests (Depends-on): Drop xalloc.
15657         (test_hash_LDADD): Drop unused library.
15658         * tests/test-hash.c (main): Break xalloc dependency.
15659         (includes): Drop unused include.
15660
15661         xalloc-oversized: new module
15662         * modules/xalloc-oversized: New module.
15663         * modules/xalloc (Depends-on): Add it.
15664         * lib/xalloc.h (xalloc_oversized): Move...
15665         * lib/xalloc-oversized.h: ...into new file.
15666
15667         utimecmp: drop dependency on xmalloc
15668         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
15669         due to memory pressure.
15670         * modules/utimecmp (Depends-on): Drop xalloc.
15671
15672 2011-04-27  Eric Blake  <eblake@redhat.com>
15673
15674         getcwd: fix mingw bugs
15675         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
15676         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
15677         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
15678
15679 2011-04-27  Bruno Haible  <bruno@clisp.org>
15680
15681         mkstemps: Ensure declaration on MacOS X 10.5.
15682         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
15683         * doc/glibc-functions/mkstemps.texi: Document header file problem on
15684         MacOS X.
15685
15686 2011-04-27  Bruno Haible  <bruno@clisp.org>
15687
15688         mkstemp: More documentation.
15689         * doc/posix-functions/mkstemp.texi: Document header file problem on
15690         MacOS X.
15691
15692 2011-04-27  Bruno Haible  <bruno@clisp.org>
15693
15694         mkstemp: Tweak configure message when cross-compiling.
15695         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
15696         result as a guess.
15697
15698 2011-04-27  Bruno Haible  <bruno@clisp.org>
15699
15700         clean-temp: Clarify what it does.
15701         * lib/clean-temp.h: Add more comments.
15702         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
15703         module.
15704         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
15705         * doc/glibc-functions/mkstemps.texi: Likewise.
15706         * doc/glibc-functions/mkostemps.texi: Likewise.
15707
15708 2011-04-27  Eric Blake  <eblake@redhat.com>
15709
15710         fchdir: avoid extra chdir and fix test
15711         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
15712         getcwd-lgpl.
15713         * lib/fchdir.c (get_name): Any absolute name will do; it does not
15714         have to be canonical.
15715         (canonicalize_file_name): Drop unused macro.
15716         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
15717
15718         filenamecat-lgpl: fix licence
15719         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
15720         when it was first created.
15721
15722         linkat, renameat: add missing dependency
15723         * modules/linkat (Depends-on): Require getcwd-lgpl.
15724         * modules/renameat (Depends-on): Likewise.
15725
15726         tests: reduce dependencies
15727         * tests/test-linkat.c (main): Use lighter-weight getcwd.
15728         * tests/test-renameat.c (main): Likewise.
15729         * modules/linkat-tests (Depends-on): Relax dependency.
15730         * modules/renameat-tests (Depends-on): Likewise.
15731         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
15732         dependency explicit.
15733
15734         save-cwd: reduce default dependency
15735         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
15736         * lib/save-cwd.c: Update comments.
15737         * NEWS: Document the semantic change.
15738
15739         getcwd: enhance tests
15740         * tests/test-getcwd-lgpl.c: New file, taken from...
15741         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
15742         repeat long path stress tests from m4 probe.
15743         * modules/getcwd-lgpl-tests: New module.
15744         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
15745         * m4/getcwd-abort-bug.m4: Update comment.
15746         * m4/getcwd-path-max.m4: Likewise.
15747
15748         getcwd-lgpl: new module
15749         * modules/getcwd-lgpl: New module.
15750         * lib/getcwd-lgpl.c: New file.
15751         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15752         * MODULES.html.sh (lacking POSIX:2008): Likewise.
15753         * modules/getcwd (configure.ac): Set C witness.
15754         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
15755
15756         getcwd: tweak comments
15757         * m4/getcwd-abort-bug.m4: Fix comments.
15758         * m4/getcwd-path-max.m4: Likewise.
15759         * m4/getcwd.m4: Likewise.
15760
15761 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
15762         and Eric Blake  <eblake@redhat.com>
15763
15764         mkstemp: replace if system version uses wrong permissions
15765         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
15766         read/write mode bits set in file created by mkstemp.
15767         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
15768
15769 2011-04-27  Eric Blake  <eblake@redhat.com>
15770
15771         passfd: avoid compiler warning
15772         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
15773         Reported by Laine Stump.
15774
15775 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
15776
15777         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
15778         required by the NetBSD (and perhaps other 4.4BSD derived) join.
15779
15780 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
15781         and Eric Blake  <eblake@redhat.com>
15782
15783         mkstemp: mention clean-temp module
15784         * lib/mkstemp.c: Add comment.
15785         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
15786
15787 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
15788
15789         inttypes: also provide default values for 32-bit tests
15790         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
15791         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
15792
15793 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
15794
15795         strtoumax: remove dependency on strtoimax
15796         This is like the strtoull change of yesterday.
15797         * modules/strtoumax (Files): Add lib/strtoimax.c.
15798         (Depends-on): Remove strtoimax and add verify.
15799
15800         inttypes-incomplete: new module
15801         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
15802         all but the PRI* and SCN* parts of gl_INTTYPES_H.
15803         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
15804         of gl_INTTYPES_H.
15805         (gl_INTTYPES_H): Rewrite in terms of these new macros.
15806         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
15807         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
15808         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
15809         * modules/strtoumax, modules/xstrtol (Depends-on):
15810         Depend on inttypes-incomplete, not inttypes.
15811         * modules/inttypes-incomplete: New module, containing the contents
15812         of the old modules/inttypes module, except that the Files: section
15813         omits m4/inttypes-pri.m4, and the configure.ac section invokes
15814         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
15815         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
15816         (Depends-on): Depend only on inttypes-incomplete.
15817         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
15818
15819         inttypes: omit now-redundant strtoimax and strtoumax work
15820         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
15821         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
15822
15823         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
15824         This supports apps that need pointers to strtoimax and strtoumax,
15825         and ports to HP-UX 11.00 64.bit, which has macros that expand to
15826         nonexistent functions.  See
15827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
15828         et seq.
15829         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
15830         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
15831         a macro.
15832         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15833
15834 2011-04-25  Simon Josefsson  <simon@josefsson.org>
15835
15836         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
15837
15838 2011-04-25  Bruno Haible  <bruno@clisp.org>
15839
15840         strtol, strtoul: Mark modules as obsolete.
15841         * modules/strtol (Status, Notice): New sections.
15842         * modules/strtoul (Status, Notice): New sections.
15843
15844 2011-04-25  Bruno Haible  <bruno@clisp.org>
15845
15846         strtod: Remove check for strtod, unless supporting old platforms.
15847         * modules/strtod-obsolete: New file.
15848         * m4/strtod-obsolete.m4: New file.
15849         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
15850         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
15851         * modules/strtod (Depends-on): Add strtod-obsolete.
15852         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
15853
15854 2011-04-25  Bruno Haible  <bruno@clisp.org>
15855
15856         strcase: Make module obsolete.
15857         * modules/strcase (Status, Notice): New sections.
15858
15859 2011-04-25  Bruno Haible  <bruno@clisp.org>
15860
15861         dup2: Remove check for dup2, unless supporting old obsolete platforms.
15862         * modules/dup2-obsolete: New file.
15863         * m4/dup2-obsolete.m4: New file.
15864         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
15865         gl_FUNC_DUP2_OBSOLETE is not also defined.
15866         * modules/dup2 (Depends-on): Add dup2-obsolete.
15867         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
15868
15869 2011-04-25  Bruno Haible  <bruno@clisp.org>
15870
15871         strnlen: Avoid memchr related link error on old obsolete platforms.
15872         * modules/memchr-obsolete: New file.
15873         * m4/memchr-obsolete.m4: New file.
15874         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
15875         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
15876         * modules/memchr (Depends-on): Add memchr-obsolete.
15877         * modules/strnlen (Depends-on): Likewise.
15878         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
15879
15880 2011-04-25  Jim Meyering  <meyering@redhat.com>
15881
15882         maint.mk: makefile_at_at_check extend and clean up
15883         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
15884         in addition to */Makefile.am.
15885         Exempt legitimate uses of @VAR@ notation, e.g.,
15886         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
15887         Remove obsolete coreutils-specific comment.
15888         Prompted by discussion here:
15889         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
15890
15891 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
15892
15893         strtoul: remove dependency on strtol
15894         This is so that 'configure' need not check for strtol merely because
15895         the application needs strtoul.
15896         * modules/strtoul (Files): Add lib/strtol.c.
15897         (Depends-on): Remove strtol.
15898
15899         strtoull: remove dependency on strtoul
15900         This is like the strtoll change.
15901         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
15902         (Depends-on): Remove strtoul.
15903
15904         strtoll: remove dependency on strtol
15905         This is so that 'configure' need not check for strtol merely because
15906         the application needs strtoll.
15907         * modules/strtoll (Files): Add lib/strtol.c.
15908         (Depends-on): Remove strtol.
15909
15910 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15911
15912         inttypes: Move some configure check to module 'imaxdiv'.
15913         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
15914         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
15915         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
15916
15917 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15918
15919         inttypes: Move some configure check to module 'imaxabs'.
15920         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
15921         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
15922         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
15923
15924 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15925
15926         inttypes: Remove configure tests that are not needed since 2009-12-31.
15927         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
15928         gl_cv_header_working_inttypes_h.
15929
15930 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15931
15932         * modules/strnlen (Depends-on): Remove memchr.
15933         The strnlen implementation doesn't need the memchr module's fixes; see
15934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
15935
15936         strtol: remove dependency on wchar
15937         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
15938         * modules/strtol (Depends-on): Remove wchar.
15939
15940 2011-04-21  Eric Blake  <eblake@redhat.com>
15941
15942         passfd: fix test regression on Linux
15943         * modules/passfd-tests (configure.ac): Correct socketpair check.
15944
15945         passfd: speed up configure and drop unused code
15946         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
15947         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
15948         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
15949         Instead of probing at configure for unix_scm_rights_bsd44_way,
15950         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
15951         check to a struct member probe.
15952         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
15953         (sendfd, recvfd): Update preprocessor checks.
15954         * modules/passfd (Files): Reflect rename, and drop unused file.
15955         (Depends-on): Drop unused dependency.
15956
15957         passfd: allow compilation on mingw
15958         * modules/sys_socket (Depends-on): Add sys_uio.
15959         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
15960         iovec and a minimal struct msghdr.
15961         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
15962         * tests/test-sys_socket.c (main): Enhance test.
15963         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
15964         guaranteed to provide what we need.
15965         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
15966         * modules/passfd-tests (Depends-on): Add sys_wait.
15967         * tests/test-passfd.c (main): Skip test on mingw, for now.
15968         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
15969         partial 'struct msghdr' implementation.
15970
15971         sys_uio: new module
15972         * modules/sys_uio: New module.
15973         * modules/sys_uio-tests: Likewise.
15974         * lib/sys_uio.in.h: New file.
15975         * m4/sys_uio_h.m4: Likewise.
15976         * tests/test-sys_uio.c: Likewise.
15977         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
15978         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
15979
15980 2011-04-20  Jim Meyering  <meyering@redhat.com>
15981
15982         useless-if-before-free: avoid false-positive
15983         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
15984         disjunct so that it too requires a terminating ";".  Without that,
15985         this script would identify as useless one statement from gcc that
15986         was not:
15987           if (aligned_ptr)
15988             free (((void **) aligned_ptr) [-1]);
15989
15990 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
15991
15992         doc: update users.txt.
15993         * users.txt: Add barcode.
15994
15995 2011-04-19  Bruno Haible  <bruno@clisp.org>
15996
15997         ioctl: Remove link dependency on native Windows.
15998         * lib/fd-hook.h: Renamed from lib/close-hook.h.
15999         (gl_close_fn, gl_ioctl_fn): New types.
16000         (struct fd_hook): Renamed from struct close_hook. Change type of
16001         private_close_fn field. Add private_ioctl_fn field.
16002         (close_hook_fn): Add parameter for primary close method.
16003         (execute_close_hooks, execute_all_close_hooks): Likewise.
16004         (ioctl_hook_fn): New type.
16005         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
16006         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16007         argument.
16008         (unregister_fd_hook): Renamed from unregister_close_hook.
16009         * lib/fd-hook.c: Renamed from lib/close-hook.c.
16010         Don't include <unistd.h>.
16011         (close): Remove undef.
16012         (anchor): Update.
16013         (execute_close_hooks): Add argument for primary close method.
16014         (execute_all_close_hooks): Likewise.
16015         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
16016         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16017         argument. Allow each argument to be NULL.
16018         (unregister_fd_hook): Renamed from unregister_close_hook.
16019         * lib/close.c (rpl_close): Pass 'close' function pointer to
16020         execute_all_close_hooks.
16021         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
16022         (primary_ioctl): New function.
16023         (ioctl): Don't call ioctlsocket here. Instead, call
16024         execute_all_ioctl_hooks.
16025         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
16026         close method.
16027         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
16028         (fd_sockets_hook): Renamed from close_sockets_hook.
16029         (gl_sockets_startup, gl_sockets_cleanup): Update.
16030         * modules/fd-hook: Renamed from modules/close-hook. Update.
16031         * modules/close (Depends-on): Add fd-hook, remove close-hook.
16032         * modules/sockets (Depends-on): Likewise.
16033         * modules/ioctl (Depends-on): Add fd-hook.
16034         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
16035         GNULIB_SOCKET.
16036
16037 2011-04-19  Bruno Haible  <bruno@clisp.org>
16038
16039         Move the support of O_NONBLOCK in open() to the 'open' module.
16040         * modules/nonblocking (Depends-on): Remove 'open'.
16041         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
16042         gl_cv_have_open_O_NONBLOCK.
16043         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
16044         O_NONBLOCK support.
16045         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
16046
16047 2011-04-17  Bruno Haible  <bruno@clisp.org>
16048
16049         pipe2: Simplify code.
16050         * lib/pipe2.c (pipe2): Reduce code duplication.
16051
16052 2011-04-17  Bruno Haible  <bruno@clisp.org>
16053
16054         nonblocking: Add comment.
16055         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
16056
16057 2011-04-17  Bruno Haible  <bruno@clisp.org>
16058
16059         nonblocking: Add tests for sockets.
16060         * tests/test-nonblocking-socket.sh: New file.
16061         * tests/test-nonblocking-socket-main.c: New file.
16062         * tests/test-nonblocking-socket-child.c: New file.
16063         * tests/test-nonblocking-socket.h: New file.
16064         * tests/socket-server.h: New file.
16065         * tests/socket-client.h: New file.
16066         * modules/nonblocking-socket-tests: New file.
16067         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
16068
16069 2011-04-17  Bruno Haible  <bruno@clisp.org>
16070
16071         nonblocking: Add tests for pipes.
16072         * tests/test-nonblocking-pipe.sh: New file.
16073         * tests/test-nonblocking-pipe-main.c: New file.
16074         * tests/test-nonblocking-pipe-child.c: New file.
16075         * tests/test-nonblocking-pipe.h: New file.
16076         * tests/test-nonblocking-writer.h: New file.
16077         * tests/test-nonblocking-reader.h: New file.
16078         * tests/test-nonblocking-misc.h: New file.
16079         * modules/nonblocking-pipe-tests: New file.
16080         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
16081
16082 2011-04-16  Bruno Haible  <bruno@clisp.org>
16083
16084         gettext: Clarify the needed programmer actions.
16085         * modules/gettext (Notice): New field.
16086         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
16087
16088 2011-04-16  Bruno Haible  <bruno@clisp.org>
16089
16090         strchrnul: Tweak last commit.
16091         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
16092         bug.
16093         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
16094         as in _GL_FUNCDECL_SYS.
16095         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
16096         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
16097
16098 2011-04-15  Eric Blake  <eblake@redhat.com>
16099
16100         strchrnul: work around cygwin bug
16101         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
16102         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
16103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
16104         * modules/string (Makefile.am): Substitute it.
16105         * lib/string.in.h (strchrnul): Use it.
16106
16107 2011-04-15  Bruno Haible  <bruno@clisp.org>
16108
16109         Don't require lib/stdio-write.c when only module 'stdio' is used.
16110         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
16111         invocation.
16112         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
16113
16114 2011-04-14  Bruno Haible  <bruno@clisp.org>
16115
16116         Support non-blocking pipe I/O in read() on native Windows.
16117         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
16118         (read): New declaration.
16119         * lib/read.c: New file.
16120         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
16121         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
16122         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
16123         vscanf): New declarations.
16124         * lib/stdio-read.c: New file.
16125         * m4/read.m4: New file.
16126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
16127         REPLACE_READ.
16128         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
16129         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16130         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
16131         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
16132         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
16133         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16134         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16135         * modules/read: New file.
16136         * modules/nonblocking (Files): Add lib/stdio-read.c.
16137         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
16138         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
16139         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16140         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16141         * modules/pread (Depends-on): Add read.
16142         * modules/safe-read (Depends-on): Likewise.
16143         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
16144         gets, scanf, vfscanf, vscanf): Verify signatures.
16145         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
16146         problem with non-blocking pipes.
16147         * doc/posix-functions/fgetc.texi: Likewise.
16148         * doc/posix-functions/fgets.texi: Likewise.
16149         * doc/posix-functions/fread.texi: Likewise.
16150         * doc/posix-functions/fscanf.texi: Likewise.
16151         * doc/posix-functions/getc.texi: Likewise.
16152         * doc/posix-functions/getchar.texi: Likewise.
16153         * doc/posix-functions/gets.texi: Likewise.
16154         * doc/posix-functions/scanf.texi: Likewise.
16155         * doc/posix-functions/vfscanf.texi: Likewise.
16156         * doc/posix-functions/vscanf.texi: Likewise.
16157
16158 2011-04-14  Bruno Haible  <bruno@clisp.org>
16159
16160         Support non-blocking pipe I/O in write() on native Windows.
16161         * lib/write.c (rpl_write): Split a write request that failed merely
16162         because the byte count was larger than the pipe buffer's size.
16163         * doc/posix-functions/write.texi: Mention the problem with large byte
16164         counts.
16165
16166 2011-04-14  Bruno Haible  <bruno@clisp.org>
16167
16168         wchar: Ensure that wchar_t gets defined on uClibc.
16169         * lib/wchar.in.h: On uClibc, include <stddef.h>.
16170         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
16171
16172 2011-04-13  Bruno Haible  <bruno@clisp.org>
16173
16174         safe-write, full-read: Avoid unnecessary compilation units.
16175         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
16176         (Depends-on): Remove safe-read. Add ssize_t.
16177         * modules/full-read (Files): Add lib/full-write.c.
16178         (Depends-on): Add full-write.
16179
16180 2011-04-13  Bruno Haible  <bruno@clisp.org>
16181
16182         Support non-blocking pipe I/O and SIGPIPE in pwrite().
16183         * modules/pwrite (Depends-on): Add 'write'.
16184
16185 2011-04-13  Bruno Haible  <bruno@clisp.org>
16186
16187         Support non-blocking pipe I/O in write() on native Windows.
16188         * lib/unistd.in.h (write): Enable replacement also if
16189         GNULIB_UNISTD_H_NONBLOCKING is 1.
16190         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
16191         (rpl_write): When failing to write on a non-blocking pipe, change
16192         errno from ENOSPC to EAGAIN.
16193         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
16194         putchar, puts, vfprintf, vprintf): Enable replacement also if
16195         GNULIB_STDIO_H_NONBLOCKING is 1.
16196         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
16197         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
16198         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
16199         CALL_WITH_SIGPIPE_EMULATION.
16200         (CALL_WITH_SIGPIPE_EMULATION): Use them.
16201         * m4/nonblocking.m4: New file.
16202         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
16203         for non-blocking I/O support.
16204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16205         GNULIB_UNISTD_H_NONBLOCKING.
16206         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
16207         required for non-blocking I/O support.
16208         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
16209         * modules/nonblocking (Files): Add m4/nonblocking.m4,
16210         lib/stdio-write.c, m4/asm-underscore.m4.
16211         (Depends-on): Add stdio, unistd.
16212         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
16213         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
16214         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
16215         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
16216         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
16217         problem with non-blocking pipes.
16218         * doc/posix-functions/fputc.texi: Likewise.
16219         * doc/posix-functions/fputs.texi: Likewise.
16220         * doc/posix-functions/fwrite.texi: Likewise.
16221         * doc/posix-functions/printf.texi: Likewise.
16222         * doc/posix-functions/putc.texi: Likewise.
16223         * doc/posix-functions/putchar.texi: Likewise.
16224         * doc/posix-functions/puts.texi: Likewise.
16225         * doc/posix-functions/vfprintf.texi: Likewise.
16226         * doc/posix-functions/vprintf.texi: Likewise.
16227         * doc/posix-functions/write.texi: Likewise.
16228
16229 2011-04-10  Jim Meyering  <meyering@redhat.com>
16230
16231         maint.mk: prohibit doubled words
16232         Detect them also when they're separated by a newline.
16233         There are 3 ways to customize it:
16234           - disable the test on a per file basis, as usual with rules using
16235             $(VC_LIST_EXCEPT)
16236           - replace the default doubled-word-selecting regexp (affects all files)
16237           - ignore a particular file-vs-doubled-word match
16238         I nearly used that last one to ignore the "is is" match in
16239         coreutils' NEWS file, since the text was "ls -is is ..."
16240         To do that, I would have added this line to cfg.mk:
16241           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
16242         but it would have ignored any "is is" match in NEWS.
16243         Low probability, but still...
16244         Instead, I changed the text, slightly:
16245           -  ls -is is now consistent with ls -lis in ignoring values returned
16246           +  "ls -is" is now consistent with ls -lis in ignoring values returned
16247         * top/maint.mk (prohibit_double_word_RE_): Provide default.
16248         (prohibit_doubled_word_): Define.
16249         (sc_prohibit_doubled_word): New rule.
16250         (sc_prohibit_the_the): Remove.  Subsumed by the above.
16251
16252 2011-04-10  Jim Meyering  <meyering@redhat.com>
16253
16254         maint: fix doubled-word typo in comment
16255         * m4/gethostname.m4: s/is is/it is/
16256         * m4/getdomainname.m4: Likewise.
16257
16258 2011-04-10  Jim Meyering  <meyering@redhat.com>
16259
16260         maint: remove doubled word: s/it it/it/
16261         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
16262
16263 2011-04-10  Jim Meyering  <meyering@redhat.com>
16264
16265         maint.mk: remove useless semicolon and backslash
16266         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
16267         semicolon and backslash.
16268
16269 2011-04-10  Bruno Haible  <bruno@clisp.org>
16270
16271         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
16272         * modules/stdint-tests (Depends-on): Add wchar.
16273
16274 2011-04-10  Jim Meyering  <meyering@redhat.com>
16275
16276         maint: remove doubled words in comments, e.g., s/a a/a/
16277         * lib/strptime.c (day_of_the_week): s/the the/the/
16278         * tests/test-chown.h (test_chown): s/a a/a/
16279
16280         test-chown.h: correct a cast
16281         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
16282         when the destination is a stat.st_gid.
16283
16284 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
16285
16286         getaddrinfo: Fix test for sa_len member.
16287         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
16288         include <sys/types.h> before <sys/socket.h>.
16289
16290 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16291
16292         maint: change "can not" to "cannot"
16293         * doc/posix-functions/iconv.texi (iconv): This one crossed line
16294         boundaries.
16295
16296 2011-04-09  Jim Meyering  <meyering@redhat.com>
16297
16298         maint: change "a a" to "a"
16299         * tests/test-lchown.h (test_lchown): s/a a/a/
16300
16301         maint.mk: prohibit \<the the\>
16302         * top/maint.mk (sc_prohibit_the_the): New rule.
16303
16304         maint: fix "the the" in comment
16305         * lib/count-one-bits.h: s/the the/the/
16306
16307         maint: change "can not" to "cannot"
16308         But do not change the occurrences in maintain.texi or in
16309         build-aux/po/Makefile.in.in, which I presume comes from gettext.
16310         * doc/gnulib-tool.texi: s/can not/cannot/
16311         * doc/posix-functions/accept.texi (accept): Likewise.
16312         * doc/posix-functions/socket.texi (socket): Likewise.
16313         * lib/mbrtowc.c: Likewise.
16314
16315         maint.mk: prohibit use of "can not"
16316         * top/maint.mk (sc_prohibit_can_not): New rule.
16317         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
16318
16319 2011-04-09  Bruno Haible  <bruno@clisp.org>
16320
16321         careadlinkat: Guard against misuse of careadlinkatcwd.
16322         * lib/careadlinkat.c: Include <stdlib.h>.
16323         (careadlinkatcwd): Check that the fd argument is as expected.
16324
16325 2011-04-09  Bruno Haible  <bruno@clisp.org>
16326
16327         careadlinkat: Use common coding style.
16328         * lib/careadlinkat.c: Move gnulib includes after system includes.
16329
16330 2011-04-09  Bruno Haible  <bruno@clisp.org>
16331
16332         careadlinkat: Clarify specification.
16333         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
16334         (careadlinkatcwd): Add comment.
16335         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
16336
16337 2011-04-09  Bruno Haible  <bruno@clisp.org>
16338
16339         areadlinkat: Avoid link error on many platforms.
16340         * modules/areadlinkat (Depends-on): Add areadlink.
16341
16342 2011-04-09  Bruno Haible  <bruno@clisp.org>
16343
16344         allocator, careadlinkat: Fix double-inclusion guard.
16345         * lib/allocator.h: Fix double-inclusion guard.
16346         * lib/careadlinkat.h: Likewise.
16347
16348 2011-04-09  Bruno Haible  <bruno@clisp.org>
16349
16350         relocatable-prog-wrapper: Update after module 'areadlink' changed.
16351         * lib/relocwrapper.c: Update dependencies hierarchy.
16352         * build-aux/install-reloc: Update list of files to be compiled.
16353         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
16354         lib/allocator.[hc].
16355
16356 2011-04-08  Eric Blake  <eblake@redhat.com>
16357
16358         strftime: silence gnulib-tool warning
16359         * modules/strftime-tests (Depends-on): Drop automatic dependency.
16360
16361 2011-04-08  Bruno Haible  <bruno@clisp.org>
16362
16363         verify: Fix syntax error with GCC 4.6 in C++ mode.
16364         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
16365         (HAVE_STATIC_ASSERT): New macro.
16366         (verify_true, verify): Use 'static_assert' if it is supported and
16367         '_Static_assert' is not supported.
16368
16369 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
16370
16371         allocator: New module.
16372         * modules/allocator, lib/allocator.c: New files.
16373         * lib/allocator.h (stdlib_allocator): New decl.
16374         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
16375         Remove.  Do not include <stdlib.h>.
16376         (careadlinkat): Use stdlib_allocator instead of rolling our own.
16377         * modules/careadlinkat (Files): Remove lib/allocator.h.
16378         (Depends-on): Add allocator.
16379
16380         stdlib: let modules use system malloc, realloc
16381         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
16382         if !_GL_USE_STDLIB_ALLOC.
16383         (malloc, realloc): Limit this change to a smaller scope.
16384
16385         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
16386         (malloc, realloc): Don't #undef; no longer needed.
16387         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16388         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16389         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
16390         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16391         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16392         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16393         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16394         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
16395
16396         careadlinkat: rename members to avoid problem
16397         * lib/allocator.h (struct allocator): Rename members from
16398         malloc/realloc to allocate/reallocate, to avoid problems if malloc
16399         and realloc are #define'd.  Reported by Eric Blake in
16400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
16401         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
16402
16403 2011-04-08  Eric Blake  <eblake@redhat.com>
16404
16405         nonblocking: reduce dependency
16406         * tests/test-nonblocking.c: Only test sockets when in use.
16407         * modules/nonblocking-tests (Depends-on): Drop socket.
16408         (Makefile.am): Link even if sockets are not present.
16409         * modules/pipe2-tests (Makefile.am): Likewise.
16410         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
16411
16412         pipe2: fix O_NONBLOCK support on mingw
16413         * modules/pipe2 (Depends-on): Add nonblocking.
16414         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
16415         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
16416         * tests/test-nonblocking.c (main): Likewise.
16417         * modules/pipe2-tests (Makefile.am): Avoid link failure.
16418
16419         fcntl-h: fix O_ACCMODE on cygwin
16420         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
16421         * lib/fcntl.in.h (O_ACCMODE): Fix it.
16422
16423         pipe-filter: drop O_NONBLOCK workarounds
16424         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
16425         * modules/pipe-filter-ii (Depends-on): Likewise.
16426         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
16427
16428         nonblocking: provide O_NONBLOCK for mingw
16429         * modules/nonblocking (Depends-on): Add open.
16430         (configure.ac): Set new witness macro.
16431         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
16432         * modules/fcntl-h (Makefile.am): Substitute it.
16433         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
16434         nonblocking module is in use.
16435         * lib/nonblocking.c: Adjust portability test.
16436         * lib/open.c (open): Don't let native open see gnulib flag.
16437         * tests/test-fcntl-h.c (main): Enhance test.
16438         * tests/test-open.h (test_open): Likewise.
16439         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
16440
16441         careadlinkat: fix compilation error on mingw
16442         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
16443         within struct allocator.
16444
16445 2011-04-06  Eric Blake  <eblake@redhat.com>
16446
16447         binary-io: relicense under LGPLv2+
16448         * modules/binary-io (License): Relax to LGPLv2+.
16449         Requested for libvirt, and required by pipe2.
16450
16451 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
16452
16453         verify: use _Static_assert if available
16454         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
16455         (verify_true, verify): Use it if available.  This generates better
16456         diagnostics with GCC 4.6.0 and later.
16457
16458 2011-04-05  Bruno Haible  <bruno@clisp.org>
16459
16460         Remove leftover generated .h files after config.status changed.
16461
16462         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
16463         GL_GENERATE_ALLOCA_H.
16464         * modules/alloca-opt (Makefile.am): Remove alloca.h if
16465         GL_GENERATE_ALLOCA_H evaluates to false.
16466
16467         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
16468         GL_GENERATE_ARGZ_H.
16469         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
16470         evaluates to false.
16471
16472         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
16473         GL_GENERATE_BYTESWAP_H.
16474         * modules/byteswap (Makefile.am): Remove byteswap.h if
16475         GL_GENERATE_BYTESWAP_H evaluates to false.
16476
16477         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
16478         GL_GENERATE_ERRNO_H.
16479         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
16480         evaluates to false.
16481
16482         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
16483         GL_GENERATE_FLOAT_H.
16484         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
16485         evaluates to false.
16486
16487         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
16488         GL_GENERATE_FNMATCH_H.
16489         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
16490         GL_GENERATE_FNMATCH_H evaluates to false.
16491
16492         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
16493         GL_GENERATE_GLOB_H.
16494         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
16495         evaluates to false.
16496
16497         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
16498         automake conditional GL_GENERATE_ICONV_H.
16499         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
16500         evaluates to false.
16501
16502         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
16503         GL_GENERATE_NETINET_IN_H.
16504         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
16505         GL_GENERATE_NETINET_IN_H evaluates to false.
16506
16507         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
16508         conditional GL_GENERATE_PTHREAD_H.
16509         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
16510         * modules/pthread (Makefile.am): Remove pthread.h if
16511         GL_GENERATE_PTHREAD_H evaluates to false.
16512
16513         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
16514         GL_GENERATE_SCHED_H.
16515         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
16516         evaluates to false.
16517
16518         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
16519         conditional GL_GENERATE_SELINUX_CONTEXT_H.
16520         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
16521         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
16522
16523         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
16524         GL_GENERATE_STDARG_H.
16525         * modules/stdarg (Makefile.am): Remove stdarg.h if
16526         GL_GENERATE_STDARG_H evaluates to false.
16527
16528         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
16529         GL_GENERATE_STDBOOL_H.
16530         * modules/stdbool (Makefile.am): Remove stdbool.h if
16531         GL_GENERATE_STDBOOL_H evaluates to false.
16532
16533         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
16534         conditional GL_GENERATE_STDDEF_H.
16535         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
16536         * modules/stddef (Makefile.am): Remove stddef.h if
16537         GL_GENERATE_STDDEF_H evaluates to false.
16538
16539         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
16540         GL_GENERATE_STDINT_H.
16541         * modules/stdint (Makefile.am): Remove stdint.h if
16542         GL_GENERATE_STDINT_H evaluates to false.
16543
16544         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
16545         GL_GENERATE_SYSEXITS_H.
16546         * modules/sysexits (Makefile.am): Remove sysexits.h if
16547         GL_GENERATE_SYSEXITS_H evaluates to false.
16548
16549         Reported by Karl Berry and Ralf Wildenhues.
16550
16551 2011-04-05  Bruno Haible  <bruno@clisp.org>
16552
16553         Ensure to rebuild generated .h files when config.status has changed.
16554         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
16555         config.status.
16556         * modules/ctype (Makefile.am): Likewise.
16557         * modules/dirent (Makefile.am): Likewise.
16558         * modules/errno (Makefile.am): Likewise.
16559         * modules/fcntl-h (Makefile.am): Likewise.
16560         * modules/float (Makefile.am): Likewise.
16561         * modules/getopt-posix (Makefile.am): Likewise.
16562         * modules/glob (Makefile.am): Likewise.
16563         * modules/iconv-h (Makefile.am): Likewise.
16564         * modules/inttypes (Makefile.am): Likewise.
16565         * modules/langinfo (Makefile.am): Likewise.
16566         * modules/locale (Makefile.am): Likewise.
16567         * modules/math (Makefile.am): Likewise.
16568         * modules/netdb (Makefile.am): Likewise.
16569         * modules/netinet_in (Makefile.am): Likewise.
16570         * modules/poll-h (Makefile.am): Likewise.
16571         * modules/pthread (Makefile.am): Likewise.
16572         * modules/pty (Makefile.am): Likewise.
16573         * modules/sched (Makefile.am): Likewise.
16574         * modules/search (Makefile.am): Likewise.
16575         * modules/selinux-h (Makefile.am): Likewise.
16576         * modules/signal (Makefile.am): Likewise.
16577         * modules/spawn (Makefile.am): Likewise.
16578         * modules/stdarg (Makefile.am): Likewise.
16579         * modules/stdbool (Makefile.am): Likewise.
16580         * modules/stddef (Makefile.am): Likewise.
16581         * modules/stdint (Makefile.am): Likewise.
16582         * modules/stdio (Makefile.am): Likewise.
16583         * modules/stdlib (Makefile.am): Likewise.
16584         * modules/string (Makefile.am): Likewise.
16585         * modules/strings (Makefile.am): Likewise.
16586         * modules/sys_file (Makefile.am): Likewise.
16587         * modules/sys_ioctl (Makefile.am): Likewise.
16588         * modules/sys_select (Makefile.am): Likewise.
16589         * modules/sys_socket (Makefile.am): Likewise.
16590         * modules/sys_stat (Makefile.am): Likewise.
16591         * modules/sys_time (Makefile.am): Likewise.
16592         * modules/sys_times (Makefile.am): Likewise.
16593         * modules/sys_utsname (Makefile.am): Likewise.
16594         * modules/sys_wait (Makefile.am): Likewise.
16595         * modules/sysexits (Makefile.am): Likewise.
16596         * modules/termios (Makefile.am): Likewise.
16597         * modules/time (Makefile.am): Likewise.
16598         * modules/unistd (Makefile.am): Likewise.
16599         * modules/wchar (Makefile.am): Likewise.
16600         * modules/wctype-h (Makefile.am): Likewise.
16601         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
16602
16603 2011-04-05  Bruno Haible  <bruno@clisp.org>
16604
16605         pipe2: Relicense under LGPLv2+.
16606         * modules/pipe2 (License): Change to LGPLv2+.
16607         Requested by Eric Blake, for libvirt.
16608
16609 2011-04-05  Bruce Korb  <bkorb@gnu.org>
16610
16611         bootstrap: compute gnulib_extra_files after updating build_aux
16612         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
16613         change build_aux or also supply gnulib_extra_files.  Handle correctly.
16614
16615 2011-04-05  Eric Blake  <eblake@redhat.com>
16616
16617         bootstrap: preserve git whitelist item sorting
16618         * build-aux/bootstrap (sort_patterns): New function.
16619         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
16620
16621 2011-04-05  Simon Josefsson  <simon@josefsson.org>
16622
16623         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
16624         sc_space_tab check.
16625
16626 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
16627
16628         areadlink, areadlinkat: rewrite in terms of careadlinkat
16629         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
16630         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
16631         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
16632         (malloc, realloc): Remove #undefs.
16633         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
16634         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
16635         readlink, ssize_t, stdint, unistd.
16636         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
16637         areadlink, stdint.
16638
16639         careadlinkat: new module
16640         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
16641         * modules/careadlinkat: New files, written by me with
16642         a review and feedback from Ben Pfaff in
16643         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
16644
16645 2011-04-01  Bruno Haible  <bruno@clisp.org>
16646
16647         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
16648         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
16649         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
16650         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
16651         Reported by Bruce Korb <bruce.korb@gmail.com>.
16652
16653 2011-04-01  Bruno Haible  <bruno@clisp.org>
16654
16655         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
16656         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
16657         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
16658         * modules/wcpcpy (Depends-on): Add extensions.
16659         * modules/wcpncpy (Depends-on): Likewise.
16660         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
16661         systems.
16662         * doc/posix-functions/wcpncpy.texi: Likewise.
16663         * doc/posix-functions/wcwidth.texi: Likewise.
16664
16665 2011-03-31  Eric Blake  <eblake@redhat.com>
16666
16667         nonblocking: fix mingw test failures
16668         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
16669         non-blocking flag on regular file.
16670         (get_nonblocking_flag): Set errno on invalid fd.
16671         * tests/test-nonblocking.c (main): Avoid test failure on
16672         directories if fchdir is not active.
16673         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
16674
16675 2011-03-31  Bruno Haible  <bruno@clisp.org>
16676
16677         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
16678         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
16679         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
16680         Reported by Simon Josefsson <simon@josefsson.org>.
16681
16682 2011-03-31  Bruno Haible  <bruno@clisp.org>
16683         and Eric Blake  <eblake@redhat.com>
16684
16685         nonblocking: new module
16686         * modules/nonblocking: New module.
16687         * modules/nonblocking-tests: Likewise.
16688         * lib/nonblocking.h: New file.
16689         * lib/nonblocking.c: Likewise.
16690         * tests/test-nonblocking.c: New test.
16691         * lib/ioctl.c (ioctl) [mingw]: Update comment.
16692
16693 2011-03-30  Bruno Haible  <bruno@clisp.org>
16694
16695         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
16696         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
16697         instead of 'printf' format for GCC >= 4.4.
16698         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
16699         (fprintf, printf, vfprintf, vprintf): Declare with
16700         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
16701         the system's vfprintf() function.
16702         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
16703
16704 2011-03-30  Eric Blake  <eblake@redhat.com>
16705
16706         passfd: fix scoping bug
16707         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
16708         before sendmsg/recvmsg.
16709
16710         passfd: standardize coding conventions
16711         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
16712         can be learned at compile time.
16713         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
16714         ifdefs.
16715         (sendfd, recvfd): Follow gnulib code conventions.
16716
16717         passfd: fix incorrect sendmsg arguments
16718         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
16719         incorrect msg_controllen value.
16720         * modules/passfd-tests (Depends-on): Check for alarm.
16721         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
16722         Reported by Bastien ROUCARIES.
16723
16724 2011-03-30  Bruno Haible  <bruno@clisp.org>
16725
16726         c-strcasestr: Relicense under LGPLv2+.
16727         * modules/c-strcasestr (License): Change to LGPLv2+.
16728         Requested by Eric Blake, for libvirt.
16729
16730 2011-03-30  Simon Josefsson  <simon@josefsson.org>
16731
16732         * users.txt: Add libidn2.  Fix libtasn1 link.
16733
16734 2011-03-30  Jim Meyering  <meyering@redhat.com>
16735
16736         tests: readlink* ("",... fails with EINVAL on newer kernels
16737         readlink and readlinkat have typically failed with ENOENT for
16738         the invalid, empty file name,  "".  However, with the advent
16739         of linux-2.6.39, they fail with EINVAL.
16740         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
16741         when operating on the empty file name.
16742         * tests/test-readlink.h (test_readlink): Likewise.
16743
16744 2011-03-29  Bruno Haible  <bruno@clisp.org>
16745
16746         Relicense some modules under LGPLv2+, for libidn2.
16747         * modules/array-mergesort (License): Change to LGPLv2+.
16748         * modules/c-strcaseeq (License): Likewise.
16749         * modules/striconveh (License): Likewise.
16750         * modules/striconveha (License): Likewise.
16751         * modules/uniconv/base (License): Likewise.
16752         * modules/uniconv/u8-conv-from-enc (License): Likewise.
16753         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
16754         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
16755         * modules/unictype/base (License): Likewise.
16756         * modules/unictype/bidiclass-of (License): Likewise.
16757         * modules/unictype/category-M (License): Likewise.
16758         * modules/unictype/category-none (License): Likewise.
16759         * modules/unictype/category-of (License): Likewise.
16760         * modules/unictype/category-test (License): Likewise.
16761         * modules/unictype/category-test-withtable (License): Likewise.
16762         * modules/unictype/combining-class (License): Likewise.
16763         * modules/unictype/joiningtype-of (License): Likewise.
16764         * modules/unictype/scripts (License): Likewise.
16765         * modules/uninorm/base (License): Likewise.
16766         * modules/uninorm/canonical-decomposition (License): Likewise.
16767         * modules/uninorm/composition (License): Likewise.
16768         * modules/uninorm/decompose-internal (License): Likewise.
16769         * modules/uninorm/decomposition-table (License): Likewise.
16770         * modules/uninorm/nfc (License): Likewise.
16771         * modules/uninorm/nfd (License): Likewise.
16772         * modules/uninorm/u32-normalize (License): Likewise.
16773         * modules/unistr/base (License): Likewise.
16774         * modules/unistr/u32-cpy (License): Likewise.
16775         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
16776         * modules/unistr/u32-to-u8 (License): Likewise.
16777         * modules/unistr/u32-uctomb (License): Likewise.
16778         * modules/unistr/u8-check (License): Likewise.
16779         * modules/unistr/u8-mblen (License): Likewise.
16780         * modules/unistr/u8-mbtouc (License): Likewise.
16781         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
16782         * modules/unistr/u8-mbtoucr (License): Likewise.
16783         * modules/unistr/u8-prev (License): Likewise.
16784         * modules/unistr/u8-strlen (License): Likewise.
16785         * modules/unistr/u8-to-u32 (License): Likewise.
16786         * modules/unistr/u8-uctomb (License): Likewise.
16787         * modules/unitypes (License): Likewise.
16788         Requested by Simon Josefsson.
16789
16790 2011-03-29  Simon Josefsson  <simon@josefsson.org>
16791
16792         lib-symbol-visibility: Add a notice.
16793         * modules/lib-symbol-visibility (Notice): New field.
16794
16795 2011-03-29  Bruno Haible  <bruno@clisp.org>
16796
16797         getaddrinfo: Doc fix.
16798         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
16799         section "fixed in Gnulib".
16800
16801 2011-03-28  Simon Josefsson  <simon@josefsson.org>
16802
16803         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
16804         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
16805
16806 2011-03-26  Bruno Haible  <bruno@clisp.org>
16807
16808         unictype/property-byname: Reduce the number of load-time relocations.
16809         * lib/unictype/pr_byname.c: Include <stdlib.h>.
16810         (UC_PROPERTY_INDEX_*): New enumeration values.
16811         (uc_property_byname): Convert an index from the lookup table to an
16812         uc_property_t.
16813         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
16814         values.
16815
16816 2011-03-26  Bruno Haible  <bruno@clisp.org>
16817
16818         unictype/property-byname: Allow omitted word separators and aliases.
16819         * lib/unictype/pr_byname.gperf: Add property names without word
16820         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
16821         for 'space'.
16822
16823 2011-03-26  Bruno Haible  <bruno@clisp.org>
16824
16825         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
16826         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
16827         also hyphens to space.
16828         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
16829         without spaces.
16830         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
16831
16832 2011-03-26  Bruno Haible  <bruno@clisp.org>
16833
16834         unictype/joiningtype-byname: Recognize long names as well.
16835         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
16836         a long name.
16837         * lib/unictype/joiningtype_byname.c: Include <string.h>,
16838         unictype/joiningtype_byname.h.
16839         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
16840         * lib/unictype/joiningtype_byname.gperf: New file.
16841         * modules/unictype/joiningtype-byname (Files): Add
16842         lib/unictype/joiningtype_byname.gperf.
16843         (Depends-on): Add gperf.
16844         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
16845         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
16846         long names.
16847
16848         Tests for module 'unictype/joiningtype-longname'.
16849         * modules/unictype/joiningtype-longname-tests: New file.
16850         * tests/unictype/test-joiningtype_longname.c: New file.
16851
16852         New module 'unictype/joiningtype-longname'.
16853         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
16854         * lib/unictype/joiningtype_longname.c: New file.
16855         * modules/unictype/joiningtype-longname: New file.
16856         * modules/unictype/joiningtype-all (Depends-on): Add
16857         unictype/joiningtype-longname.
16858
16859 2011-03-26  Bruno Haible  <bruno@clisp.org>
16860
16861         unictype/bidiclass-byname: Recognize long names as well.
16862         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
16863         name.
16864         * lib/unictype/bidi_byname.c: Include <string.h>,
16865         unictype/bidi_byname.h.
16866         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
16867         * lib/unictype/bidi_byname.gperf: New file.
16868         * modules/unictype/bidiclass-byname (Files): Add
16869         lib/unictype/bidi_byname.gperf.
16870         (Depends-on): Add gperf.
16871         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
16872         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
16873         long names.
16874
16875         Tests for module 'unictype/bidiclass-longname'.
16876         * modules/unictype/bidiclass-longname-tests: New file.
16877         * tests/unictype/test-bidi_longname.c: New file.
16878
16879         New module 'unictype/bidiclass-longname'.
16880         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
16881         * lib/unictype/bidi_longname.c: New file.
16882         * modules/unictype/bidiclass-longname: New file.
16883         * modules/unictype/bidiclass-all (Depends-on): Add
16884         unictype/bidiclass-longname.
16885
16886 2011-03-26  Bruno Haible  <bruno@clisp.org>
16887
16888         unictype/bidi*: Rename modules.
16889         * modules/unictype/bidiclass-all: Renamed from
16890         modules/unictype/bidicategory-all.
16891         * modules/unictype/bidiclass-name: Renamed from
16892         modules/unictype/bidiclass-name.
16893         (Description): Update.
16894         * modules/unictype/bidiclass-name-tests: Renamed from
16895         modules/unictype/bidicategory-name-tests.
16896         * modules/unictype/bidiclass-byname: Renamed from
16897         modules/unictype/bidicategory-byname.
16898         (Description): Update.
16899         * modules/unictype/bidiclass-byname-tests: Renamed from
16900         modules/unictype/bidicategory-byname-tests.
16901         * modules/unictype/bidiclass-of: Renamed from
16902         modules/unictype/bidicategory-of.
16903         (Description): Update.
16904         * modules/unictype/bidiclass-of-tests: Renamed from
16905         modules/unictype/bidicategory-of-tests.
16906         * modules/unictype/bidiclass-test: Renamed from
16907         modules/unictype/bidicategory-test.
16908         (Description): Update.
16909         * modules/unictype/bidiclass-test-tests: Renamed from
16910         modules/unictype/bidicategory-test-tests.
16911         * modules/unictype/bidicategory-all: New file, a simple redirection.
16912         * modules/unictype/bidicategory-name: Likewise.
16913         * modules/unictype/bidicategory-byname: Likewise.
16914         * modules/unictype/bidicategory-of: Likewise.
16915         * modules/unictype/bidicategory-test: Likewise.
16916         * modules/unictype/property-bidi-* (Dependencies): Update.
16917         * lib/unictype/bidi_*.c: Update comment.
16918
16919 2011-03-26  Bruno Haible  <bruno@clisp.org>
16920
16921         unictype/bidi*: Rename functions, part 2.
16922         * modules/unictype/bidicategory-name (configure.ac): Update required
16923         libunistring version.
16924         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
16925
16926 2011-03-25  Bruno Haible  <bruno@clisp.org>
16927
16928         New module 'unictype/combining-class-all'.
16929         * modules/unictype/combining-class-all: New file.
16930
16931         Tests for module 'unictype/combining-class-byname'.
16932         * modules/unictype/combining-class-byname-tests: New file.
16933         * tests/unictype/test-combiningclass_byname.c: New file.
16934
16935         New module 'unictype/combining-class-byname'.
16936         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
16937         * lib/unictype/combiningclass_byname.c: New file.
16938         * lib/unictype/combiningclass_byname.gperf: New file.
16939         * modules/unictype/combining-class-byname: New file.
16940
16941         Tests for module 'unictype/combining-class-longname'.
16942         * modules/unictype/combining-class-longname-tests: New file.
16943         * tests/unictype/test-combiningclass_longname.c: New file.
16944
16945         New module 'unictype/combining-class-longname'.
16946         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
16947         * lib/unictype/combiningclass_longname.c: New file.
16948         * modules/unictype/combining-class-longname: New file.
16949
16950         Tests for module 'unictype/combining-class-name'.
16951         * modules/unictype/combining-class-name-tests: New file.
16952         * tests/unictype/test-combiningclass_name.c: New file.
16953
16954         New module 'unictype/combining-class-name'.
16955         * lib/unictype.in.h (uc_combining_class_name): New declaration.
16956         * lib/unictype/combiningclass_name.c: New file.
16957         * modules/unictype/combining-class-name: New file.
16958
16959 2011-03-25  Bruno Haible  <bruno@clisp.org>
16960
16961         unictype/combining-class: Rename source files.
16962         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
16963         of unictype/combining.h.
16964         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
16965         Update.
16966         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
16967         * modules/unictype/combining-class (Description): Fix.
16968         (Files, Makefile.am): Update.
16969         * tests/unictype/test-combiningclass.c: Renamed from
16970         tests/unictype/test-combining.c.
16971         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
16972
16973 2011-03-25  Bruno Haible  <bruno@clisp.org>
16974
16975         unictype: Update list of canonical combining classes.
16976         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
16977
16978 2011-03-25  Bruno Haible  <bruno@clisp.org>
16979
16980         unictype/category-byname: Recognize long names as well.
16981         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
16982         a long name.
16983         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
16984         unictype/categ_byname.h.
16985         (UC_CATEGORY_INDEX_*): New enumeration values.
16986         (uc_general_category_byname): Use uc_general_category_lookup and
16987         convert from index to value.
16988         * lib/unictype/categ_byname.gperf: New file.
16989         * modules/unictype/category-byname (Files): Add
16990         lib/unictype/categ_byname.gperf.
16991         (Depends-on): Add gperf.
16992         (Makefile.am): Add rule for generating unictype/categ_byname.h.
16993         * tests/unictype/test-categ_byname.c (main): Test the recognition of
16994         long names.
16995
16996         Tests for module 'unictype/category-longname'.
16997         * modules/unictype/category-longname-tests: New file.
16998         * tests/unictype/test-categ_longname.c: New file.
16999
17000         New module 'unictype/category-longname'.
17001         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
17002         * lib/unictype/categ_longname.c: New file.
17003         * modules/unictype/category-longname: New file.
17004         * modules/unictype/category-all (Depends-on): Add it.
17005
17006 2011-03-25  Bruno Haible  <bruno@clisp.org>
17007
17008         Tests for module 'unictype/category-LC'.
17009         * modules/unictype/category-LC-tests: New file.
17010         * tests/unictype/test-categ_LC.c: New file, automatically generated.
17011
17012         New module 'unictype/category-LC'.
17013         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
17014         (UC_CATEGORY_LC): New declaration.
17015         (UC_CASED_LETTER): New macro.
17016         * lib/gen-uni-tables.c (is_category_LC): New function.
17017         (output_categories): Also handle category LC.
17018         (UC_CATEGORY_MASK_LC): New enumeration value.
17019         (general_category_byname): Also handle category LC.
17020         * lib/unictype/categ_LC.c: New file.
17021         * lib/unictype/categ_LC.h: New file, automatically generated.
17022         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
17023         category LC.
17024         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
17025         * modules/unictype/category-LC: New file.
17026         * modules/unictype/category-byname (Depends-on): Add
17027         unictype/category-LC.
17028         * modules/unictype/category-all (Depends-on): Likewise.
17029
17030 2011-03-25  Eric Blake  <eblake@redhat.com>
17031
17032         xmalloc: revert yesterday's regression
17033         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
17034         realloc's underlying behavior (allowing allocation of zero-size
17035         objects, especially if malloc-gnu is also in use).
17036
17037 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
17038
17039         maint.mk: add missing version to VC-tag
17040         * top/maint.mk: git tag was missing actual tag name; add it.
17041
17042         valgrind: do leak checking, and exit with code 1 on error (not 0)
17043         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
17044         to VALGRIND.
17045
17046 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
17047
17048         posix-modules: say what it does.
17049         * posix-modules: Add a line to the --help output saying what it does.
17050
17051 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17052
17053         xmalloc: Do not leak if underlying realloc is C99 compatible.
17054         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
17055         This avoids a leak on C99-based systems.  See
17056         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
17057
17058 2011-03-24  Eric Blake  <eblake@redhat.com>
17059
17060         realloc: document portability problem
17061         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
17062         passing 0 size to realloc.
17063
17064 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
17065
17066         doc: update users.txt
17067         * users.txt: Add cvsps, tmpwatch
17068
17069 2011-03-23  Matt Rice  <ratmice@gmail.com>
17070
17071         doc: update users.txt
17072         * users.txt: Add gdb.
17073
17074 2011-03-23  Jim Meyering  <meyering@redhat.com>
17075
17076         doc: update users.txt
17077         Looking through matches up to the following URL (there are still
17078         several more pages), I found several projects that use gnulib:
17079         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
17080         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
17081         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
17082
17083 2011-03-22  Bruno Haible  <bruno@clisp.org>
17084
17085         unictype/bidi*: Rename functions.
17086         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
17087         uc_bidi_class, uc_is_bidi_class): New declarations.
17088         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
17089         uc_bidi_category_byname.
17090         (uc_bidi_category_byname): New function.
17091         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
17092         u_bidi_category_name.
17093         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
17094         (uc_bidi_category_name): New function.
17095         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
17096         uc_bidi_category.
17097         (uc_bidi_category): New function.
17098         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
17099         uc_is_bidi_category. Invoke uc_bidi_class.
17100         (uc_is_bidi_category): New function.
17101         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
17102         instead of uc_bidi_category_byname.
17103         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
17104         instead of uc_bidi_category_name.
17105         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
17106         uc_bidi_category.
17107         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
17108         instead of uc_is_bidi_category.
17109
17110 2011-03-21  Bruno Haible  <bruno@clisp.org>
17111
17112         New module 'unictype/joininggroup-all'.
17113         * modules/unictype/joininggroup-all: New file.
17114
17115         Tests for module 'unictype/joininggroup-of'.
17116         * modules/unictype/joininggroup-of-tests: New file.
17117         * tests/unictype/test-joininggroup_of.c: New file.
17118         * tests/unictype/test-joininggroup_of.h: New file, automatically
17119         generated by gen-uni-tables.
17120
17121         New module 'unictype/joininggroup-of'.
17122         * modules/unictype/joininggroup-of: New file.
17123         * lib/unictype/joininggroup_of.c: New file.
17124         * lib/unictype/joininggroup_of.h: New file, automatically generated by
17125         gen-uni-tables.
17126
17127         Tests for module 'unictype/joininggroup-byname'.
17128         * modules/unictype/joininggroup-byname-tests: New file.
17129         * tests/unictype/test-joininggroup_byname.c: New file.
17130
17131         New module 'unictype/joininggroup-byname'.
17132         * modules/unictype/joininggroup-byname: New file.
17133         * lib/unictype/joininggroup_byname.c: New file.
17134         * lib/unictype/joininggroup_byname.gperf: New file.
17135
17136         Tests for module 'unictype/joininggroup-name'.
17137         * modules/unictype/joininggroup-name-tests: New file.
17138         * tests/unictype/test-joininggroup_name.c: New file.
17139
17140         New module 'unictype/joininggroup-name'.
17141         * modules/unictype/joininggroup-name: New file.
17142         * lib/unictype/joininggroup_name.c: New file.
17143         * lib/unictype/joininggroup_name.h: New file.
17144
17145         New module 'unictype/joiningtype-all'.
17146         * modules/unictype/joiningtype-all: New file.
17147
17148         Tests for module 'unictype/joiningtype-of'.
17149         * modules/unictype/joiningtype-of-tests: New file.
17150         * tests/unictype/test-joiningtype_of.c: New file.
17151         * tests/unictype/test-joiningtype_of.h: New file, automatically
17152         generated by gen-uni-tables.
17153
17154         New module 'unictype/joiningtype-of'.
17155         * modules/unictype/joiningtype-of: New file.
17156         * lib/unictype/joiningtype_of.c: New file.
17157         * lib/unictype/joiningtype_of.h: New file, automatically generated by
17158         gen-uni-tables.
17159
17160         Tests for module 'unictype/joiningtype-byname'.
17161         * modules/unictype/joiningtype-byname-tests: New file.
17162         * tests/unictype/test-joiningtype_byname.c: New file.
17163
17164         New module 'unictype/joiningtype-byname'.
17165         * modules/unictype/joiningtype-byname: New file.
17166         * lib/unictype/joiningtype_byname.c: New file.
17167
17168         Tests for module 'unictype/joiningtype-name'.
17169         * modules/unictype/joiningtype-name-tests: New file.
17170         * tests/unictype/test-joiningtype_name.c: New file.
17171
17172         New module 'unictype/joiningtype-name'.
17173         * modules/unictype/joiningtype-name: New file.
17174         * lib/unictype/joiningtype_name.c: New file.
17175
17176         unictype: Add support for Arabic shaping properties.
17177         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
17178         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
17179         declarations.
17180         (UC_JOINING_GROUP_*): New enumeration values.
17181         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
17182         declarations.
17183         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
17184         (unicode_joining_type): New variable.
17185         (UC_JOINING_GROUP_*): New enumeration values.
17186         (unicode_joining_group): New variable.
17187         (fill_arabicshaping, joining_type_as_c_identifier,
17188         output_joining_type_test, output_joining_type,
17189         joining_group_as_c_identifier, output_joining_group_test,
17190         output_joining_group): New functions.
17191         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
17192         fill_arabicshaping and output_joining_type_test, output_joining_type,
17193         output_joining_group_test, output_joining_group.
17194         Reported by Simon Josefsson.
17195
17196 2011-03-21  Jim Meyering  <meyering@redhat.com>
17197
17198         strftime: fix a bug in yesterday's change
17199         * lib/strftime.c (add): Accommodate width's initial value of -1.
17200         Otherwise, nstrftime would copy uninitialized data into
17201         the result buffer.
17202
17203 2011-03-21  Jim Meyering  <meyering@redhat.com>
17204
17205         tests: add strftime-tests module
17206         * tests/test-strftime.c: New file.
17207         * modules/strftime-tests: New module.
17208
17209 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17210
17211         strftime: don't assume a byte count fits in 'int'
17212         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
17213         found this problem by static analysis, using gcc -Wstrict-overflow
17214         (GCC 4.5.2, x86-64).  This reported an optimization that depended
17215         on an integer overflow having undefined behavior, but it turns out
17216         that the argument is a size, which might not fit in 'int' anyway,
17217
17218 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17219
17220         stdio: don't require ignore_value around fwrite
17221
17222         This patch works around libc bug 11959
17223         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
17224         Without this patch, applications must often write
17225         ignore_value (fwrite (...)) even though the ignore_value is
17226         not helpful here.  It's common to write many objects, using
17227         fwrite/printf/etc., and then use ferror to detect output error.
17228
17229         I considered making this patch optional, but decided against it,
17230         because libc is obviously being inconsistent here: there is no
17231         reason libc should insist that user code must inspect fwrite
17232         return's value without also insisting that it inspect printf's,
17233         putchar's, etc.  If user code wants to have a strict style where
17234         all these functions' values are checked (so that ferror need not
17235         be checked), we could add support for that style in a new gnulib
17236         module, but in the meantime it's better to be consistent and to
17237         support common usage.
17238
17239         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
17240         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
17241         that we are compiling in checking mode, and if not C++, and
17242         if not already wrapping fwrite for some other reason.
17243         (fwrite): #define to rpl_fwrite if the latter is defined.
17244
17245 2011-03-20  Bruno Haible  <bruno@clisp.org>
17246
17247         verror: Fix compilation error introduced on 2011-02-13.
17248         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
17249         instead of __attribute__.
17250         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17251
17252 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17253             Bruno Haible  <bruno@clisp.org>
17254
17255         socklen: do not depend on sys_socket
17256         While trying to modify Emacs to use gnulib's socklen module,
17257         I discovered a circular dependency: socklen depends on sys_socket
17258         and vice versa.  Emacs can use socklen, but it does not need
17259         sys_socket because it has its own substitute for sys/socket.h.
17260         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
17261         gl_TYPE_SOCKLEN_T.
17262         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
17263         gl_PREREQ_SYS_H_SOCKET.
17264         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
17265         gl_PREREQ_SYS_H_SOCKET.
17266         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
17267         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
17268         * modules/socklen (Depends-on): Do not depend on sys_socket.
17269         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
17270
17271 2011-03-20  Jim Meyering  <meyering@redhat.com>
17272
17273         maint.mk: sort file names *after* new transformation
17274         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
17275         prefix would have led to an unwarranted failure in GNU parted.
17276         Sort after that transformation.
17277
17278 2011-03-19  Jim Meyering  <meyering@redhat.com>
17279
17280         maint.mk: fix po-file syntax-check rule
17281         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
17282         Patch by Bruno Haible.
17283
17284 2011-03-19  Bruno Haible  <bruno@clisp.org>
17285
17286         socklen: Update comment.
17287         * m4/socklen.m4: Update comment about platforms.
17288
17289 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17290             Bruno Haible  <bruno@clisp.org>
17291
17292         inet_ntop, inet_pton: Simplify.
17293         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
17294         documented to provide socklen_t and we already depend on sys_socket.
17295         * modules/inet_pton (Depends-on): Likewise.
17296         * lib/arpa_inet.in.h: Adjust comment.
17297
17298 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17299             Bruno Haible  <bruno@clisp.org>
17300
17301         netdb: Simplify.
17302         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
17303         documented to provide socklen_t and we already depend on sys_socket.
17304         * lib/netdb.in.h: Adjust comment.
17305
17306 2011-03-19  Bruno Haible  <bruno@clisp.org>
17307
17308         sys_socket, netdb: Document problem with socklen_t.
17309         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
17310         platforms.
17311         * doc/posix-headers/netdb.texi: Likewise.
17312
17313 2011-03-18  Eric Blake  <eblake@redhat.com>
17314
17315         maint.mk: let po check work in VPATH build
17316         * top/maint.mk (po_file): Allow cfg.mk override.
17317         (sc_po_check): Allow VPATH use.
17318         Reported by Jiri Denemark.
17319
17320 2011-03-16  Jim Meyering  <meyering@redhat.com>
17321
17322         maint.mk: allow fine-grained syntax-check exclusion via Make variables
17323         Before, you would have had to create one .x-sc_ file per rule in order
17324         to exempt offending files.  Now, you may instead use a Make variable --
17325         usually defined in cfg.mk -- whose name identifies the affected rule.
17326         * top/maint.mk (_sc_excl): Define.
17327         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
17328         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
17329
17330 2011-03-13  Bruno Haible  <bruno@clisp.org>
17331
17332         ignore-value tests: Avoid warnings.
17333         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
17334         empty for gcc < 3.4.
17335
17336 2011-03-13  Bruno Haible  <bruno@clisp.org>
17337
17338         passfd: Fix link error on Solaris.
17339         * modules/passfd (Description): Correct.
17340         (Depends-on): Add socketlib.
17341         (Link): New section.
17342         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
17343
17344 2011-03-13  Bruno Haible  <bruno@clisp.org>
17345
17346         passfd: Fix link error on AIX 5.2.
17347         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
17348
17349 2011-03-13  Bruno Haible  <bruno@clisp.org>
17350
17351         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
17352         * lib/sys_socket.in.h: Include <stddef.h>.
17353         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
17354         CMSG_FIRSTHDR. Remove unused variable.
17355
17356 2011-03-13  Bruno Haible  <bruno@clisp.org>
17357
17358         passfd: Fix compilation error on OpenBSD.
17359         * lib/passfd.c: Include <sys/uio.h>.
17360
17361 2011-03-13  Bruno Haible  <bruno@clisp.org>
17362
17363         passfd test: Fix warnings.
17364         * tests/test-passfd.c: Include <sys/wait.h>.
17365         (main): Fix typo.
17366
17367 2011-03-13  Bruno Haible  <bruno@clisp.org>
17368
17369         passfd module, part 4, tweaks.
17370         * tests/test-passfd.c: Reorder includes.
17371         (main): Fix perror and printf calls.
17372
17373 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17374
17375         passfd module, part 4.
17376         * modules/passfd-tests: New file.
17377         * tests/test-passfd.c: New file.
17378
17379 2011-03-13  Jim Meyering  <meyering@redhat.com>
17380
17381         Makefile: rely on GNU make; derive syntax-check rule names
17382         Rather than requiring that each sc_ rule be listed as a dependent
17383         of "check", use features of GNU make to derive the list.
17384         * Makefile (syntax-check-rules): Define.
17385         (check): Depend on the new variable, not the hard-coded list.
17386
17387 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
17388             Bruno Haible  <bruno@clisp.org>
17389
17390         passfd module, part 3.
17391         * lib/passfd.h (recvfd): Add a flags argument.
17392         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
17393         (recvfd): Add a flags argument.
17394         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
17395         exists.
17396         * modules/passfd (Depends-on): Add cloexec.
17397         Suggested by Eric Blake.
17398
17399 2011-03-13  Bruno Haible  <bruno@clisp.org>
17400
17401         passfd module, part 2, tweaks.
17402         * modules/passfd (Files): Reorder.
17403         (Depends-on): Remove errno.
17404         (Include): Remove <sys/socket.h>, <sys/un.h>.
17405         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
17406         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
17407         specification header. Include <sys/socket.h> always. Don't include
17408         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
17409         (sendfd): Clarify that it sets errno when it fails.
17410         (recvfd): Fix specification.
17411
17412 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17413
17414         passfd module, part 2.
17415         * modules/passfd: New file.
17416         * lib/passfd.h: New file.
17417         * lib/passfd.c: New file.
17418
17419 2011-03-12  Bruno Haible  <bruno@clisp.org>
17420
17421         wcswidth, mbswidth: Avoid integer overflow.
17422         * lib/wcswidth.c: Include <limits.h>.
17423         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
17424         * lib/mbswidth.c: Include <limits.h>.
17425         (mbsnwidth): Avoid 'int' overflow.
17426         Reported by Jim Meyering.
17427
17428 2011-03-12  Bruno Haible  <bruno@clisp.org>
17429
17430         futimens, utimensat: Avoid endless recursion on Solaris 10.
17431         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
17432         Solaris.
17433         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
17434         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
17435
17436 2011-03-11  Jim Meyering  <meyering@redhat.com>
17437
17438         maint.mk: relax a regexp to accommodate other formatting styles
17439         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
17440         between "ngettext" and the following "(".
17441
17442 2011-03-11  Pádraig Brady <P@draigBrady.com>
17443
17444         maint.mk: suppress a false positive warning
17445         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
17446         diagnostics are marked with ngettext.
17447
17448 2011-03-10  Eric Blake  <eblake@redhat.com>
17449
17450         wchar: add explicit dependencies, for Tru64
17451         * modules/mbmemcasecoll (Depends-on): Add wchar.
17452         * modules/mbtowc (Depends-on): Likewise.
17453         * modules/vasnprintf (Depends-on): Likewise.
17454         * modules/unistdio/u-printf-args (Depends-on): Likewise.
17455         * modules/wctomb (Depends-on): Likewise.
17456         Reported by Peter O'Gorman.
17457
17458 2011-03-08  Bruno Haible  <bruno@clisp.org>
17459
17460         passfd module, part 1, tweaks.
17461         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
17462         Improve indentation. Improve AC_MSG_CHECKING messages.
17463         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
17464         gl_SOCKET_FAMILIES.
17465
17466 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17467
17468         passfd module, part 1.
17469         * m4/afunix.m4: New file.
17470         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
17471         sockets.
17472
17473 2011-03-08  Bruno Haible  <bruno@clisp.org>
17474
17475         regex-quote: New API.
17476         * lib/regex-quote.h: Include <stdbool.h>.
17477         (struct regex_quote_spec): New type.
17478         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
17479         New declarations.
17480         (regex_quote_length, regex_quote_copy, regex_quote): Take a
17481         'const struct regex_quote_spec *' argument.
17482         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
17483         (pcre_special): New constant.
17484         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
17485         New functions.
17486         (regex_quote_length, regex_quote_copy, regex_quote): Take a
17487         'const struct regex_quote_spec *' argument.
17488         * modules/regex-quote (Depends-on): Add stdbool.
17489         * tests/test-regex-quote.c (check): Update for new API. Add test for
17490         anchored results.
17491         * NEWS: Mention the API change.
17492         Reported by Reuben Thomas and Eric Blake.
17493
17494 2011-03-06  Bruno Haible  <bruno@clisp.org>
17495
17496         regex-quote: Fix creation of POSIX extended regular expressions.
17497         * lib/regex-quote.c (ere_special): Add grouping and alternation
17498         operators.
17499
17500 2011-03-05  Bruno Haible  <bruno@clisp.org>
17501
17502         doc: Improve doc regarding autopoint vs. gnulib.
17503         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
17504         disable autopoint while running autoreconf.
17505         Suggested by Ralf Wildenhues.
17506
17507 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17508
17509         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
17510         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
17511
17512 2011-03-03  Bruce Korb  <bkorb@gnu.org>
17513
17514         parse-duration: remove xalloc.h dependency
17515         * lib/parse-duration.c (parse_period): handle NULL return from
17516         strdup instead of calling xstrdup().
17517         * modules/parse-duration: remove "xalloc" dependency
17518
17519 2011-03-03  Matthew Booth  <mbooth@redhat.com>
17520
17521         bootstrap: honor m4_base when running aclocal
17522         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
17523
17524 2011-03-02  Jim Meyering  <meyering@redhat.com>
17525
17526         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
17527         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
17528         on request from Matt Booth.
17529
17530 2011-03-01  Eric Blake  <eblake@redhat.com>
17531
17532         test-link: work on Hurd
17533         * tests/test-link.h (test_link): Hurd rejects linking directories
17534         with EISDIR instead of the POSIX-mandated EPERM.
17535
17536 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
17537
17538         stdio: simplify by moving files to printf-posix, sigpipe
17539         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
17540         since this symbol is needed only if printf is replaced.
17541         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
17542         Require gl_ASM_SYMBOL_PREFIX.
17543         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
17544         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
17545         (Depends-on): Add 'raise'.
17546         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
17547         * modules/stdio (Files): Remove lib/stdio-write.c,
17548         m4/asm-underscore.m4.
17549         (Depends-on): Remove 'raise'.
17550
17551         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
17552         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
17553         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
17554         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
17555
17556 2011-02-28  Bruno Haible  <bruno@clisp.org>
17557
17558         localcharset: Assume ANSI C behaviour of free().
17559         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
17560         calling free().
17561         Suggested by Simon Josefsson <simon@josefsson.org>.
17562
17563 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
17564             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
17565             Bruno Haible  <bruno@clisp.org>  (tiny change)
17566
17567         On Cygwin, use /proc file system instead of win32 API.
17568         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
17569         Win32 file names.
17570         (DllMain): Simplify by removing Cygwin specific code.
17571         (find_shared_library_fullname): Use Linux specific implementation also
17572         for Cygwin.
17573         (get_shared_library_fullname): Update accordingly.
17574         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
17575         Win32 file names.
17576         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
17577         Cygwin specific code.
17578
17579 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
17580             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
17581
17582         Fix OpenMP flag detection for various Fortran compilers.
17583         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
17584         OpenMP-conditional compilation construct, to force compile
17585         failure with missing OpenMP flag.
17586         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
17587
17588 2011-02-25  Eric Blake  <eblake@redhat.com>
17589
17590         strstr: expand test coverage
17591         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
17592         compilation.
17593         * tests/test-memmem.c (main): Duplicate tests.
17594         * tests/test-strcasestr.c (main): Likewise.
17595         * tests/test-c-strcasestr.c (main): Likewise.
17596
17597 2011-02-25  Jim Meyering  <meyering@redhat.com>
17598
17599         maint.mk: detect missing-NL-at-EOF, too
17600         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
17601         it also detects when a file lacks a newline at EOF.
17602         (require_exactly_one_NL_at_EOF_): Renamed from
17603         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
17604         since people may well have .x-sc_... file names tied to the
17605         existing name.  Suggested by Eric Blake.
17606
17607 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
17608
17609         dirname: move m4/dos.m4 functionality into lib/dosname.h
17610
17611         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
17612         extracts symbols from it, puts them into config.h; but it's much
17613         easier to use the symbols directly.  filename.h already does this,
17614         but it disagrees with dos.m4 in some respects.  This patch
17615         introduces a different include file dosname.h that packages up
17616         dos.m4, and then later we can work on merging filename.h and
17617         dosname.h.  Applications that need only the easy-to-configure
17618         symbols should consider including dosname.h rather than dirname.h.
17619         * NEWS: Mention incompatible changes.
17620         * m4/dos.m4: Remove.
17621         * lib/dosname.h, modules/dosname: New files.
17622         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
17623         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
17624         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
17625         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
17626         Include dosname.h, not dirname.h.
17627         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
17628         Include dosname.h, for definitions of symbols like ISSLASH
17629         that used to be in config.h.
17630         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
17631         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17632         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17633         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17634         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
17635         * modules/rmdir (Files): Likewise.
17636         * modules/stat (Files): Likewise.
17637         * modules/unlink (Files): Likewise.
17638         * modules/dirname-lgpl (Depends-on): Add dosname.
17639         * modules/lstat (Depends-on): Likewise.
17640         * modules/openat (Depends-on): Likewise.
17641         * modules/rmdir (Depends-on): Likewise.
17642         * modules/savewd (Depends-on): Likewise.
17643         * modules/stat (Depends-on): Likewise.
17644         * modules/unlink (Depends-on): Likewise.
17645         * modules/openat (Depends-on): Remove dirname-lgpl.
17646         * modules/savewd (Depends-on): Likewise.
17647         * tests/test-dirname.c: Do not use removed symbols like
17648         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
17649         the remaining symbols, e.g., ISSLASH ('\\').
17650
17651 2011-02-25  Eric Blake  <eblake@redhat.com>
17652
17653         strstr: revert patches that introduced bug and pessimization
17654         * lib/str-two-way.h: Add another reference.
17655         (two_way_short_needle, two_way_long_needle): Revert changes from
17656         2011-02-24; they pessimize search speed.
17657         (critical_factorization): Partially revert changes from
17658         2010-06-22; they violate the requirement that the left half of the
17659         needle be smaller than the period of the needle.
17660
17661 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17662
17663         filenamecat: remove unnecessary dependency on dirname-lgpl
17664         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
17665         is no direct dependency, just an indirect one via filenamecat-lgpl.
17666
17667         remove: remove unnecessary use of m4/dos.m4
17668         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
17669         * modules/remove (FILES): Remove m4/dos.m4.
17670
17671         * lib/openat-proc.c: Don't include dirname.h; not needed.
17672
17673         backupfile: remove unnecessary use of m4/dos.m4
17674         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
17675         of its symbols are used by the backupfile code.  backupfile.c does
17676         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
17677         for the rare case of programs that want all their backup file
17678         names to live within 8+3 limits, and dos.m4 doesn't address that.
17679         * modules/backupfile (Files): Remove m4/dos.m4.
17680
17681 2011-02-24  Jim Meyering  <meyering@redhat.com>
17682
17683         strstr: fix a bug whereby strstr would mistakenly return NULL
17684         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
17685         in period calculation.
17686         (two_way_long_needle): Likewise.
17687         The original problem was reported by Mike Stump in
17688         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
17689         Ralf Wildenhues provided the short needle and haystack.
17690         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
17691         Add a more involved test to trigger the bug in two_way_long_needle.
17692
17693 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17694
17695         gnulib-tool: remove use of bold display in help screen
17696         * gnulib-tool (func_usage): Do not use bold display anymore in the
17697         help screen.  That was just meant to be a temporary emphasis for a
17698         backward-incompatible change.
17699
17700 2011-02-23  Bruno Haible  <bruno@clisp.org>
17701
17702         Fix misindentation of preprocessor directives.
17703         * lib/argp-namefrob.h: Reindent preprocessor directives.
17704         * lib/getopt_int.h (struct _getopt_data): Likewise.
17705         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
17706         * lib/vasnprintf.c (decode_long_double): Likewise.
17707         * tests/test-argmatch.c: Insert blank lines, for clarity.
17708         * tests/test-exclude.c: Likewise.
17709
17710 2011-02-22  Bruno Haible  <bruno@clisp.org>
17711
17712         ioctl: Fix for MacOS X in 64-bit mode.
17713         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
17714         value.
17715         Suggested by Eric Blake.
17716         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
17717
17718 2011-02-22  Jim Meyering  <meyering@redhat.com>
17719
17720         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
17721         * Makefile (sc_cpp_indent_check): Don't limit the check to files
17722         in lib/.
17723
17724 2011-02-22  Eric Blake  <eblake@redhat.com>
17725
17726         maint: avoid any CDPATH issue
17727         * Makefile (sc_cpp_indent_check): Anchor cd argument.
17728
17729         maint: adjust cpp indentation for my modules, as well
17730         * Makefile (sc_cpp_indent_check): Add my name.
17731         * lib/fbufmode.c: Filter through cppi.
17732         * lib/fpurge.c: Likewise.
17733         * lib/freadable.c: Likewise.
17734         * lib/freading.c: Likewise.
17735         * lib/fwritable.c: Likewise.
17736         * lib/fwriting.c: Likewise.
17737         * lib/sigaction.c: Likewise.
17738
17739 2011-02-22  Jim Meyering  <meyering@redhat.com>
17740
17741         maint: adjust cpp indentation to reflect nesting depth
17742         I.e., in a block of code that begins with an unnested "#if",
17743         put one space between the "#" in column 1 and following token.
17744         For example,
17745         -#include <sys/vfs.h>
17746         +# include <sys/vfs.h>
17747         Do this only in .c files that are part of a module I maintain.
17748         * lib/linkat.c: Filter through cppi.
17749         * lib/nanosleep.c: Likewise.
17750         * lib/openat.c: Likewise.
17751         * lib/openat-die.c: Likewise.
17752         * lib/dup3.c: Likewise.
17753         * lib/fchownat.c: Likewise.
17754         * lib/flock.c: Likewise.
17755         * lib/fsync.c: Likewise.
17756         * lib/fts.c: Likewise.
17757         * lib/getpass.c: Likewise.
17758         * lib/gettimeofday.c: Likewise.
17759         * lib/userspec.c: Likewise.
17760         * Makefile (sc_cpp_indent_check): New rule, to check this.
17761
17762 2011-02-22  Bruno Haible  <bruno@clisp.org>
17763
17764         New module 'wctomb'.
17765         * lib/stdlib.in.h (wctomb): New declaration.
17766         * lib/wctomb.c: New file.
17767         * lib/wctomb-impl.h: New file.
17768         * m4/wctomb.m4: New file.
17769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
17770         REPLACE_WCTOMB.
17771         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
17772         REPLACE_WCTOMB.
17773         * modules/wctomb: New file.
17774         * tests/test-stdlib-c++.cc: Test signature of wctomb.
17775         * doc/posix-functions/wctomb.texi: Mention the new module.
17776         * modules/wctob (Depends-on): Add wctomb.
17777
17778 2011-02-22  Bruno Haible  <bruno@clisp.org>
17779
17780         New module 'mbtowc'.
17781         * lib/stdlib.in.h (mbtowc): New declaration.
17782         * lib/mbtowc.c: New file.
17783         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
17784         * m4/mbtowc.m4: New file.
17785         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
17786         REPLACE_MBTOWC.
17787         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
17788         REPLACE_MBTOWC.
17789         * modules/mbtowc: New file.
17790         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
17791         * doc/posix-functions/mbtowc.texi: Mention the new module.
17792         * modules/btowc (Depends-on): Add mbtowc.
17793
17794 2011-02-22  Bruno Haible  <bruno@clisp.org>
17795
17796         wcrtomb: Add more tests for native Windows platforms.
17797         * tests/test-wcrtomb-w32-1.sh: New file.
17798         * tests/test-wcrtomb-w32-2.sh: New file.
17799         * tests/test-wcrtomb-w32-3.sh: New file.
17800         * tests/test-wcrtomb-w32-4.sh: New file.
17801         * tests/test-wcrtomb-w32-5.sh: New file.
17802         * tests/test-wcrtomb-w32.c: New file.
17803         * modules/wcrtomb-tests (Files): Add them.
17804         (Makefile.am): Arrange to run these tests.
17805         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
17806         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
17807
17808 2011-02-20  Bruno Haible  <bruno@clisp.org>
17809
17810         wcrtomb: Enhance test.
17811         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
17812
17813 2011-02-20  Bruno Haible  <bruno@clisp.org>
17814
17815         mbrtowc: Tiny optimization.
17816         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
17817
17818 2011-02-20  Jim Meyering  <meyering@redhat.com>
17819
17820         test-exclude.c: remove unmatched #endif
17821         * tests/test-exclude.c: Remove stray #endif, left over from
17822         the change of a week ago.
17823
17824 2011-02-19  Jim Meyering  <meyering@redhat.com>
17825
17826         git-version-gen: skip "-dirty" check when appropriate
17827         * build-aux/git-version-gen: Don't run any git commands when the
17828         version string comes from .tarball-version.  Prior to this, we
17829         would run git update-index --refresh even from a just-unpacked
17830         tarball directory, and that could affect a .git/ directory in a
17831         parent of the build directory.  Reported by Mike Frysinger.
17832
17833 2011-02-19  Bruno Haible  <bruno@clisp.org>
17834
17835         unictype/property-byname: Reduce the size of the 'data' segment.
17836         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
17837
17838 2011-02-19  Bruno Haible  <bruno@clisp.org>
17839
17840         unictype/scripts: Reduce the size of the 'data' segment.
17841         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
17842         '%pic'.
17843         * lib/unictype/scripts_byname.gperf: Regenerated.
17844
17845 2011-02-19  Bruno Haible  <bruno@clisp.org>
17846
17847         stdint: Update documentation.
17848         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
17849
17850 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
17851
17852         stdint: omit redundant check for wchar.h
17853         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
17854         always tests whether wchar.h exists, so remove the now-redundant test.
17855
17856 2011-02-18  Bruno Haible  <bruno@clisp.org>
17857
17858         stdint: Cut dependency to module 'wchar'.
17859         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
17860         include the necessary prerequisites.
17861         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
17862         * modules/stdint (Depends-on): Remove wchar.
17863         (Makefile.am): Substitute HAVE_WCHAR_H.
17864         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
17865
17866 2011-02-18  Eric Blake  <eblake@redhat.com>
17867
17868         longlong: skip, rather than fail, on cross-compilation
17869         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
17870         when cross-compiling; regression from 2011-02-16.
17871
17872 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
17873
17874         * NEWS: Mention 2011-02-08 change to stdlib.
17875
17876 2011-02-17  Bruno Haible  <bruno@clisp.org>
17877
17878         getloadavg: Add comments about platforms.
17879         * m4/getloadavg.m4: Add comment.
17880         * lib/getloadavg.c: Likewise.
17881
17882 2011-02-17  Bruno Haible  <bruno@clisp.org>
17883
17884         getloadavg: Fix link error on Solaris 2.6.
17885         * modules/getloadavg (Link): New section.
17886         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
17887         linking test-getloadavg.
17888         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
17889         getloadavg.
17890
17891 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
17892
17893         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
17894         It was 'int', but this doesn't match the IRIX 6.5 manual.
17895         Suggested by Bruno Haible in
17896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
17897
17898 2011-02-17  Bruno Haible  <bruno@clisp.org>
17899
17900         havelib: Fix comments.
17901         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
17902         change.
17903
17904 2011-02-17  Bruno Haible  <bruno@clisp.org>
17905
17906         havelib: Update config.rpath.
17907         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
17908
17909 2011-02-17  Bruno Haible  <bruno@clisp.org>
17910
17911         getloadavg test: Add some plausibility checks.
17912         * tests/test-getloadavg.c (check_avg): Print a warning when the value
17913         is improbable.
17914
17915 2011-02-16  Eric Blake  <eblake@redhat.com>
17916
17917         maintainer-makefile: make syntax-check a no-op from tarballs
17918         * top/maint.mk (no-vc-detected): New rule.
17919         (local-checks-available): Use it to avoid hanging if someone tries
17920         'make syntax-check' from a tarball.  Also append to any non-syntax
17921         checks already defined in cfg.mk.
17922
17923 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
17924
17925         longlong: tune, particularly for common case of c99
17926
17927         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
17928         or running anything if c99, or if unsigned long long int does not
17929         work.  In either case, we know the answer without further tests.
17930         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
17931         it at most once, and use its results for both long long int and
17932         unsigned long long int.  This is more likely to be efficient in
17933         the common case where the program wants to check for both long
17934         long int and unsigned long long int.
17935         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
17936         since the answer is already known.
17937
17938 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
17939
17940         getloadavg: set errno
17941         * lib/getloadavg.c: Set errno when returning -1.  If no other
17942         error number looks appropriate, set it to ENOSYS if the getloadavg
17943         looks like it can't possibly ever work, ENOTSUP otherwise.
17944         Suggested by Bruno Haible in
17945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
17946
17947         getloadavg: trim unused parts and speed up 'configure'
17948         * NEWS: Document this.
17949         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
17950         always compiled if getloadavg is absent.
17951         Move test code to ...
17952         * tests/test-getloadavg.c: New file, containing previous
17953         contents of test from lib/getloadavg.c.  It also contains
17954         suggestions by Bruno Haible in
17955         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
17956         * modules/getloadavg-tests: New file.
17957         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
17958         Do tests in the same order as they're needed for getloadavg.c.
17959         Omit setgid-related tests that generate symbols KMEM_GROUP,
17960         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
17961         Do only the tests that are needed to see whether the system has
17962         getloadavg, moving the other tests into ...
17963         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
17964         NLIST_NAME_UNION; nobody should be using it.  Do not define
17965         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
17966         relevant, as the user of this module shouldn't care how getloadavg
17967         is implemented.
17968
17969         getloadavg: omit unused var
17970         * lib/getloadavg.c (getloadavg): Omit unused local variable.
17971
17972 2011-02-15  Jim Meyering  <meyering@redhat.com>
17973
17974         doc: update users.txt
17975         * users.txt: Update iwhd's URL.
17976
17977 2011-02-13  Bruno Haible  <bruno@clisp.org>
17978
17979         Consistent macro naming for macros that use GCC __attribute__.
17980         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
17981         _ATTRIBUTE_NONNULL_.
17982         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
17983         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
17984         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
17985         ATTRIBUTE_DEPRECATED.
17986         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
17987         ATTRIBUTE_NORETURN.
17988         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
17989         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
17990         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
17991         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
17992         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
17993         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
17994         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
17995         ATTRIBUTE_SENTINEL.
17996         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
17997         ATTRIBUTE_RETURN_CHECK.
17998         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
17999         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
18000         ATTRIBUTE_NORETURN.
18001         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
18002         Reported by Paul Eggert.
18003
18004 2011-02-13  Bruno Haible  <bruno@clisp.org>
18005
18006         Don't interfere with a program's definition of __attribute__.
18007         * lib/argp.h (__attribute__): Remove definition.
18008         (_GL_ATTRIBUTE_FORMAT): New macro.
18009         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
18010         * lib/argp-fmtstream.h (__attribute__): Remove definition.
18011         (_GL_ATTRIBUTE_FORMAT): New macro.
18012         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
18013         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
18014         GCC 3 or newer.
18015         * lib/error.h (__attribute__): Remove definition.
18016         (_GL_ATTRIBUTE_FORMAT): New macro.
18017         (error, error_at_line): Use it.
18018         * lib/hash.h (__attribute__): Remove definition.
18019         (ATTRIBUTE_WUR): Update definition. Define always.
18020         * lib/openat.h (__attribute__): Remove definition.
18021         (ATTRIBUTE_NORETURN): Update definition. Define always.
18022         * lib/sigpipe-die.h (__attribute__): Remove definition.
18023         (ATTRIBUTE_NORETURN): Update definition. Define always.
18024         * lib/vasnprintf.h (__attribute__): Remove definition.
18025         (_GL_ATTRIBUTE_FORMAT): New macro.
18026         (asnprintf, vasnprintf): Use it.
18027         * lib/xalloc.h (__attribute__): Remove definition.
18028         (ATTRIBUTE_NORETURN): Update definition. Define always.
18029         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
18030         * lib/xmemdup0.h (__attribute__): Remove definition.
18031         (ATTRIBUTE_NORETURN): Update definition. Define always.
18032         * lib/xprintf.h (__attribute__): Remove definition.
18033         (_GL_ATTRIBUTE_FORMAT): New macro.
18034         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
18035         * lib/xstrtol.h (__attribute__): Remove definition.
18036         (ATTRIBUTE_NORETURN): Update definition. Define always.
18037         * lib/xvasprintf.h (__attribute__): Remove definition.
18038         (_GL_ATTRIBUTE_FORMAT): New macro.
18039         (xasprintf, xvasprintf): Use it.
18040         * tests/test-argmatch.c (__attribute__): Remove definition.
18041         (ATTRIBUTE_NORETURN): Update definition. Define always.
18042         * tests/test-exclude.c (__attribute__): Remove definition.
18043         (ATTRIBUTE_NORETURN): Update definition. Define always.
18044         Reported by Paul Eggert.
18045
18046 2011-02-13  Bruno Haible  <bruno@clisp.org>
18047
18048         mbrtowc: Add more tests for native Windows platforms.
18049         * tests/test-mbrtowc-w32-1.sh: New file.
18050         * tests/test-mbrtowc-w32-2.sh: New file.
18051         * tests/test-mbrtowc-w32-3.sh: New file.
18052         * tests/test-mbrtowc-w32-4.sh: New file.
18053         * tests/test-mbrtowc-w32-5.sh: New file.
18054         * tests/test-mbrtowc-w32.c: New file.
18055         * modules/mbrtowc-tests (Files): Add them.
18056         (Makefile.am): Arrange to run these tests.
18057         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
18058         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
18059
18060 2011-02-13  Bruno Haible  <bruno@clisp.org>
18061
18062         mbrtowc: Work around native Windows bug.
18063         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
18064         guess when no suitable locale for testing was found.
18065         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
18066
18067 2011-02-13  Bruno Haible  <bruno@clisp.org>
18068
18069         mbsinit: Work around mingw bug.
18070         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
18071         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
18072         Windows.
18073         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
18074
18075 2011-02-13  Bruno Haible  <bruno@clisp.org>
18076
18077         mbsinit: Don't crash for a NULL argument.
18078         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
18079         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
18080
18081 2011-02-13  Bruno Haible  <bruno@clisp.org>
18082
18083         Don't interfere with a program's definition of __attribute__.
18084         * lib/stdio.in.h (__attribute__): Remove definition.
18085         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
18086         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
18087         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
18088         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
18089         * lib/string.in.h (__attribute__): Remove definition.
18090         Reported by Paul Eggert.
18091
18092 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18093
18094         stdlib: don't get in the way of non-GCC __attribute__
18095         See thread starting at
18096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
18097         Revert previous stdlib change, installing the following instead:
18098         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
18099         to get in the way of a non-GCC compiler that supports __attribute__.
18100         (_GL_ATTRIBUTE_RETURN): New macro.
18101         (_Exit): Use it instead of __attribute__.
18102
18103 2011-02-12  Bruno Haible  <bruno@clisp.org>
18104
18105         quotearg test: Avoid test failure on mingw.
18106         * tests/test-quotearg.sh: Convert the locale identifier from native
18107         Windows syntax to Unix syntax.
18108
18109 2011-02-12  Bruno Haible  <bruno@clisp.org>
18110
18111         setlocale: Prefer gnulib's override over libintl's override.
18112         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
18113         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
18114         GNULIB_defined_setlocale is set.
18115
18116 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18117
18118         stdlib: support non-GCC __attribute__
18119
18120         Fix a serious and tricky problem encountered when attempting to
18121         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
18122         5.5, but it crashed due to memory corruption on Solaris 10 with
18123         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
18124         bits that are otherwise zero.  This tagging is optional inside
18125         Emacs but is preferred and is used when __attribute__ ((__aligned
18126         (8))) works, as it does with both recent-enough GCC and with Sun C
18127         5.11.  However, Sun C 5.11 is not GCC and does not #define
18128         __GNUC__ and __GNUC_MINOR__.
18129
18130         When I added the getloadavg module to Emacs, it brought in
18131         stdlib.in.h, which contained this fragment:
18132
18133            #ifndef __attribute__
18134            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
18135            #  define __attribute__(Spec)   /* empty */
18136            # endif
18137            #endif
18138
18139         When files that include <stdlib.h> were compiled with Sun C 5.11,
18140         the above code disabled __attribute__ ((__aligned (8))), which
18141         caused variables to not be properly aligned, which eventually led
18142         to the pointer corruption mentioned above.  (This was a bit hard
18143         to diagnose, unfortunately.)
18144
18145         Several "#define __attribute__(X) /* empty */" code snippets need
18146         to be eradicated from Gnulib to work with non-GCC compilers that
18147         support __attribute__.  The Autoconf way to do this is to test for
18148         each kind of attribute that we want support for, and selectively
18149         enable that in source code.
18150
18151         Fix this problem just for stdlib.h, by adding a test for the
18152         __noreturn__ attribute, and change stdlib.in.h to use that test
18153         when needed.  This technique can be easily generalized to the
18154         other *.in.h files and attributes, and a similar technique can be
18155         used for *.h and *.c files.  This patch is enough to solve the
18156         problem for Emacs + getloadavg, and I thought I'd publish it for
18157         feedback before undertaking further, similar fixes in other
18158         modules.
18159
18160         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
18161         because it's not needed for stdlib.h.  It merely substitutes the
18162         value directly into stdlib.h.  We may well need to #define it, or
18163         similar symbols, for other modules, but it's nice to also have an
18164         option to not #define it for applications like Emacs that do not
18165         need it.
18166
18167         * lib/stdlib.in.h (__attribute__): Do not #define.
18168         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
18169         be defined only if the _Exit module is also used.
18170         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
18171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
18172         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
18173         platforms.
18174         * modules/_Exit (Files): Add m4/attribute.m4.
18175         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
18176         * m4/attribute.m4: New file.
18177
18178 2011-02-12  Bruno Haible  <bruno@clisp.org>
18179
18180         wcsrtombs: Work around bug on native Windows.
18181         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
18182         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
18183         instead of len.
18184         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
18185
18186 2011-02-12  Bruno Haible  <bruno@clisp.org>
18187
18188         mbsrtowcs: Work around bug on native Windows.
18189         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
18190         against mingw bug.
18191         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
18192
18193 2011-02-12  Bruno Haible  <bruno@clisp.org>
18194
18195         Avoid setlocale bugs in tests.
18196         * modules/btowc (Dependencies): Add setlocale.
18197         * modules/c-strcase (Dependencies): Likewise.
18198         * modules/mbmemcasecmp (Dependencies): Likewise.
18199         * modules/mbmemcasecoll (Dependencies): Likewise.
18200         * modules/mbrtowc (Dependencies): Likewise.
18201         * modules/mbscasecmp (Dependencies): Likewise.
18202         * modules/mbscasestr (Dependencies): Likewise.
18203         * modules/mbschr (Dependencies): Likewise.
18204         * modules/mbscspn (Dependencies): Likewise.
18205         * modules/mbsinit (Dependencies): Likewise.
18206         * modules/mbsncasecmp (Dependencies): Likewise.
18207         * modules/mbsnrtowcs (Dependencies): Likewise.
18208         * modules/mbspbrk (Dependencies): Likewise.
18209         * modules/mbspcasecmp (Dependencies): Likewise.
18210         * modules/mbsrchr (Dependencies): Likewise.
18211         * modules/mbsrtowcs (Dependencies): Likewise.
18212         * modules/mbsspn (Dependencies): Likewise.
18213         * modules/mbsstr (Dependencies): Likewise.
18214         * modules/nl_langinfo (Dependencies): Likewise.
18215         * modules/quotearg (Dependencies): Likewise.
18216         * modules/unicase/locale-language (Dependencies): Likewise.
18217         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
18218         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
18219         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
18220         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
18221         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
18222         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
18223         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
18224         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
18225         * modules/vasnprintf-posix (Dependencies): Likewise.
18226         * modules/wcrtomb (Dependencies): Likewise.
18227         * modules/wcsnrtombs (Dependencies): Likewise.
18228         * modules/wcsrtombs (Dependencies): Likewise.
18229
18230 2011-02-12  Bruno Haible  <bruno@clisp.org>
18231
18232         setlocale: Workaround native Windows bug.
18233         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
18234         succeeds but sets LC_CTYPE to "C", report a failure.
18235         * tests/test-setlocale2.sh: New file.
18236         * tests/test-setlocale2.c: New file.
18237         * modules/setlocale-tests (Files): Add the new files.
18238         (Makefile.am): Enable test-setlocale2.sh test.
18239         * doc/posix-functions/setlocale.texi: Mention workaround.
18240
18241 2011-02-11  Bruno Haible  <bruno@clisp.org>
18242
18243         Tests for module 'setlocale'.
18244         * modules/setlocale-tests: New file.
18245         * tests/test-setlocale1.sh: New file.
18246         * tests/test-setlocale1.c: New file.
18247
18248         New module 'setlocale'.
18249         * lib/locale.in.h (setlocale): New declaration.
18250         * lib/setlocale.c: New file, based on
18251         gettext/gettext-runtime/intl/setlocale.c.
18252         * m4/setlocale.m4: New file.
18253         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
18254         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
18255         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
18256         REPLACE_SETLOCALE.
18257         * modules/setlocale: New file.
18258         * tests/test-locale-c++.cc: Test the declaration of setlocale.
18259         * doc/posix-functions/setlocale.texi: Mention the new module.
18260
18261 2011-02-11  Bruno Haible  <bruno@clisp.org>
18262
18263         Prepare for locale dependent tests on mingw.
18264         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
18265         because it has the wrong locale encoding.
18266         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
18267         French_France.1252 instead of "fr".
18268         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
18269         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
18270         because it has the wrong locale encoding.
18271         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
18272         native Windows, try Turkish_Turkey.65001.
18273         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
18274         Chinese_China.54936.
18275
18276         Prepare for locale dependent tests on mingw.
18277         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
18278         differently.
18279         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
18280         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
18281         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18282         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18283
18284 2011-02-11  Eric Blake  <eblake@redhat.com>
18285
18286         strptime: avoid compiler warnings
18287         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
18288         compiler warnings about dead code.
18289         Reported by Daniel P. Berrange.
18290
18291 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
18292
18293         doc: update users.txt
18294         * users.txt: Add rcs.
18295
18296 2011-02-10  John W. Eaton  <jwe@gnu.org>
18297
18298         doc: update users.txt
18299         * users.txt: Add octave.
18300
18301 2011-02-10  Jim Meyering  <meyering@redhat.com>
18302
18303         doc: update users.txt
18304         * users.txt: Add iwhd.
18305
18306 2011-02-09  Bruno Haible  <bruno@clisp.org>
18307
18308         gnulib-tool: Make copyright notice adjustment more robust.
18309         * gnulib-tool (func_import): In sed_transform_main_lib_file,
18310         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
18311         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
18312         License".
18313         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
18314
18315 2011-02-06  Bruno Haible  <bruno@clisp.org>
18316
18317         New module 'towctrans'.
18318         * modules/towctrans: New file.
18319         * lib/wctype.in.h (towctrans): New declaration.
18320         * lib/towctrans.c: New file.
18321         * lib/towctrans-impl.h: New file.
18322         * m4/towctrans.m4: New file.
18323         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
18324         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
18325         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
18326         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
18327         * doc/posix-functions/towctrans.texi: Mention the new module.
18328
18329 2011-02-06  Bruno Haible  <bruno@clisp.org>
18330
18331         New module 'wctrans'.
18332         * modules/wctrans: New file.
18333         * lib/wctype.in.h (wctrans): New declaration.
18334         * lib/wctrans.c: New file.
18335         * lib/wctrans-impl.h: New file.
18336         * m4/wctrans.m4: New file.
18337         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
18338         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
18339         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
18340         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
18341         * doc/posix-functions/wctrans.texi: Mention the new module.
18342
18343 2011-02-06  Bruno Haible  <bruno@clisp.org>
18344
18345         New module 'iswctype'.
18346         * modules/iswctype: New file.
18347         * lib/wctype.in.h (iswctype): New declaration.
18348         * lib/iswctype.c: New file.
18349         * lib/iswctype-impl.h: New file.
18350         * m4/iswctype.m4: New file.
18351         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
18352         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
18353         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
18354         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
18355         * doc/posix-functions/iswctype.texi: Mention the new module and the
18356         HP-UX 11.00 problem.
18357
18358 2011-02-06  Bruno Haible  <bruno@clisp.org>
18359
18360         New module 'wctype'.
18361         * modules/wctype: Change to represent the wctype() substitute.
18362         * lib/wctype.in.h (wctype): New declaration.
18363         * lib/wctype.c: New file.
18364         * lib/wctype-impl.h: New file.
18365         * m4/wctype.m4: New file.
18366         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
18367         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
18368         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
18369         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
18370         * doc/posix-functions/wctype.texi: Mention the new module and the
18371         HP-UX 11.00 problem.
18372
18373 2011-02-06  Bruno Haible  <bruno@clisp.org>
18374
18375         wctype-h: Ensure wctype_t and wctrans_t are defined.
18376         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
18377         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
18378         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
18379         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
18380         HAVE_WCTRANS_T.
18381         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
18382
18383 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
18384
18385         flock: fix license typo
18386
18387         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
18388         omitted.
18389
18390 2011-02-08  Bruno Haible  <bruno@clisp.org>
18391
18392         Split large sed scripts, for HP-UX sed.
18393         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
18394         to avoid HP-UX limit of 99 commands, in the near future.
18395         * modules/stdlib (Makefile.am): Likewise.
18396         * modules/unistd (Makefile.am): Likewise.
18397         * modules/wchar (Makefile.am): Likewise.
18398         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18399         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
18400         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
18401
18402 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
18403             Bruno Haible  <bruno@clisp.org>
18404
18405         stdlib: improve random_r modularization
18406         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
18407         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
18408         you also need the random_r module to get this material right.
18409         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
18410         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
18411         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
18412
18413 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
18414
18415         stdlib: don't depend on stdint
18416         * lib/stdlib.in.h: Don't include <stdint.h> merely because
18417         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
18418         be independent of whether stdint.h is needed.
18419         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
18420         here, instead of ...
18421         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
18422         struct random_data should be using the random_r module, not just
18423         the stdlib module (which wouldn't make sense: what package needs
18424         just struct random_data without also needing random_r?).
18425         * modules/stdlib (Depends-on): Remove stdint.
18426
18427         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
18428         See the thread rooted at
18429         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
18430         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
18431         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
18432         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
18433         __VMS)); previously it was always included (via fcntl--.h).
18434         (getloadavg): Do not use c_strtod.  Instead, approximate it by
18435         hand; this is good enough for load averages.  Also, do not use
18436         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
18437         flags directly if available and don't bother otherwise.  (Packages
18438         that need the extra reliability should use the modules that define
18439         these flags on older platforms that lack them.)
18440         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
18441         fcntl-safer.
18442
18443 2011-02-08  Jim Meyering  <meyering@redhat.com>
18444
18445         di-set.h, ino-map.h: add multiple-inclusion guard
18446         Technically, the guard is required only for ino-map.h, due to its
18447         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
18448         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
18449         * lib/ino-map.h: Likewise.
18450
18451 2011-02-06  Bruno Haible  <bruno@clisp.org>
18452
18453         iswblank: Ensure declaration on glibc systems.
18454         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
18455         * modules/iswblank (Dependencies): Add 'extensions'.
18456         * doc/posix-functions/iswblank.texi: Document the glibc problem.
18457
18458 2011-02-06  Bruno Haible  <bruno@clisp.org>
18459
18460         New module 'iswblank'.
18461         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
18462         * modules/iswblank: New file.
18463         * modules/wctype-h (Files): Remove lib/iswblank.c.
18464         (Makefile.am): Substitute GNULIB_ISWBLANK.
18465         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
18466         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
18467         (gl_WCTYPE_H_DEFAULTS): New macro.
18468         (gl_WCTYPE_H): Require it. Remove iswblank related code.
18469         * modules/iswblank-tests: New file.
18470         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
18471         * tests/test-wctype-h.c (main): Remove iswblank tests.
18472         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
18473         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
18474         of 'wctype-h'.
18475         * NEWS: Mention the change.
18476         * modules/mbchar (Depends-on): Add iswblank.
18477
18478 2011-02-08  Bruno Haible  <bruno@clisp.org>
18479
18480         di-set tests: Refactor.
18481         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
18482         unnecessary includes.
18483         (ASSERT): Remove macro.
18484         (main): Make C90 compliant by avoiding variable declaration after
18485         statement.
18486         * modules/di-set-tests (Files): Add tests/macros.h.
18487
18488 2011-02-08  Bruno Haible  <bruno@clisp.org>
18489
18490         ino-map tests: Refactor.
18491         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
18492         unnecessary includes.
18493         (ASSERT): Remove macro.
18494         (main): Make C90 compliant by avoiding variable declaration after
18495         statement.
18496         * modules/ino-map-tests (Files): Add tests/macros.h.
18497
18498 2011-02-08  Jim Meyering  <meyering@redhat.com>
18499
18500         di-set: add "const" to a cast
18501         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
18502         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
18503
18504 2011-02-06  Bruno Haible  <bruno@clisp.org>
18505
18506         Rename module 'wctype' to 'wctype-h'.
18507         * modules/wctype-h: Renamed from modules/wctype.
18508         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
18509         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
18510         (Files, Depends-on, Makefile.am): Update.
18511         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
18512         (Files, Makefile.am): Update.
18513         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
18514         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
18515         * doc/posix-headers/wctype.texi: Update.
18516         * doc/posix-functions/iswalnum.texi: Update.
18517         * doc/posix-functions/iswalpha.texi: Update.
18518         * doc/posix-functions/iswblank.texi: Update.
18519         * doc/posix-functions/iswcntrl.texi: Update.
18520         * doc/posix-functions/iswdigit.texi: Update.
18521         * doc/posix-functions/iswgraph.texi: Update.
18522         * doc/posix-functions/iswlower.texi: Update.
18523         * doc/posix-functions/iswprint.texi: Update.
18524         * doc/posix-functions/iswpunct.texi: Update.
18525         * doc/posix-functions/iswspace.texi: Update.
18526         * doc/posix-functions/iswupper.texi: Update.
18527         * doc/posix-functions/iswxdigit.texi: Update.
18528         * doc/posix-functions/towlower.texi: Update.
18529         * doc/posix-functions/towupper.texi: Update.
18530         * NEWS: Mention the change.
18531         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
18532         * modules/mbchar (Dependencies): Likewise.
18533         * modules/mbswidth (Dependencies): Likewise.
18534         * modules/quotearg (Dependencies): Likewise.
18535         * modules/regex (Dependencies): Likewise.
18536         * modules/wcscasecmp (Dependencies): Likewise.
18537         * modules/wcsncasecmp (Dependencies): Likewise.
18538         * modules/wcwidth (Dependencies): Likewise.
18539
18540 2011-02-06  Bruno Haible  <bruno@clisp.org>
18541
18542         New module 'wcswidth'.
18543         * modules/wcswidth: New file.
18544         * lib/wchar.in.h (wcswidth): New declaration.
18545         * lib/wcswidth.c: New file.
18546         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
18547         * m4/wcswidth.m4: New file.
18548         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
18549         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
18550         REPLACE_WCSWIDTH.
18551         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
18552         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
18553         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
18554         * doc/posix-functions/wcswidth.texi: Mention the new module.
18555
18556 2011-02-06  Bruno Haible  <bruno@clisp.org>
18557
18558         New module 'wcstok'.
18559         * modules/wcstok: New file.
18560         * lib/wchar.in.h (wcstok): New declaration.
18561         * lib/wcstok.c: New file.
18562         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
18563         * m4/wcstok.m4: New file.
18564         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
18565         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
18566         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
18567         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
18568         * doc/posix-functions/wcstok.texi: Mention the new module.
18569
18570 2011-02-06  Bruno Haible  <bruno@clisp.org>
18571
18572         New module 'wcsstr'.
18573         * modules/wcsstr: New file.
18574         * lib/wchar.in.h (wcsstr): New declaration.
18575         * lib/wcsstr.c: New file.
18576         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
18577         * m4/wcsstr.m4: New file.
18578         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
18579         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
18580         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
18581         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
18582         * doc/posix-functions/wcsstr.texi: Mention the new module.
18583
18584 2011-02-06  Bruno Haible  <bruno@clisp.org>
18585
18586         New module 'wcspbrk'.
18587         * modules/wcspbrk: New file.
18588         * lib/wchar.in.h (wcspbrk): New declaration.
18589         * lib/wcspbrk.c: New file.
18590         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
18591         * m4/wcspbrk.m4: New file.
18592         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
18593         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
18594         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
18595         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
18596         * doc/posix-functions/wcspbrk.texi: Mention the new module.
18597
18598 2011-02-06  Bruno Haible  <bruno@clisp.org>
18599
18600         New module 'wcsspn'.
18601         * modules/wcsspn: New file.
18602         * lib/wchar.in.h (wcsspn): New declaration.
18603         * lib/wcsspn.c: New file.
18604         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
18605         * m4/wcsspn.m4: New file.
18606         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
18607         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
18608         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
18609         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
18610         * doc/posix-functions/wcsspn.texi: Mention the new module.
18611
18612 2011-02-06  Bruno Haible  <bruno@clisp.org>
18613
18614         New module 'wcscspn'.
18615         * modules/wcscspn: New file.
18616         * lib/wchar.in.h (wcscspn): New declaration.
18617         * lib/wcscspn.c: New file.
18618         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
18619         * m4/wcscspn.m4: New file.
18620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
18621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
18622         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
18623         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
18624         * doc/posix-functions/wcscspn.texi: Mention the new module.
18625
18626 2011-02-06  Bruno Haible  <bruno@clisp.org>
18627
18628         New module 'wcsrchr'.
18629         * modules/wcsrchr: New file.
18630         * lib/wchar.in.h (wcsrchr): New declaration.
18631         * lib/wcsrchr.c: New file.
18632         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
18633         * m4/wcsrchr.m4: New file.
18634         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
18635         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
18636         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
18637         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
18638         * doc/posix-functions/wcsrchr.texi: Mention the new module.
18639
18640 2011-02-06  Bruno Haible  <bruno@clisp.org>
18641
18642         New module 'wcschr'.
18643         * modules/wcschr: New file.
18644         * lib/wchar.in.h (wcschr): New declaration.
18645         * lib/wcschr.c: New file.
18646         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
18647         * m4/wcschr.m4: New file.
18648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
18649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
18650         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
18651         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
18652         * doc/posix-functions/wcschr.texi: Mention the new module.
18653
18654 2011-02-06  Bruno Haible  <bruno@clisp.org>
18655
18656         New module 'wcsdup'.
18657         * modules/wcsdup: New file.
18658         * lib/wchar.in.h (wcsdup): New declaration.
18659         * lib/wcsdup.c: New file.
18660         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
18661         * m4/wcsdup.m4: New file.
18662         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
18663         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
18664         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
18665         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
18666         * doc/posix-functions/wcsdup.texi: Mention the new module.
18667
18668 2011-02-06  Bruno Haible  <bruno@clisp.org>
18669
18670         New module 'wcsxfrm'.
18671         * modules/wcsxfrm: New file.
18672         * lib/wchar.in.h (wcsxfrm): New declaration.
18673         * lib/wcsxfrm.c: New file.
18674         * lib/wcsxfrm-impl.h: New file.
18675         * m4/wcsxfrm.m4: New file.
18676         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
18677         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
18678         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
18679         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
18680         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
18681
18682 2011-02-06  Bruno Haible  <bruno@clisp.org>
18683
18684         New module 'wcscoll'.
18685         * modules/wcscoll: New file.
18686         * lib/wchar.in.h (wcscoll): New declaration.
18687         * lib/wcscoll.c: New file.
18688         * lib/wcscoll-impl.h: New file.
18689         * m4/wcscoll.m4: New file.
18690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
18691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
18692         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
18693         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
18694         * doc/posix-functions/wcscoll.texi: Mention the new module.
18695
18696 2011-02-06  Bruno Haible  <bruno@clisp.org>
18697
18698         New module 'wcsncasecmp'.
18699         * modules/wcsncasecmp: New file.
18700         * lib/wchar.in.h (wcsncasecmp): New declaration.
18701         * lib/wcsncasecmp.c: New file.
18702         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
18703         * m4/wcsncasecmp.m4: New file.
18704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
18705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
18706         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
18707         HAVE_WCSNCASECMP.
18708         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
18709         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
18710
18711 2011-02-06  Bruno Haible  <bruno@clisp.org>
18712
18713         New module 'wcscasecmp'.
18714         * modules/wcscasecmp: New file.
18715         * lib/wchar.in.h (wcscasecmp): New declaration.
18716         * lib/wcscasecmp.c: New file.
18717         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
18718         * m4/wcscasecmp.m4: New file.
18719         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
18720         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
18721         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
18722         HAVE_WCSCASECMP.
18723         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
18724         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
18725
18726 2011-02-05  Bruno Haible  <bruno@clisp.org>
18727
18728         New module 'wcsncmp'.
18729         * modules/wcsncmp: New file.
18730         * lib/wchar.in.h (wcsncmp): New declaration.
18731         * lib/wcsncmp.c: New file.
18732         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
18733         * m4/wcsncmp.m4: New file.
18734         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
18735         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
18736         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
18737         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
18738         * doc/posix-functions/wcsncmp.texi: Mention the new module.
18739
18740 2011-02-05  Bruno Haible  <bruno@clisp.org>
18741
18742         New module 'wcscmp'.
18743         * modules/wcscmp: New file.
18744         * lib/wchar.in.h (wcscmp): New declaration.
18745         * lib/wcscmp.c: New file.
18746         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
18747         * m4/wcscmp.m4: New file.
18748         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
18749         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
18750         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
18751         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
18752         * doc/posix-functions/wcscmp.texi: Mention the new module.
18753
18754 2011-02-05  Bruno Haible  <bruno@clisp.org>
18755
18756         New module 'wcsncat'.
18757         * modules/wcsncat: New file.
18758         * lib/wchar.in.h (wcsncat): New declaration.
18759         * lib/wcsncat.c: New file.
18760         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
18761         * m4/wcsncat.m4: New file.
18762         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
18763         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
18764         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
18765         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
18766         * doc/posix-functions/wcsncat.texi: Mention the new module.
18767
18768 2011-02-05  Bruno Haible  <bruno@clisp.org>
18769
18770         New module 'wcscat'.
18771         * modules/wcscat: New file.
18772         * lib/wchar.in.h (wcscat): New declaration.
18773         * lib/wcscat.c: New file.
18774         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
18775         * m4/wcscat.m4: New file.
18776         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
18777         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
18778         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
18779         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
18780         * doc/posix-functions/wcscat.texi: Mention the new module.
18781
18782 2011-02-05  Bruno Haible  <bruno@clisp.org>
18783
18784         New module 'wcpncpy'.
18785         * modules/wcpncpy: New file.
18786         * lib/wchar.in.h (wcpncpy): New declaration.
18787         * lib/wcpncpy.c: New file.
18788         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
18789         * m4/wcpncpy.m4: New file.
18790         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
18791         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
18792         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
18793         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
18794         * doc/posix-functions/wcpncpy.texi: Mention the new module.
18795
18796 2011-02-05  Bruno Haible  <bruno@clisp.org>
18797
18798         New module 'wcsncpy'.
18799         * modules/wcsncpy: New file.
18800         * lib/wchar.in.h (wcsncpy): New declaration.
18801         * lib/wcsncpy.c: New file.
18802         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
18803         * m4/wcsncpy.m4: New file.
18804         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
18805         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
18806         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
18807         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
18808         * doc/posix-functions/wcsncpy.texi: Mention the new module.
18809
18810 2011-02-05  Bruno Haible  <bruno@clisp.org>
18811
18812         New module 'wcpcpy'.
18813         * modules/wcpcpy: New file.
18814         * lib/wchar.in.h (wcpcpy): New declaration.
18815         * lib/wcpcpy.c: New file.
18816         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
18817         * m4/wcpcpy.m4: New file.
18818         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
18819         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
18820         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
18821         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
18822         * doc/posix-functions/wcpcpy.texi: Mention the new module.
18823
18824 2011-02-05  Bruno Haible  <bruno@clisp.org>
18825
18826         New module 'wcscpy'.
18827         * modules/wcscpy: New file.
18828         * lib/wchar.in.h (wcscpy): New declaration.
18829         * lib/wcscpy.c: New file.
18830         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
18831         * m4/wcscpy.m4: New file.
18832         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
18833         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
18834         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
18835         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
18836         * doc/posix-functions/wcscpy.texi: Mention the new module.
18837
18838 2011-02-05  Bruno Haible  <bruno@clisp.org>
18839
18840         New module 'wcsnlen'.
18841         * modules/wcsnlen: New file.
18842         * lib/wchar.in.h (wcsnlen): New declaration.
18843         * lib/wcsnlen.c: New file.
18844         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
18845         * m4/wcsnlen.m4: New file.
18846         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
18847         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
18848         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
18849         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
18850         * doc/posix-functions/wcsnlen.texi: Mention the new module.
18851
18852 2011-02-05  Bruno Haible  <bruno@clisp.org>
18853
18854         New module 'wcslen'.
18855         * modules/wcslen: New file.
18856         * lib/wchar.in.h (wcslen): New declaration.
18857         * lib/wcslen.c: New file.
18858         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
18859         * m4/wcslen.m4: New file.
18860         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
18861         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
18862         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
18863         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
18864         * doc/posix-functions/wcslen.texi: Mention the new module.
18865
18866 2011-02-05  Bruno Haible  <bruno@clisp.org>
18867
18868         New module 'wmemset'.
18869         * modules/wmemset: New file.
18870         * lib/wchar.in.h (wmemset): New declaration.
18871         * lib/wmemset.c: New file.
18872         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
18873         * m4/wmemset.m4: New file.
18874         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
18875         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
18876         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
18877         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
18878         * doc/posix-functions/wmemset.texi: Mention the new module.
18879
18880 2011-02-05  Bruno Haible  <bruno@clisp.org>
18881
18882         New module 'wmemmove'.
18883         * modules/wmemmove: New file.
18884         * lib/wchar.in.h (wmemmove): New declaration.
18885         * lib/wmemmove.c: New file.
18886         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
18887         * m4/wmemmove.m4: New file.
18888         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
18889         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
18890         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
18891         HAVE_WMEMMOVE.
18892         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
18893         * doc/posix-functions/wmemmove.texi: Mention the new module.
18894
18895 2011-02-05  Bruno Haible  <bruno@clisp.org>
18896
18897         New module 'wmemcpy'.
18898         * modules/wmemcpy: New file.
18899         * lib/wchar.in.h (wmemcpy): New declaration.
18900         * lib/wmemcpy.c: New file.
18901         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
18902         * m4/wmemcpy.m4: New file.
18903         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
18904         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
18905         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
18906         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
18907         * doc/posix-functions/wmemcpy.texi: Mention the new module.
18908
18909 2011-02-05  Bruno Haible  <bruno@clisp.org>
18910
18911         New module 'wmemcmp'.
18912         * modules/wmemcmp: New file.
18913         * lib/wchar.in.h (wmemcmp): New declaration.
18914         * lib/wmemcmp.c: New file.
18915         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
18916         * m4/wmemcmp.m4: New file.
18917         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
18918         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
18919         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
18920         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
18921         * doc/posix-functions/wmemcmp.texi: Mention the new module.
18922
18923 2011-02-07  Jim Meyering  <meyering@redhat.com>
18924
18925         di-set, ino-map: new modules, from coreutils
18926         * lib/di-set.c: New file.
18927         * lib/di-set.h: Likewise.
18928         * lib/ino-map.c: Likewise.
18929         * lib/ino-map.h: Likewise.
18930         * modules/di-set: Likewise.
18931         * modules/di-set-tests: Likewise.
18932         * modules/ino-map: Likewise.
18933         * modules/ino-map-tests: Likewise.
18934         * tests/test-di-set.c: Likewise.
18935         * tests/test-ino-map.c: Likewise.
18936
18937 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
18938
18939         getloadavg: merge minor changes from Emacs
18940
18941         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
18942         (getloadavg): Use memset, not bzero.
18943
18944         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
18945         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18946         clash (bug#86).
18947
18948 2010-11-14  Bruno Haible  <bruno@clisp.org>
18949
18950         Allow multiple gnulib generated replacements to coexist.
18951         * lib/getopt.in.h (struct option): Avoid identical redefinition.
18952         * lib/inttypes.in.h (imaxdiv_t): Likewise.
18953         * lib/langinfo.in.h (nl_item): Likewise.
18954         * lib/math.in.h (_NaN, NAN): Likewise.
18955         * lib/netdb.in.h (struct addrinfo): Likewise.
18956         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
18957         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
18958         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
18959         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
18960         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
18961         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
18962         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
18963         pthread_mutexattr_init, pthread_mutexattr_settype,
18964         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
18965         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
18966         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
18967         pthread_spin_trylock, pthread_spin_unlock): Likewise.
18968         * lib/sched.in.h (struct sched_param): Likewise.
18969         * lib/se-selinux.in.h (security_class_t, security_context_t,
18970         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
18971         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
18972         lsetfilecon, fsetfilecon, security_check_context,
18973         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
18974         Likewise.
18975         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
18976         Likewise.
18977         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
18978         _gl_function_taking_int_returning_void_t, union sigval,
18979         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
18980         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
18981         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18982         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
18983         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
18984         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
18985         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
18986         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
18987         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
18988         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
18989         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
18990         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
18991         socklen_t, rpl_fd_isset): Likewise.
18992         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
18993         * lib/sys_time.in.h (struct timeval): Likewise.
18994         * lib/sys_times.in.h (struct tms): Likewise.
18995         * lib/sys_utsname.in.h (struct utsname):
18996         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
18997         * lib/unistd.in.h (getpagesize): Likewise.
18998         * lib/wchar.in.h (mbstate_t): Likewise.
18999         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19000         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
19001         towlower, towupper): Likewise.
19002         Reported by Sam Steingold <sds@gnu.org>.
19003
19004 2011-02-05  Eric Blake  <eblake@redhat.com>
19005
19006         unsetenv: work around Haiku issues
19007         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
19008         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
19009
19010 2010-12-30  Bruce Korb  <bkorb@gnu.org>
19011
19012         libposix: avoid calling error() within libposix
19013         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
19014         is defined.
19015
19016 2011-02-05  Eric Blake  <eblake@redhat.com>
19017
19018         strerror_r-posix: port to cygwin
19019         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
19020         implementation.
19021         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
19022         * tests/test-strerror_r.c (main): Fix test.
19023         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19024         issue.
19025
19026 2011-02-05  Bruno Haible  <bruno@clisp.org>
19027
19028         New module 'wmemchr'.
19029         * modules/wmemchr: New file.
19030         * lib/wchar.in.h (wmemchr): New declaration.
19031         * lib/wmemchr.c: New file.
19032         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
19033         * m4/wmemchr.m4: New file.
19034         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
19035         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
19036         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
19037         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
19038         * doc/posix-functions/wmemchr.texi: Mention the new module.
19039
19040 2011-02-04  Eric Blake  <eblake@redhat.com>
19041
19042         fdopendir: detect FreeBSD bug
19043         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
19044         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
19045
19046 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19047
19048         stdbool: do not define HAVE_STDBOOL_H
19049         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
19050         AC_HEADER_STDBOOL.  All uses changed.  Do not define
19051         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
19052         imported from the latest Autoconf git.  It was motivated by Emacs,
19053         which uses gnulib but does not need HAVE_STDBOOL_H.
19054
19055 2011-02-04  Bruno Haible  <bruno@clisp.org>
19056
19057         wcsnrtombs: Prepare for new module wwcsnrtombs.
19058         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
19059         * lib/wcsnrtombs.c: Include it.
19060         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
19061
19062         wcsrtombs: Prepare for new module wwcsrtombs.
19063         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
19064         * lib/wcsrtombs.c: Include it.
19065         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
19066
19067         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
19068         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
19069         * lib/mbsnrtowcs.c: Include it.
19070         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
19071
19072         mbsrtowcs: Prepare for new module mbsrtowwcs.
19073         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
19074         * lib/mbsrtowcs.c: Include it.
19075         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
19076
19077 2011-02-04  Bruno Haible  <bruno@clisp.org>
19078
19079         vasnprintf: Reduce use of malloc for small format strings.
19080         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
19081         (arguments): Add room for the first 7 arguments.
19082         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
19083         (char_directives, u8_directives, u16_directives, u32_directives): Add
19084         room for the first 7 directives.
19085         * lib/printf-parse.c: Include <string.h>.
19086         (PRINTF_PARSE): Change memory handling code so that it uses the first
19087         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
19088         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
19089         Reported by Pádraig Brady <P@draigbrady.com>.
19090
19091 2011-01-31  Eric Blake  <eblake@redhat.com>
19092
19093         dup2: work around Haiku bug
19094         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
19095         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
19096         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19097         * tests/test-dup2.c (main): Enhance test.
19098
19099 2011-01-31  Simon Josefsson  <simon@josefsson.org>
19100
19101         doc: off_t is not available in eglibc 2.11.2 stdio.h.
19102         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
19103         declared by eglibc 2.11.2.
19104         * lib/stdio.in.h: Likewise.
19105
19106 2011-01-31  Eric Blake  <eblake@redhat.com>
19107
19108         ignore-value: add missing test dependency
19109         * tests/test-ignore-value.c: Revert previous change; stdio.h
19110         provides off_t.
19111         * modules/ignore-value-tests (Depends-on): Add missing dependency.
19112
19113 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19114
19115         mktime: clarify long_int width checking
19116         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
19117         the top level, to make it clearer that the assumption about
19118         long_int width is being checked.  See
19119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
19120
19121 2011-01-30  Simon Josefsson  <simon@josefsson.org>
19122
19123         ignore-value: Fix self-test.
19124         * tests/test-ignore-value.c: Include sys/types.h for off_t.
19125
19126 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19127
19128         TYPE_MAXIMUM: avoid theoretically undefined behavior
19129         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
19130         negative number, which the C Standard says has undefined behavior.
19131         In practice this is not a problem, but might as well do it by the book.
19132         Reported by Rich Felker and Eric Blake; see
19133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
19134         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
19135         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19136         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19137         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
19138         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19139         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
19140
19141         mktime: #undef mktime before #defining it
19142         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
19143
19144         mktime: systematically normalize tm_isdst comparisons
19145         * lib/mktime.c (isdst_differ): New function.
19146         (__mktime_internal): Use it systematically for all isdst comparisons.
19147         This completes the fix for libc BZ #6723, and removes the need for
19148         normalizing tm_isdst.  See
19149         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
19150         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
19151
19152         mktime: fix some integer overflow issues and sidestep the rest
19153
19154         This was prompted by a bug report by Benjamin Lindner for MinGW
19155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
19156         His bug is due to signed integer overflow (0 - INT_MIN), and I
19157         I scanned through mktime.c looking for other integer overflow
19158         problems, fixing all the bugs I found.
19159
19160         Although the C Standard says the resulting code is still not safe
19161         in the presence of integer overflow, in practice it should be good
19162         enough for all real-world two's-complement implementations, except
19163         for debugging environments that deliberately trap on integer
19164         overflow (e.g., gcc -ftrapv).
19165
19166         * lib/mktime.c (WRAPV): New macro.
19167         (SHR): Also check that long_int and time_t shift right in the
19168         usual way, before using the fast-but-unportable method.
19169         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
19170         used.  The code already assumed two's complement, so there's
19171         no need to test for alternatives.  All uses removed.
19172         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
19173         the C standard.  Problem reported by Rich Felker in
19174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
19175         (twos_complement_arithmetic): Also check long_int and time_t.
19176         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
19177         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
19178         (__mktime_internal): Avoid integer overflow with unary subtraction
19179         in two instances where -1 - X is an adequate replacement for -X,
19180         since the calculations are approximate.
19181
19182 2011-01-29  Eric Blake  <eblake@redhat.com>
19183
19184         mktime: avoid infinite loop
19185         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
19186         type; behavior is still undefined but portable to all known targets.
19187         Reported by Rich Felker.
19188
19189 2011-01-29  Simon Josefsson  <simon@josefsson.org>
19190
19191         rename, unlink, same-inode: Relicense.
19192         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
19193         * modules/unlink (License): Likewise.
19194         * modules/same-inode (License): Likewise.
19195
19196 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19197
19198         mktime: avoid problems on NetBSD 5 / i386
19199         * lib/mktime.c (long_int): New type.  This works around a problem
19200         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
19201         but time_t is 64 bits, and where I expect the existing code is
19202         wrong in some cases.
19203         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
19204         (ydhms_diff): Bring back the compile-time check for wide-enough
19205         year and yday.
19206
19207         mktime: fix misspelling in comment
19208         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
19209         This merges all recent glibc changes of importance.
19210
19211 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19212
19213         move-if-change: cope with concurrent mv of identical file.
19214         * build-aux/move-if-change (CMPPROG): Accept environment
19215         variable as an override for `cmp'.
19216         (usage): Document CMPPROG.
19217         Adjust comparison to drop stdout.  Cope with failure of mv if
19218         the target file exists and is identical to the source, for
19219         parallel builds.
19220         Report from H.J. Lu against binutils in PR binutils/12283.
19221
19222 2011-01-28  Bruce Korb  <bkorb@gnu.org>
19223
19224         * users.txt: Mention sharutils.
19225
19226 2011-01-28  Simon Josefsson  <simon@josefsson.org>
19227
19228         * users.txt: Mention OATH Toolkit.
19229
19230 2011-01-27  Bruno Haible  <bruno@clisp.org>
19231
19232         Prepare for supporting FreeBSD 10.
19233         * build-aux/config.libpath: Remove handling of freebsd1*.
19234
19235 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
19236
19237         Prepare for supporting FreeBSD 10.
19238         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
19239         match FreeBSD 10.0.
19240
19241 2011-01-27  Bruno Haible  <bruno@clisp.org>
19242
19243         vma-iter, get-rusage-as: Add OpenBSD support.
19244         * modules/vma-iter (configure.ac): Test for mquery.
19245         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
19246         * lib/vma-iter.c: Include <sys/mman.h>.
19247         (vma_iterate): Add an implementation based on mquery().
19248         * lib/resource-ext.h (get_rusage_as): Update comments.
19249         * lib/get-rusage-as.c: Likewise.
19250         * lib/get-rusage-data.c: Likewise.
19251
19252 2011-01-26  Karl Berry  <karl@gnu.org>
19253
19254         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
19255         variables to make it easier to override the makeinfo program used.
19256
19257 2011-01-26  Eric Blake  <eblake@redhat.com>
19258
19259         fcntl: work around Haiku F_DUPFD bugs
19260         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
19261         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
19262         cloexec bit on duplication.
19263         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
19264
19265 2011-01-26  Bruno Haible  <bruno@clisp.org>
19266
19267         Enable memory leak tests on AIX.
19268         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
19269         * tests/test-fprintf-posix3.c (main): Likewise.
19270
19271 2011-01-26  Bruno Haible  <bruno@clisp.org>
19272
19273         Tests for module 'get-rusage-data'.
19274         * modules/get-rusage-data-tests: New file.
19275         * tests/test-get-rusage-data.c: New file.
19276
19277         New module 'get-rusage-data'.
19278         * lib/resource-ext.h (get_rusage_data): New declaration.
19279         * lib/get-rusage-data.c: New file.
19280         * modules/get-rusage-data: New file.
19281
19282 2011-01-25  Bruno Haible  <bruno@clisp.org>
19283
19284         get-rusage-as: Allow for easier testing.
19285         * lib/resource-ext.h (get_rusage_as): Add comment.
19286         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
19287         (main): New function for interactive testing.
19288
19289 2011-01-25  Bruno Haible  <bruno@clisp.org>
19290
19291         vma-iter: Treat Haiku like BeOS.
19292         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
19293         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
19294
19295 2011-01-25  Eric Blake  <eblake@redhat.com>
19296
19297         c-stack: fix regression on cygwin when libsigsegv is present
19298         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
19299
19300 2011-01-24  Bruno Haible  <bruno@clisp.org>
19301
19302         vma-iter: Avoid empty intervals.
19303         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
19304         on an empty interval.
19305
19306 2011-01-24  Jim Meyering  <meyering@redhat.com>
19307
19308         u64: remove unnecessary #include
19309         * lib/u64.h: Don't include <stddef.h>.  It was not used.
19310
19311 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19312
19313         Allow the user to avoid the HAVE_RAW_DECL_* macros.
19314         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
19315
19316 2011-01-23  Bruno Haible  <bruno@clisp.org>
19317
19318         New module 'vma-iter'.
19319         * lib/vma-iter.h: New file.
19320         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
19321         * modules/vma-iter: New file.
19322         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
19323         for get_rusage_as_via_iterator.
19324         (vma_iterate_callback): New function.
19325         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
19326         * modules/get-rusage-as (Depends-on): Add vma-iter.
19327
19328 2011-01-23  Bruno Haible  <bruno@clisp.org>
19329
19330         uninorm: Tweak includes.
19331         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
19332         Reported by Jim Meyering.
19333
19334 2011-01-23  Bruno Haible  <bruno@clisp.org>
19335
19336         get-rusage-as: Improve on NetBSD.
19337         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
19338         /proc, like on FreeBSD.
19339
19340 2011-01-23  Jim Meyering  <meyering@redhat.com>
19341
19342         xreadlink.h: remove unnecessary #include
19343         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
19344
19345         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
19346         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
19347
19348 2011-01-23  Bruno Haible  <bruno@clisp.org>
19349
19350         get-rusage-as: Fix bug.
19351         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
19352         original limit when aborting the first loop.
19353
19354 2011-01-23  Bruno Haible  <bruno@clisp.org>
19355
19356         wctype: Ensure valid C syntax.
19357         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
19358         unconditionally, instead of gl_NEXT_HEADERS conditionally.
19359
19360 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
19361
19362         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
19363         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
19364         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
19365         as they are needed only for configure's test case.
19366         This removes two unnecessary symbols from config.h.
19367
19368         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
19369         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
19370         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
19371         AC_CHECK_HEADERS_ONCE on a header that we also invoke
19372         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
19373         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
19374         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
19375         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
19376         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19377         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19378         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19379         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19380         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19381         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19382         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
19383         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19384         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19385         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19386
19387 2011-01-21  Eric Blake  <eblake@redhat.com>
19388
19389         maintainer-makefile: work with older git for submodule check
19390         * top/maint.mk (public-submodule-commit): Rewrite to avoid
19391         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
19392         Reported by Matthias Bolte.
19393
19394         bootstrap: minor portability fixes
19395         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
19396         (usage): Omit leading capital and trailing . on help phrases, per
19397         GNU Coding Standards.
19398         (check_versions, top level): Prefix messages with script name.
19399
19400 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
19401
19402         bootstrap: support --no-git option
19403         * build-aux/bootstrap: Add --no-git option, to be used when
19404         --gnulib-srcdir points to the exact desired checkout.
19405
19406 2011-01-21  Eric Blake  <eblake@redhat.com>
19407
19408         strerror_r-posix: work with glibc 2.13
19409         * lib/strerror_r.c (strerror_r): Fix return type.
19410
19411 2011-01-21  Pádraig Brady  <P@draigBrady.com>
19412             Bruno Haible  <bruno@clisp.org>
19413
19414         uN_strstr: New unit tests.
19415         * modules/unistr/u8-strstr-tests: New file.
19416         * modules/unistr/u16-strstr-tests: New file.
19417         * modules/unistr/u32-strstr-tests: New file.
19418         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
19419         * tests/unistr/test-u8-strstr.c: New file.
19420         * tests/unistr/test-u16-strstr.c: New file.
19421         * tests/unistr/test-u32-strstr.c: New file.
19422
19423 2011-01-21  Pádraig Brady  <P@draigBrady.com>
19424             Bruno Haible  <bruno@clisp.org>
19425
19426         Make uN_strstr functions O(n) worst-case.
19427         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
19428         16-bit and 32-bit unit cases, use the unibyte algorithm from
19429         lib/mbsstr.c.
19430         * lib/unistr/u8-strstr.c: Include <string.h>.
19431         (UNIT_IS_UINT8_T): New macro.
19432         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
19433         (U_STRLEN, U_STRNLEN): New macros.
19434         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
19435         (U_STRLEN, U_STRNLEN): New macros.
19436         * modules/unistr/u8-strstr (Depends-on): Add strstr.
19437         (configure.ac): Update required libunistring version.
19438         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
19439         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
19440         malloca.
19441         (configure.ac): Update required libunistring version.
19442         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
19443         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
19444         malloca.
19445         (configure.ac): Update required libunistring version.
19446
19447 2011-01-21  Pádraig Brady  <P@draigBrady.com>
19448             Bruno Haible  <bruno@clisp.org>
19449
19450         Prepare for faster uN_strstr functions.
19451         * lib/str-kmp.h: Support definable UNITs.
19452         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
19453         needle_len argument.
19454         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
19455         * lib/mbscasestr.c (mbscasestr): Likewise.
19456
19457 2011-01-21  Pádraig Brady <P@draigBrady.com>
19458
19459         malloca-tests: make faster by unsetting MALLOC_PERTURB_
19460         * tests/test-malloca.c (main): Unset the environment variable
19461         to greatly speed up the test.
19462         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
19463         * modules/malloca-tests: Depend on unsetenv.
19464
19465 2011-01-21  Pádraig Brady <P@draigBrady.com>
19466
19467         ignore-value: remove stdint dependency
19468         * lib/ignore-value.h: Remove <stdint.h>
19469         * modules/ignore-value: Remove stdint dependency.
19470
19471 2011-01-21  Jim Meyering  <meyering@redhat.com>
19472
19473         maint.mk: adjust variable name to be consistent with other gl_ vars
19474         * top/maint.mk (gl_public_submodule_commit): Rename the variable
19475         to be lower case.
19476
19477 2011-01-20  Jim Meyering  <meyering@redhat.com>
19478
19479         maint.mk: make "check" depend on public-submodule-commit by default
19480         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
19481
19482 2011-01-20  Bruno Haible  <bruno@clisp.org>
19483
19484         mbfile, mbiter: Complete change from 2008-12-21.
19485         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
19486         * m4/mbiter.m4 (gl_MBITER): Likewise.
19487
19488 2011-01-20  Jim Meyering  <meyering@redhat.com>
19489
19490         init.sh: insert space between each function name and "()"
19491         * tests/init.sh: Make it a little easier to see that a function's
19492         name is "warn_", and not "warn" when looking at the first part of
19493         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
19494
19495 2011-01-20  Jim Meyering  <meyering@redhat.com>
19496
19497         mountlist: clean up code formatting
19498         * lib/mountlist.c (read_file_system_list): Split a long line,
19499         correct bracing style, use NULL in place of "(struct statfs *)0",
19500         don't parenthesize return value, add spaces around "=" and after
19501         ";-in-for-stmt".
19502
19503 2011-01-14  Markus Duft <mduft@gentoo.org>
19504
19505         mountlist: add support for Interix
19506         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
19507         Apply statvfs to all entries of /dev/fs.
19508         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
19509         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
19510
19511 2011-01-20  Jim Meyering  <meyering@redhat.com>
19512
19513         maint.mk: improve the public-submodule-commit rule
19514         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
19515         to suppress printing of its commands... unless V=1.
19516         Add git submodule's --quiet option to suppress printing of e.g.,
19517         "Entering gnulib" output.
19518         "cd" into $(srcdir) before running git submodule.
19519
19520 2011-01-20  Bruno Haible  <bruno@clisp.org>
19521
19522         include_next: Fix bug introduced on 2011-01-18.
19523         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
19524         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
19525         ac_cv_header_... variable if the second argument is not 'check'.
19526         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
19527         gl_NEXT_HEADERS_INTERNAL.
19528
19529 2011-01-20  Bruno Haible  <bruno@clisp.org>
19530
19531         Allow the user to avoid the GNULIB_TEST_* macros.
19532         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
19533         Suggested by Paul Eggert.
19534
19535 2011-01-14  Jim Meyering  <meyering@redhat.com>
19536
19537         bootstrap: avoid failure when there is no .gitmodules file
19538         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
19539         has been assigned to, even when its value is the empty string.
19540         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
19541         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
19542         Reported by John W. Eaton <jwe@gnu.org>.
19543
19544 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
19545
19546         assume <ctype.h>, ..., <time.h> exist
19547         For years gnulib has been assuming the existence of the headers
19548         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
19549         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
19550         them, since they don't appear to be needed.
19551         * README (Portability guidelines): Document this.
19552         * lib/flock.c: Assume <fcntl.h> exists.
19553         * lib/regex_internal.h: Assume <locale.h> exists.
19554         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
19555         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
19556         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
19557         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
19558         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
19559         * m4/regex.m4 (gl_REGEX): Likewise.
19560         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
19561         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
19562         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
19563         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
19564         * tests/test-argp.c: Likewise.
19565         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
19566
19567         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
19568         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
19569         AA_APPLE_UNIVERSAL_BUILD.  See
19570         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
19571         * NEWS: Document this.
19572
19573 2011-01-19  Eric Blake  <eblake@redhat.com>
19574
19575         c-stack: assume stack overflow if SA_SIGINFO unsupported
19576         * lib/c-stack.c (SIGACTION_WORKS): Rename...
19577         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
19578         sigaction will work.
19579         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
19580         behavior match Linux.
19581         * tests/test-c-stack.c (main): Prefer NULL for pointers.
19582
19583         stdbool-tests: accomodate Haiku
19584         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
19585
19586         binary-io: fix O_TEXT on Haiku
19587         * modules/binary-io (Depends-on): Add fcntl-h.
19588         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
19589         than blindly undefining O_TEXT.
19590         Reported by Scott McCreary.
19591
19592 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
19593
19594         include_next: do not check for standard headers like stddef.h
19595
19596         I found this problem when modifying Emacs to use gnulib.
19597         I noticed that it added HAVE_STDDEF_H to config.h, even though
19598         gnulib always assumes <stddef.h> exists as per README and this
19599         symbol is unnecessary.
19600         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
19601         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
19602         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
19603         faster for headers like stddef.h that are known to exist.
19604         (gl_CHECK_NEXT_HEADERS): Use it.
19605         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
19606         rather than gl_CHECK_NEXT_HEADERS.
19607         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
19608         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
19609
19610 2011-01-18  Eric Blake  <eblake@redhat.com>
19611
19612         ansi-c++-opt: skip C++ dependency style if C++ is unused
19613         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
19614         tests when we know C++ compilation is not desired.
19615         Reported by Scott McCreary.
19616
19617 2011-01-18  Bruno Haible  <bruno@clisp.org>
19618
19619         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
19620         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
19621         (main): Perform test also when getrlimit and setrlimit don't exist or
19622         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
19623         limiting the address space size using setrlimit, compare the address
19624         space size before and after the the test.
19625         * tests/test-dprintf-posix2.c: Likewise.
19626         * tests/test-fprintf-posix3.sh: Update skip messages.
19627         * tests/test-dprintf-posix2.sh: Likewise.
19628         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
19629         * modules/dprintf-posix-tests (Depends-on): Likewise.
19630         Reported by Bruce Korb <bkorb@gnu.org> and
19631         Gary V. Vaughan <gary@gnu.org>.
19632
19633 2011-01-18  Bruno Haible  <bruno@clisp.org>
19634
19635         get-rusage-as: Improvement for Cygwin.
19636         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
19637         areas that are merely reserved.
19638
19639 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
19640
19641         strftime: remove dependencies on multibyte modules
19642
19643         strftime depended on mbrlen, mbsinit, and wchar, but these modules
19644         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
19645         only if __osf__ is defined, and I suspect OSF doesn't need these
19646         other modules.  If my guess is wrong, we'll need to come up with a
19647         variant of strftime that doesn't need the multibyte modules.
19648
19649         I discovered this problem when attempting modify Emacs to use the
19650         strftime module.  With the previous gnulib, this caused Emacs to
19651         need 31 new files, ranging from lib/config.charset to
19652         m4/wint_t.m4.  This was overkill and I expect would be offputting
19653         to the Emacs maintainers.  After this change, only 6 new files are
19654         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
19655         stdbool.m4, and tm_gmtoff.m4.
19656
19657         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
19658         Suggested by Bruno Haible in
19659         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
19660         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
19661         and do not check for wchar.h.
19662         * modules/strftime (Files): Remove m4/mbstate_t.m4.
19663         (Depends-on): Remove mbrlen, mbsinit, wchar.
19664
19665 2011-01-18  Bruno Haible  <bruno@clisp.org>
19666
19667         Tests for module 'get-rusage-as'.
19668         * modules/get-rusage-as-tests: New file.
19669         * tests/test-get-rusage-as.c: New file.
19670
19671         New module 'get-rusage-as'.
19672         * modules/get-rusage-as: New file.
19673         * lib/resource-ext.h: New file.
19674         * lib/get-rusage-as.c: New file.
19675
19676 2011-01-17  Eric Blake  <eblake@redhat.com>
19677
19678         sigaction: relax license from LGPLv3+ to LGPLv2+
19679         * modules/sigaction (License): Relax to LGPLv2+.
19680
19681 2011-01-14  Bruno Haible  <bruno@clisp.org>
19682
19683         filemode: Make function declarations usable in C++ mode.
19684         * lib/filemode.h: Enclose function declarations in extern "C" block.
19685         Reported by John W. Eaton <jwe@gnu.org>.
19686
19687 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
19688
19689         save-cwd: no longer include "xgetcwd.h"
19690         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
19691         This avoids a compilation failure in projects that use save-cwd
19692         without also using the xgetcwd module.
19693
19694 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
19695
19696         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
19697         This is so that a program like Emacs, which needs only dtoastr,
19698         does not have to bother with distributing and compiling ftoastr
19699         and ldtoastr.
19700         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
19701         * modules/dtoastr, modules/ldtoastr: New files.
19702         * modules/ftoastr: Now works just for 'float'.
19703         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
19704         (Makefile.am): Remove ftoastr.h (not needed and no effect),
19705         dtoastr.c, ldtoastr.c.
19706
19707 2011-01-11  Jim Meyering  <meyering@redhat.com>
19708
19709         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
19710         There is no need to work around the lack of the fchdir function,
19711         since gnulib can now provide a replacement when required.
19712         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
19713         * modules/save-cwd (Depends-on): Add fchdir.
19714
19715 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
19716
19717         openat, save-cwd: avoid xmalloc
19718
19719         This removes a direct (but undocumented) dependency of openat on
19720         xalloc, along with an indirect dependency via save-cwd.  It also
19721         removes a dependency of save-cwd on xgetcwd, and thereby
19722         indirectly on xalloc.  This change causes the openat substitute
19723         to fall back on save_cwd when memory is tight, and for save_cwd to
19724         fail instead of dying when memory is tight, but that's good enough.
19725         Problem and initial idea for fix reported by Bastien Roucaries in
19726         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
19727
19728         * lib/openat-proc.c: Include stdlib.h (for malloc), not
19729         xalloc.h (for xmalloc).
19730         (openat_proc_name): Use malloc, not xmalloc.
19731         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
19732         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
19733
19734         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
19735         This avoids heap allocation for file names whose lengths are in
19736         the range 512..1023, with the upper bound increasing to at most
19737         4031 depending on the platform's PATH_MAX.  (We do not want
19738         pathmax.h here as it might supply a non-constant PATH_MAX.)
19739         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
19740         Perhaps they should be moved to malloca.h?
19741         (OPENAT_BUFFER_SIZE): Use them.
19742
19743 2011-01-10  Bruno Haible  <bruno@clisp.org>
19744
19745         doc: Update users.txt.
19746         * users.txt: Add recutils.
19747
19748 2011-01-09  Karl Berry  <karl@gnu.org>
19749
19750         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
19751
19752         * doc/configmake.texi: New file.
19753         * doc/gnulib.texi: Include it.
19754         * modules/configmake: Move documentation from here.
19755
19756 2011-01-09  Bruno Haible  <bruno@clisp.org>
19757
19758         Update to Unicode 6.0.0.
19759         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
19760         (get_lbp): Update for Unicode 6.0.0.
19761         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
19762         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
19763         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
19764         U+11001, U+11038..U+11046. Remove U+06DE.
19765         (uc_width): Fix bounds of planes.
19766         * tests/uniwidth/test-uc_width2.sh: Same updates as in
19767         lib/uniwidth/width.c.
19768         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
19769         trailing whitespace removed.
19770         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
19771         without comments, but with the original copyright notice.
19772         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
19773         * lib/unicase/ignorable.h: Likewise.
19774         * lib/unicase/tocasefold.h: Likewise.
19775         * lib/unicase/tolower.h: Likewise.
19776         * lib/unicase/totitle.h: Likewise.
19777         * lib/unicase/toupper.h: Likewise.
19778         * lib/unictype/bidi_of.h: Likewise.
19779         * lib/unictype/blocks.h: Likewise.
19780         * lib/unictype/categ_C.h: Likewise.
19781         * lib/unictype/categ_Cn.h: Likewise.
19782         * lib/unictype/categ_L.h: Likewise.
19783         * lib/unictype/categ_Ll.h: Likewise.
19784         * lib/unictype/categ_Lm.h: Likewise.
19785         * lib/unictype/categ_Lo.h: Likewise.
19786         * lib/unictype/categ_Lu.h: Likewise.
19787         * lib/unictype/categ_M.h: Likewise.
19788         * lib/unictype/categ_Mc.h: Likewise.
19789         * lib/unictype/categ_Me.h: Likewise.
19790         * lib/unictype/categ_Mn.h: Likewise.
19791         * lib/unictype/categ_N.h: Likewise.
19792         * lib/unictype/categ_Nd.h: Likewise.
19793         * lib/unictype/categ_No.h: Likewise.
19794         * lib/unictype/categ_P.h: Likewise.
19795         * lib/unictype/categ_Po.h: Likewise.
19796         * lib/unictype/categ_S.h: Likewise.
19797         * lib/unictype/categ_Sc.h: Likewise.
19798         * lib/unictype/categ_Sk.h: Likewise.
19799         * lib/unictype/categ_Sm.h: Likewise.
19800         * lib/unictype/categ_So.h: Likewise.
19801         * lib/unictype/categ_of.h: Likewise.
19802         * lib/unictype/combining.h: Likewise.
19803         * lib/unictype/ctype_alnum.h: Likewise.
19804         * lib/unictype/ctype_alpha.h: Likewise.
19805         * lib/unictype/ctype_graph.h: Likewise.
19806         * lib/unictype/ctype_lower.h: Likewise.
19807         * lib/unictype/ctype_print.h: Likewise.
19808         * lib/unictype/ctype_punct.h: Likewise.
19809         * lib/unictype/ctype_upper.h: Likewise.
19810         * lib/unictype/decdigit.h: Likewise.
19811         * lib/unictype/digit.h: Likewise.
19812         * lib/unictype/numeric.h: Likewise.
19813         * lib/unictype/pr_alphabetic.h: Likewise.
19814         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
19815         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
19816         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
19817         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
19818         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
19819         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
19820         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
19821         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
19822         * lib/unictype/pr_case_ignorable.h: Likewise.
19823         * lib/unictype/pr_cased.h: Likewise.
19824         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
19825         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
19826         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
19827         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
19828         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
19829         * lib/unictype/pr_combining.h: Likewise.
19830         * lib/unictype/pr_composite.h: Likewise.
19831         * lib/unictype/pr_currency_symbol.h: Likewise.
19832         * lib/unictype/pr_decimal_digit.h: Likewise.
19833         * lib/unictype/pr_deprecated.h: Likewise.
19834         * lib/unictype/pr_format_control.h: Likewise.
19835         * lib/unictype/pr_grapheme_base.h: Likewise.
19836         * lib/unictype/pr_grapheme_extend.h: Likewise.
19837         * lib/unictype/pr_grapheme_link.h: Likewise.
19838         * lib/unictype/pr_id_continue.h: Likewise.
19839         * lib/unictype/pr_id_start.h: Likewise.
19840         * lib/unictype/pr_ideographic.h: Likewise.
19841         * lib/unictype/pr_lowercase.h: Likewise.
19842         * lib/unictype/pr_math.h: Likewise.
19843         * lib/unictype/pr_numeric.h: Likewise.
19844         * lib/unictype/pr_other_alphabetic.h: Likewise.
19845         * lib/unictype/pr_other_id_continue.h: Likewise.
19846         * lib/unictype/pr_other_math.h: Likewise.
19847         * lib/unictype/pr_punctuation.h: Likewise.
19848         * lib/unictype/pr_sentence_terminal.h: Likewise.
19849         * lib/unictype/pr_terminal_punctuation.h: Likewise.
19850         * lib/unictype/pr_unassigned_code_value.h: Likewise.
19851         * lib/unictype/pr_unified_ideograph.h: Likewise.
19852         * lib/unictype/pr_uppercase.h: Likewise.
19853         * lib/unictype/pr_xid_continue.h: Likewise.
19854         * lib/unictype/pr_xid_start.h: Likewise.
19855         * lib/unictype/scripts.h: Likewise.
19856         * lib/unictype/scripts_byname.gperf: Likewise.
19857         * lib/unictype/sy_java_ident.h: Likewise.
19858         * lib/unigbrk/gbrkprop.h: Likewise.
19859         * lib/unilbrk/lbrkprop1.h: Likewise.
19860         * lib/unilbrk/lbrkprop2.h: Likewise.
19861         * lib/uninorm/decomposition-table2.h: Likewise.
19862         * lib/uniwbrk/wbrkprop.h: Likewise.
19863         * tests/unicase/test-cased.c: Likewise.
19864         * tests/unicase/test-ignorable.c: Likewise.
19865         * tests/unicase/test-uc_tolower.c: Likewise.
19866         * tests/unicase/test-uc_totitle.c: Likewise.
19867         * tests/unicase/test-uc_toupper.c: Likewise.
19868         * tests/unictype/test-categ_C.c: Likewise.
19869         * tests/unictype/test-categ_Cn.c: Likewise.
19870         * tests/unictype/test-categ_L.c: Likewise.
19871         * tests/unictype/test-categ_Ll.c: Likewise.
19872         * tests/unictype/test-categ_Lm.c: Likewise.
19873         * tests/unictype/test-categ_Lo.c: Likewise.
19874         * tests/unictype/test-categ_Lu.c: Likewise.
19875         * tests/unictype/test-categ_M.c: Likewise.
19876         * tests/unictype/test-categ_Mc.c: Likewise.
19877         * tests/unictype/test-categ_Me.c: Likewise.
19878         * tests/unictype/test-categ_Mn.c: Likewise.
19879         * tests/unictype/test-categ_N.c: Likewise.
19880         * tests/unictype/test-categ_Nd.c: Likewise.
19881         * tests/unictype/test-categ_No.c: Likewise.
19882         * tests/unictype/test-categ_P.c: Likewise.
19883         * tests/unictype/test-categ_Po.c: Likewise.
19884         * tests/unictype/test-categ_S.c: Likewise.
19885         * tests/unictype/test-categ_Sc.c: Likewise.
19886         * tests/unictype/test-categ_Sk.c: Likewise.
19887         * tests/unictype/test-categ_Sm.c: Likewise.
19888         * tests/unictype/test-categ_So.c: Likewise.
19889         * tests/unictype/test-ctype_alnum.c: Likewise.
19890         * tests/unictype/test-ctype_alpha.c: Likewise.
19891         * tests/unictype/test-ctype_graph.c: Likewise.
19892         * tests/unictype/test-ctype_lower.c: Likewise.
19893         * tests/unictype/test-ctype_print.c: Likewise.
19894         * tests/unictype/test-ctype_punct.c: Likewise.
19895         * tests/unictype/test-ctype_upper.c: Likewise.
19896         * tests/unictype/test-decdigit.h: Likewise.
19897         * tests/unictype/test-digit.h: Likewise.
19898         * tests/unictype/test-numeric.h: Likewise.
19899         * tests/unictype/test-pr_alphabetic.c: Likewise.
19900         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
19901         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
19902         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
19903         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
19904         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
19905         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
19906         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
19907         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
19908         * tests/unictype/test-pr_case_ignorable.c: Likewise.
19909         * tests/unictype/test-pr_cased.c: Likewise.
19910         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
19911         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
19912         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
19913         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
19914         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
19915         * tests/unictype/test-pr_combining.c: Likewise.
19916         * tests/unictype/test-pr_composite.c: Likewise.
19917         * tests/unictype/test-pr_currency_symbol.c: Likewise.
19918         * tests/unictype/test-pr_decimal_digit.c: Likewise.
19919         * tests/unictype/test-pr_deprecated.c: Likewise.
19920         * tests/unictype/test-pr_format_control.c: Likewise.
19921         * tests/unictype/test-pr_grapheme_base.c: Likewise.
19922         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
19923         * tests/unictype/test-pr_grapheme_link.c: Likewise.
19924         * tests/unictype/test-pr_id_continue.c: Likewise.
19925         * tests/unictype/test-pr_id_start.c: Likewise.
19926         * tests/unictype/test-pr_ideographic.c: Likewise.
19927         * tests/unictype/test-pr_lowercase.c: Likewise.
19928         * tests/unictype/test-pr_math.c: Likewise.
19929         * tests/unictype/test-pr_numeric.c: Likewise.
19930         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
19931         * tests/unictype/test-pr_other_id_continue.c: Likewise.
19932         * tests/unictype/test-pr_other_math.c: Likewise.
19933         * tests/unictype/test-pr_punctuation.c: Likewise.
19934         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
19935         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
19936         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
19937         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
19938         * tests/unictype/test-pr_uppercase.c: Likewise.
19939         * tests/unictype/test-pr_xid_continue.c: Likewise.
19940         * tests/unictype/test-pr_xid_start.c: Likewise.
19941         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
19942         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
19943         changes.
19944         * lib/unictype/categ_Cc.h: Likewise.
19945         * lib/unictype/categ_Cf.h: Likewise.
19946         * lib/unictype/categ_Co.h: Likewise.
19947         * lib/unictype/categ_Cs.h: Likewise.
19948         * lib/unictype/categ_Lt.h: Likewise.
19949         * lib/unictype/categ_Nl.h: Likewise.
19950         * lib/unictype/categ_Pc.h: Likewise.
19951         * lib/unictype/categ_Pd.h: Likewise.
19952         * lib/unictype/categ_Pe.h: Likewise.
19953         * lib/unictype/categ_Pf.h: Likewise.
19954         * lib/unictype/categ_Pi.h: Likewise.
19955         * lib/unictype/categ_Ps.h: Likewise.
19956         * lib/unictype/categ_Z.h: Likewise.
19957         * lib/unictype/categ_Zl.h: Likewise.
19958         * lib/unictype/categ_Zp.h: Likewise.
19959         * lib/unictype/categ_Zs.h: Likewise.
19960         * lib/unictype/ctype_blank.h: Likewise.
19961         * lib/unictype/ctype_cntrl.h: Likewise.
19962         * lib/unictype/ctype_digit.h: Likewise.
19963         * lib/unictype/ctype_space.h: Likewise.
19964         * lib/unictype/ctype_xdigit.h: Likewise.
19965         * lib/unictype/mirror.h: Likewise.
19966         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
19967         * lib/unictype/pr_bidi_block_separator.h: Likewise.
19968         * lib/unictype/pr_bidi_common_separator.h: Likewise.
19969         * lib/unictype/pr_bidi_control.h: Likewise.
19970         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
19971         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
19972         * lib/unictype/pr_bidi_european_digit.h: Likewise.
19973         * lib/unictype/pr_bidi_pdf.h: Likewise.
19974         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
19975         * lib/unictype/pr_bidi_whitespace.h: Likewise.
19976         * lib/unictype/pr_dash.h: Likewise.
19977         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
19978         * lib/unictype/pr_diacritic.h: Likewise.
19979         * lib/unictype/pr_extender.h: Likewise.
19980         * lib/unictype/pr_hex_digit.h: Likewise.
19981         * lib/unictype/pr_hyphen.h: Likewise.
19982         * lib/unictype/pr_ids_binary_operator.h: Likewise.
19983         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
19984         * lib/unictype/pr_ignorable_control.h: Likewise.
19985         * lib/unictype/pr_iso_control.h: Likewise.
19986         * lib/unictype/pr_join_control.h: Likewise.
19987         * lib/unictype/pr_left_of_pair.h: Likewise.
19988         * lib/unictype/pr_line_separator.h: Likewise.
19989         * lib/unictype/pr_logical_order_exception.h: Likewise.
19990         * lib/unictype/pr_non_break.h: Likewise.
19991         * lib/unictype/pr_not_a_character.h: Likewise.
19992         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
19993         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
19994         * lib/unictype/pr_other_id_start.h: Likewise.
19995         * lib/unictype/pr_other_lowercase.h: Likewise.
19996         * lib/unictype/pr_other_uppercase.h: Likewise.
19997         * lib/unictype/pr_paired_punctuation.h: Likewise.
19998         * lib/unictype/pr_paragraph_separator.h: Likewise.
19999         * lib/unictype/pr_pattern_syntax.h: Likewise.
20000         * lib/unictype/pr_pattern_white_space.h: Likewise.
20001         * lib/unictype/pr_private_use.h: Likewise.
20002         * lib/unictype/pr_quotation_mark.h: Likewise.
20003         * lib/unictype/pr_radical.h: Likewise.
20004         * lib/unictype/pr_soft_dotted.h: Likewise.
20005         * lib/unictype/pr_space.h: Likewise.
20006         * lib/unictype/pr_titlecase.h: Likewise.
20007         * lib/unictype/pr_variation_selector.h: Likewise.
20008         * lib/unictype/pr_white_space.h: Likewise.
20009         * lib/unictype/pr_zero_width.h: Likewise.
20010         * lib/unictype/sy_c_ident.h: Likewise.
20011         * lib/unictype/sy_c_whitespace.h: Likewise.
20012         * lib/unictype/sy_java_whitespace.h: Likewise.
20013         * lib/uninorm/composition-table.gperf: Likewise.
20014         * lib/uninorm/decomposition-table1.h: Likewise.
20015         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
20016         LB8.
20017         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20018         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20019         * modules/unictype/*: Bump version number of expected libunistring
20020         version.
20021
20022 2011-01-09  Bruno Haible  <bruno@clisp.org>
20023
20024         Update to Unicode 5.2.0.
20025         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
20026         trailing whitespace removed.
20027
20028 2011-01-09  Bruno Haible  <bruno@clisp.org>
20029
20030         New Unicode character properties, from Unicode 5.2.0.
20031         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
20032         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
20033         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
20034         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
20035         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
20036         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
20037         uc_is_property_cased, uc_is_property_case_ignorable,
20038         uc_is_property_changes_when_lowercased,
20039         uc_is_property_changes_when_uppercased,
20040         uc_is_property_changes_when_titlecased,
20041         uc_is_property_changes_when_casefolded,
20042         uc_is_property_changes_when_casemapped): New declarations.
20043         * lib/unictype/pr_byname.gperf: Add the new properties.
20044         * modules/unictype/property-byname (Depends-on): Depend on the new
20045         properties modules.
20046         * modules/unictype/property-all (Depends-on): Likewise.
20047         * MODULES.html.sh (Unicode string functions): Add
20048         unictype/property-case-ignorable, unictype/property-cased,
20049         unictype/property-changes-when-casefolded,
20050         unictype/property-changes-when-casemapped,
20051         unictype/property-changes-when-lowercased,
20052         unictype/property-changes-when-titlecased,
20053         unictype/property-changes-when-uppercased.
20054
20055         New module 'unictype/property-changes-when-casemapped'.
20056         * modules/unictype/property-changes-when-casemapped: New file.
20057         * lib/unictype/pr_changes_when_casemapped.c: New file.
20058         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
20059         generated by gen-uni-tables.
20060         * modules/unictype/property-changes-when-casemapped-tests: New file.
20061         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
20062         automatically generated by gen-uni-tables.
20063
20064         New module 'unictype/property-changes-when-casefolded'.
20065         * modules/unictype/property-changes-when-casefolded: New file.
20066         * lib/unictype/pr_changes_when_casefolded.c: New file.
20067         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
20068         generated by gen-uni-tables.
20069         * modules/unictype/property-changes-when-casefolded-tests: New file.
20070         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
20071         automatically generated by gen-uni-tables.
20072
20073         New module 'unictype/property-changes-when-titlecased'.
20074         * modules/unictype/property-changes-when-titlecased: New file.
20075         * lib/unictype/pr_changes_when_titlecased.c: New file.
20076         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
20077         generated by gen-uni-tables.
20078         * modules/unictype/property-changes-when-titlecased-tests: New file.
20079         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
20080         automatically generated by gen-uni-tables.
20081
20082         New module 'unictype/property-changes-when-uppercased'.
20083         * modules/unictype/property-changes-when-uppercased: New file.
20084         * lib/unictype/pr_changes_when_uppercased.c: New file.
20085         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
20086         generated by gen-uni-tables.
20087         * modules/unictype/property-changes-when-uppercased-tests: New file.
20088         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
20089         automatically generated by gen-uni-tables.
20090
20091         New module 'unictype/property-changes-when-lowercased'.
20092         * modules/unictype/property-changes-when-lowercased: New file.
20093         * lib/unictype/pr_changes_when_lowercased.c: New file.
20094         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
20095         generated by gen-uni-tables.
20096         * modules/unictype/property-changes-when-lowercased-tests: New file.
20097         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
20098         automatically generated by gen-uni-tables.
20099
20100         New module 'unictype/property-case-ignorable'.
20101         * modules/unictype/property-case-ignorable: New file.
20102         * lib/unictype/pr_case_ignorable.c: New file.
20103         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
20104         by gen-uni-tables.
20105         * modules/unictype/property-case-ignorable-tests: New file.
20106         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
20107         generated by gen-uni-tables.
20108
20109         New module 'unictype/property-cased'.
20110         * modules/unictype/property-cased: New file.
20111         * lib/unictype/pr_cased.c: New file.
20112         * lib/unictype/pr_cased.h: New file, automatically generated by
20113         gen-uni-tables.
20114         * modules/unictype/property-cased-tests: New file.
20115         * tests/unictype/test-pr_cased.c: New file, automatically generated by
20116         gen-uni-tables.
20117
20118 2011-01-09  Bruno Haible  <bruno@clisp.org>
20119
20120         Update to Unicode 5.2.0.
20121         * lib/gen-uni-tables.c (output_predicate, output_category,
20122         output_combclass, output_bidi_category, output_decimal_digit_test,
20123         output_decimal_digit, output_digit_test, output_digit,
20124         output_numeric_test, output_numeric, output_mirror, output_scripts,
20125         output_scripts_byname, output_blocks, output_ident_category): Fix
20126         comment header.
20127         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
20128         get_wbp.
20129         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
20130         items.
20131         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
20132         Changes_When_Lowercased, Changes_When_Uppercased,
20133         Changes_When_Titlecased, Changes_When_Casefolded,
20134         Changes_When_Casemapped.
20135         (is_property_alphabetic, is_property_default_ignorable_code_point):
20136         Update for Unicode 5.2.0.
20137         (is_property_cased, is_property_case_ignorable,
20138         is_property_changes_when_lowercased,
20139         is_property_changes_when_uppercased,
20140         is_property_changes_when_titlecased,
20141         is_property_changes_when_casefolded,
20142         is_property_changes_when_casemapped): New functions.
20143         (output_properties): Output also the properties cased, case_ignorable,
20144         changes_when_lowercased, changes_when_uppercased,
20145         changes_when_titlecased, changes_when_casefolded,
20146         changes_when_casemapped.
20147         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
20148         Unicode TR#11 revision 17 -> 19.
20149         (LBP_CP): New enumeration value.
20150         (LBP_*): Adjust values accordingly.
20151         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20152         TR#14 revision 22 -> 24.
20153         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
20154         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
20155         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20156         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
20157         is_WBP_MIDLETTER.
20158         (output_composition_tables): Allow for 24 bits instead of 16 bits in
20159         the code1 and code2 of each composition rule.
20160         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
20161         * lib/unicase/ignorable.h: Likewise.
20162         * lib/unicase/tocasefold.h: Likewise.
20163         * lib/unicase/tolower.h: Likewise.
20164         * lib/unicase/totitle.h: Likewise.
20165         * lib/unicase/toupper.h: Likewise.
20166         * lib/unictype/bidi_of.h: Likewise.
20167         * lib/unictype/blocks.h: Likewise.
20168         * lib/unictype/categ_C.h: Likewise.
20169         * lib/unictype/categ_Cf.h: Likewise.
20170         * lib/unictype/categ_Cn.h: Likewise.
20171         * lib/unictype/categ_L.h: Likewise.
20172         * lib/unictype/categ_Ll.h: Likewise.
20173         * lib/unictype/categ_Lm.h: Likewise.
20174         * lib/unictype/categ_Lo.h: Likewise.
20175         * lib/unictype/categ_Lu.h: Likewise.
20176         * lib/unictype/categ_M.h: Likewise.
20177         * lib/unictype/categ_Mc.h: Likewise.
20178         * lib/unictype/categ_Mn.h: Likewise.
20179         * lib/unictype/categ_N.h: Likewise.
20180         * lib/unictype/categ_Nd.h: Likewise.
20181         * lib/unictype/categ_Nl.h: Likewise.
20182         * lib/unictype/categ_No.h: Likewise.
20183         * lib/unictype/categ_P.h: Likewise.
20184         * lib/unictype/categ_Pd.h: Likewise.
20185         * lib/unictype/categ_Po.h: Likewise.
20186         * lib/unictype/categ_S.h: Likewise.
20187         * lib/unictype/categ_Sc.h: Likewise.
20188         * lib/unictype/categ_So.h: Likewise.
20189         * lib/unictype/categ_of.h: Likewise.
20190         * lib/unictype/combining.h: Likewise.
20191         * lib/unictype/ctype_alnum.h: Likewise.
20192         * lib/unictype/ctype_alpha.h: Likewise.
20193         * lib/unictype/ctype_graph.h: Likewise.
20194         * lib/unictype/ctype_lower.h: Likewise.
20195         * lib/unictype/ctype_print.h: Likewise.
20196         * lib/unictype/ctype_punct.h: Likewise.
20197         * lib/unictype/ctype_upper.h: Likewise.
20198         * lib/unictype/decdigit.h: Likewise.
20199         * lib/unictype/digit.h: Likewise.
20200         * lib/unictype/numeric.h: Likewise.
20201         * lib/unictype/pr_alphabetic.h: Likewise.
20202         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20203         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20204         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20205         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20206         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20207         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20208         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20209         * lib/unictype/pr_combining.h: Likewise.
20210         * lib/unictype/pr_composite.h: Likewise.
20211         * lib/unictype/pr_currency_symbol.h: Likewise.
20212         * lib/unictype/pr_dash.h: Likewise.
20213         * lib/unictype/pr_decimal_digit.h: Likewise.
20214         * lib/unictype/pr_deprecated.h: Likewise.
20215         * lib/unictype/pr_diacritic.h: Likewise.
20216         * lib/unictype/pr_extender.h: Likewise.
20217         * lib/unictype/pr_grapheme_base.h: Likewise.
20218         * lib/unictype/pr_grapheme_extend.h: Likewise.
20219         * lib/unictype/pr_grapheme_link.h: Likewise.
20220         * lib/unictype/pr_id_continue.h: Likewise.
20221         * lib/unictype/pr_id_start.h: Likewise.
20222         * lib/unictype/pr_ideographic.h: Likewise.
20223         * lib/unictype/pr_ignorable_control.h: Likewise.
20224         * lib/unictype/pr_logical_order_exception.h: Likewise.
20225         * lib/unictype/pr_lowercase.h: Likewise.
20226         * lib/unictype/pr_numeric.h: Likewise.
20227         * lib/unictype/pr_other_alphabetic.h: Likewise.
20228         * lib/unictype/pr_punctuation.h: Likewise.
20229         * lib/unictype/pr_sentence_terminal.h: Likewise.
20230         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20231         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20232         * lib/unictype/pr_unified_ideograph.h: Likewise.
20233         * lib/unictype/pr_uppercase.h: Likewise.
20234         * lib/unictype/pr_xid_continue.h: Likewise.
20235         * lib/unictype/pr_xid_start.h: Likewise.
20236         * lib/unictype/pr_zero_width.h: Likewise.
20237         * lib/unictype/scripts.h: Likewise.
20238         * lib/unictype/scripts_byname.gperf: Likewise.
20239         * lib/unictype/sy_java_ident.h: Likewise.
20240         * lib/unigbrk/gbrkprop.h: Likewise.
20241         * lib/unilbrk/lbrkprop1.h: Likewise.
20242         * lib/unilbrk/lbrkprop2.h: Likewise.
20243         * lib/unilbrk/lbrktables.h: Likewise.
20244         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
20245         LBP_CP. Implement rule LB30.
20246         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
20247         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
20248         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
20249         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
20250         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
20251         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
20252         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
20253         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
20254         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
20255         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
20256         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
20257         bits instead of 16 bits in the code1 and code2 of each composition
20258         rule.
20259         (uc_composition): Update for Unicode 5.2.0.
20260         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
20261         * lib/uninorm/decomposition-table2.h: Likewise.
20262         * lib/uniwbrk/wbrkprop.h: Likewise.
20263         * tests/unicase/test-cased.c: Likewise.
20264         * tests/unicase/test-ignorable.c: Likewise.
20265         * tests/unicase/test-uc_tolower.c: Likewise.
20266         * tests/unicase/test-uc_totitle.c: Likewise.
20267         * tests/unicase/test-uc_toupper.c: Likewise.
20268         * tests/unictype/test-categ_C.c: Likewise.
20269         * tests/unictype/test-categ_Cf.c: Likewise.
20270         * tests/unictype/test-categ_Cn.c: Likewise.
20271         * tests/unictype/test-categ_L.c: Likewise.
20272         * tests/unictype/test-categ_Ll.c: Likewise.
20273         * tests/unictype/test-categ_Lm.c: Likewise.
20274         * tests/unictype/test-categ_Lo.c: Likewise.
20275         * tests/unictype/test-categ_Lu.c: Likewise.
20276         * tests/unictype/test-categ_M.c: Likewise.
20277         * tests/unictype/test-categ_Mc.c: Likewise.
20278         * tests/unictype/test-categ_Mn.c: Likewise.
20279         * tests/unictype/test-categ_N.c: Likewise.
20280         * tests/unictype/test-categ_Nd.c: Likewise.
20281         * tests/unictype/test-categ_Nl.c: Likewise.
20282         * tests/unictype/test-categ_No.c: Likewise.
20283         * tests/unictype/test-categ_P.c: Likewise.
20284         * tests/unictype/test-categ_Pd.c: Likewise.
20285         * tests/unictype/test-categ_Po.c: Likewise.
20286         * tests/unictype/test-categ_S.c: Likewise.
20287         * tests/unictype/test-categ_Sc.c: Likewise.
20288         * tests/unictype/test-categ_So.c: Likewise.
20289         * tests/unictype/test-ctype_alnum.c: Likewise.
20290         * tests/unictype/test-ctype_alpha.c: Likewise.
20291         * tests/unictype/test-ctype_graph.c: Likewise.
20292         * tests/unictype/test-ctype_lower.c: Likewise.
20293         * tests/unictype/test-ctype_print.c: Likewise.
20294         * tests/unictype/test-ctype_punct.c: Likewise.
20295         * tests/unictype/test-ctype_upper.c: Likewise.
20296         * tests/unictype/test-decdigit.h: Likewise.
20297         * tests/unictype/test-digit.h: Likewise.
20298         * tests/unictype/test-numeric.h: Likewise.
20299         * tests/unictype/test-pr_alphabetic.c: Likewise.
20300         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20301         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20302         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
20303         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20304         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20305         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20306         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20307         * tests/unictype/test-pr_combining.c: Likewise.
20308         * tests/unictype/test-pr_composite.c: Likewise.
20309         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20310         * tests/unictype/test-pr_dash.c: Likewise.
20311         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20312         * tests/unictype/test-pr_deprecated.c: Likewise.
20313         * tests/unictype/test-pr_diacritic.c: Likewise.
20314         * tests/unictype/test-pr_extender.c: Likewise.
20315         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20316         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20317         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20318         * tests/unictype/test-pr_id_continue.c: Likewise.
20319         * tests/unictype/test-pr_id_start.c: Likewise.
20320         * tests/unictype/test-pr_ideographic.c: Likewise.
20321         * tests/unictype/test-pr_ignorable_control.c: Likewise.
20322         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
20323         * tests/unictype/test-pr_lowercase.c: Likewise.
20324         * tests/unictype/test-pr_numeric.c: Likewise.
20325         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20326         * tests/unictype/test-pr_punctuation.c: Likewise.
20327         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20328         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20329         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20330         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20331         * tests/unictype/test-pr_uppercase.c: Likewise.
20332         * tests/unictype/test-pr_xid_continue.c: Likewise.
20333         * tests/unictype/test-pr_xid_start.c: Likewise.
20334         * tests/unictype/test-pr_zero_width.c: Likewise.
20335         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20336         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
20337         changed behaviour: line breaking is now disallowed between a letter
20338         or '=' and '('.
20339         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20340         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20341         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
20342         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
20343         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20344         lib/uniwidth/width.c.
20345         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
20346         without comments, but with the original copyright notice.
20347         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20348         changes.
20349         * lib/unictype/categ_Cc.h: Likewise.
20350         * lib/unictype/categ_Co.h: Likewise.
20351         * lib/unictype/categ_Cs.h: Likewise.
20352         * lib/unictype/categ_Lt.h: Likewise.
20353         * lib/unictype/categ_Me.h: Likewise.
20354         * lib/unictype/categ_Pc.h: Likewise.
20355         * lib/unictype/categ_Pe.h: Likewise.
20356         * lib/unictype/categ_Pf.h: Likewise.
20357         * lib/unictype/categ_Pi.h: Likewise.
20358         * lib/unictype/categ_Ps.h: Likewise.
20359         * lib/unictype/categ_Sk.h: Likewise.
20360         * lib/unictype/categ_Sm.h: Likewise.
20361         * lib/unictype/categ_Z.h: Likewise.
20362         * lib/unictype/categ_Zl.h: Likewise.
20363         * lib/unictype/categ_Zp.h: Likewise.
20364         * lib/unictype/categ_Zs.h: Likewise.
20365         * lib/unictype/ctype_blank.h: Likewise.
20366         * lib/unictype/ctype_cntrl.h: Likewise.
20367         * lib/unictype/ctype_digit.h: Likewise.
20368         * lib/unictype/ctype_space.h: Likewise.
20369         * lib/unictype/ctype_xdigit.h: Likewise.
20370         * lib/unictype/mirror.h: Likewise.
20371         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20372         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20373         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20374         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20375         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20376         * lib/unictype/pr_bidi_control.h: Likewise.
20377         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20378         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20379         * lib/unictype/pr_bidi_pdf.h: Likewise.
20380         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20381         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20382         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20383         * lib/unictype/pr_format_control.h: Likewise.
20384         * lib/unictype/pr_hex_digit.h: Likewise.
20385         * lib/unictype/pr_hyphen.h: Likewise.
20386         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20387         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20388         * lib/unictype/pr_iso_control.h: Likewise.
20389         * lib/unictype/pr_join_control.h: Likewise.
20390         * lib/unictype/pr_left_of_pair.h: Likewise.
20391         * lib/unictype/pr_line_separator.h: Likewise.
20392         * lib/unictype/pr_math.h: Likewise.
20393         * lib/unictype/pr_non_break.h: Likewise.
20394         * lib/unictype/pr_not_a_character.h: Likewise.
20395         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20396         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20397         * lib/unictype/pr_other_id_continue.h: Likewise.
20398         * lib/unictype/pr_other_id_start.h: Likewise.
20399         * lib/unictype/pr_other_lowercase.h: Likewise.
20400         * lib/unictype/pr_other_math.h: Likewise.
20401         * lib/unictype/pr_other_uppercase.h: Likewise.
20402         * lib/unictype/pr_paired_punctuation.h: Likewise.
20403         * lib/unictype/pr_paragraph_separator.h: Likewise.
20404         * lib/unictype/pr_pattern_syntax.h: Likewise.
20405         * lib/unictype/pr_pattern_white_space.h: Likewise.
20406         * lib/unictype/pr_private_use.h: Likewise.
20407         * lib/unictype/pr_quotation_mark.h: Likewise.
20408         * lib/unictype/pr_radical.h: Likewise.
20409         * lib/unictype/pr_soft_dotted.h: Likewise.
20410         * lib/unictype/pr_space.h: Likewise.
20411         * lib/unictype/pr_titlecase.h: Likewise.
20412         * lib/unictype/pr_variation_selector.h: Likewise.
20413         * lib/unictype/pr_white_space.h: Likewise.
20414         * lib/unictype/sy_c_ident.h: Likewise.
20415         * lib/unictype/sy_c_whitespace.h: Likewise.
20416         * lib/unictype/sy_java_whitespace.h: Likewise.
20417         * modules/uni*/*: Bump version number of expected libunistring version.
20418         Reported by Simon Josefsson.
20419
20420 2011-01-09  Karl Heuer  <kwzh@gnu.org>
20421
20422         useless-if-before-free: fix typo in --help and make the internal,
20423         automatic version date update process work once again.
20424         --help output contained a NUL character instead of the
20425         backslash-zero that was intended.  Also, the "must lie within
20426         the first 8 lines" line is on line 9, and hence not getting
20427         automatically updated.
20428         * build-aux/useless-if-before-free: Fix the former by adding a
20429         backslash, and the latter by condensing the three lines of what-it-does
20430         to a single line, leaving one line of slack for the future.
20431
20432 2011-01-09  Bruno Haible  <bruno@clisp.org>
20433
20434         uniwidth/width: Fix width of U+1D173..U+1D17A.
20435         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
20436         symbolic_width, output_width_property_test): New functions.
20437         (main): Invoke output_nonspacing_property, output_width_property_test.
20438         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
20439         U+1D173..U+1D17A.
20440         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
20441         1.
20442         * modules/uniwidth/*: Bump version number of expected libunistring
20443         version.
20444         * modules/unilbrk/*: Likewise.
20445
20446 2011-01-08  Bruno Haible  <bruno@clisp.org>
20447
20448         uninorm tests: Preserve copyright of Unicode data file.
20449         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
20450         Mention modifications.
20451
20452 2011-01-08  Bruno Haible  <bruno@clisp.org>
20453
20454         gen-uni-tables: Prepare for Unicode 5.2.0.
20455         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
20456         (debug_output_lbp, output_lbp): Update.
20457
20458 2011-01-08  Bruno Haible  <bruno@clisp.org>
20459
20460         unilbrk: Clarify gen-uni-tables.c code.
20461         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
20462         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
20463         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
20464
20465 2011-01-07  Bruno Haible  <bruno@clisp.org>
20466
20467         strtod: Restore errno when successfully parsing Infinity or NaN.
20468         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
20469         restore the original errno.
20470
20471 2011-01-07  Bruno Haible  <bruno@clisp.org>
20472
20473         remove test: Avoid failure on HP-UX 11.
20474         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
20475
20476 2011-01-07  Bruno Haible  <bruno@clisp.org>
20477
20478         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
20479         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
20480         error code.
20481
20482 2011-01-07  Pádraig Brady <P@draigBrady.com>
20483
20484         ignore-value: fixup comments, and add Eric Blake
20485         as an author since he rewrote the macros.
20486         * lib/ignore-value.h (ignore_value):  State that
20487         we now support aggregates.  Also specify exactly
20488         when the GCC warn_unused_result feature was added.
20489
20490 2011-01-06  Eric Blake  <eblake@redhat.com>
20491
20492         ignore-value: support aggregate types
20493         * lib/ignore-value.h (ignore_value): Provide separate gcc
20494         definition.
20495         * modules/ignore-value-tests: New test module.
20496         * tests/test-ignore-value.c: New test.
20497
20498         maint.mk: improve sc_prohibit_strcmp regex
20499         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
20500         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
20501         definition of STRNEQ.
20502
20503         signal: work around Haiku issue with SIGBUS
20504         * lib/siglist.h: Add comment.
20505         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
20506         strsignal's favoring of SIGSEGV.
20507         * tests/test-signal.c (main): Avoid test failure.
20508         * doc/posix-headers/signal.texi (signal.h): Document the issue.
20509         Reported by Scott McCreary.
20510
20511         maint.mk: add pre-release check to ensure submodule commits are public
20512         * top/maint.mk (public-submodule-commit): New rule.
20513         (submodule-checks): New variable.
20514         (alpha beta stable): Depend on the variable.
20515
20516 2011-01-05  Pádraig Brady <P@draigBrady.com>
20517         and Jim Meyering  <meyering@redhat.com>
20518
20519         ignore-value: make ignore_value more generic; deprecate ignore_ptr
20520         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
20521         (ATTRIBUTE_DEPRECATED): Define.
20522         (_ignore_case): New function.
20523         (ignore_value): New macro, to replace the old function.
20524         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
20525         * modules/ignore-value (Depends-on): Add stdint.
20526
20527 2011-01-04  Eric Blake  <eblake@redhat.com>
20528
20529         doc: regenerate INSTALL
20530         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
20531         @firstparagraphindent support, now that autoconf dropped it.
20532         (INSTALL_PRELUDE): Reinstate old macro.
20533         * doc/install.texi: Resync from autoconf.
20534         * doc/INSTALL: Reflect recent autoconf update.
20535         * doc/INSTALL.ISO: Likewise.
20536         * doc/INSTALL.UTF-8: Likewise.
20537         Reported by Karl Berry.
20538
20539 2011-01-04  Bruce Korb  <address@hidden>
20540
20541         git-version-gen: avoid a sub-shell
20542         * build-aux/git-version-gen: Redirect stderr in `...` via
20543         "exec 2>...", rather than via an added sub-shell.
20544
20545 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
20546
20547         git-version-gen: use (...) rather than sh -c '...'
20548         * build-aux/git-version-gen: Rather than hard-coding a shell's name
20549         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
20550
20551 2011-01-03  Jim Meyering  <meyering@redhat.com>
20552
20553         git-version-gen: convert leading TABs to spaces
20554         * build-aux/git-version-gen: Expand leading TABs.
20555
20556         git-version-gen: handle failed "git rev-list"
20557         * build-aux/git-version-gen: Rather than leaking a "fatal" error
20558         from git and proceeding as if it had succeeded but printed no SHA1
20559         checksums, suppress the diagnostic and handle the failure.
20560         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
20561
20562         git-version-gen: include command name in one more diagnostic
20563         * build-aux/git-version-gen: When the required .tarball-version file
20564         was missing or unreadable, you might see the diagnostic from "cat",
20565         but no trace of the name of the invoking script.  Now, you still see
20566         the diagnostic from cat, but also get one from "git-version-gen: ".
20567         Inspired by a patch from Bruce Korb.
20568
20569         update-copyright: adjust test to match changed code
20570         * tests/test-update-copyright.sh: Change test's expected output
20571         to match new actual output.
20572
20573 2011-01-02  Bruno Haible  <bruno@clisp.org>
20574
20575         getlogin_r: Avoid test failure on HP-UX 11.
20576         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
20577         ERANGE when the second argument is zero.
20578         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
20579         portability problem.
20580
20581 2011-01-02  Bruce Korb  <bkorb@gnu.org>
20582
20583         * build-aux/update-copyright: doc Simon's changes
20584
20585 2011-01-02  Simon Josefsson  <simon@josefsson.org>
20586
20587         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
20588         environment variable.
20589
20590 2011-01-02  Bruno Haible  <bruno@clisp.org>
20591
20592         unigbrk: Avoid gcc warnings.
20593         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
20594         unused variable.
20595         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
20596         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
20597         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
20598         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
20599         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
20600         Change type of first argument to 'const char *'.
20601         (main): Remove unused variable.
20602         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
20603         type of first argument to 'const char *'.
20604         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
20605         Likewise.
20606         (main): Change type of variable 's'.
20607         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
20608         to 'int'.
20609
20610 2011-01-02  Bruno Haible  <bruno@clisp.org>
20611
20612         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
20613         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
20614         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
20615         bug.
20616         * lib/pwrite.c: Undo 2010-12-31 patch.
20617         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
20618
20619 2011-01-02  Bruno Haible  <bruno@clisp.org>
20620
20621         pread: Fix test whether it works.
20622         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
20623
20624 2011-01-02  Bruno Haible  <bruno@clisp.org>
20625
20626         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
20627         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
20628         ends in "6". Don't require a specific month name. Try also the locale
20629         names found on HP-UX 11 and Solaris 7.
20630
20631 2011-01-02  Bruno Haible  <bruno@clisp.org>
20632
20633         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
20634         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
20635         C linkage.
20636         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
20637
20638 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
20639
20640         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
20641         for consistency, since the "cluster" term is not used elsewhere.
20642         * lib/unigbrk.in.h: Update name.
20643         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
20644         * lib/unigbrk/u16-grapheme-next.c: Update name.
20645         * lib/unigbrk/u16-grapheme-prev.c: Update name.
20646         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
20647         * lib/unigbrk/u32-grapheme-next.c: Update name.
20648         * lib/unigbrk/u32-grapheme-prev.c: Update name.
20649         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
20650         * lib/unigbrk/u8-grapheme-next.c: Update name.
20651         * lib/unigbrk/u8-grapheme-prev.c: Update name.
20652         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
20653         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
20654         Suggested by Bruno Haible.
20655
20656 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
20657
20658         Remove module 'u8-grapheme-len' as too redundant with
20659         'u8-grapheme-next'.
20660         * modules/unigbrk/u8-grapheme-len: Delete file.
20661         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
20662         * lib/unigbrk.in.h: Remove prototype for deleted function.
20663         * lib/unigbrk/u8-grapheme-len.c: Delete file.
20664         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
20665
20666         Remove module 'u16-grapheme-len' as too redundant with
20667         'u16-grapheme-next'.
20668         * modules/unigbrk/u16-grapheme-len: Delete file.
20669         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
20670         * lib/unigbrk.in.h: Remove prototype for deleted function.
20671         * lib/unigbrk/u16-grapheme-len.c: Delete file.
20672         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
20673
20674         Remove module 'u32-grapheme-len' as too redundant with
20675         'u32-grapheme-next'.
20676         * modules/unigbrk/u32-grapheme-len: Delete file.
20677         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
20678         * lib/unigbrk.in.h: Remove prototype for deleted function.
20679         * lib/unigbrk/u32-grapheme-len.c: Delete file.
20680         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
20681
20682         Suggested by Bruno Haible.
20683
20684 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
20685
20686         * unigbrk.in.h: Fix typo: "ben" => "been".
20687         Reported by Bruno Haible.
20688
20689 2011-01-01  Jim Meyering  <meyering@redhat.com>
20690
20691         maint: update almost all copyright ranges to include 2011
20692         Run the new "make update-copyright" rule.
20693
20694 2011-01-01  Jim Meyering  <meyering@redhat.com>
20695
20696         maint: update-copyright: exempt doc/INSTALL*
20697         * Makefile (update-copyright): Also exclude doc/INSTALL*,
20698         since they are generated.  Suggested by Bruno Haible.
20699
20700 2011-01-01  Jim Meyering  <meyering@redhat.com>
20701
20702         maint: refine the update-copyright rule
20703         * Makefile (update-copyright): Also exclude any file that includes
20704         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
20705         code that merely generates the comment.
20706
20707 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
20708
20709         New module 'u8-grapheme-len'.
20710         * modules/unigbrk/u8-grapheme-len: New file.
20711         * modules/unigbrk/u8-grapheme-len-tests: New file.
20712         * lib/unigbrk.in.h: Add prototype for new function.
20713         * lib/unigbrk/u8-grapheme-len.c: New file.
20714         * tests/unigbrk/test-u8-grapheme-len.c: New file.
20715
20716         New module 'u16-grapheme-len'.
20717         * modules/unigbrk/u16-grapheme-len: New file.
20718         * modules/unigbrk/u16-grapheme-len-tests: New file.
20719         * lib/unigbrk.in.h: Add prototype for new function.
20720         * lib/unigbrk/u16-grapheme-len.c: New file.
20721         * tests/unigbrk/test-u16-grapheme-len.c: New file.
20722
20723         New module 'u32-grapheme-len'.
20724         * modules/unigbrk/u32-grapheme-len: New file.
20725         * modules/unigbrk/u32-grapheme-len-tests: New file.
20726         * lib/unigbrk.in.h: Add prototype for new function.
20727         * lib/unigbrk/u32-grapheme-len.c: New file.
20728         * tests/unigbrk/test-u32-grapheme-len.c: New file.
20729
20730         New module 'u8-grapheme-next'.
20731         * modules/unigbrk/u8-grapheme-next: New file.
20732         * modules/unigbrk/u8-grapheme-next-tests: New file.
20733         * lib/unigbrk.in.h: Add prototype for new function.
20734         * lib/unigbrk/u8-grapheme-next.c: New file.
20735         * tests/unigbrk/test-u8-grapheme-next.c: New file.
20736
20737         New module 'u16-grapheme-next'.
20738         * modules/unigbrk/u16-grapheme-next: New file.
20739         * modules/unigbrk/u16-grapheme-next-tests: New file.
20740         * lib/unigbrk.in.h: Add prototype for new function.
20741         * lib/unigbrk/u16-grapheme-next.c: New file.
20742         * tests/unigbrk/test-u16-grapheme-next.c: New file.
20743
20744         New module 'u32-grapheme-next'.
20745         * modules/unigbrk/u32-grapheme-next: New file.
20746         * modules/unigbrk/u32-grapheme-next-tests: New file.
20747         * lib/unigbrk.in.h: Add prototype for new function.
20748         * lib/unigbrk/u32-grapheme-next.c: New file.
20749         * tests/unigbrk/test-u32-grapheme-next.c: New file.
20750
20751         New module 'u8-grapheme-prev'.
20752         * modules/unigbrk/u8-grapheme-prev: New file.
20753         * modules/unigbrk/u8-grapheme-prev-tests: New file.
20754         * lib/unigbrk.in.h: Add prototype for new function.
20755         * lib/unigbrk/u8-grapheme-prev.c: New file.
20756         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
20757
20758         New module 'u16-grapheme-prev'.
20759         * modules/unigbrk/u16-grapheme-prev: New file.
20760         * modules/unigbrk/u16-grapheme-prev-tests: New file.
20761         * lib/unigbrk.in.h: Add prototype for new function.
20762         * lib/unigbrk/u16-grapheme-prev.c: New file.
20763         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
20764
20765         New module 'u32-grapheme-prev'.
20766         * modules/unigbrk/u32-grapheme-prev: New file.
20767         * modules/unigbrk/u32-grapheme-prev-tests: New file.
20768         * lib/unigbrk.in.h: Add prototype for new function.
20769         * lib/unigbrk/u32-grapheme-prev.c: New file.
20770         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
20771
20772         New module 'u8-grapheme-breaks'.
20773         * modules/unigbrk/u8-grapheme-breaks: New file.
20774         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
20775         * lib/unigbrk.in.h: Add prototype for new function.
20776         * lib/unigbrk/u8-grapheme-breaks.c: New file.
20777         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
20778
20779         New module 'u16-grapheme-breaks'.
20780         * modules/unigbrk/u16-grapheme-breaks: New file.
20781         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
20782         * lib/unigbrk.in.h: Add prototype for new function.
20783         * lib/unigbrk/u16-grapheme-breaks.c: New file.
20784         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
20785
20786         New module 'u32-grapheme-breaks'.
20787         * modules/unigbrk/u32-grapheme-breaks: New file.
20788         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
20789         * lib/unigbrk.in.h: Add prototype for new function.
20790         * lib/unigbrk/u32-grapheme-breaks.c: New file.
20791         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
20792
20793         New module 'ulc-grapheme-breaks'.
20794         * modules/unigbrk/ulc-grapheme-breaks: New file.
20795         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
20796         * m4/locale-ar.m4: New file.
20797         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
20798         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
20799         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
20800
20801 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
20802
20803         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
20804         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
20805         modified how this file was generated before I initially submitted
20806         the module, but failed to regenerate it.  This meant that several
20807         of the level2 entries were wrong.
20808         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
20809         Remove the division-by-2 that is folded into the table now that
20810         gbrkprop.h has been regenerated properly.  Now -1 entries are
20811         handled correctly.
20812
20813         New module 'unigbrk/uc-gbrk-prop-tests'.
20814         * modules/unigbrk/uc-gbrk-prop-tests: New file.
20815         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
20816         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
20817         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
20818
20819 2011-01-01  Bruno Haible  <bruno@clisp.org>
20820
20821         Avoid use of hexadecimal escapes.
20822         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
20823         instead of hexadecimal escapes.
20824
20825 2011-01-01  Jim Meyering  <meyering@redhat.com>
20826
20827         maint: new rule to update copyright year ranges
20828         * Makefile (update-copyright): New rule.
20829
20830         maint: indent with TABs in Makefile
20831         * Makefile: Expand leading sequences of spaces to TABs
20832
20833         version-etc: update the copyright year it reports
20834         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
20835
20836 2010-12-31  Bruno Haible  <bruno@clisp.org>
20837
20838         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
20839         * lib/isfinite.c (zerof, zerod, zerol): New variables.
20840         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
20841         zero.
20842
20843 2010-12-31  Bruno Haible  <bruno@clisp.org>
20844
20845         pwrite: Work around HP-UX 11.11 bug.
20846         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
20847         works and set REPLACE_PWRITE if not.
20848         * lib/pwrite.c (pwrite): Add an implementation that uses the system
20849         function.
20850         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
20851
20852 2010-12-31  Bruno Haible  <bruno@clisp.org>
20853
20854         pread: Work around HP-UX 11 bugs.
20855         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
20856         and set REPLACE_PREAD if not.
20857         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
20858
20859 2010-12-31  Eric Blake  <eblake@redhat.com>
20860
20861         nl_langinfo: fix YESEXPR on Irix 6.5
20862         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
20863         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
20864         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
20865         it.
20866
20867 2010-12-31  Bruno Haible  <bruno@clisp.org>
20868
20869         iconv: Document HP-UX 11 bug.
20870         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
20871
20872 2010-12-31  Bruno Haible  <bruno@clisp.org>
20873
20874         ldexpl: Fix link error on HP-UX 11.
20875         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
20876         LDEXPL_LIBM, using $ISNANL_LIBM.
20877
20878 2010-12-31  Eric Blake  <eblake@redhat.com>
20879
20880         ftello: avoid compilation failure with SunStudio c89
20881         * lib/ftello.c (ftello): Use lseek, not llseek.
20882
20883         tests: avoid failing coreutils tests on cygwin
20884         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
20885         (create_exe_shims_): Return 0 when skipping.
20886
20887 2010-12-31  Bruno Haible  <bruno@clisp.org>
20888
20889         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
20890         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
20891
20892 2010-12-31  Bruno Haible  <bruno@clisp.org>
20893
20894         waitpid: Fix link error in C++ mode.
20895         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
20896
20897 2010-12-31  Bruno Haible  <bruno@clisp.org>
20898
20899         isnan: Use GCC built-ins when possible.
20900         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
20901         __builtin_isnan.
20902         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
20903         (isnan): Define using GCC built-ins for GCC >= 4.0.
20904
20905 2010-12-31  Bruno Haible  <bruno@clisp.org>
20906
20907         isnand: Fix mistake.
20908         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
20909         __builtin_isnand.
20910
20911 2010-12-31  Bruno Haible  <bruno@clisp.org>
20912
20913         open: Avoid C++ error on HP-UX 11.
20914         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
20915
20916 2010-12-31  Bruno Haible  <bruno@clisp.org>
20917
20918         time_r: Add missing declarations on HP-UX 11.
20919         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
20920         instead of HAVE_LOCALTIME_R.
20921         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
20922         HAVE_LOCALTIME_R always.
20923         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
20924         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
20925         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
20926         HAVE_LOCALTIME_R.
20927         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
20928         * doc/posix-functions/localtime_r.texi: Likewise.
20929
20930 2010-12-29  Eric Blake  <eblake@redhat.com>
20931
20932         mountlist: tweak previous commit
20933         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
20934         Reported by Paul Eggert.
20935
20936         mountlist: fix local drive detection on cygwin
20937         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
20938         that works for cygwin.
20939
20940 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20941
20942         ftoastr, snprintf: ftoastr + snprintf module
20943         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
20944         since the snprintf module now should be good enough here.
20945         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
20946         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
20947         and gl_MODULE_INDICATOR([snprintf]), but the former enables
20948         GNULIB_SNPRINTF only for the test directory, and the latter
20949         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
20950         seems to suffice by itself.
20951
20952 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
20953
20954         alloca: one step towards thread-safety
20955         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
20956         need for a static variable.  All callers changed.  This does not
20957         make the alloca replacement thread-safe, but it's one step.
20958
20959         tests: minor indenting change
20960         * tests/init.sh: Sync from coreutils housekeeping patch
20961         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
20962         to keep lines within 80 columns.
20963
20964 2010-12-28  Jim Meyering  <meyering@redhat.com>
20965
20966         regex: don't infloop on persistent failing calloc
20967         * lib/regexec.c (build_trtable): Return failure indication upon
20968         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20969         In glibc, this was fixed for version 2.13:
20970         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
20971
20972 2010-12-28  Bruno Haible  <bruno@clisp.org>
20973             Paul Eggert <eggert@cs.ucla.edu>
20974
20975         linkat: Make implementation robust against system behaviour variations.
20976         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
20977         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
20978         way, and to -2 if it needs a generic runtime test.
20979         * lib/linkat.c (solaris_optimized_link_immediate,
20980         solaris_optimized_link_follow): New functions.
20981         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
20982         (check_same_link): Use it.
20983
20984 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
20985
20986         New module 'unigbrk/base'.
20987         * modules/unigbrk/base: New file.
20988         * lib/unigbrk.in.h: New file.
20989
20990         New module 'unigbrk/uc-gbrk-prop'.
20991         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
20992         * modules/unigbrk/uc-gbrk-prop: New file.
20993         * lib/unigbrk/gbrkprop.h: New file.
20994         * lib/unigbrk/uc-gbrk-prop.c: New file.
20995
20996         New module 'unigbrk/uc-is-grapheme-break'.
20997         * modules/unigbrk/uc-is-grapheme-break: New file.
20998         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
20999         * lib/unigbrk/uc-is-grapheme-break.c: New file.
21000         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
21001         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
21002         * tests/unigbrk/GraphemeBreakTest.txt: New file.
21003
21004         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
21005
21006 2010-12-27  Bruno Haible  <bruno@clisp.org>
21007
21008         linkat test: Avoid failure on Solaris 11 2010-11.
21009         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
21010
21011 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21012
21013         utimens: work around glibc rounding bug on more platforms
21014         * lib/utimens.c (fdutimens): Work around rounding bug even if
21015         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
21016         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
21017
21018 2010-12-27  Bruno Haible  <bruno@clisp.org>
21019
21020         select tests: Improve comments.
21021         * tests/test-select.c (do_select): Add comments.
21022
21023 2010-12-27  Bruno Haible  <bruno@clisp.org>
21024
21025         select tests: Safer way of handling timeout.
21026         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
21027         at every invocation.
21028
21029 2010-12-27  Bruno Haible  <bruno@clisp.org>
21030
21031         select tests: Use 'bool' where appropriate.
21032         * tests/test-select.c (connect_to_socket): Change argument type to
21033         'bool'.
21034
21035 2010-12-27  Bruno Haible  <bruno@clisp.org>
21036
21037         select tests: Use existing modules.
21038         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
21039         (configure.ac): Don't test for unistd.h.
21040         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
21041         declared in <unistd.h>.
21042
21043 2010-12-27  Bruno Haible  <bruno@clisp.org>
21044
21045         mbrtowc: Work around a Solaris 7 bug.
21046         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
21047         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
21048         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
21049         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
21050         MBRTOWC_NULL_ARG1_BUG.
21051         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
21052         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
21053         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
21054         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
21055
21056 2010-12-27  Jim Meyering  <meyering@redhat.com>
21057
21058         read-file.c: tweak syntax
21059         * lib/read-file.c (fread_file): Remove space after "*" in function
21060         definitions.
21061
21062 2010-12-27  Bruno Haible  <bruno@clisp.org>
21063
21064         times test: Avoid gcc warnings on OSF/1.
21065         * tests/test-times.c (main): Cast printf arguments from clock_t to
21066         'long int'.
21067
21068 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21069
21070         utimens: work around glibc rounding bug on older Linux kernels
21071         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
21072         on Linux with a glibc whose utimes might not work, then work
21073         around a longstanding glibc bug involving rounding rather than
21074         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
21075         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21076
21077 2010-12-26  Bruno Haible  <bruno@clisp.org>
21078
21079         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
21080         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
21081         _GL_CXXALIAS_SYS.
21082         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21083
21084 2010-12-26  Bruno Haible  <bruno@clisp.org>
21085
21086         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
21087         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
21088         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
21089         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
21090         looking for the declaration.
21091         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
21092         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
21093         problem.
21094         * doc/posix-functions/inet_pton.texi: Likewise.
21095
21096 2010-12-26  Bruno Haible  <bruno@clisp.org>
21097
21098         arpa_inet: Use the common idioms with C++ support.
21099         * lib/arpa_inet.in.h: Include c++defs.h.
21100         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
21101         support.
21102         * modules/arpa_inet (Depends-on): Add c++defs.
21103         (Makefile.am): Substitute the contents of c++defs.h.
21104         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
21105         * modules/arpa_inet-c++-tests: New file.
21106         * tests/test-arpa_inet-c++.cc: New file.
21107
21108 2010-12-25  Bruno Haible  <bruno@clisp.org>
21109
21110         Fix more C++ link errors on Solaris 8.
21111         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
21112         $(LIB_EACCESS).
21113         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
21114         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
21115         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
21116         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
21117         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
21118
21119 2010-12-25  Bruno Haible  <bruno@clisp.org>
21120
21121         printf-posix: Fix link error when a non-GCC compiler is used.
21122         * lib/stdio.in.h (printf): When not using GCC, override printf
21123         correctly.
21124         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21125
21126 2010-12-25  Bruno Haible  <bruno@clisp.org>
21127
21128         strerror_r-posix: Update doc.
21129         * doc/posix-functions/strerror_r.texi: Update doc about the return
21130         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
21131
21132 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21133
21134         utimens: simplify the logic of the previous change
21135         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
21136         This should not affect whether the test succeeds or fails.
21137
21138         utimens: configure better on hosts with NFS clock skew
21139         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
21140         uses the clock of the local host.  It might use the clock of the
21141         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
21142         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21143
21144 2010-12-25  Bruno Haible  <bruno@clisp.org>
21145
21146         ptsname test: Avoid failure on Solaris.
21147         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
21148         open a pseudo-terminal; don't use BSD-style ptys.
21149         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
21150
21151 2010-12-25  Bruno Haible  <bruno@clisp.org>
21152
21153         ptsname: Avoid ERANGE failure on some systems.
21154         * lib/ptsname.c (buffer): Increase size.
21155
21156 2010-12-25  Bruno Haible  <bruno@clisp.org>
21157
21158         rename, renameat: Avoid test failures at NFS mounted locations.
21159         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
21160         so that subsequent mkdir calls succeed.
21161
21162 2010-12-25  Bruno Haible  <bruno@clisp.org>
21163
21164         iswblank: Fix C++ link error on Solaris 8.
21165         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
21166         _GL_FUNCDECL_SYS.
21167
21168 2010-12-25  Bruno Haible  <bruno@clisp.org>
21169
21170         unistd: Fix C++ link error on Solaris 8.
21171         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
21172
21173 2010-12-25  Bruno Haible  <bruno@clisp.org>
21174
21175         readlink doc: Mention an old glibc bug.
21176         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
21177
21178 2010-12-25  Bruno Haible  <bruno@clisp.org>
21179
21180         fcntl-h: Fix for use of C++ on glibc systems.
21181         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21182         also on glibc systems in C++ mode.
21183         Reported by Gary V. Vaughan <gary@gnu.org>.
21184
21185 2010-12-25  Bruno Haible  <bruno@clisp.org>
21186
21187         roundl-ieee: Make it work on OSF/1 5.1 with cc.
21188         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
21189
21190 2010-12-25  Bruno Haible  <bruno@clisp.org>
21191
21192         truncl-ieee: Make it work on OSF/1 5.1 with cc.
21193         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
21194         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
21195         test whether truncl works according to ISO C 99 with IEC 60559.
21196         * m4/truncl-ieee.m4: New file.
21197         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
21198         m4/signbit.m4.
21199         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
21200
21201 2010-12-25  Bruno Haible  <bruno@clisp.org>
21202
21203         ceill-ieee: Make it work on OSF/1 5.1 with cc.
21204         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
21205         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
21206         test whether ceill works according to ISO C 99 with IEC 60559.
21207         * m4/ceill-ieee.m4: New file.
21208         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
21209         m4/signbit.m4.
21210         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
21211
21212 2010-12-25  Bruno Haible  <bruno@clisp.org>
21213
21214         Ensure all prerequisites of <wchar.h> are included.
21215         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
21216         before <wchar.h>.
21217         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21218         gl_MBRLEN_NUL_RETVAL): Likewise.
21219         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21220         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
21221         AC_FUNC_MBRTOWC): Likewise.
21222         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21223         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
21224         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21225         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21226         Likewise.
21227         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21228         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
21229         (gl_WCHAR_H): Improve comments.
21230         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21231
21232 2010-12-25  Bruno Haible  <bruno@clisp.org>
21233
21234         strtok_r: Fix C syntax error in autoconf macro.
21235         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
21236         characters in test program.
21237
21238 2010-12-24  Bruno Haible  <bruno@clisp.org>
21239
21240         ceil, trunc, round: Fix gcc warnings.
21241         * lib/ceil.c (MIN): Undefine before redefining.
21242         * lib/trunc.c (MIN): Likewise.
21243         * lib/round.c (MIN): Likewise.
21244         Include <math.h> first.
21245
21246 2010-12-24  Bruno Haible  <bruno@clisp.org>
21247
21248         select tests: Avoid failures on OSF/1 5.1.
21249         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
21250         failure of closing the last socket; it may fail with ECONNRESET.
21251
21252 2010-12-24  Eric Blake  <eblake@redhat.com>
21253
21254         stdint: avoid HP-UX 10.20 preprocessor bug
21255         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
21256         than #if.
21257         * tests/test-floor2.c (main): Likewise.
21258         Reported by Peter O'Gorman.
21259
21260         pipe: make obsoletion transition easier
21261         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
21262         * modules/pipe (Files): Include revived file.
21263         (Include): Drop reference, to mirror getdate's behavior.
21264
21265 2010-12-24  Bruno Haible  <bruno@clisp.org>
21266
21267         sys_socket: Hide mismatch of declarations on NonStop Kernel.
21268         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
21269         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
21270         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21271
21272 2010-12-24  Bruno Haible  <bruno@clisp.org>
21273
21274         gethostname: Ensure declaration on NonStop Kernel.
21275         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
21276         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21277
21278 2010-12-24  Bruno Haible  <bruno@clisp.org>
21279
21280         sys_select: Ensure all necessary types on NonStop Kernel.
21281         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
21282         include <sys/time.h>.
21283         * doc/posix-headers/sys_select.texi: Mention that it's missing on
21284         NonStop Kernel.
21285         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21286
21287 2010-12-24  Bruno Haible  <bruno@clisp.org>
21288
21289         sys_select: Remove unneeded include.
21290         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
21291         have <sys/select.h>.
21292
21293 2010-12-24  Bruno Haible  <bruno@clisp.org>
21294
21295         gethostname: Provide a fallback for HOST_NAME_MAX.
21296         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
21297         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
21298         instead.
21299         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21300
21301 2010-12-24  Bruno Haible  <bruno@clisp.org>
21302
21303         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
21304         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
21305         (SA_RESTART): Likewise.
21306         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21307
21308 2010-12-24  Bruno Haible  <bruno@clisp.org>
21309
21310         signal: Define NSIG.
21311         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
21312         * tests/test-signal.c (nsig): New variable.
21313         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21314
21315 2010-12-24  Bruno Haible  <bruno@clisp.org>
21316
21317         rename, renameat: Avoid test failures on OSF/1 5.1.
21318         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
21319         alternative error codes.
21320         * tests/test-renameat.c (main): Likewise.
21321
21322 2010-12-24  Bruno Haible  <bruno@clisp.org>
21323
21324         *printf: Detect large precisions bug on Solaris 10/SPARC.
21325         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
21326         by Paul Eggert.
21327         * tests/test-snprintf-posix.h (test_function): Add this test code here
21328         too.
21329         * tests/test-sprintf-posix.h (test_function): Likewise.
21330         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21331         * tests/test-vasprintf-posix.c (test_function): Likewise.
21332         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
21333         around by gnulib.
21334         * doc/posix-functions/printf.texi: Likewise.
21335         * doc/posix-functions/snprintf.texi: Likewise.
21336         * doc/posix-functions/sprintf.texi: Likewise.
21337         * doc/posix-functions/vfprintf.texi: Likewise.
21338         * doc/posix-functions/vprintf.texi: Likewise.
21339         * doc/posix-functions/vsnprintf.texi: Likewise.
21340         * doc/posix-functions/vsprintf.texi: Likewise.
21341         * doc/posix-functions/dprintf.texi: Undo last commit.
21342         * doc/posix-functions/vdprintf.texi: Likewise.
21343
21344 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21345
21346         tests: port test-fdutimensat.c to Solaris 8
21347         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
21348         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
21349         On Solaris 8, it fails with errno == ENOSYS, because there is no
21350         futimens (so it can't use the fd), and there is no lutimens (so it
21351         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
21352
21353         vsnprintf: make more consistent with snprintf; doc fixes
21354
21355         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
21356         the byte count return problem was promoted from the snprintf-posix
21357         to the snprintf module.
21358         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
21359         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
21360         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
21361         * tests/test-snprintf.c (main): Check the byte count returned.
21362         * tests/test-vsnprintf.c (main): Likewise.
21363
21364 2010-12-23  Eric Blake  <eblake@redhat.com>
21365
21366         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
21367         * modules/sigpipe (License): Relax license.
21368
21369 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21370
21371         doc: document Solaris printf bug with large float precisions
21372         * doc/posix-functions/dprintf.texi (dprintf):
21373         * doc/posix-functions/fprintf.texi (fprintf):
21374         * doc/posix-functions/printf.texi (printf):
21375         * doc/posix-functions/snprintf.texi (snprintf):
21376         * doc/posix-functions/sprintf.texi (sprintf):
21377         * doc/posix-functions/vdprintf.texi (vdprintf):
21378         * doc/posix-functions/vfprintf.texi (vfprintf):
21379         * doc/posix-functions/vprintf.texi (vprintf):
21380         * doc/posix-functions/vsnprintf.texi (vsnprintf):
21381         * doc/posix-functions/vsprintf.texi (vsprintf):
21382         Mention that these functions mishandle large floating point
21383         precisions on Solaris 10.  The same bug is also present in Solaris
21384         8, and I assume earlier.  This causes "cd gnulib-tests; make
21385         check" to fail on Solaris 8 (and I assume, later) when building
21386         the latest coreutils, in test-vasprintf-posix's call to
21387         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
21388         the wide flavors (e.g., wprintf) so this patch just updates the
21389         documentation for the narrow ones.
21390
21391         test-posixtm.c: add two tests
21392         * tests/test-posixtm.c: Add two tests, to highlight the
21393         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
21394         around this bug; this is merely to document it.
21395
21396 2010-12-22  Bruno Haible  <bruno@clisp.org>
21397
21398         getlogin_r: Work around portability problem on OSF/1.
21399         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
21400         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
21401         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
21402         test for a truncated result.
21403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
21404         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
21405         * modules/getlogin_r (Depends-on): Add memchr.
21406         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
21407
21408 2010-12-22  Bruno Haible  <bruno@clisp.org>
21409
21410         ptsname: Avoid test failure on OSF/1 5.1.
21411         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
21412         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
21413         (same_slave): New function.
21414         (main): Use it to compare ptsname's result with the expected file name.
21415
21416 2010-12-22  Bruno Haible  <bruno@clisp.org>
21417
21418         Port extended stdio modules to HP NonStop Kernel.
21419         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
21420         macros.
21421         * lib/fbufmode.c: Update comments.
21422         * lib/fflush.c: Likewise.
21423         * lib/fpurge.c: Likewise.
21424         * lib/freadable.c: Likewise.
21425         * lib/freadahead.c: Likewise.
21426         * lib/freading.c: Likewise.
21427         * lib/freadptr.c: Likewise.
21428         * lib/freadseek.c: Likewise.
21429         * lib/fseeko.c: Likewise.
21430         * lib/fseterr.c: Likewise.
21431         * lib/fwritable.c: Likewise.
21432         * lib/fwriting.c: Likewise.
21433         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21434
21435 2010-12-22  Bruno Haible  <bruno@clisp.org>
21436
21437         ttyname_r: Work around bug on OSF/1 5.1.
21438         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
21439         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
21440         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
21441         present.
21442         * lib/ttyname_r.c (ttyname_r): Update comments.
21443
21444 2010-12-22  Bruno Haible  <bruno@clisp.org>
21445
21446         round: Implement result sign according to IEEE 754.
21447         * lib/round.c (MIN, MINUS_ZERO): New macros.
21448         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
21449         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
21450         * tests/test-round-ieee.c (main): Likewise.
21451         * tests/test-roundl-ieee.c (main): Likewise.
21452
21453         trunc: Implement result sign according to IEEE 754.
21454         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
21455         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
21456         * tests/test-trunc2.c: Include minus-zero.h.
21457         (MINUS_ZERO): New macro.
21458         (trunc_reference): Keep in sync with lib/trunc.c.
21459         * tests/test-truncf2.c: Include minus-zero.h.
21460         (MINUS_ZERO): New macro.
21461         (truncf_reference): Keep in sync with lib/trunc.c.
21462         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
21463         * tests/test-trunc-ieee.c (main): Likewise.
21464         * tests/test-truncl-ieee.c (main): Likewise.
21465
21466         ceil: Implement result sign according to IEEE 754.
21467         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
21468         (FUNC): Return -0.0 for -1 < x < 0.
21469         * tests/test-ceil2.c: Include minus-zero.h.
21470         (MINUS_ZERO): New macro.
21471         (ceil_reference): Keep in sync with lib/ceil.c.
21472         * tests/test-ceilf2.c: Include minus-zero.h.
21473         (MINUS_ZERO): New macro.
21474         (ceilf_reference): Keep in sync with lib/ceil.c.
21475         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
21476         * tests/test-ceil-ieee.c (main): Likewise.
21477         * tests/test-ceill-ieee.c (main): Likewise.
21478
21479         floor: Implement result sign according to IEEE 754.
21480         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
21481         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
21482         * tests/test-floorf2.c (floorf_reference): Likewise.
21483         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
21484         * tests/test-floor-ieee.c (main): Likewise.
21485         * tests/test-floorl-ieee.c (main): Likewise.
21486
21487 2010-12-22  Bruno Haible  <bruno@clisp.org>
21488
21489         getaddrinfo: Update doc.
21490         * doc/posix-functions/gai_strerror.texi: Return type is also different
21491         on AIX and HP-UX.
21492
21493 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21494
21495         getaddrinfo, inet_ntop: Update doc for Solaris.
21496         * doc/posix-functions/gai_strerror.texi: Return type is also an
21497         issue on Solaris 9 and earlier.
21498         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
21499         on Solaris 10 and earlier.
21500
21501 2010-12-21  Bruno Haible  <bruno@clisp.org>
21502
21503         New module 'roundl-ieee'.
21504         * modules/roundl-ieee: New file.
21505         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
21506         test whether roundl works according to ISO C 99 with IEC 60559.
21507         * m4/roundl-ieee.m4: New file.
21508         * modules/roundl-ieee-tests: New file.
21509         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
21510         * tests/test-roundl.c (main): Remove signbit tests.
21511         * modules/roundl-tests (Depends-on): Remove signbit.
21512         * doc/posix-functions/roundl.texi: Mention the new module.
21513
21514 2010-12-21  Bruno Haible  <bruno@clisp.org>
21515
21516         New module 'truncl-ieee'.
21517         * modules/truncl-ieee: New file.
21518         * modules/truncl-ieee-tests: New file.
21519         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
21520         * tests/test-truncl.c (main): Remove signbit tests.
21521         * modules/truncl-tests (Depends-on): Remove signbit.
21522         * doc/posix-functions/truncl.texi: Mention the new module.
21523
21524 2010-12-21  Bruno Haible  <bruno@clisp.org>
21525
21526         New module 'ceill-ieee'.
21527         * modules/ceill-ieee: New file.
21528         * modules/ceill-ieee-tests: New file.
21529         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
21530         * tests/test-ceill.c (main): Remove signbit tests.
21531         * modules/ceill-tests (Depends-on): Remove signbit.
21532         * doc/posix-functions/ceill.texi: Mention the new module.
21533
21534 2010-12-21  Bruno Haible  <bruno@clisp.org>
21535
21536         New module 'floorl-ieee'.
21537         * modules/floorl-ieee: New file.
21538         * modules/floorl-ieee-tests: New file.
21539         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
21540         * tests/test-floorl.c (main): Remove signbit tests.
21541         * modules/floorl-tests (Depends-on): Remove signbit.
21542         * doc/posix-functions/floorl.texi: Mention the new module.
21543
21544 2010-12-21  Bruno Haible  <bruno@clisp.org>
21545
21546         New module 'round-ieee'.
21547         * modules/round-ieee: New file.
21548         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
21549         whether round works according to ISO C 99 with IEC 60559.
21550         * m4/round-ieee.m4: New file.
21551         * modules/round-ieee-tests: New file.
21552         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
21553         * tests/test-round1.c (main): Remove signbit tests.
21554         * modules/round-tests (Depends-on): Remove 'signbit'.
21555         * doc/posix-functions/round.texi: Mention the new module.
21556
21557 2010-12-21  Bruno Haible  <bruno@clisp.org>
21558
21559         New module 'trunc-ieee'.
21560         * modules/trunc-ieee: New file.
21561         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
21562         whether trunc works according to ISO C 99 with IEC 60559.
21563         * m4/trunc-ieee.m4: New file.
21564         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
21565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
21566         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
21567         * modules/trunc-ieee-tests: New file.
21568         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
21569         * tests/test-trunc1.c (main): Remove signbit tests.
21570         * modules/trunc-tests (Depends-on): Remove 'signbit'.
21571         * doc/posix-functions/trunc.texi: Mention the new module.
21572
21573 2010-12-21  Bruno Haible  <bruno@clisp.org>
21574
21575         New module 'ceil-ieee'.
21576         * modules/ceil-ieee: New file.
21577         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
21578         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
21579         ISO C 99 with IEC 60559.
21580         * m4/ceil-ieee.m4: New file.
21581         * modules/ceil (Files): Add lib/ceil.c.
21582         (Depends-on): Add 'float'.
21583         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21584         * lib/math.in.h (ceil): New declaration.
21585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
21586         REPLACE_CEIL.
21587         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
21588         * modules/ceil-ieee-tests: New file.
21589         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
21590         * tests/test-math-c++.cc: Check the signature of 'ceil'.
21591         * doc/posix-functions/ceil.texi: Mention the new module.
21592
21593 2010-12-21  Bruno Haible  <bruno@clisp.org>
21594
21595         New module 'floor-ieee'.
21596         * modules/floor-ieee: New file.
21597         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
21598         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
21599         ISO C 99 with IEC 60559.
21600         * m4/floor-ieee.m4: New file.
21601         * modules/floor (Files): Add lib/floor.c.
21602         (Depends-on): Add 'float'.
21603         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21604         * lib/math.in.h (floor): New declaration.
21605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
21606         REPLACE_FLOOR.
21607         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
21608         * modules/floor-ieee-tests: New file.
21609         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
21610         * tests/test-math-c++.cc: Check the signature of 'floor'.
21611         * doc/posix-functions/floor.texi: Mention the new module.
21612
21613 2010-12-21  Bruno Haible  <bruno@clisp.org>
21614
21615         New module 'roundf-ieee'.
21616         * modules/roundf-ieee: New file.
21617         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
21618         test whether roundf works according to ISO C 99 with IEC 60559.
21619         * m4/roundf-ieee.m4: New file.
21620         * modules/roundf-ieee-tests: New file.
21621         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
21622         * tests/test-roundf1.c (main): Remove signbit tests.
21623         * modules/roundf-tests (Depends-on): Remove 'signbit'.
21624         * doc/posix-functions/roundf.texi: Mention the new module.
21625
21626 2010-12-21  Bruno Haible  <bruno@clisp.org>
21627
21628         New module 'truncf-ieee'.
21629         * modules/truncf-ieee: New file.
21630         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
21631         test whether truncf works according to ISO C 99 with IEC 60559.
21632         * m4/truncf-ieee.m4: New file.
21633         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
21634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
21635         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
21636         * modules/truncf-ieee-tests: New file.
21637         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
21638         * tests/test-truncf1.c (main): Remove signbit tests.
21639         * modules/truncf-tests (Depends-on): Remove 'signbit'.
21640         * doc/posix-functions/truncf.texi: Mention the new module.
21641
21642 2010-12-21  Bruno Haible  <bruno@clisp.org>
21643
21644         New module 'ceilf-ieee'.
21645         * modules/ceilf-ieee: New file.
21646         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
21647         test whether ceilf works according to ISO C 99 with IEC 60559.
21648         * m4/ceilf-ieee.m4: New file.
21649         * modules/ceilf-ieee-tests: New file.
21650         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
21651         * tests/test-ceilf1.c (main): Remove signbit tests.
21652         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
21653         * doc/posix-functions/ceilf.texi: Mention the new module.
21654
21655 2010-12-21  Bruno Haible  <bruno@clisp.org>
21656
21657         New module 'floorf-ieee'.
21658         * modules/floorf-ieee: New file.
21659         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
21660         test whether floorf works according to ISO C 99 with IEC 60559.
21661         * m4/floorf-ieee.m4: New file.
21662         * modules/floorf-ieee-tests: New file.
21663         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
21664         * tests/test-floorf1.c (main): Remove signbit tests.
21665         * modules/floorf-tests (Depends-on): Remove 'signbit'.
21666         * doc/posix-functions/floorf.texi: Mention the new module.
21667
21668 2010-12-21  Bruno Haible  <bruno@clisp.org>
21669
21670         Support for minus zero in autoconf macros.
21671         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
21672         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
21673         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
21674         * tests/minus-zero.h: Update comments.
21675
21676 2010-12-21  Bruno Haible  <bruno@clisp.org>
21677
21678         Tests for module 'ceil'.
21679         * modules/ceil-tests: New file.
21680         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
21681         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
21682
21683 2010-12-21  Bruno Haible  <bruno@clisp.org>
21684
21685         Tests for module 'floor'.
21686         * modules/floor-tests: New file.
21687         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
21688         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
21689
21690 2010-12-21  Bruno Haible  <bruno@clisp.org>
21691
21692         math: Fix indentation.
21693         * lib/math.in.h (floorf): Fix indentation.
21694
21695 2010-12-21  Bruno Haible  <bruno@clisp.org>
21696
21697         Fix cross-compilation guesses on Solaris.
21698         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
21699         not match "solaris2.10".
21700         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21701         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
21702         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
21703
21704 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
21705
21706         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
21707         This fixes a problem observed with the latest coreutils snapshot
21708         that caused a test to fail on Solaris 8.  src/csplit.c's call
21709         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
21710         earlier, instead of returning the number of bytes that would have
21711         been generated; this causes csplit to incorrectly report memory
21712         exhaustion.
21713         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
21714         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
21715         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
21716         comments to match.
21717         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
21718         Fix typo in matching older versions of Solaris: "solaris2.10"
21719         is matched by the shell pattern "solaris2.[0-9]*".  This matters
21720         only for guessing while cross-compiling.
21721         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
21722
21723 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
21724
21725         ftoastr: fix comment again
21726         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
21727         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
21728         Also, simplify example a bit by using flags = 0.
21729
21730 2010-12-20  Bruno Haible  <bruno@clisp.org>
21731
21732         round*, trunc*: Update documentation regarding glibc.
21733         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
21734         * doc/posix-functions/round.texi: Likewise.
21735         * doc/posix-functions/roundl.texi: Likewise.
21736         * doc/posix-functions/truncf.texi: Likewise.
21737         * doc/posix-functions/trunc.texi: Likewise.
21738         * doc/posix-functions/truncl.texi: Likewise.
21739
21740 2010-12-20  Bruno Haible  <bruno@clisp.org>
21741
21742         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
21743         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
21744         * doc/posix-functions/round.texi: Likewise.
21745         * doc/posix-functions/roundl.texi: Likewise.
21746
21747 2010-12-20  Bruno Haible  <bruno@clisp.org>
21748
21749         ttyname_r: Add missing declaration on HP-UX 11.
21750         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
21751         HAVE_TTYNAME_R.
21752         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
21753         declared. Set HAVE_TTYNAME_R always.
21754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21755         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
21756         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
21757         HAVE_TTYNAME_R.
21758         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
21759
21760 2010-12-20  Bruno Haible  <bruno@clisp.org>
21761
21762         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
21763         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
21764         * doc/posix-functions/getlogin_r.texi: Likewise.
21765         * tests/test-getlogin.c: Include <errno.h>.
21766         (main): Avoid test failure on HP-UX 11.11.
21767         * tests/test-getlogin_r.c (main): Likewise.
21768
21769 2010-12-20  Bruno Haible  <bruno@clisp.org>
21770
21771         getlogin_r: Add missing declaration on HP-UX 11.
21772         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
21773         declared also when it exists as a function.
21774         * doc/posix-functions/getlogin_r.texi: Document this workaround.
21775
21776 2010-12-20  Bruno Haible  <bruno@clisp.org>
21777
21778         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
21779         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
21780         through wcrtomb.
21781
21782 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21783
21784         ftoastr: fix comment
21785         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
21786         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
21787
21788 2010-12-19  Bruno Haible  <bruno@clisp.org>
21789
21790         isnan: Ensure it is a macro.
21791         * lib/math.in.h (isnan): Define as a macro if not already a macro.
21792         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
21793         Solaris.
21794
21795 2010-12-19  Bruno Haible  <bruno@clisp.org>
21796
21797         ldexpl test: Fix link error on OSF/1 5.1.
21798         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
21799
21800 2010-12-19  Bruno Haible  <bruno@clisp.org>
21801
21802         wctype: Make it work in C++ mode on OSF/1 5.1.
21803         * lib/wctype.in.h (iswblank): Declare but not define here.
21804         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
21805         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
21806         * modules/wctype (Files): Add lib/iswblank.c.
21807
21808 2010-12-19  Bruno Haible  <bruno@clisp.org>
21809
21810         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
21811         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
21812         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
21813
21814 2010-12-19  Bruno Haible  <bruno@clisp.org>
21815
21816         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
21817         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
21818         _POSIX_PII_SOCKET.
21819         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
21820         * doc/posix-functions/recvfrom.texi: Likewise.
21821         * doc/posix-functions/send.texi: Likewise.
21822         * doc/posix-functions/sendto.texi: Likewise.
21823
21824 2010-12-19  Bruno Haible  <bruno@clisp.org>
21825
21826         tcgetsid: Add missing declaration on OSF/1 5.1.
21827         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
21828         HAVE_TCGETSID.
21829         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
21830         Don't set HAVE_TCGETSID.
21831         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
21832         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
21833         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
21834         HAVE_TCGETSID.
21835         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
21836
21837 2010-12-19  Bruno Haible  <bruno@clisp.org>
21838
21839         stdio: Fix problem with popen() declaration on OSF/1 5.1.
21840         * lib/stdio.in.h: During the include_next statement, let recursive
21841         includes of this file include only the system header file.
21842
21843 2010-12-19  Bruno Haible  <bruno@clisp.org>
21844
21845         iconv_open: Fix regression from 2010-12-04.
21846         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
21847         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
21848
21849 2010-12-19  Bruno Haible  <bruno@clisp.org>
21850
21851         stdbool test: Avoid a gcc warning.
21852         * tests/test-stdbool.c (main): Fail if e1 is false.
21853         Reported by Jim Meyering.
21854
21855 2010-12-19  Jim Meyering  <meyering@redhat.com>
21856
21857         setenv: restore to working order
21858         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
21859         mistakenly removed.
21860         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
21861         HAVE_SETENV.
21862         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
21863         HAVE_SETENV.
21864
21865 2010-12-19  Bruno Haible  <bruno@clisp.org>
21866
21867         Document some different function declarations on OSF/1 5.1.
21868         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
21869         * doc/posix-functions/inet_ntop.texi: Likewise.
21870         * doc/posix-functions/gethostname.texi: Likewise.
21871         * lib/unistd.in.h (gethostname): Update comment.
21872
21873 2010-12-19  Bruno Haible  <bruno@clisp.org>
21874
21875         doc: Mention vasprintf-posix module.
21876         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
21877         the 'vasprintf-posix' module.
21878         * doc/glibc-functions/vasprintf.texi: Likewise.
21879
21880 2010-12-19  Bruno Haible  <bruno@clisp.org>
21881
21882         unsetenv: Add missing declaration on OSF/1 5.1.
21883         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
21884         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
21885         Don't set HAVE_UNSETENV. In the test program, set _BSD.
21886         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
21887         not HAVE_UNSETENV.
21888         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
21889         HAVE_UNSETENV.
21890         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
21891
21892 2010-12-19  Bruno Haible  <bruno@clisp.org>
21893
21894         setenv: Add missing declaration on OSF/1 5.1.
21895         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
21896         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
21897         declared. Don't set HAVE_SETENV.
21898         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
21899         not HAVE_SETENV.
21900         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
21901         HAVE_SETENV.
21902         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
21903
21904 2010-12-19  Bruno Haible  <bruno@clisp.org>
21905
21906         nl_langinfo tests: Avoid gcc warning.
21907         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
21908
21909 2010-12-19  Bruno Haible  <bruno@clisp.org>
21910
21911         mknod: Avoid error in C++ mode on OSF/1 with GCC.
21912         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
21913         _GL_CXXALIAS_SYS.
21914
21915 2010-12-19  Bruno Haible  <bruno@clisp.org>
21916
21917         stdbool: Relax test.
21918         * tests/test-stdbool.c (e): Don't require that casts from a variable's
21919         address to 'bool' work in static initializer, for compilers other than
21920         GCC.
21921
21922 2010-12-19  Bruno Haible  <bruno@clisp.org>
21923
21924         ftello: Add missing declaration on OSF/1 5.1.
21925         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
21926         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
21927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
21928         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
21929         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
21930
21931 2010-12-19  Bruno Haible  <bruno@clisp.org>
21932
21933         fseeko: Add missing declaration on OSF/1 5.1.
21934         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
21935         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
21936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
21937         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
21938         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
21939
21940 2010-12-19  Bruno Haible  <bruno@clisp.org>
21941
21942         fchdir: Add missing declaration on OSF/1 5.1.
21943         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
21944         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
21945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
21946         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
21947         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
21948
21949 2010-12-19  Bruno Haible  <bruno@clisp.org>
21950
21951         relocatable-prog-wrapper: Separate from relocatable-prog.
21952         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
21953         uninstall-relocwrapper rule here.
21954         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
21955         Reported by Ian Beckwith <ianb@erislabs.net>.
21956
21957 2010-12-19  Bruno Haible  <bruno@clisp.org>
21958
21959         unistr/u8-mbsnlen: Add missing dependency.
21960         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
21961         Reported by Ian Beckwith <ianb@erislabs.net>.
21962
21963 2010-12-19  Bruno Haible  <bruno@clisp.org>
21964
21965         iconv: Make it possible again to use this module without 'iconv-h'.
21966         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
21967         if it is not defined.
21968         Reported by Ian Beckwith <ianb@erislabs.net>.
21969
21970 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21971
21972         acl: port to Solaris 8 when copying from tmpfs to ufs
21973         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
21974         error number.  Problem observed on Solaris 8 with latest
21975         coreutils, with "mv A B", where A is on a tmpfs file system and B
21976         is on a ufs file system.  This caused coreutils' mv/part-symlink
21977         test to fail.
21978
21979         tests: set fail=0 at start
21980         * tests/init.sh (setup_): Move fail=0 initialization here ...
21981         (mktempd_): ... from here, so that tests can rely on fail being
21982         set to 0 initially.  This fixes a problem in coreutils; see:
21983         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
21984
21985 2010-12-18  Bruno Haible  <bruno@clisp.org>
21986
21987         memmem-simple: Stylistic changes.
21988         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
21989         Fix preprocessor directive indentation.
21990
21991 2010-12-15  Pádraig Brady <P@draigBrady.com>
21992
21993         memmem, memmem-simple: reorganize and expand empty needle check
21994         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
21995         functional checks to memmem-simple so that one has a fully functional
21996         memmem by using just this module.
21997         Restrict the performance only check to the memmem module.
21998         Also expand the empty needle check to ensure the correct
21999         pointer is returned, not just a non NULL pointer.
22000         * doc/glibc-functions/memmem.texi: Rearrange the portability
22001         documentation to correlate with the rearranged checks.
22002         Clarify exactly how the memmem and memmem-simple modules
22003         relate to each other.
22004
22005 2010-12-15  Pádraig Brady <P@draigBrady.com>
22006             Bruno Haible  <bruno@clisp.org>
22007
22008         Improve cross-compilation guesses for uClibc.
22009         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
22010         that uClibc does not have the glibc bug.
22011         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22012         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
22013
22014 2010-12-14  Eric Blake  <eblake@redhat.com>
22015
22016         configmake: provide fallbacks for oldest supported autotools
22017         * m4/configmake.m4: New file.
22018         * modules/configmake (Files): Ship it.
22019         (configure.ac): Use it to guarantee fallbacks.
22020
22021 2010-12-13  Pádraig Brady <P@draigBrady.com>
22022
22023         read-file: Improve handling of large files
22024         * lib/read-file.c (fread_file): Minimize realloc()s
22025         for regular files, and better manage sizes around SIZE_MAX.
22026
22027 2010-12-13  Eric Blake  <eblake@redhat.com>
22028
22029         cloexec, fcntl: relax license
22030         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
22031         consent from all contributors.
22032         * modules/fcntl (License): Likewise.
22033
22034 2010-12-10  Bruno Haible  <bruno@clisp.org>
22035
22036         Tests for module 'pipe-posix'.
22037         * modules/pipe-posix-tests: New file.
22038         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
22039
22040 2010-12-10  Bruno Haible  <bruno@clisp.org>
22041
22042         pipe-posix: Make it work in C++ mode.
22043         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
22044         (pipe): Use common idiom, not a macro definition.
22045         * lib/pipe.c: New file.
22046         * m4/pipe.m4: New file.
22047         * modules/pipe-posix (Description): Enhance.
22048         (Files): Add lib/pipe.c, m4/pipe.m4.
22049         (configure.ac): Invoke gl_FUNC_PIPE.
22050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
22051         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
22052         * tests/test-unistd-c++.cc: Check the signature of pipe.
22053
22054 2010-12-10  Bruno Haible  <bruno@clisp.org>
22055
22056         Rename module 'pipe' to 'spawn-pipe'.
22057         * modules/spawn-pipe: New file, renamed from modules/pipe.
22058         (Files, configure.ac, Makefile.am): Update.
22059         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
22060         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
22061         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
22062         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
22063         "spawn-pipe.h" instead of "pipe.h".
22064         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
22065         to gl_SPAWN_PIPE.
22066         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
22067         (Files, Makefile.am): Update.
22068         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
22069         Update.
22070         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
22071         Include "spawn-pipe.h" instead of "pipe.h".
22072         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
22073         * lib/javacomp.c: Likewise.
22074         * lib/javaversion.c: Likewise.
22075         * lib/pipe-filter-gi.c: Likewise.
22076         * lib/pipe-filter-ii.c: Likewise.
22077         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
22078         * modules/javacomp (Depends-on): Likewise.
22079         * modules/javaversion (Depends-on): Likewise.
22080         * modules/pipe-filter-gi (Depends-on): Likewise.
22081         * modules/pipe-filter-ii (Depends-on): Likewise.
22082         * MODULES.html.sh (Executing programs): Update.
22083         * NEWS: Mention the change.
22084
22085 2010-12-10  Eric Blake  <eblake@redhat.com>
22086
22087         pipe-posix: new module
22088         * modules/pipe-posix: New file.
22089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
22090         (gl_UNISTD_H): Check for declaration.
22091         * modules/unistd (Makefile.am): Substitute it.
22092         * lib/unistd.in.h (pipe): Provide it for mingw.
22093         * doc/posix-functions/pipe.texi (pipe): Update documentation.
22094         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
22095
22096 2010-12-07  Bruno Haible  <bruno@clisp.org>
22097
22098         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
22099         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
22100         u8_strcmp_gnu.
22101         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
22102
22103 2010-12-06  Bruno Haible  <bruno@clisp.org>
22104
22105         Update internal documentation.
22106         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
22107
22108 2010-12-04  Bruno Haible  <bruno@clisp.org>
22109
22110         Put more information about failed tests into the test return codes.
22111         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
22112         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
22113         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22114         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22115         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
22116         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22117         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22118         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22119         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
22120         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22121         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
22122         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22123         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
22124         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22125         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
22126         returns a bit mask.
22127         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
22128         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
22129         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
22130         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
22131         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22132         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22133         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22134         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22135         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22136         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22137         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22138         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22139         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22140         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22141         * m4/link.m4 (gl_FUNC_LINK): Likewise.
22142         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
22143         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
22144         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
22145         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22146         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
22147         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22148         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22149         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22150         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22151         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22152         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22153         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
22154         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22155         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22156         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
22157         gl_PRINTF_PRECISION): Likewise.
22158         * m4/regex.m4 (gl_REGEX): Likewise.
22159         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22160         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22161         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
22162         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22163         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22165         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
22166         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
22167         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22168         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22169         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
22170         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22171         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22172         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22173         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22174         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22175         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22176         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22177         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22178         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
22179         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
22180         enumerated value.
22181         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
22182
22183 2010-12-04  Bruno Haible  <bruno@clisp.org>
22184
22185         Update for Solaris 11 2010-11.
22186         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
22187         Express, released in November 2010.
22188
22189 2010-12-04  Bruno Haible  <bruno@clisp.org>
22190
22191         nproc: Relax license.
22192         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
22193         and Paul Eggert.
22194         Requested by Ludovic Courtès <ludo@gnu.org>.
22195
22196 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
22197
22198         utimecmp: fine-grained src to nearby coarse-grained dest
22199
22200         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
22201         and the source is on a file system with higher-resolution time
22202         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
22203         not work, and the time stamps are close together, the algorithm to
22204         determine the exact resolution from the read-back mtime was buggy:
22205         it had a "!=" where it should have had an "==".  This bug has been
22206         in the code ever since it was introduced to gnulib.
22207         Problem reported by Dan Jacobson in
22208         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
22209
22210 2010-11-30  Bruno Haible  <bruno@clisp.org>
22211
22212         strerror_r-posix: Fix autoconf test.
22213         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
22214
22215 2010-11-28  Bruno Haible  <bruno@clisp.org>
22216             Paul Eggert  <eggert@cs.ucla.edu>
22217
22218         Tests for module 'getdomainname'.
22219         * modules/getdomainname-tests: New file.
22220         * tests/test-getdomainname.c: New file, based on
22221         tests/test-gethostname.c.
22222
22223 2010-11-28  Bruno Haible  <bruno@clisp.org>
22224             Paul Eggert  <eggert@cs.ucla.edu>
22225
22226         getdomainname: Use the system function when possible.
22227         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
22228         (getdomainname): Replace if needed. Provide the declaration if it is
22229         missing. Don't use _GL_CXXALIAS_SYS_CAST.
22230         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
22231         (getdomainname): When the system has getdomainname, call the system
22232         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
22233         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
22234         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
22235         found in libnsl. Look for the declaration also in <netdb.h>. Replace
22236         the function if its second argument is of type 'int' or if it is found
22237         in libnsl.
22238         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
22239         <sys/systeminfo.h> and sysinfo().
22240         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
22241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22242         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
22243         HAVE_GETDOMAINNAME.
22244         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
22245         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
22246         * doc/glibc-functions/getdomainname.texi: Document the problems with
22247         the getdomainname declaration.
22248
22249 2010-11-28  Bruno Haible  <bruno@clisp.org>
22250
22251         sys_socket: Ensure ss_family field on AIX.
22252         * lib/sys_socket.in.h (ss_family): New macro definition.
22253         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
22254         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
22255         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
22256         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
22257         * modules/sys_socket (Makefile.am): Substitute
22258         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
22259         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
22260
22261 2010-11-27  Bruno Haible  <bruno@clisp.org>
22262
22263         readline: Improve configure output.
22264         * m4/readline.m4 (gl_FUNC_READLINE): Make the
22265         "checking for readline..." result understandable.
22266
22267 2010-11-27  Bruno Haible  <bruno@clisp.org>
22268
22269         *printf-posix: Detect a bug on Solaris 10/x86.
22270         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
22271         for floating-point output.
22272         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
22273         directive.
22274         * tests/test-snprintf-posix.h (test_function): Likewise.
22275         * tests/test-sprintf-posix.h (test_function): Likewise.
22276         * tests/test-vasprintf-posix.c (test_function): Likewise.
22277         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
22278         * doc/posix-functions/printf.texi: Likewise.
22279         * doc/posix-functions/snprintf.texi: Likewise.
22280         * doc/posix-functions/sprintf.texi: Likewise.
22281         * doc/posix-functions/vfprintf.texi: Likewise.
22282         * doc/posix-functions/vprintf.texi: Likewise.
22283         * doc/posix-functions/vsnprintf.texi: Likewise.
22284         * doc/posix-functions/vsprintf.texi: Likewise.
22285         * doc/glibc-functions/obstack_printf.texi: Likewise.
22286         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22287
22288 2010-11-27  Bruno Haible  <bruno@clisp.org>
22289
22290         Fix link error when module libunistring-optional is in use.
22291         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
22292         * modules/striconveha-tests (Makefile.am): Likewise.
22293
22294 2010-11-27  Bruno Haible  <bruno@clisp.org>
22295
22296         regex: Mention link dependencies.
22297         * modules/regex (Link): New section.
22298         * modules/rpmatch (Link): Likewise.
22299         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
22300
22301 2010-11-27  Bruno Haible  <bruno@clisp.org>
22302
22303         ftoastr: Fix compilation error on Solaris.
22304         * lib/ftoastr.c: Include <config.h>.
22305
22306 2010-11-27  Bruno Haible  <bruno@clisp.org>
22307
22308         getloadavg: Update documentation.
22309         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
22310
22311 2010-11-27  Bruno Haible  <bruno@clisp.org>
22312
22313         sys_socket: Fix test whether the functions are declared.
22314         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
22315         not <sys/select.h>.
22316
22317 2010-11-27  Bruno Haible  <bruno@clisp.org>
22318
22319         getpass: Make sure to get system declaration on some platforms.
22320         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
22321         gl_USE_SYSTEM_EXTENSIONS.
22322         * modules/getpass (Depends-on): Add extensions.
22323
22324 2010-11-26  Bruno Haible  <bruno@clisp.org>
22325
22326         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
22327         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
22328         'iconv' module is present.
22329         (ICONV_CONST): New macro.
22330         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
22331         ICONV_CONST.
22332         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
22333         set ICONV_CONST.
22334         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
22335         here.
22336         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
22337         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
22338         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
22339         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
22340         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
22341         present.
22342
22343 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22344
22345         ftoastr: comment fix
22346         * lib/ftoastr.c: "little" -> "little or no" in comment
22347
22348 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
22349
22350         stdint: port to GCC 4.3 + OSX + Octave
22351         On this platform, stdint.h is buggy and defines int64_t to long
22352         long int.  The replacement defined it to long int, causing
22353         problems with C++ style name mangling.  Instead, trust the system
22354         definition if INT64_MAX is defined, and likewise for the unsigned
22355         variant.   Problem reported by Jarno Rajahalme in
22356         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
22357         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
22358         and don't mess with int64_t and INT64_MAX in this case.
22359         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
22360
22361 2010-11-24  Bruno Haible  <bruno@clisp.org>
22362
22363         doc: Corrections regarding MacOS X 10.4 and 10.5.
22364         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
22365         MacOS X.
22366         Reported by Simon Josefsson.
22367
22368 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
22369
22370         Uninstall ".bin" files installed by relocwrapper.
22371         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
22372         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
22373         unless it is already there.
22374
22375 2010-11-21  Bruno Haible  <bruno@clisp.org>
22376
22377         Update for NetBSD 5.0.
22378         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
22379         NetBSD; the test fails on NetBSD 5.0.
22380         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
22381         about NetBSD.
22382
22383 2010-11-21  Bruno Haible  <bruno@clisp.org>
22384
22385         Update for HP-UX 11.23 and HP-UX 11.31.
22386         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
22387         HP-UX.
22388
22389 2010-11-21  Bruno Haible  <bruno@clisp.org>
22390
22391         Update for MacOS X 10.5.
22392         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
22393         MacOS X; the test fails on MacOS X 10.5.8.
22394         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
22395         about MacOS X.
22396
22397 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
22398
22399         bootstrap: add bootstrap_sync option.
22400         See discussion at
22401         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
22402         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
22403         * build-aux/bootstrap: Accept --bootstrap-sync to update
22404         bootstrap if it is not identical to the local gnulib's
22405         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
22406         enable this by default.  Accept --no-bootstrap-sync to disable
22407         it.
22408
22409 2010-11-20  Bruno Haible  <bruno@clisp.org>
22410
22411         Ensure that <features.h> is included before __GLIBC__ is tested.
22412         * lib/printf-parse.h: Include <features.h>.
22413         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
22414         Reported by Mike Frysinger <vapier@gentoo.org>.
22415
22416         Ensure that <features.h> is included before __GLIBC__ is tested.
22417         * lib/wchar.in.h: Include <features.h>.
22418         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
22419         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
22420         Reported by Mike Frysinger <vapier@gentoo.org>.
22421
22422         Ensure that <features.h> is included before __GLIBC__ is tested.
22423         * lib/arpa_inet.in.h: Include <features.h>.
22424         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
22425         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
22426         Reported by Mike Frysinger <vapier@gentoo.org>.
22427
22428         Ensure that <features.h> is included before __GLIBC__ is tested.
22429         * build-aux/link-warning.h: Include <features.h>.
22430         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
22431         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
22432         Reported by Mike Frysinger <vapier@gentoo.org>.
22433
22434         Ensure that <features.h> is included before __GLIBC__ is tested.
22435         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
22436         Reported by Mike Frysinger <vapier@gentoo.org>.
22437
22438 2010-11-20  Bruno Haible  <bruno@clisp.org>
22439
22440         memmem: Fix autoconf test.
22441         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
22442
22443 2010-11-20  Bruno Haible  <bruno@clisp.org>
22444
22445         Port to uClibc.
22446         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
22447         * lib/fcntl.in.h: Likewise.
22448         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
22449         * lib/mbrtowc.c (mbrtowc): Likewise.
22450         * lib/relocatable.c (find_shared_library_fullname): Likewise.
22451         * lib/strerror_r.c: Likewise.
22452         * lib/unistr/u8-strnlen.c: Likewise.
22453         * lib/vasnprintf.c (decimal_point_char): Likewise.
22454         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22455         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22456         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
22457         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22458         * tests/test-sigaction.c (handler, main): Likewise.
22459         * lib/freading.h: Treat uClibc like a non-glibc platform.
22460         * lib/freading.c: Likewise.
22461         * lib/gettext.h: Likewise.
22462         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
22463         Likewise.
22464         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
22465         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
22466         * lib/propername.c (proper_name_utf8): Likewise.
22467         * lib/spawn.in.h: Likewise.
22468         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
22469         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
22470         mem_cd_iconveh_internal): Likewise.
22471         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
22472         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22473         strstr, strcasestr): Likewise.
22474         * lib/unicodeio.c (unicode_to_mb): Likewise.
22475         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
22476         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
22477         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
22478         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
22479         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
22480         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
22481         * lib/unistr/u8-stpncpy.c: Likewise.
22482         * lib/vasnprintf.c (VASNPRINTF): Likewise.
22483         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
22484         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22485         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22486         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22487         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
22488         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
22489         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
22490         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
22491         Likewise.
22492         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22493         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22494         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22495         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22496         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22497         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22498         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22499         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22500         * tests/test-getopt.h (OPTIND_MIN): Likewise.
22501         * tests/test-striconveha.c (main): Likewise.
22502         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22503         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
22504         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
22505         * doc/posix-functions/getline.texi: Likewise.
22506         Reported by Mike Frysinger <vapier@gentoo.org>.
22507
22508 2010-11-20  Bruno Haible  <bruno@clisp.org>
22509
22510         nproc: Fix condition.
22511         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
22512         HAVE_PTHREAD_AFFINITY_NP.
22513
22514 2010-11-20  Bruno Haible  <bruno@clisp.org>
22515
22516         Fix a comment.
22517         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
22518
22519 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
22520
22521         ftoastr: don't assume snprintf
22522         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
22523         Implement a subset of snprintf here, by using sprintf safely.
22524         * modules/ftoastr (Depends-on): Remove snprintf.
22525
22526 2010-11-19  Jim Meyering  <meyering@redhat.com>
22527
22528         test-rename.h: fix compilation failure
22529         * tests/test-rename.h (test_rename): Add omitted "}".
22530
22531 2010-11-17  Jim Meyering  <meyering@redhat.com>
22532
22533         maint.mk: add a URL discussing the no-@acronym policy
22534         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
22535
22536 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
22537
22538         ftoastr: depend on snprintf, improve comments
22539         * lib/ftoastr.c: Also mention Loitsch's draft.
22540         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
22541         needed in the current implementation, but it might simplify
22542         speeding up the code later.
22543         * modules/ftoastr: Depend on snprintf; this improves portability.
22544         Suggested by Bruno Haible in the same email.
22545
22546         ftoastr: port to hosts lacking strtof and strtold
22547         Problem reported by Bruno Haible in
22548         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
22549         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
22550         environment and strtold (and presumably strtof) are not available.
22551         * modules/ftoastr (Files): Add m4/c-strtod.m4.
22552         (configure.ac): Require gl_C99_STRTOLD.
22553
22554 2010-11-18  Bruno Haible  <bruno@clisp.org>
22555
22556         c-strtold: Avoid link error on AIX 7.
22557         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
22558         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
22559         (gl_C_STRTOLD): Test whether strtold_l exists.
22560         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22561
22562 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
22563
22564         intprops: new macro INT_BITS_STRLEN_BOUND
22565         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
22566         ftoastr.h.  This exposes an internal of intprops.h that was formerly
22567         not exposed.  Also, it uses a slightly tighter bound than before;
22568         though this makes no practical difference, we might as well be as
22569         tight as we easily can.
22570
22571         ftoastr: new module, for lossless conversion of floats to short strings
22572         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
22573         * modules/ftoastr: New files.
22574
22575 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
22576
22577         bootstrap: port to Solaris sed
22578         * build-aux/bootstrap (get_version): Port to Solaris sed.
22579         See Ralf Wildenhues's note in
22580         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
22581
22582 2010-11-14  Jim Meyering  <meyering@redhat.com>
22583
22584         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
22585         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
22586         and move definition closer to sole use.
22587
22588 2010-11-13  Jim Meyering  <meyering@redhat.com>
22589
22590         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
22591         Now we require at least autoconf-2.59, which means the work-around
22592         is no longer needed.
22593         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
22594         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22595         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
22596         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
22597         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22598
22599 2010-11-13  Bruno Haible  <bruno@clisp.org>
22600
22601         rename, renameat: Avoid test failures at NFS mounted locations.
22602         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
22603         functions.
22604         (test_rename): Use assert_nonexistent.
22605         * tests/test-rename.c: Include <dirent.h>.
22606         * tests/test-renameat.c: Likewise.
22607         Reported by Gary V. Vaughan <gary@gnu.org>.
22608
22609         rename, renameat: Document Linux bug with NFS
22610         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
22611         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
22612         * doc/posix-functions/renameat.texi: Likewise.
22613         Suggested by Eric Blake.
22614
22615 2010-11-13  Bruno Haible  <bruno@clisp.org>
22616
22617         rename test: Add comments.
22618         * tests/test-rename.h (test_rename): Add structure and comments.
22619
22620 2010-11-13  Eric Blake  <eblake@redhat.com>
22621
22622         maintainer-makefile: cover a few more files
22623         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
22624         scripts generated within C files, for libvirt.
22625
22626 2010-11-13  Bruno Haible  <bruno@clisp.org>
22627
22628         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
22629         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
22630         character, return the number of bytes that belong together, not always
22631         1.
22632         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
22633         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
22634         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
22635         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
22636         number of bytes of an invalid character.
22637         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
22638         (main): Invoke it.
22639         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
22640         results.
22641         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
22642         malformed byte sequences.
22643         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
22644         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
22645         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
22646         Reported by Ben Pfaff and Paolo Bonzini.
22647
22648 2010-11-13  Bruno Haible  <bruno@clisp.org>
22649
22650         openat: Work around glibc bug with fchownat() and empty file names.
22651         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
22652         (gl_FUNC_FCHOWNAT): Invoke it.
22653         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
22654         * doc/posix-functions/fchownat.texi: Document the glibc bug.
22655         Reported by Gary V. Vaughan <gary@gnu.org>.
22656
22657 2010-11-13  Bruno Haible  <bruno@clisp.org>
22658
22659         openat: Ensure autoconf macro ordering.
22660         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
22661         gl_USE_SYSTEM_EXTENSIONS.
22662         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
22663
22664 2010-11-13  Bruno Haible  <bruno@clisp.org>
22665
22666         Update comments.
22667         * lib/unistr/u8-check.c: Update file name in comments.
22668         * lib/unistr/u8-mblen.c: Likewise.
22669         * lib/unistr/u8-prev.c: Likewise.
22670         * lib/unistr/u8-strmblen.c: Likewise.
22671         * lib/unistr/u8-strmbtouc.c: Likewise.
22672
22673 2010-11-13  Jim Meyering  <meyering@redhat.com>
22674
22675         tests: avoid test failure on Solaris 10 due to lack of PATH export
22676         * tests/test-update-copyright.sh: Don't forget to export PATH.
22677
22678         init.sh: ensure that IFS is defined, just in case...
22679         * tests/init.sh (setup_): Ensure that IFS is defined,
22680         so that saving and restoring it works as expected.  This
22681         appears to be useful at least for an old version of dash
22682         from a long time ago (RH 6).  See here for details:
22683         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
22684
22685         maint.mk: tighten "test a == b" check
22686         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
22687         test to files that contain something like #!/bin/sh.
22688         Without this, coreutils would get two false positives in
22689         the comments of C source files.
22690
22691 2010-11-12  Eric Blake  <eblake@redhat.com>
22692
22693         bootstrap: fix typo in previous attempt
22694         * build-aux/bootstrap (buildreq): Correct the grouping.
22695         Reported by Paul Eggert.
22696
22697         maintainer-makefile: prohibit test x == x
22698         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
22699         Based on a report by Matthias Bolte.
22700
22701         bootstrap: allow FreeBSD gzip
22702         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
22703         which has no '.' and goes to stderr.
22704         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
22705         Reported by Matthias Bolte.
22706
22707         maintainer-makefile: check for i18n setup
22708         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
22709         will likely work.
22710
22711 2010-11-12  Bruno Haible  <bruno@clisp.org>
22712
22713         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
22714         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
22715         * lib/nanosleep.c (nanosleep): Likewise.
22716
22717 2010-11-11  Bruno Haible  <bruno@clisp.org>
22718
22719         fcntl-h: Fix for use of C++ on glibc systems.
22720         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22721         also on glibc systems in C++ mode.
22722         Reported by Gary V. Vaughan <gary@gnu.org>.
22723
22724 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22725
22726         mknod: avoid false failure with dash
22727         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
22728
22729 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
22730
22731         unlink: Fix "is it should" typo in diagnostic.
22732         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
22733         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
22734
22735 2010-11-11  Bruno Haible  <bruno@clisp.org>
22736
22737         Tests for module 'strerror_r-posix'.
22738         * modules/strerror_r-posix-tests: New file.
22739         * tests/test-strerror_r.c: New file.
22740         * tests/test-string-c++.cc: Check the signature of strerror_r.
22741
22742         New module 'strerror_r-posix'.
22743         * lib/string.in.h (strerror_r): New declaration.
22744         * lib/strerror_r.c: New file.
22745         * m4/strerror_r.m4: New file.
22746         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
22747         of strerror_r.
22748         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
22749         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
22750         * modules/strerror_r-posix: New file.
22751         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
22752         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
22753         * doc/posix-functions/strerror_r.texi: Mention the new module and the
22754         portability problems.
22755
22756 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
22757
22758         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
22759         line is also considered for output. Quoted function name in shell
22760         command, so temporary files for functions like MyClass::operator()
22761         are removed correctly without errors.
22762
22763 2010-11-09  Bruno Haible  <bruno@clisp.org>
22764
22765         * doc/posix-functions/strerror.texi: List more failing platforms.
22766
22767         * doc/posix-functions/strerror.texi: Add a comment.
22768
22769 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
22770
22771         fdopendir: fix bug on MacOS X when low on file descriptors
22772
22773         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
22774         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
22775         All callers changed.
22776         (fdopendir): Invoke save_cwd at the top level, not after using
22777         multiple dup() calls to use up file descriptors.  Then retry
22778         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
22779         less than the maximum number of open file descriptors, because
22780         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
22781         on Mac OS X 10.6.4 for tar 1.24
22782         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
22783         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
22784         and for tar 1.25
22785         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
22786
22787 2010-11-07  Bruno Haible  <bruno@clisp.org>
22788
22789         vasnprintf: Support I flag on glibc systems.
22790         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
22791         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
22792         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
22793         snprintf function.
22794         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
22795         glibc systems.
22796         * tests/test-vasnprintf-posix3.c: New file.
22797         * modules/vasnprintf-posix-tests (Files): Add it.
22798         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
22799
22800 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22801
22802         [html] Fix copy/paste bug: Use unique name for compiler warnings.
22803         * MODULES.html.sh: For compiler warnings, use name
22804         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
22805
22806 2010-11-05  Eric Blake  <eblake@redhat.com>
22807
22808         ceil, floor: avoid spurious failure with icc
22809         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
22810         [denormals-as-zero] when optimizing without -mieee-fp option.
22811         * tests/test-floorf2.c (floorf_reference): Likewise.
22812         * tests/test-ceilf1.c (dummy): New function.
22813         (main): Use it to outsmart icc's optimization.
22814         * tests/test-floorf1.c (dummy, main): Likewise.
22815
22816         tests: require working signbit
22817         * modules/ceilf-tests (Depends-on): Add signbit.
22818         * modules/ceill-tests (Depends-on): Likewise.
22819         * modules/floorf-tests (Depends-on): Likewise.
22820         * modules/floorl-tests (Depends-on): Likewise.
22821         * modules/round-tests (Depends-on): Likewise.
22822         * modules/roundf-tests (Depends-on): Likewise.
22823         * modules/roundl-tests (Depends-on): Likewise.
22824         * modules/trunc-tests (Depends-on): Likewise.
22825         * modules/truncf-tests (Depends-on): Likewise.
22826         * modules/truncl-tests (Depends-on): Likewise.
22827
22828         strtod: work around icc bug
22829         * lib/strtod.c (minus_zero): Define to working value.
22830         (strtod): Use it to avoid icc bug.
22831
22832         copysign: enhance tests
22833         * modules/copysign-tests (Files): Add minus-zero.h.
22834         * tests/test-copysign.c (main): Also test zeros.
22835
22836 2010-11-04  Eric Blake  <eblake@redhat.com>
22837
22838         ceil, floor, round, trunc: enhance tests of -0
22839         * tests/test-ceilf1.c (main): Ensure correct sign of result.
22840         * tests/test-ceill.c (main): Likewise.
22841         * tests/test-floorf1.c (main): Likewise.
22842         * tests/test-floorl.c (main): Likewise.
22843         * tests/test-round1.c (main): Likewise.
22844         * tests/test-roundf1.c (main): Likewise.
22845         * tests/test-roundl.c (main): Likewise.
22846         * tests/test-trunc1.c (main): Likewise.
22847         * tests/test-truncf1.c (main): Likewise.
22848         * tests/test-truncl.c (main): Likewise.
22849
22850 2010-11-04  Eric Blake  <eblake@redhat.com>
22851
22852         frexp, tests: work around ICC bug with -zero
22853         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
22854         works with more compilers.
22855         * tests/minus-zero.h: New file.
22856         * modules/ceilf-tests (Files): Include it.
22857         * modules/ceill-tests (Files): Likewise.
22858         * modules/floorf-tests (Files): Likewise.
22859         * modules/floorl-tests (Files): Likewise.
22860         * modules/frexp-nolibm-tests (Files): Likewise.
22861         * modules/frexp-tests (Files): Likewise.
22862         * modules/frexpl-nolibm-tests (Files): Likewise.
22863         * modules/frexpl-tests (Files): Likewise.
22864         * modules/isnan-tests (Files): Likewise.
22865         * modules/isnand-nolibm-tests (Files): Likewise.
22866         * modules/isnand-tests (Files): Likewise.
22867         * modules/isnanf-nolibm-tests (Files): Likewise.
22868         * modules/isnanf-tests (Files): Likewise.
22869         * modules/isnanl-nolibm-tests (Files): Likewise.
22870         * modules/isnanl-tests (Files): Likewise.
22871         * modules/round-tests (Files): Likewise.
22872         * modules/roundf-tests (Files): Likewise.
22873         * modules/roundl-tests (Files): Likewise.
22874         * modules/ldexpl-tests (Files): Likewise.
22875         * modules/signbit-tests (Files): Likewise.
22876         * modules/snprintf-posix-tests (Files): Likewise.
22877         * modules/sprintf-posix-tests (Files): Likewise.
22878         * modules/strtod-tests (Files): Likewise.
22879         * modules/trunc-tests (Files): Likewise.
22880         * modules/truncf-tests (Files): Likewise.
22881         * modules/truncl-tests (Files): Likewise.
22882         * modules/vsnprintf-posix-tests (Files): Likewise.
22883         * modules/vsprintf-posix-tests (Files): Likewise.
22884         * modules/vasnprintf-posix-tests (Files): Likewise.
22885         * modules/vasprintf-posix-tests (Files): Likewise.
22886         * tests/test-ceilf1.c (main): Use it.
22887         * tests/test-ceill.c (main): Likewise.
22888         * tests/test-floorf1.c (main): Likewise.
22889         * tests/test-floorl.c (main): Likewise.
22890         * tests/test-frexp.c (main): Likewise.
22891         * tests/test-frexpl.c (main): Likewise.
22892         * tests/test-isnan.c (main): Likewise.
22893         * tests/test-isnand.h (main): Likewise.
22894         * tests/test-isnanf.h (main): Likewise.
22895         * tests/test-isnanl.h (main): Likewise.
22896         * tests/test-ldexpl.c (main): Likewise.
22897         * tests/test-round.c (main): Likewise.
22898         * tests/test-roundf.c (main): Likewise.
22899         * tests/test-roundl.c (main): Likewise.
22900         * tests/test-signbit.c (test_signbitf, test_signbitd)
22901         (test_signbitl): Likewise.
22902         * tests/test-snprintf-posix.h (test_function): Likewise.
22903         * tests/test-sprintf-posix.h (test_function): Likewise.
22904         * tests/test-strtod.c (main): Likewise.
22905         * tests/test-trunc1.c (main): Likewise.
22906         * tests/test-truncf1.c (main): Likewise.
22907         * tests/test-truncl.c (main): Likewise.
22908
22909         isnanl: work around icc bug
22910         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
22911
22912 2010-11-03  Eric Blake  <eblake@redhat.com>
22913
22914         tests: fix compiler warnings
22915         * tests/test-getopt.h (test_getopt): Fix condition.
22916         * tests/test-getopt_long.h (test_getopt_long): Likewise.
22917         * tests/test-pipe2.c (main): Likewise.
22918         * tests/test-quotearg-simple.c (main): Avoid icc warning.
22919
22920         utimens: fix broken m4 test
22921         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
22922
22923 2010-10-28  Bruno Haible  <bruno@clisp.org>
22924
22925         posix_spawn*, getdtablesize: Relax license.
22926         * modules/posix_spawn (License): Change to LGPLv2+.
22927         * modules/posix_spawnp (License): Likewise.
22928         * modules/posix_spawn-internal (License): Likewise.
22929         * modules/posix_spawnattr_init (License): Likewise.
22930         * modules/posix_spawnattr_getflags (License): Likewise.
22931         * modules/posix_spawnattr_setflags (License): Likewise.
22932         * modules/posix_spawnattr_getpgroup (License): Likewise.
22933         * modules/posix_spawnattr_setpgroup (License): Likewise.
22934         * modules/posix_spawnattr_getschedparam (License): Likewise.
22935         * modules/posix_spawnattr_setschedparam (License): Likewise.
22936         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
22937         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
22938         * modules/posix_spawnattr_getsigdefault (License): Likewise.
22939         * modules/posix_spawnattr_setsigdefault (License): Likewise.
22940         * modules/posix_spawnattr_getsigmask (License): Likewise.
22941         * modules/posix_spawnattr_setsigmask (License): Likewise.
22942         * modules/posix_spawnattr_destroy (License): Likewise.
22943         * modules/posix_spawn_file_actions_init (License): Likewise.
22944         * modules/posix_spawn_file_actions_addclose (License): Likewise.
22945         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
22946         * modules/posix_spawn_file_actions_addopen (License): Likewise.
22947         * modules/posix_spawn_file_actions_destroy (License): Likewise.
22948         * modules/getdtablesize (License): Likewise.
22949         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
22950
22951 2010-10-26  Bruno Haible  <bruno@clisp.org>
22952
22953         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
22954         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
22955         Cygwin and mingw.
22956         Suggested by Eric Blake.
22957
22958 2010-10-26  Bruno Haible  <bruno@clisp.org>
22959
22960         stdio: Work around compilation error due to renameat() on Solaris 10.
22961         * lib/stdio.in.h: Include <unistd.h> on Solaris.
22962         * lib/renameat.c: Don't include <unistd.h> here.
22963         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
22964         Reported by Paul Eggert and Eric Blake.
22965
22966 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
22967
22968         renameat: port to Solaris 10, which declares renameat in unistd.h
22969
22970         * lib/renameat.c: Include unistd.h before stdio.h, because
22971         Solaris 10 declares renameat in unistd.h.  Problem encountered
22972         when building GNU tar 1.24 on Solaris 10.
22973
22974 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22975
22976         fdopendir: fix C89 compilation
22977         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
22978         compilers.
22979
22980 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
22981
22982         inttostr: simplify by removing unnecessary redundancy
22983         * lib/anytostr.c: Don't include verify.h.
22984         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
22985         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
22986         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
22987         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
22988         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
22989         Likewise.
22990         * modules/inttostr (Depends-on): Remove 'verify'.
22991
22992 2010-10-23  Bruno Haible  <bruno@clisp.org>
22993
22994         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
22995         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
22996         Reported by Eric Blake.
22997
22998 2010-10-23  Bruno Haible  <bruno@clisp.org>
22999
23000         Tests: Fix LOCALE_JA on MirBSD 10.
23001         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
23002         to an UTF-8 locale.
23003         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
23004         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23005         Reported by Eric Blake.
23006
23007 2010-10-21  Bruno Haible  <bruno@clisp.org>
23008
23009         nl_langinfo test: Avoid test failure on NetBSD 5.
23010         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
23011         Reported by Eric Blake.
23012
23013 2010-10-21  Eric Blake  <eblake@redhat.com>
23014
23015         c-stack: work around libsigsegv 2.8 bug
23016         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
23017         overflow on at least PowerPC64.
23018
23019 2010-10-17  Bruno Haible  <bruno@clisp.org>
23020
23021         userspec: Drop redundant file.
23022         * modules/userspec (Files): Remove lib/inttostr.h.
23023
23024 2010-10-17  Bruno Haible  <bruno@clisp.org>
23025
23026         nl_langinfo tests: Silence some warnings.
23027         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
23028         Reported by Jim Meyering.
23029
23030 2010-10-17  Bruno Haible  <bruno@clisp.org>
23031
23032         Make use of GCC's attribute __alloc_size__.
23033         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
23034         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
23035         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
23036         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
23037         __alloc_size__.
23038         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23039         Suggested by Jim Meyering.
23040
23041 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
23042
23043         bootstrap: anchor .gitignore entries.
23044         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
23045         with...
23046         (insert_vc_ignore): ... this new function, which prepends `/' to
23047         all .gitignore entries before passing them to
23048         insert_sorted_if_absent.
23049
23050 2010-10-16  Bruno Haible  <bruno@clisp.org>
23051
23052         nextafter: Fix configure check.
23053         * modules/nextafter (configure.ac): Correct expected prototype.
23054
23055 2010-10-16  Bruno Haible  <bruno@clisp.org>
23056
23057         termios: Update documentation.
23058         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
23059
23060 2010-10-16  Bruno Haible  <bruno@clisp.org>
23061
23062         tests: Make them compile with TinyCC.
23063         * tests/test-strstr.c (main): Remove parentheses around array
23064         initializer.
23065
23066 2010-10-15  Eric Blake  <eblake@redhat.com>
23067
23068         ignore-value: make header idempotent
23069         * lib/ignore-value.h: Add double-inclusion guards.
23070         Reported by Stefan Berger.
23071
23072 2010-10-15  Jim Meyering  <meyering@redhat.com>
23073
23074         GNUmakefile: handle "stable" target, not "major"
23075         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
23076         lists in maint.mk and announce-gen.  Without this, "make stable"
23077         would fail to ensure that $(VERSION) is up to date.
23078
23079 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
23080
23081         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
23082         & co.
23083
23084 2010-10-14  Bruno Haible  <bruno@clisp.org>
23085
23086         vasnprintf: Don't set errno to 0.
23087         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
23088         block that sets it to 0.
23089         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
23090
23091 2010-10-14  Bruno Haible  <bruno@clisp.org>
23092
23093         socketlib: Fix.
23094         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
23095         gl_PREREQ_SYS_H_WINSOCK2.
23096         Reported by Ian Beckwith <ianb@erislabs.net>.
23097
23098 2010-10-13  Jim Meyering  <meyering@redhat.com>
23099
23100         test-select-stdin.c: avoid warn_unused_result warnings
23101         * tests/test-select-stdin.c: Include "macros.h".
23102         ASSERT that read and fflush succeed.
23103
23104 2010-10-13  Jim Meyering  <meyering@redhat.com>
23105
23106         git-version-gen: do require git-VC'd files in cwd
23107         * build-aux/git-version-gen: Reject a git version string
23108         if there are no commits associated with the current directory.
23109         This avoids an unlikely false-positive (unrelated dir whose parent
23110         repository also contains a tag matching v*), as pointed out
23111         by Giuseppe Scrivano in
23112         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
23113
23114 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23115
23116         argv-iter: omit nonconforming declaration
23117         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
23118         enum arg_iter_err declaration, which doesn't conform to C99.
23119         Solaris 10 cc warns about this.
23120
23121 2010-10-13  Eric Blake  <eblake@redhat.com>
23122
23123         termios: fix compilation on mingw
23124         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
23125         (gl_TERMIOS_H): Adjust it on mingw.
23126         * modules/termios (Makefile.am): Substitute new key.
23127         * lib/termios.in.h (includes): Make include_next conditional.
23128         * doc/posix-headers/termios.texi (termios.h): Update
23129         documentation.
23130         Reported by Daniel P. Berrange.
23131
23132 2010-10-13  Jim Meyering  <meyering@redhat.com>
23133
23134         git-version-gen: don't require that .git/ be in the current dir
23135         * build-aux/git-version-gen: Adjust this script so that it works
23136         when run from any working directory beneath the top-level .git/-
23137         containing directory.  Inspired by a patch from Giuseppe Scrivano,
23138         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
23139
23140         test-select: avoid warn_unused_result warnings
23141         * tests/test-select.c: Include "macros.h".
23142         ASSERT that each call to read, write, and pipe succeeds.
23143         While not technically required, also check each "close".
23144         * modules/select-tests (Files): Add tests/macros.h.
23145
23146         test-symlinkat: remove declaration of unused local
23147         * tests/test-symlinkat.c (main): Remove unused local, "buf".
23148
23149         test-inttostr: avoid shadowing warnings
23150         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
23151         and use malloc rather than the stack for the same reason as
23152         mentioned in the comment justifying the other allocation.
23153
23154 2010-10-11  Bruno Haible  <bruno@clisp.org>
23155
23156         stdlib: Allow multiple gnulib generated replacements to coexist.
23157         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
23158         Reported by Sam Steingold <sds@gnu.org>.
23159
23160 2010-10-11  Jim Meyering  <meyering@redhat.com>
23161
23162         fix a documentation typo
23163         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
23164
23165 2010-10-11  Eric Blake  <eblake@redhat.com>
23166
23167         futimens: work around Solaris 11 bug
23168         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
23169         * tests/test-futimens.h (test_futimens): Enhance, rather than
23170         weaken test.
23171         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23172
23173 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23174
23175         Indentation.
23176         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
23177         higher-level operators more to the left.
23178
23179 2010-10-11  Jim Meyering  <meyering@redhat.com>
23180
23181         test-futimens: avoid unwarranted test failure on Solaris 5.11
23182         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
23183         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
23184         because it tries to dereference the NULL name argument.
23185
23186 2010-10-11  Bruno Haible  <bruno@clisp.org>
23187
23188         Indentation.
23189         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
23190         indentation.
23191
23192 2010-10-11  Jim Meyering  <meyering@redhat.com>
23193
23194         spawn.in.h: make indentation consistent with parentheses
23195         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
23196         Make indentation consistent with parentheses.
23197
23198 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
23199
23200         Fix mismatched parens in previous commit
23201         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
23202         parens.
23203
23204 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23205
23206         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
23207
23208         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
23209         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
23210         * lib/malloca.c: Include "verify.h".
23211         (verify1): Remove, replacing with a verify call.
23212         * lib/relocwrapper.c (verify1): Likewise.
23213         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
23214         Likewise.
23215         * modules/malloca (Depends-on): Add 'verify'.
23216         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
23217         * modules/vasnprintf (Depends-on): Add 'verify'.
23218         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23219         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23220         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23221         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23222         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23223         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23224         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23225
23226         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
23227
23228         Formerly the style was sometimes 2*X - 1, because the C standard
23229         was wrongly thought to disallow ?: in integral constant expressions.
23230         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
23231         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
23232         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23233         * lib/stdint.in.h (_verify_intmax_size): Likewise.
23234         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
23235         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
23236         verify that time_t cannot be floating.
23237
23238 2010-10-08  Eric Blake  <eblake@redhat.com>
23239
23240         time: enforce recent POSIX ruling that time_t is integral
23241         * lib/time.in.h (__time_t_must_be_integral): Detect any
23242         problematic systems, allowing the rest of gnulib to assume POSIX.
23243
23244 2010-10-08  Jim Meyering  <meyering@redhat.com>
23245
23246         fdopendir: fix a bug on systems lacking openat and /proc support
23247         OpenBSD 4.7 is one such system.  The most noticeable effect was
23248         failure of any application making nontrivial use of fts: rm, du,
23249         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
23250           ./rm: traversal failed: `a': Bad file descriptor
23251         Debugging that, you see that even though FD 6 was closed just
23252         prior to the opendir call in fd_clone_opendir, its resulting
23253         dir->dd_fd was 8, rather than the expected value of 6:
23254
23255         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
23256         93                close (fd);
23257         (gdb) n
23258         94                dir = fd_clone_opendir (dupfd);
23259         (gdb) n
23260         95                saved_errno = errno;
23261         (gdb) p dir->dd_fd
23262         $11 = 8
23263
23264         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
23265         The problem is that on OpenBSD, fd_clone_opendir has to resort
23266         to using the old-style save/restore CWD mechanism, due to its
23267         lack of openat/proc support, and *that* would steal the FD (6)
23268         that opendir was supposed to use.
23269
23270         The fix is to squirrel away the desired FD so that save_cwd uses a
23271         different one, and then free the dest FD right before calling opendir.
23272         That guarantees opendir will use the required file descriptor.
23273
23274         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
23275
23276 2010-10-08  Bruno Haible  <bruno@clisp.org>
23277
23278         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
23279         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
23280
23281 2010-10-08  Bruno Haible  <bruno@clisp.org>
23282
23283         nanosleep: Make replacement POSIX compliant.
23284         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
23285         is out of range.
23286         Reported by Jim Meyering.
23287
23288 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
23289
23290         bootstrap: add hook for altering gnulib.mk, for Bison
23291         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
23292         the Bison bootstrapping process can rewrite file names and variables
23293         in this file before later parts of 'bootstrap' use the file.
23294         Bison wants to include lib/gnulib.mk from the top-level makefile,
23295         so it needs the file names in this file to be relative to the top
23296         level, not relative to lib; plus it needs variable names to be
23297         rewritten.
23298         (slurp): Use the new function.
23299
23300         bootstrap: reformat for readability
23301         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
23302
23303 2010-10-08  Eric Blake  <eblake@redhat.com>
23304
23305         docs: update cygwin progress
23306         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
23307         1.7.7.
23308         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
23309         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
23310         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
23311         * doc/posix-functions/carg.texi (carg): Likewise.
23312         * doc/posix-functions/cargf.texi (cargf): Likewise.
23313         * doc/posix-functions/casin.texi (casin): Likewise.
23314         * doc/posix-functions/casinf.texi (casinf): Likewise.
23315         * doc/posix-functions/casinh.texi (casinh): Likewise.
23316         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
23317         * doc/posix-functions/catan.texi (catan): Likewise.
23318         * doc/posix-functions/catanf.texi (catanf): Likewise.
23319         * doc/posix-functions/catanh.texi (catanh): Likewise.
23320         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
23321         * doc/posix-functions/ccos.texi (ccos): Likewise.
23322         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
23323         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
23324         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
23325         * doc/posix-functions/cexp.texi (cexp): Likewise.
23326         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
23327         * doc/posix-functions/cimag.texi (cimag): Likewise.
23328         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
23329         * doc/posix-functions/clog.texi (clog): Likewise.
23330         * doc/posix-functions/clogf.texi (clogf): Likewise.
23331         * doc/posix-functions/conj.texi (conj): Likewise.
23332         * doc/posix-functions/conjf.texi (conjf): Likewise.
23333         * doc/posix-functions/cpow.texi (cpow): Likewise.
23334         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
23335         * doc/posix-functions/cproj.texi (cproj): Likewise.
23336         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
23337         * doc/posix-functions/creal.texi (creal): Likewise.
23338         * doc/posix-functions/crealf.texi (crealf): Likewise.
23339         * doc/posix-functions/csin.texi (csin): Likewise.
23340         * doc/posix-functions/csinf.texi (csinf): Likewise.
23341         * doc/posix-functions/csinh.texi (csinh): Likewise.
23342         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
23343         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
23344         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
23345         * doc/posix-functions/ctan.texi (ctan): Likewise.
23346         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
23347         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
23348         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
23349         * doc/posix-headers/complex.texi (complex.h): Likewise.
23350
23351 2010-10-07  Jim Meyering  <meyering@redhat.com>
23352
23353         parse-datetime: avoid compilation failure on OpenBSD 4.7
23354         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
23355         This works around a compilation failure on OpenBSD 4.7:
23356         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
23357
23358 2010-10-07  Eric Blake  <eblake@redhat.com>
23359
23360         docs: update cygwin progress
23361         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
23362         1.7.6.
23363         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23364         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
23365         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
23366         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
23367         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
23368         Likewise.
23369         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
23370         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
23371         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
23372         Likewise.
23373         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
23374         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
23375         Likewise.
23376         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
23377         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
23378         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
23379         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
23380         Likewise.
23381         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
23382         Likewise.
23383         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
23384
23385         docs: update parse-datetime history
23386         * doc/parse-datetime.texi (Authors of parse_datetime): Better
23387         documentation of this function's history and alternatives.
23388
23389         cygwin: use more robust version check
23390         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
23391         exclude an eventual cygwin 1.9.1.
23392         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23393         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
23394         (gl_FUNC_STRCASESTR): Likewise.
23395         Reported by Bruno Haible.
23396
23397 2010-10-06  Bruno Haible  <bruno@clisp.org>
23398
23399         string, sys_select: Avoid #including large headers unless necessary.
23400         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
23401         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
23402         OSF/1, BeOS, Haiku.
23403         Reported by Jim Meyering.
23404
23405 2010-10-05  Eric Blake  <eblake@redhat.com>
23406
23407         memmem, strstr, strcasestr: fix bug with long periodic needle
23408         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
23409         periodic needle having false positive.
23410         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
23411         and cygwin 1.7.7.
23412         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
23413         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
23414         (gl_FUNC_STRCASESTR): Likewise.
23415         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23416         * tests/test-memmem.c (main): Expose the bug.
23417         * tests/test-strcasestr.c (main): Likewise.
23418         * tests/test-strstr.c (main): Likewise.
23419         * tests/test-c-strcasestr.c (main): Likewise.
23420         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
23421         * doc/posix-functions/strstr.texi (strstr): Likewise.
23422         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23423         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
23424
23425 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23426
23427         parse-datetime: do some more renaming
23428         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
23429         parse_datetime, not get_date.  Mention the renaming.
23430         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
23431         in comments.
23432         * m4/bison.m4: Likewise.
23433
23434 2010-10-05  Eric Blake  <eblake@redhat.com>
23435
23436         parse-datetime: better name than get_date
23437         * NEWS: Reword the deprecation notice.
23438         * modules/get_date: Rename to modules/parse-datetime.
23439         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
23440         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
23441         * lib/get_date.y: Rename to lib/parse-datetime.y.
23442         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
23443         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
23444         * doc/getdate.texi: Provide fallback wrapper.
23445         * lib/getdate.h: Move guts, and wrap...
23446         * lib/parse-datetime.h: ...new file.
23447         * lib/parse-datetime.y (get_date): Rename...
23448         (parse_datetime): ...to this.
23449         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
23450         (gl_PARSE_DATETIME): ...to this.
23451         * doc/posix-functions/getdate.texi (get_date): Provide fallback
23452         documentation.
23453         * modules/getdate (Files): Provide fallback docs and header.
23454         (Notice, Depends-on): Update references.
23455         * tests/test-parse-datetime.c: Likewise.
23456         * DEPENDENCIES: Likewise.
23457         * MODULES.html.sh (Date and time <time.h>): Likewise.
23458         * doc/parse-datetime.texi (Date input formats)
23459         (Authors of parse_datetime): Likewise.
23460         * modules/parse-datetime (Files, configure.ac, Makefile.am)
23461         (Include): Likewise.
23462         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
23463         * gnulib-tool: Likewise.
23464         * m4/bison.m4 (gl_BISON): Likewise.
23465         Suggested by Bruno Haible.
23466
23467 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23468
23469         more ports to Solaris tr, which needs [] around ranges
23470         * gnulib-tool: Solaris tr needs [] around ranges.
23471         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23472         * tests/test-pipe-filter-gi1.c (main): Likewise.
23473         * tests/test-pipe-filter-ii1.c (main): Likewise.
23474
23475 2010-10-05  Eric Blake  <eblake@redhat.com>
23476
23477         bootstrap: fix Solaris regression
23478         * build-aux/bootstrap (check_versions): Solaris tr still needs []
23479         around ranges.
23480         Reported by Pádraig Brady.
23481
23482         bootstrap: work with pkg-config
23483         * build-aux/bootstrap (check_versions): Also transliterate - in
23484         prerequisite name.
23485         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
23486         prerequisites that were already found, to avoid confusion.
23487         Reported by Justin Clift.
23488
23489         faccessat: remove unused wrappers
23490         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
23491         presence of these wrappers dragged in -lgen on Solaris.
23492         Reported by Clemens Brogi; fix suggested by Paul Eggert.
23493
23494 2010-10-05  Jim Meyering  <meyering@redhat.com>
23495
23496         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
23497         * Makefile (sc_pragma_columns): New syntax-check rule.
23498
23499 2010-10-04  Bruno Haible  <bruno@clisp.org>
23500
23501         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
23502         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
23503         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
23504         Reported by Bruce Korb and Eric Blake.
23505
23506 2010-10-04  Bruno Haible  <bruno@clisp.org>
23507
23508         threadlib: Make option --with-libpth-prefix work.
23509         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
23510         use $LIBPTH, not just -lpth.
23511
23512 2010-10-04  Bruno Haible  <bruno@clisp.org>
23513
23514         Avoid line length limitation from HP NonStop system header files.
23515         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
23516         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
23517         * lib/ctype.in.h: Likewise.
23518         * lib/dirent.in.h: Likewise.
23519         * lib/errno.in.h: Likewise.
23520         * lib/fcntl.in.h: Likewise.
23521         * lib/float.in.h: Likewise.
23522         * lib/getopt.in.h: Likewise.
23523         * lib/iconv.in.h: Likewise.
23524         * lib/inttypes.in.h: Likewise.
23525         * lib/langinfo.in.h: Likewise.
23526         * lib/locale.in.h: Likewise.
23527         * lib/math.in.h: Likewise.
23528         * lib/netdb.in.h: Likewise.
23529         * lib/netinet_in.in.h: Likewise.
23530         * lib/poll.in.h: Likewise.
23531         * lib/pthread.in.h: Likewise.
23532         * lib/pty.in.h: Likewise.
23533         * lib/sched.in.h: Likewise.
23534         * lib/se-selinux.in.h: Likewise.
23535         * lib/search.in.h: Likewise.
23536         * lib/signal.in.h: Likewise.
23537         * lib/spawn.in.h: Likewise.
23538         * lib/stdarg.in.h: Likewise.
23539         * lib/stddef.in.h: Likewise.
23540         * lib/stdint.in.h: Likewise.
23541         * lib/stdio.in.h: Likewise.
23542         * lib/stdlib.in.h: Likewise.
23543         * lib/string.in.h: Likewise.
23544         * lib/strings.in.h: Likewise.
23545         * lib/sys_file.in.h: Likewise.
23546         * lib/sys_ioctl.in.h: Likewise.
23547         * lib/sys_select.in.h: Likewise.
23548         * lib/sys_socket.in.h: Likewise.
23549         * lib/sys_stat.in.h: Likewise.
23550         * lib/sys_time.in.h: Likewise.
23551         * lib/sys_times.in.h: Likewise.
23552         * lib/sys_utsname.in.h: Likewise.
23553         * lib/sys_wait.in.h: Likewise.
23554         * lib/sysexits.in.h: Likewise.
23555         * lib/termios.in.h: Likewise.
23556         * lib/time.in.h: Likewise.
23557         * lib/unistd.in.h: Likewise.
23558         * lib/wchar.in.h: Likewise.
23559         * lib/wctype.in.h: Likewise.
23560         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
23561         * modules/ctype (Makefile.am): Likewise.
23562         * modules/dirent (Makefile.am): Likewise.
23563         * modules/errno (Makefile.am): Likewise.
23564         * modules/fcntl-h (Makefile.am): Likewise.
23565         * modules/float (Makefile.am): Likewise.
23566         * modules/getopt-posix (Makefile.am): Likewise.
23567         * modules/iconv-h (Makefile.am): Likewise.
23568         * modules/inttypes (Makefile.am): Likewise.
23569         * modules/langinfo (Makefile.am): Likewise.
23570         * modules/locale (Makefile.am): Likewise.
23571         * modules/math (Makefile.am): Likewise.
23572         * modules/netdb (Makefile.am): Likewise.
23573         * modules/netinet_in (Makefile.am): Likewise.
23574         * modules/poll-h (Makefile.am): Likewise.
23575         * modules/pthread (Makefile.am): Likewise.
23576         * modules/pty (Makefile.am): Likewise.
23577         * modules/sched (Makefile.am): Likewise.
23578         * modules/search (Makefile.am): Likewise.
23579         * modules/selinux-h (Makefile.am): Likewise.
23580         * modules/signal (Makefile.am): Likewise.
23581         * modules/spawn (Makefile.am): Likewise.
23582         * modules/stdarg (Makefile.am): Likewise.
23583         * modules/stddef (Makefile.am): Likewise.
23584         * modules/stdint (Makefile.am): Likewise.
23585         * modules/stdio (Makefile.am): Likewise.
23586         * modules/stdlib (Makefile.am): Likewise.
23587         * modules/string (Makefile.am): Likewise.
23588         * modules/strings (Makefile.am): Likewise.
23589         * modules/sys_file (Makefile.am): Likewise.
23590         * modules/sys_ioctl (Makefile.am): Likewise.
23591         * modules/sys_select (Makefile.am): Likewise.
23592         * modules/sys_socket (Makefile.am): Likewise.
23593         * modules/sys_stat (Makefile.am): Likewise.
23594         * modules/sys_time (Makefile.am): Likewise.
23595         * modules/sys_times (Makefile.am): Likewise.
23596         * modules/sys_utsname (Makefile.am): Likewise.
23597         * modules/sys_wait (Makefile.am): Likewise.
23598         * modules/sysexits (Makefile.am): Likewise.
23599         * modules/termios (Makefile.am): Likewise.
23600         * modules/time (Makefile.am): Likewise.
23601         * modules/unistd (Makefile.am): Likewise.
23602         * modules/wchar (Makefile.am): Likewise.
23603         * modules/wctype (Makefile.am): Likewise.
23604
23605 2010-10-04  Bruno Haible  <bruno@clisp.org>
23606
23607         read-file tests: Avoid a test failure on NonStop Kernel.
23608         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
23609         a regular file.
23610         Reported by Joachim Schmitz <schmitz@hp.com>.
23611
23612 2010-10-03  Bruno Haible  <bruno@clisp.org>
23613
23614         gnulib-tool: Fixes for --create-testdir with --libtool.
23615         * gnulib-tool (func_get_automake_snippet): Don't augment
23616         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
23617         an executable.
23618         (func_create_testdir): Handle module 'alloca' like func_import.
23619         Reported by Bruce Korb <bruce.korb@gmail.com>.
23620
23621 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
23622
23623         Avoid some lines longer than 80 characters.
23624         * lib/stdint.in.h: Break long comment lines.
23625         * lib/math.in.h: Likewise.
23626         (_GL_NUM_UINT_WORDS): New macro, for readability.
23627         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
23628         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
23629         * lib/stdlib.in.h: Likewise.
23630         * lib/spawn.in.h: Likewise.
23631         * lib/sys_socket.in.h: Update an URL.
23632         * lib/sys_stat.in.h: Break long line.
23633
23634 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
23635
23636         Improve pmccabe2html.
23637         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
23638         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
23639         when the sources change. Remove the line in the HTML about "Used
23640         ranges" (which implied that there might be other unused ranges),
23641         rename "Resume" to "Summary" (easier to understand for more users).
23642         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
23643         styles, and some unnecessary blank lines.
23644
23645 2010-10-03  Bruno Haible  <bruno@clisp.org>
23646             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
23647
23648         acl: Add support for ACLs on NonStop Kernel.
23649         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
23650         Check whether the function aclsort() exists.
23651         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
23652         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
23653         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
23654         (acl_nontrivial [HAVE_ACLSORT]: New function.
23655         (file_has_acl): Implement for NonStop Kernel.
23656         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
23657         (qset_acl): Implement for NonStop Kernel.
23658         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
23659         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
23660         (main): Implement for NonStop Kernel.
23661         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
23662         Kernel. Handle this flavor.
23663         * tests/test-set-mode-acl.sh: Likewise.
23664         * tests/test-copy-acl.sh: Likewise.
23665         * tests/test-copy-file.sh: Likewise.
23666
23667 2010-10-03  Bruno Haible  <bruno@clisp.org>
23668
23669         Info about ACLs on NonStop Kernel.
23670         * doc/acl-resources.txt: Add info about NonStop Kernel.
23671         References by Joachim Schmitz <schmitz@hp.com>.
23672
23673 2010-10-02  Bruno Haible  <bruno@clisp.org>
23674
23675         Define missing EDQUOT on NonStop Kernel.
23676         * lib/errno.in.h (EDQUOT): Assign a value if missing.
23677         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
23678         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
23679         missing.
23680         * doc/posix-headers/errno.texi: Mention the NSK bug.
23681         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
23682         Reported by Joachim Schmitz <schmitz@hp.com>.
23683
23684 2010-10-02  Bruno Haible  <bruno@clisp.org>
23685
23686         Update doc for POSIX:2008.
23687         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
23688         Update URL of POSIX specification.
23689
23690 2010-10-02  Bruno Haible  <bruno@clisp.org>
23691
23692         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
23693         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
23694         from gnulib, not from Automake.
23695
23696 2010-10-02  Bruno Haible  <bruno@clisp.org>
23697
23698         New module 'system-posix'.
23699         * modules/system-posix: New file.
23700         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
23701         module is present.
23702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
23703         GNULIB_SYSTEM_POSIX.
23704         * modules/stdlib (Depends-on): Remove sys_wait.
23705         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
23706         * doc/posix-functions/system.texi: Mention the new module.
23707         * doc/posix-headers/stdlib.texi: Likewise.
23708         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
23709         define test_sys_wait_macros to a no-op.
23710         Reported by Sam Steingold <sds@gnu.org>.
23711
23712 2010-09-30  Bruno Haible  <bruno@clisp.org>
23713
23714         More renaming from 'getdate' to 'get_date'.
23715         * doc/get_date.texi: Renamed from doc/getdate.texi.
23716         * modules/get_date (Files): Update.
23717         * MODULES.html.sh (Date and time <time.h>): Update.
23718         * DEPENDENCIES: Update.
23719         * gnulib-tool: Update comment.
23720         * m4/bison.m4 (gl_BISON): Likewise.
23721         * m4/get_date.m4 (gl_GET_DATE): Likewise.
23722
23723 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
23724
23725         bootstrap: support ACLOCAL_FLAGS during aclocal
23726         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
23727         can add additional -I dir for third-party .m4 files.
23728
23729 2010-09-30  Eric Blake  <eblake@redhat.com>
23730
23731         bootstrap: use glibtoolize on MacOS
23732         * build-aux/bootstrap (check_versions): Convert libtool into
23733         libtoolize.
23734         (tool search): Move libtool check earlier, and look for
23735         glibtoolize for MacOS.
23736         (gnulib_tool_options): Auto-add --libtool when appropriate.
23737         Reported by Justin Clift.
23738
23739         poll: fix typo that broke test on MacOS
23740         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
23741         Reported by Justin Clift.
23742
23743         getdate: rename to get_date
23744         Note: getdate.h is not renamed, to minimize client impact.
23745         * modules/getdate: Mark obsolete.  Move old contents...
23746         * modules/get_date: ...to new module name.
23747         * modules/getdate-tests: Move...
23748         * modules/get_date-tests: ...here.
23749         * m4/getdate.m4: Move...
23750         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
23751         * lib/getdate.y: Move...
23752         * lib/get_date.y: ...here.
23753         * tests/test-getdate.c: Move...
23754         * tests/test-get_date.c: ...here.
23755         * doc/posix-functions/getdate.texi (getdate): Update name.
23756         * NEWS: Mention the change.
23757
23758 2010-09-29  Bruno Haible  <bruno@clisp.org>
23759
23760         Separate the module 'waitpid' from the module 'sys_wait'.
23761         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
23762         present.
23763         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
23764         gl_MODULE_INDICATOR_FOR_TESTS.
23765         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
23766         * modules/sys_wait (Depends-on): Remove waitpid.
23767         (Makefile.am): Substitute GNULIB_WAITPID.
23768         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
23769         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
23770         signature only if the 'waitpid' module is present.
23771         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
23772         * NEWS: Mention the change.
23773         * modules/grantpt (Depends-on): Add waitpid.
23774         * modules/wait-process (Depends-on): Likewise.
23775
23776 2010-09-29  Bruno Haible  <bruno@clisp.org>
23777
23778         More tests for module 'sys_wait'.
23779         * modules/sys_wait-c++-tests: New file.
23780         * tests/test-sys_wait-c++.cc: New file.
23781         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
23782         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
23783
23784 2010-09-29  Bruno Haible  <bruno@clisp.org>
23785
23786         New module 'waitpid'.
23787         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
23788         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
23789         Don't include <process.h>.
23790         (waitpid): Declare only, using modern idiom.
23791         * m4/waitpid.m4: New file.
23792         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
23793         * modules/waitpid: New file.
23794         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
23795         (Makefile.am): Update.
23796         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
23797
23798 2010-09-28  Bruno Haible  <bruno@clisp.org>
23799
23800         poll: Assume ANSI C.
23801         * lib/poll.c (poll): Use an ANSI C declaration.
23802
23803 2010-09-28  Bruno Haible  <bruno@clisp.org>
23804
23805         poll-h: Create poll.h on all platforms.
23806         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
23807         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
23808         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
23809         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
23810         (gl_REPLACE_POLL_H): Don't set POLL_H.
23811         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
23812         * modules/poll-h (Depends-on): Add include_next.
23813         (Makefile.am): Create poll.h unconditionally. Substitute also
23814         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
23815
23816 2010-09-28  Bruno Haible  <bruno@clisp.org>
23817
23818         Tests for module 'poll-h'.
23819         * modules/poll-h-c++-tests: New file.
23820         * tests/test-poll-h-c++.cc: New file.
23821
23822         Tests for module 'poll-h'.
23823         * modules/poll-h-tests: New file.
23824         * tests/test-poll-h.c: New file.
23825
23826 2010-09-28  Bruno Haible  <bruno@clisp.org>
23827
23828         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
23829         * modules/poll-h (Depends-on): Add 'extensions'.
23830
23831 2010-09-28  Bruno Haible  <bruno@clisp.org>
23832
23833         New module 'poll-h'.
23834         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
23835         (poll): Use modern idiom.
23836         * modules/poll-h: New file.
23837         * modules/poll (Files): Remove lib/poll.in.h.
23838         (Depends-on): Add poll-h.
23839         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
23840         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
23841         * m4/poll_h.m4: New file.
23842         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
23843         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
23844         and invoke gl_REPLACE_POLL_H.
23845         * lib/poll.c: Use common idiom.
23846         * tests/test-poll.c: Likewise.
23847         * doc/posix-headers/poll.texi: Mention the poll-h module.
23848         Suggested by Eric Blake.
23849
23850 2010-09-26  Bruno Haible  <bruno@clisp.org>
23851
23852         sys_wait: Implement WSTOPSIG.
23853         * lib/sys_wait.in.h (WSTOPSIG): New macro.
23854         Reported by Simon Josefsson.
23855
23856 2010-09-26  Simon Josefsson  <simon@josefsson.org>
23857
23858         stdlib, sys_wait: Avoid compilation error on mingw.
23859         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
23860
23861 2010-09-26  Bruno Haible  <bruno@clisp.org>
23862
23863         stdlib tests: Avoid code duplication.
23864         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
23865         * modules/sys_wait-tests (Files): Likewise.
23866         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
23867         * tests/test-stdlib.c: Include test-sys_wait.h.
23868         (main): Invoke test_sys_wait_macros.
23869         * tests/test-sys_wait.c: Include test-sys_wait.h.
23870         (main): Invoke test_sys_wait_macros.
23871
23872 2010-09-25  Simon Josefsson  <simon@josefsson.org>
23873
23874         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
23875         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
23876         sure Windows sockets are working before calling getaddrinfo.
23877         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
23878         * doc/gnulib.texi (Windows sockets): Fix typo.
23879
23880 2010-09-25  Bruno Haible  <bruno@clisp.org>
23881
23882         Tests for module 'regex-quote'.
23883         * modules/regex-quote-tests: New file.
23884         * tests/test-regex-quote.c: New file.
23885
23886         New module 'regex-quote'.
23887         * lib/regex-quote.h: New file.
23888         * lib/regex-quote.c: New file.
23889         * modules/regex-quote: New file.
23890         Suggested by Reuben Thomas <rrt@sc3d.org>.
23891
23892 2010-09-24  Bruno Haible  <bruno@clisp.org>
23893
23894         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
23895         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
23896
23897 2010-09-23  Bruno Haible  <bruno@clisp.org>
23898
23899         setenv: Relax license.
23900         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
23901         Blake.
23902         Requested by Eric Blake.
23903
23904 2010-09-22  Bruno Haible  <bruno@clisp.org>
23905
23906         termios: Relax license.
23907         * modules/termios (License): Change to LGPLv2+.
23908         Requested by Eric Blake.
23909
23910 2010-09-22  Bruno Haible  <bruno@clisp.org>
23911
23912         threadlib: Allow the package to change the default to 'no'.
23913         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
23914         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
23915         Reported by Paul Eggert.
23916
23917 2010-09-22  Pádraig Brady  <P@draigbrady.com>
23918             Bruno Haible  <bruno@clisp.org>
23919
23920         Fix endless loop in mbmemcasecoll.
23921         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
23922         byte.
23923         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
23924
23925 2010-09-22  Bruno Haible  <bruno@clisp.org>
23926
23927         Tests for module 'memcoll'.
23928         * modules/memcoll-tests: New file.
23929         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
23930
23931         memcoll, xmemcoll: Clarify size vs. length.
23932         * modules/memcoll.c (memcoll0): Clarify specification.
23933         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
23934         passed to collate_error.
23935
23936 2010-09-22  Bruno Haible  <bruno@clisp.org>
23937
23938         Tests for module 'memcasecmp'.
23939         * modules/memcasecmp-tests: New file.
23940         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
23941
23942 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23943
23944         * lib/pthread.in.h: Add split double-inclusion guard, and include
23945         system <pthread.h> if there is one.  Use @@-style as in other
23946         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
23947         pthread.h doesn't.
23948         (pthread_mutexattr_destroy, pthread_mutexattr_init):
23949         (pthread_mutexattr_settype, pthread_mutex_trylock):
23950         New static inline functions, if there's no system <pthread.h>.
23951         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
23952         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
23953         Approximate with mutexes if the system lacks spinlocks, as in
23954         MacOS.
23955         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
23956         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
23957         @@-style.  Check for spinlocks separately.
23958         (gl_PTHREAD_DEFAULTS): New macro.
23959         * modules/pthread: Redo to use a more typical style for in.h files.
23960
23961 2010-09-21  Eric Blake  <eblake@redhat.com>
23962
23963         net_if: enhance tests
23964         * tests/test-net_if.c (main): Move signature checks earlier.
23965         Print failures to stderr.
23966         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
23967         Document the bug that we do not yet fix.
23968
23969 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
23970
23971         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
23972         about gnulib, not GSS.
23973
23974 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
23975
23976         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
23977         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
23978         for Emacs.
23979         * build-aux/pmccabe2html: Make Makefile.am example code more
23980         cut-and-paste friendly.
23981
23982 2010-09-21  Simon Josefsson  <simon@josefsson.org>
23983
23984         * tests/test-net_if.c: New file.
23985         * modules/net_if-tests: New file.
23986
23987 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
23988
23989         pthread: add pthread_spin_destroy
23990         * lib/pthread.in.h (pthread_spin_destroy): New function.
23991
23992 2010-09-19  Bruno Haible  <bruno@clisp.org>
23993
23994         gnulib-tool: Fix --help output.
23995         * gnulib-tool (func_usage): Fix help message.
23996         Reported by Reuben Thomas <rrt@sc3d.org>.
23997
23998 2010-09-18  Jim Meyering  <meyering@redhat.com>
23999
24000         maint.mk: avoid unexpanded \n in two diagnostics
24001         * top/maint.mk (sc_prohibit_always_true_header_tests):
24002         Don't use a literal \n in a halt=... assignment.  It would not be
24003         expanded, and the two \n bytes would appear in the diagnostic output
24004         rather than the desired newline.  Use halt=$$(printf ... instead.
24005         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24006
24007 2010-09-18  Bruno Haible  <bruno@clisp.org>
24008
24009         netinet_in: Doc tweak.
24010         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
24011         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24012
24013 2010-09-18  Jim Meyering  <meyering@redhat.com>
24014
24015         init.sh: correct an outdated comment
24016         * tests/init.sh (create_exe_shims_):  s/function/alias/
24017
24018         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
24019         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
24020         a file named "*.exe" is removed between the glob expansion and the
24021         processing of that oddly named file.
24022
24023 2010-09-17  Eric Blake  <eblake@redhat.com>
24024
24025         mirbsd: add some more support
24026         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
24027         in BSD family.
24028         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
24029         devices as OpenBSD.
24030         * m4/host-os.m4 (mirbsd): Add MirBSD.
24031
24032         tests: fix unportable assumption on sys/wait.h
24033         * tests/test-sys_wait.c (main): Relax test.
24034         * tests/test-stdlib.c (main): Likewise.
24035
24036         init.sh: accomodate directory with no .exes
24037         * tests/init.sh: Accomodate directory containing only scripts.
24038
24039         tests: avoid compiler warning
24040         * tests/test-stdlib.c (main): Use the variable.
24041
24042         fdutimens, fdutimensat: update signature, again
24043         * lib/utimens.h (gl_futimens): Delete, and move signature...
24044         (fdutimens): ...here.
24045         (fdutimensat): Rearrange signature.
24046         (lutimensat): Rename variable for clarity.
24047         * lib/fdutimensat.c (fdutimensat): Update signature.
24048         * lib/utimens.c (fdutimens): Likewise.
24049         (gl_futimens): Delete.
24050         (utimens, lutimens): Update callers.
24051         * lib/futimens.c (futimens): Likewise.
24052         * tests/test-fdutimensat.c: Likewise.
24053         * tests/test-utimens.c: Likewise.
24054         * tests/test-futimens.h: Update comment.
24055         * NEWS: Mention this.
24056         Suggested by Paul Eggert.
24057
24058 2010-09-17  Bruno Haible  <bruno@clisp.org>
24059
24060         Take over the maintenance of some older macros from Autoconf.
24061         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
24062         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
24063         GNU Autoconf.
24064         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
24065         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
24066
24067 2010-09-17  Eric Blake  <eblake@redhat.com>
24068
24069         fdutimensat: drop atflag validation
24070         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
24071         with valid fd, to close a race scenario where futimens is
24072         unsupported and FILE was replaced by a symlink.
24073         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
24074         accordingly.
24075         Suggested by Paul Eggert.
24076
24077 2010-09-16  Bruno Haible  <bruno@clisp.org>
24078
24079         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
24080         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
24081
24082 2010-09-16  Bruno Haible  <bruno@clisp.org>
24083
24084         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
24085         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
24086         login_tty exists.
24087         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24088
24089 2010-09-16  Bruno Haible  <bruno@clisp.org>
24090
24091         login_tty: Make the replacement code work on BSD systems.
24092         * lib/login_tty.c: Include <sys/ioctl.h>.
24093         (login_tty): Use ioctl TIOCSCTTY when available.
24094         * modules/login_tty (Depends-on): Add sys_ioctl.
24095         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24096
24097 2010-09-16  Bruno Haible  <bruno@clisp.org>
24098
24099         login_tty: Stricter unit test.
24100         * modules/login_tty-tests (Depends-on): Add tcgetsid.
24101         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
24102         and tcgetsid() after login_tty.
24103         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24104
24105 2010-09-16  Bruno Haible  <bruno@clisp.org>
24106
24107         New module 'tcgetsid'.
24108         * lib/tcgetsid.c: New file.
24109         * m4/tcgetsid.m4: New file.
24110         * modules/tcgetsid: New file.
24111         * modules/termios (Depends-on): Add c++defs, warn-on-use.
24112         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
24113         GNULIB_TCGETSID, HAVE_TCGETSID.
24114         * lib/termios.in.h: Include <sys/types.h>.
24115         (tcgetsid): New declaration.
24116         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
24117         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
24118         * doc/posix-functions/tcgetsid.texi: Mention the new module.
24119         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
24120
24121 2010-09-16  Bruno Haible  <bruno@clisp.org>
24122
24123         Tests for module 'termios'.
24124         * modules/termios-c++-tests: New file.
24125         * modules/termios-tests: New file.
24126         * tests/test-termios-c++.cc: New file.
24127         * tests/test-termios.c: New file.
24128
24129         New module 'termios'.
24130         * modules/termios: New file.
24131         * lib/termios.in.h: New file.
24132         * m4/termios_h.m4: New file.
24133         * doc/posix-headers/termios.texi: Mention the new module.
24134
24135 2010-09-16  Eric Blake  <eblake@redhat.com>
24136
24137         fdutimensat: add an atflag parameter
24138         * lib/fdutimensat.c (fdutimensat): Add new parameter.
24139         * lib/utimens.h (fdutimensat): Update prototype.
24140         * tests/test-fdutimensat.c: Adjust test to match.
24141         * NEWS: Document the change.
24142         Suggested by Paul Eggert.
24143
24144 2010-09-16  Bruno Haible  <bruno@clisp.org>
24145
24146         Fix typos in comments.
24147         * lib/striconveh.h: Fix typo in comment.
24148         * lib/login_tty.c (login_tty): Likewise.
24149
24150 2010-09-15  Bruno Haible  <bruno@clisp.org>
24151
24152         stdlib: clarify MirBSD WEXITSTATUS bug
24153         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
24154         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24155
24156 2010-09-15  Eric Blake  <eblake@redhat.com>
24157
24158         stdlib: work around MirBSD WEXITSTATUS bug
24159         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
24160         * modules/stdlib (Depends-on): Add sys_wait.
24161         * tests/test-sys_wait.c (main): Enhance test.
24162         * tests/test-stdlib.c (main): Likewise.
24163         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
24164
24165         docs: mention MacOS issue with WEXITSTATUS(constant)
24166         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
24167         issue.
24168         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24169
24170         strnlen: add tests
24171         * modules/strnlen-tests: New file.
24172         * tests/test-strnlen.c: Likewise.
24173
24174 2010-09-14  Bruno Haible  <bruno@clisp.org>
24175
24176         unistr/base: Avoid link errors when module 'libunistring' is also used.
24177         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
24178         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
24179         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
24180         Declare also when HAVE_LIBUNISTRING is set.
24181         Reported by Pádraig Brady <P@draigbrady.com>.
24182
24183 2010-09-14  Eric Blake  <eblake@redhat.com>
24184
24185         test-rawmemchr: make more robust
24186         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
24187         (Depends-on, configure.ac): Add needed prerequisites to use it.
24188         * modules/memchr-tests (Files, Depends-on, configure.ac):
24189         Likewise, to avoid implicit reliance on memchr module prereqs.
24190         * tests/test-memchr.c (main): Ensure proper masking.
24191         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
24192         reads.
24193
24194         memchr: detect glibc Alpha bug
24195         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
24196         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
24197         Alpha.
24198         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
24199         * tests/test-memchr.c (main): Enhance test.
24200         Reported by Nelson H. F. Beebe.
24201
24202 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24203
24204         fts, getcwd, glob: audit for dirfd returning -1
24205         * lib/fts.c (opendir): Remove #define; no longer used.
24206         (opendirat): New arg PDIR_FD.  All callers changed.
24207         (fts_build, _opendir2): Use new opendirat to avoid the need for
24208         dirfd, or for checking whether dirfd returns a negative value.
24209         Don't use opendir; always use openat followed by fdopendir.
24210         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
24211         it.
24212         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
24213         returns -1 here.
24214         * modules/fts (Depends-on): Remove dirfd.
24215         * modules/getcwd (Depends-on): Likewise.
24216
24217 2010-09-13  Eric Blake  <eblake@redhat.com>
24218
24219         float: fix broken MirBSD header
24220         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
24221         * doc/posix-headers/float.texi (float.h): Document it.
24222
24223 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24224
24225         fts: use O_NOFOLLOW to avoid race condition when opening a directory
24226         * lib/fts.c (opendirat): New arg extra_flags.
24227         (__opendir2): Use it to avoid following symlinks when opening
24228         a directory, if symlinks are not supposed to be followed.  See
24229         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
24230
24231         fdopendir: preserve argument fd before returning
24232         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
24233         (fdopendir_with_dup, fd_clone_opendir): New static functions.
24234         (fdopendir): Use them, arranging for FD to be open to the same
24235         directory that it was when it started.  (It might be temporarily
24236         closed while fdopendir is running, so this not thread- or
24237         signal-safe.)  Be careful to do the right thing even when file
24238         descriptors are scarce and dup fails with errno == EMFILE.  See
24239         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
24240
24241 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
24242
24243         regex: Pass the system regex if its only problem is 32-bit regoff_t.
24244         * NEWS: Document change.
24245         * m4/regex.m4: Disable test for regoff_t size.
24246
24247 2010-09-13  Jim Meyering  <meyering@redhat.com>
24248
24249         fts: don't operate on an invalid file descriptor after failed dup
24250         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
24251         negative file descriptor.
24252
24253 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
24254
24255         savedir: add streamsavedir, deprecate fdsavedir
24256         * NEWS: Mention deprecation of fdsavedir.
24257         * lib/savedir.c (streamsavedir): New extern function, whose name
24258         ends in "savedir" to be consistent with the others.  This differs
24259         from savedirstream in that it doesn't close its argument.  The
24260         next version of GNU tar will use this instead of fdsavedir, to
24261         avoid some race conditions and conserve file descriptors.
24262         (savedirstream): Reimplement as a wrapper around streamsavedir.
24263         (fdsavedir): Add a comment deprecating this function.  As far as
24264         I know, only GNU tar used it, and GNU tar doesn't need it any more.
24265         * lib/savedir.h (streamsavedir): New decl.
24266         (fdsavedir): Add a comment deprecating this.
24267
24268 2010-09-10  Bruno Haible  <bruno@clisp.org>
24269
24270         langinfo: Fix last commit.
24271         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
24272         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
24273         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24274
24275 2010-09-10  Bruno Haible  <bruno@clisp.org>
24276
24277         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
24278         * lib/progreloc.c (O_EXEC): Define fallback.
24279
24280 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
24281
24282         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
24283         * NEWS: Document recent changes to fcntl-h.
24284         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
24285         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
24286         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
24287         Similarly for O_SEARCH; this last was already true, but not documented.
24288         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
24289         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
24290         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
24291         Likewise.
24292         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
24293         is zero, not whether it is defined.
24294         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
24295         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
24296         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
24297
24298 2010-09-10  Bruno Haible  <bruno@clisp.org>
24299
24300         langinfo, nl_langinfo: Fix for IRIX 5.3.
24301         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
24302         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
24303         HAVE_LANGINFO_YESEXPR.
24304         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
24305         HAVE_LANGINFO_YESEXPR.
24306         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
24307         HAVE_LANGINFO_T_FMT_AMPM is 0.
24308         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
24309         HAVE_LANGINFO_YESEXPR is 0.
24310         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
24311         NOEXPR.
24312         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
24313         * doc/posix-functions/nl_langinfo.texi: Likewise.
24314         Reported by Eric Blake.
24315
24316 2010-09-10  Bruno Haible  <bruno@clisp.org>
24317
24318         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
24319         * doc/glibc-functions/login_tty.texi: Mention the include file problem
24320         on FreeBSD 8.0 and OpenBSD 4.6.
24321         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
24322         * m4/pty_h.m4 (gl_PTY_H): Likewise.
24323         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
24324         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
24325         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
24326         ac_includes_default.
24327         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24328
24329 2010-09-09  Eric Blake  <eblake@redhat.com>
24330
24331         strsignal: work around NetBSD bug
24332         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
24333         * lib/string.in.h (includes): Likewise.
24334         * doc/posix-functions/strsignal.texi (strsignal): Document the
24335         bug.
24336         Reported by Nelson H. F. Beebe.
24337
24338         gnulib-tool: work with NetBSD /bin/sh
24339         * gnulib-tool (func_cache_var, func_cache_lookup_module)
24340         (func_get_description, func_get_comment, func_get_status)
24341         (func_get_notice, func_get_applicability, func_get_filelist)
24342         (func_get_dependencies, func_get_autoconf_early_snippet)
24343         (func_get_autoconf_snippet, func_get_automake_snippet)
24344         (func_get_include_directive, func_get_link_directive)
24345         (func_get_license, func_get_maintainer, func_import): Avoid
24346         shell syntax errors from parsing syntax extensions.
24347
24348 2010-09-09  Bruno Haible  <bruno@clisp.org>
24349
24350         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
24351         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
24352         a reliable way to determine whether the 'alias' command works.
24353
24354 2010-09-08  Jim Meyering  <meyering@redhat.com>
24355
24356         init.sh: penalize a set-x-impaired shell; don't disqualify it
24357         * tests/init.sh: Too many shells corrupt application stderr when
24358         you set -x, so we can't afford to disqualify them, since at least
24359         on Irix-6.5, that would disqualify all bourne shells.
24360         Instead, use a two-pass approach.
24361         On the first pass, try to find a shell that meets the stricter
24362         condition that set -x does not corrupt stderr.
24363         If no shell meets the stricter condition, retest each candidate
24364         shell, but without that extra condition.  Finally, when
24365         VERBOSE=yes is requested and set -x might cause trouble, simply
24366         issue a warning and refrain from enabling debug output.
24367
24368 2010-09-08  Eric Blake  <eblake@redhat.com>
24369
24370         unsetenv: fix OpenBSD bug
24371         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
24372         * doc/posix-functions/unsetenv.texi (unsetenv): Update
24373         documentation.
24374         Reported by Jim Meyering.
24375
24376         strtod: work around IRIX 6.5 bug
24377         * lib/strtod.c (strtod): Reparse number on shorter string if
24378         exponent parse was invalid.
24379         * tests/test-strtod.c (main): Add check for "0x1p 2".
24380         Reported by Tom G. Christensen.
24381
24382         getopt: optimize previous patch
24383         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
24384         empty variable.  Speed up awk script.
24385         Reported by Paolo Bonzini.
24386
24387 2010-09-08  Jim Meyering  <meyering@redhat.com>
24388
24389         test.sh: disqualify shells for which set -x corrupts stderr
24390         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
24391         and OpenBSD 4.7.  They make it so with "set -x", environment settings
24392         appear in stderr output.  For example, this command:
24393             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
24394         prints "P=1" on those two systems:
24395
24396 2010-09-08  Bruno Haible  <bruno@clisp.org>
24397
24398         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
24399         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
24400         commands, because some shells ignore redirections when there is an
24401         error in the command lookup.
24402         Reported by Eric Blake.
24403
24404 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
24405
24406         * lib/regex.h: Fix a mention of `regex_compile' (should be
24407         `re_compile_pattern').
24408         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
24409         (re_set_registers): Correct name of parameter in comment.
24410
24411         * doc/regex.texi: Add documentation for missing syntax flags.
24412         Remove commented-out documentation of defunct syntax option
24413         RE_NO_EMPTY_ALTS.
24414         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
24415         Add documentation of re_set_registers.
24416         Document trick to re-use a pattern buffer by setting fastmap manually.
24417         Update documentation of struct re_pattern_buffer per public members.
24418         Uncomment documentation of equivalence class operators and
24419         collating symbol operators, since they are now implemented,
24420         Explain leftmost-longest matching in relation to alternatives.
24421         Tidy documentation of substring matching.
24422         Remove POSIX documentation, which is done better in
24423         glibc, and refer the reader there. Keep BSD API documentation, as
24424         that is not readily available elsewhere.
24425
24426 2010-09-07  Eric Blake  <eblake@redhat.com>
24427
24428         getopt: handle POSIXLY_CORRECT set but not exported
24429         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
24430         export state of POSIXLY_CORRECT, due to bash set -o posix.
24431         Reported by Dustin J. Mitchell.
24432
24433 2010-09-05  Bruno Haible  <bruno@clisp.org>
24434
24435         gnulib-tool: Highlight the changed options.
24436         * gnulib-tool (func_usage): Display the --import, --add-import,
24437         --remove-import explanations in bold font.
24438
24439 2010-09-06  Karl Berry  <karl@gnu.org>
24440
24441         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
24442
24443 2010-09-05  Bruno Haible  <bruno@clisp.org>
24444
24445         uniwidth/width: Update comment.
24446         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
24447         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
24448
24449 2010-09-05  Bruno Haible  <bruno@clisp.org>
24450
24451         isinf, isnan: Relax license.
24452         * modules/isinf (License): Change from GPL to LGPL, with consent from
24453         Ben Pfaff.
24454         * modules/isnan (License): Likewise.
24455         Requested by Ludovic Courtès.
24456
24457 2010-09-04  Bruno Haible  <bruno@clisp.org>
24458
24459         gnulib-tool: Help migration from --import to --add-import or --update.
24460         * gnulib-tool: Emit a verbose error message when --import is used
24461         without any module name.
24462
24463 2010-09-04  Bruno Haible  <bruno@clisp.org>
24464
24465         Update doc about gnulib-tool.
24466         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
24467         'gnulib-tool --update' in more detail.
24468         Reported by Eric Blake.
24469
24470 2010-09-04  Bruno Haible  <bruno@clisp.org>
24471
24472         gnulib-tool: Change --import. New options --add/remove-import.
24473         * gnulib-tool: New options --add-import, --remove-import.
24474         (func_usage): Document them.
24475         (have_associative): Define always.
24476         (func_import): In import mode, don't merge the specified settings with
24477         the cached settings. Implement remove-import mode.
24478         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
24479         Explain when to use them versus --import.
24480         (Simple update): Use --add-import instead of --import.
24481         * NEWS: Mention the change.
24482
24483 2010-09-04  Bruno Haible  <bruno@clisp.org>
24484
24485         * doc/gnulib-tool.texi (Initial import): Update paragraph about
24486         separate gnulib.mk.
24487
24488 2010-09-04  Bruno Haible  <bruno@clisp.org>
24489
24490         gnulib-tool: Don't talk about CVS any more.
24491         * gnulib-tool (func_usage, func_import): Write "version control"
24492         instead of CVS.
24493
24494 2010-09-04  Jim Meyering  <meyering@redhat.com>
24495
24496         maint.mk: avoid obscure sc_copyright_check failure in coreutils
24497         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
24498         false positives (whose names may be ill-chosen) when searching
24499         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
24500         would cause a false-positive.
24501
24502         avoid coreutils "make distcheck" failure
24503         Coreutils tests with an absolute build directory name that contains
24504         a space.  Not quoting this directory name caused a failure.
24505         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
24506         * tests/test-vc-list-files-cvs.sh: Likewise.
24507
24508 2010-09-04  Bruno Haible  <bruno@clisp.org>
24509
24510         gnulib-tool: Avoid error when run in a package without Makefile.am.
24511         * gnulib-tool: When collecting the m4dirs in a package that does not
24512         have a Makefile.am, eliminate those directories that contain no
24513         gnulib-cache.m4. Fix expression that counts these directories.
24514
24515 2010-09-04  Bruno Haible  <bruno@clisp.org>
24516
24517         update-copyright test: Improve output when perl is missing or too old.
24518         * tests/test-update-copyright.sh: Move test of Perl version down after
24519         the test whether Perl exists. Provide an explanation relating Perl's
24520         error message to Automake's SKIP: message.
24521
24522 2010-09-04  Bruno Haible  <bruno@clisp.org>
24523
24524         Don't augment PATH in TESTS_ENVIRONMENT.
24525         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
24526         set abs_aux_dir instead of augmenting PATH.
24527         * modules/vc-list-files-tests (Makefile.am): Likewise.
24528         * tests/test-update-copyright.sh: Augment PATH here.
24529         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
24530         path_prepend_.
24531         * tests/test-vc-list-files-git.sh: Likewise.
24532
24533 2010-09-04  Jim Meyering  <meyering@redhat.com>
24534
24535         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
24536         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
24537
24538 2010-09-04  Bruno Haible  <bruno@clisp.org>
24539
24540         strdup: Fix compilation error in C++ mode.
24541         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
24542         the macro.
24543
24544 2010-09-04  Bruno Haible  <bruno@clisp.org>
24545
24546         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
24547         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
24548         macro into a function.
24549         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24550
24551 2010-09-04  Bruno Haible  <bruno@clisp.org>
24552
24553         Set PATH_SEPARATOR the same way autoconf does.
24554         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
24555         the value of PATH_SEPARATOR the same way autoconf-generated configure
24556         scripts do.
24557         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
24558         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24559
24560 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24561
24562         Set PATH_SEPARATOR the same way autoconf does.
24563         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
24564         the same way autoconf-generated configure scripts do.
24565         * posix-modules: Likewise.
24566
24567 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
24568
24569         hash: fix safe_hasher const typo
24570         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
24571         const; otherwise, there is a type error later.
24572
24573 2010-09-02  Jim Meyering  <meyering@redhat.com>
24574
24575         test-update-copyright.sh: require perl 5.8.0
24576         * tests/test-update-copyright.sh: Require 5.8.0,
24577         which Tom G. Christensen has confirmed is adequate,
24578         while 5.6.1 is not.
24579
24580 2010-09-02  Eric Blake  <eblake@redhat.com>
24581
24582         tests: init.sh improvements for re-exec'ing with zsh
24583         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
24584         -vx through shell re-exec.
24585         Reported by Tom G. Christensen.
24586
24587         wctype: fix typo in previous commit
24588         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
24589         Reported by Ludovic Courtès.
24590
24591 2010-09-02  Jim Meyering  <meyering@redhat.com>
24592
24593         test-update-copyright.sh: skip test if Perl is too old
24594         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
24595         Reported by Tom G. Christensen.
24596
24597 2010-09-02  Bruno Haible  <bruno@clisp.org>
24598
24599         wctype: Avoid compilation error on IRIX 6.5.30.
24600         * lib/wctype.in.h (iswblank): Declare with a replacement if
24601         REPLACE_ISWBLANK is set.
24602         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
24603         declared. Set REPLACE_ISWBLANK.
24604         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
24605         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
24606         * doc/posix-headers/wctype.texi: Likewise.
24607         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24608
24609 2010-09-01  Bruno Haible  <bruno@clisp.org>
24610
24611         New module 'socketlib'.
24612         * modules/socketlib: New file.
24613         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
24614         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
24615         * modules/sockets (Depends-on): Add socketlib.
24616         Suggested by Sam Steingold <sds@gnu.org>.
24617
24618 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24619
24620         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
24621
24622         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
24623         when one needs search access to a directory but not read access.
24624         On systems where it is available, it works in some cases where
24625         O_RDONLY does not, namely on directories that are searchable but
24626         not readable, and which need only to be searchable.  If O_SEARCH
24627         is not available, fall back to the traditional method of using
24628         O_RDONLY.
24629
24630         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
24631         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
24632         when opening a directory that needs only to be searchable.
24633         * lib/chdir-safer.c (chdir_no_follow): Likewise.
24634         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
24635         * lib/openat-proc.c (openat_proc_name): Likewise.
24636         * lib/openat.c (openat_needs_fchdir): Likewise.
24637         * lib/save-cwd.c (save_cwd): Likewise.
24638         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
24639
24640 2010-08-28  Bruno Haible  <bruno@clisp.org>
24641
24642         New module 'host-cpu-c-abi'.
24643         * modules/host-cpu-c-abi: New file.
24644         * m4/host-cpu-c-abi.m4: New file, based on part of
24645         clisp/src/m4/general.m4.
24646         Requested by Sam Steingold <sds@gnu.org>.
24647
24648 2010-08-31  Eric Blake  <eblake@redhat.com>
24649         and Jim Meyering  <meyering@redhat.com>
24650
24651         hash: factor, and guard against misbehaving hasher function
24652         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
24653         of table->hasher's return value.  Also protect against a hash value
24654         so large that adding it to table->bucket results in a NULL pointer.
24655         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
24656         Use it in place of open-coded check-and-abort.
24657
24658 2010-08-30  Bruno Haible  <bruno@clisp.org>
24659
24660         hash: silence spurious clang warning
24661         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
24662         Reported by Eric Blake.
24663
24664 2010-08-30  Eric Blake  <eblake@redhat.com>
24665
24666         strstr, memmem, strcasestr: avoid leaked shell message
24667         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
24668         FreeBSD.
24669         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24670         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24671
24672         tests: silence clang warning
24673         * tests/test-malloca.c (do_allocation): Avoid dead store.
24674
24675 2010-08-29  Bruno Haible  <bruno@clisp.org>
24676
24677         gettext: Fix recent mistake.
24678         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
24679
24680 2010-08-29  Bruno Haible  <bruno@clisp.org>
24681
24682         selinux-h: Offer a --without-selinux option.
24683         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
24684         --without-selinux was specified, skip all tests and define
24685         HAVE_SELINUX_SELINUX_H to 0.
24686         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
24687         set LIB_SELINUX to empty.
24688         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
24689         gl_LIBSELINUX. If --without-selinux was specified, replace
24690         selinux/context.h.
24691         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
24692
24693 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24694             Bruno Haible  <bruno@clisp.org>
24695
24696         Make the module 'realloc-gnu' work again on AIX and OSF/1.
24697         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
24698         of HAVE_REALLOC.
24699         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
24700         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
24701         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
24702         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
24703
24704 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24705             Bruno Haible  <bruno@clisp.org>
24706
24707         Make the module 'calloc-gnu' work again on AIX and OSF/1.
24708         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
24709         HAVE_CALLOC.
24710         * lib/xmalloc.c: Update accordingly.
24711         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
24712         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
24713         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
24714
24715 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24716             Bruno Haible  <bruno@clisp.org>
24717
24718         Make the module 'malloc-gnu' work again on AIX and OSF/1.
24719         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
24720         HAVE_MALLOC.
24721         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
24722         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
24723         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
24724
24725 2010-08-29  Bruno Haible  <bruno@clisp.org>
24726
24727         Update modules list.
24728         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
24729         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
24730         (String handling <string.h>): Add astrxfrm.
24731         (File system functions): Add readlinkat.
24732
24733 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24734
24735         Tests for module 'realloc-gnu'.
24736         * modules/realloc-gnu-tests: New file.
24737         * tests/test-realloc-gnu.c: New file.
24738
24739         Tests for module 'calloc-gnu'.
24740         * modules/calloc-gnu-tests: New file.
24741         * tests/test-calloc-gnu.c: New file.
24742
24743         Tests for module 'malloc-gnu'.
24744         * modules/malloc-gnu-tests: New file.
24745         * tests/test-malloc-gnu.c: New file.
24746
24747 2010-08-28  Bruno Haible  <bruno@clisp.org>
24748
24749         Rename module 'realloc' -> 'realloc-gnu'.
24750         * modules/realloc-gnu: New file, copied from modules/realloc.
24751         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
24752         obsolete.
24753         * modules/mgetgroups (Depends-on): Update.
24754         * doc/posix-functions/realloc.texi: Update.
24755         * NEWS: Mention the change.
24756
24757         Rename module 'calloc' -> 'calloc-gnu'.
24758         * modules/calloc-gnu: New file, copied from modules/calloc.
24759         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
24760         obsolete.
24761         * doc/posix-functions/calloc.texi: Update.
24762         * NEWS: Mention the change.
24763
24764         Rename module 'malloc' -> 'malloc-gnu'.
24765         * modules/malloc-gnu: New file, copied from modules/malloc.
24766         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
24767         obsolete.
24768         * modules/argp (Depends-on): Update.
24769         * modules/regex (Depends-on): Update.
24770         * doc/posix-functions/malloc.texi: Update.
24771         * NEWS: Mention the change.
24772
24773 2010-08-28  Eric Blake  <eblake@redhat.com>
24774
24775         pread, pwrite: add missing dependency
24776         * modules/pread (Depends-on): Add extensions.
24777         * modules/pwrite (Depends-on): Likewise.
24778
24779 2010-08-28  Bruno Haible  <bruno@clisp.org>
24780
24781         unistr/u*-strchr: Fix tests dependencies.
24782         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
24783         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
24784         Reported by Ian Beckwith <ianb@erislabs.net>.
24785
24786 2010-08-28  Bruno Haible  <bruno@clisp.org>
24787
24788         read-file: Don't occupy too much unused memory.
24789         * lib/read-file.c (fread_file): Shrink the buffer at the end.
24790
24791 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
24792             Eric Blake  <eblake@redhat.com>
24793             Bruno Haible  <bruno@clisp.org>
24794
24795         read-file: Avoid memory reallocations with regular files.
24796         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
24797         (fread_file): With regular files, use the remaining length as the
24798         initial buffer size.  Check against overflow.
24799         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
24800         sys_stat.
24801
24802 2010-08-28  Bruno Haible  <bruno@clisp.org>
24803
24804         ftello: Relax license.
24805         * modules/ftello (License): Relax to LGPLv2+.
24806         Reported by Eric Blake.
24807
24808 2010-08-28  Bruno Haible  <bruno@clisp.org>
24809
24810         Avoid relocwrapper link errors due to gnulib replacement functions.
24811         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
24812         function.
24813         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24814
24815 2010-08-28  Bruno Haible  <bruno@clisp.org>
24816
24817         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
24818         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
24819         defined.
24820         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
24821         Suggested by Eric Blake.
24822
24823 2010-08-28  Bruno Haible  <bruno@clisp.org>
24824
24825         sys_socket, netdb: Ensure socklen_t gets defined.
24826         * modules/sys_socket (Depends-on): Add socklen.
24827         * modules/netdb (Depends-on): Likewise.
24828         * modules/getaddrinfo (Depends-on): Remove socklen.
24829         * modules/getsockopt (Depends-on): Likewise.
24830         * modules/setsockopt (Depends-on): Likewise.
24831         * tests/test-sys_socket.c: Check that socklen_t is defined.
24832         * tests/test-netdb.c: Likewise.
24833         * m4/socklen.m4: Update comments.
24834         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24835
24836 2010-08-27  Eric Blake  <eblake@redhat.com>
24837
24838         login_tty: add missing dependency
24839         * modules/login_tty (Depends-on): Add pty.
24840
24841 2010-08-26  Eric Blake  <eblake@redhat.com>
24842
24843         lib-symbol-versions: fix m4 quoting
24844         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
24845         format for AC_LINK_IFELSE.
24846
24847         glob: fix compile test
24848         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
24849
24850         btowc: fix missing file
24851         * modules/btowc (Files): Also ship locale-fr.m4.
24852
24853         lseek: fix link test
24854         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
24855         AC_LINK_IFELSE.
24856
24857         include_next: silence autoconf 2.68 warning
24858         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
24859         AC_COMPILE_IFELSE as special.
24860         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
24861         autoconf < 2.68.
24862
24863         acl: fix compilation test
24864         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
24865         AC_COMPILE_IFELSE.
24866
24867 2010-08-26  Bruno Haible  <bruno@clisp.org>
24868
24869         Modernize AC_TRY_RUN invocations.
24870         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
24871         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24872         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
24873         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
24874         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
24875         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
24876         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24877         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24878         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24879         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24880         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24881         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24882         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24883         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24884         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24885         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24886         gl_MBRLEN_NUL_RETVAL): Likewise.
24887         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24888         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
24889         Likewise.
24890         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24891         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24892         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24893         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24894         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
24895         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
24896         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
24897         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
24898         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
24899         Likewise.
24900         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
24901         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
24902         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24903         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24904         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24905         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24906         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24907         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
24908         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24909         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24910
24911 2010-08-26  Bruno Haible  <bruno@clisp.org>
24912
24913         Modernize AC_TRY_LINK invocations.
24914         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
24915         AC_TRY_LINK.
24916         * m4/argp.m4 (gl_ARGP): Likewise.
24917         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
24918         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24919         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
24920         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
24921         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
24922         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
24923         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
24924         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
24925         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
24926         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
24927         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
24928         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
24929         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
24930         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24931         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
24932         * m4/hostent.m4 (gl_HOSTENT): Likewise.
24933         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24934         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
24935         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
24936         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
24937         Likewise.
24938         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
24939         Likewise.
24940         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
24941         Likewise.
24942         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
24943         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
24944         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
24945         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
24946         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
24947         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
24948         * m4/servent.m4 (gl_SERVENT): Likewise.
24949         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
24950         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
24951         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
24952         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
24953         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24954         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
24955         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24956         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24957         * modules/tsearch-tests (configure.ac): Likewise.
24958
24959 2010-08-26  Bruno Haible  <bruno@clisp.org>
24960
24961         Modernize AC_TRY_COMPILE invocations.
24962         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
24963         AC_TRY_COMPILE.
24964         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
24965         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
24966         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
24967         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
24968         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
24969         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24970         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24971         * m4/lock.m4 (gl_LOCK): Likewise.
24972         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
24973         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
24974         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
24975         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
24976         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
24977         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
24978         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
24979         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
24980         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
24981         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
24982         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
24983         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
24984         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
24985         extraneous semicolon.
24986
24987 2010-08-26  Jim Meyering  <meyering@redhat.com>
24988
24989         stat-time: relax license LGPL
24990         * modules/stat-time (License): Change from GPL to LGPL,
24991         with consent from all contributors, for use in libguile.
24992         Requested by Ludovic Courtès.
24993
24994 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
24995
24996         poll: return immediately on POLLHUP.
24997         * lib/poll.c (poll): Always set timeout before wait_timeout is
24998         computed.
24999
25000 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25001
25002         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
25003         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
25004         rmdir ("dir/.//"), unlinkat.
25005
25006 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25007
25008         stdbool: avoid spurious failure with modern xlc
25009         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25010
25011 2010-08-24  Bruno Haible  <bruno@clisp.org>
25012
25013         getloadavg: simplify code
25014         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
25015         gl_have_func. Update comments.
25016
25017 2010-08-24  Eric Blake  <eblake@redhat.com>
25018
25019         getloadavg: don't define SVR4 on cygwin
25020         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
25021         only define SVR4 when -lkvm is required.
25022         Reported by Yaakov Selkowitz.
25023
25024 2010-08-24  Bruno Haible  <bruno@clisp.org>
25025
25026         priv-set: fix comment
25027         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
25028
25029 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25030
25031         priv-set: fix comments
25032         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
25033         to match code, as suggested by David Bartley in:
25034         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
25035
25036 2010-08-23  Eric Blake  <eblake@redhat.com>
25037
25038         stdbool: avoid rejecting clang
25039         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25040         * tests/test-stdbool.c: Enable more tests if using the system
25041         <stdbool.h> instead of the gnulib replacement.
25042         (main): Move xlc bug test to a runtime test for all compilers.
25043         Reported by Anders Kaseorg.
25044
25045         argz: fix shell quoting issue
25046         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
25047         Reported by Charles Wilson.
25048
25049 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
25050             Erik Faye-Lund <kusmabite@gmail.com>
25051
25052         poll, select: handle ERROR_BROKEN_PIPE.
25053         * lib/poll.c (win32_compute_revents): Return POLLHUP when
25054         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25055         * lib/select.c (win32_compute_revents): Do not mark a pipe
25056         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25057
25058 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
25059
25060         fts: allow compilation with C++
25061         * lib/fts_.h: Specify extern "C" linkage with C++.
25062
25063 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25064
25065         Fix gnulib-tool sed script de-commentation for AIX sed.
25066         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
25067         sed.
25068
25069 2010-08-17  Eric Blake  <eblake@redhat.com>
25070
25071         test-stddef: test for (some) offsetof bugs
25072         * tests/test-stddef.c: Enhance test to ensure correct type of
25073         offsetof.
25074         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
25075         that we are not fixing at this time.
25076
25077 2010-08-15  Bruno Haible  <bruno@clisp.org>
25078
25079         stpncpy: Allow stpncpy to be defined as a macro.
25080         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
25081         if it's already correctly declared.
25082         * lib/string.in.h (stpncpy): Undefine before redefining.
25083         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
25084
25085 2010-08-14  Bruno Haible  <bruno@clisp.org>
25086
25087         Rename module 'memxfrm' to 'amemxfrm'.
25088         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
25089         (amemxfrm): Renamed from memxfrm.
25090         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
25091         (amemxfrm): Renamed from memxfrm.
25092         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
25093         * NEWS: Mention the change.
25094         * MODULES.html.sh (String handling <string.h>): Update.
25095         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
25096         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
25097         * lib/unicase/u16-casexfrm.c: Likewise.
25098         * lib/unicase/u32-casexfrm.c: Likewise.
25099         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
25100         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
25101         * lib/uninorm/u16-normxfrm.c: Likewise.
25102         * lib/uninorm/u32-normxfrm.c: Likewise.
25103         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
25104         memxfrm.
25105         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
25106         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
25107         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
25108         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
25109         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
25110         Suggested by Paul Eggert.
25111
25112 2010-08-14  Bruno Haible  <bruno@clisp.org>
25113
25114         Tests for module 'astrxfrm'.
25115         * modules/astrxfrm-tests: New file.
25116         * tests/test-astrxfrm.c: New file.
25117
25118         New module 'astrxfrm'.
25119         * lib/astrxfrm.h: New file.
25120         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
25121         * modules/astrxfrm: New file.
25122
25123 2010-08-14  Reuben Thomas <rrt@sc3d.org>
25124
25125         regex: Tweak doc.
25126         * doc/regex.texi (Overview): Don't mention regex.c.
25127         (GNU Regular Expression Compiling): Likewise.
25128         (Match-end-of-line Operator): Mention 'not_eol'.
25129
25130 2010-08-14  Brian Gough  <bjg@gnu.org>
25131             Bruno Haible  <bruno@clisp.org>
25132
25133         git-merge-changelog: add doc relating to use with bzr and hg.
25134         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
25135
25136 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
25137
25138         pthread: fix pthread.h creation for srcdir != builddir
25139         * modules/pthread (Makefile.am): Fix the rule to work also in a
25140         non-srcdir build.
25141
25142 2010-08-13  Karl Berry  <karl@gnu.org>
25143
25144         * doc/regex.texi (Predefined Syntaxes): @smallexample.
25145         * doc/posix-*/*: force line break before @url of POSIX
25146         specifications.
25147         Suggested by Werner Lemberg.
25148
25149 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25150
25151         strtod: fix const diagnostic
25152         * lib/strtod.c (strtod): Don't assign const char * to char *,
25153         as this elicits a warning from GCC when warnings are enabled.
25154
25155 2010-08-10  Pádraig Brady <P@draigbrady.com>
25156         and Eric Blake  <eblake@redhat.com>
25157
25158         copy-acl: ignore ENOTSUP on HP-UX
25159         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
25160         so that it is available for HP-UX.
25161         * lib/copy-acl.c (qcopy_acl): Use it.
25162         Reported by Patrick M. Callahan.
25163
25164 2010-08-10  Eric Blake  <eblake@redhat.com>
25165
25166         open, chown: relax license
25167         * modules/open (License): Change to LGPLv2+, with consent by all
25168         authors, for use in augeas.
25169         * modules/chown (License): Likewise.
25170         * modules/lchown (Likewise): Likewise.
25171         Requested by Adam Stokes.
25172
25173 2010-08-09  Karl Berry  <karl@gnu.org>
25174
25175         * build-aux/ar-lib: new file, import from Automake.
25176         * config/srclist.txt: autocheck for updates.
25177
25178 2010-08-09  Eric Blake  <eblake@redhat.com>
25179
25180         readlinkat: adjust client modules
25181         * modules/areadlinkat (Depends-on): Use readlinkat, not
25182         symlinkat.
25183         * modules/areadlinkat-with-size (Depends-on): Likewise.
25184
25185         mknod: be more vocal about danger of running tests as root
25186         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
25187         root, since that is just asking for problems.
25188         Suggested by Bruno Haible, based on a report by Rainer Tammer.
25189
25190         readlinkat: split into its own module
25191         * modules/symlinkat: Split readlinkat...
25192         * modules/readlinkat: ...into separate module.
25193         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
25194         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
25195         * lib/symlinkat.c (readlinkat): Move...
25196         * lib/readlinkat.c: ...into new file.
25197         * modules/symlinkat-tests: Split readlinkat test...
25198         * modules/readlinkat-tests: ...into separate module.
25199         * tests/test-symlinkat.c: Split...
25200         * tests/test-readlinkat.c: ...into new file.
25201         * NEWS: Document the split.
25202         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25203         * lib/unistd.in.h (readlinkat): Likewise.
25204         Suggested by Bruno Haible.
25205
25206 2010-08-08  Bruno Haible  <bruno@clisp.org>
25207
25208         memxfrm: Speed up.
25209         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
25210         that usually only one call to strxfrm is necessary for each string
25211         part.
25212         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25213
25214 2010-08-07  Karl Berry  <karl@gnu.org>
25215
25216         * doc/posix-headers/limits.texi,
25217         * doc/posix-functions/malloc.texi,
25218         * doc/posix-functions/strsignal.texi: missing @item.
25219         * doc/ld-version-script.texi: spurious leading i.
25220         * doc/regex.texi (Interval Operators): no commas inside @var.
25221
25222 2010-08-01  Bruno Haible  <bruno@clisp.org>
25223
25224         Integrate the regex documentation.
25225         * doc/gnulib.texi: Define 'cn' index.
25226         (Regular expressions): New a chapter that includes regex.texi and
25227         regexprops-generic.texi.
25228         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
25229         syntax.
25230
25231         Whitespace cleanup.
25232         * doc/regex.texi: Remove trailing spaces.
25233
25234         Add regex documentation.
25235         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
25236         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
25237         Written by Kathy A. Hargreaves and Karl Berry.
25238
25239 2010-08-01  Bruno Haible  <bruno@clisp.org>
25240
25241         link: Update documentation.
25242         * doc/posix-functions/link.texi: Update regarding Solaris.
25243
25244 2010-07-31  Bruno Haible  <bruno@clisp.org>
25245
25246         Update modules list.
25247         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
25248         (String handling <string.h>): Add memcmp2, memxfrm.
25249         (Container data structures): Add xlist, xsublist, xoset.
25250         (Core language properties): Add alignof, unused-parameter.
25251         (Process control, Numeric conversion functions <stdlib.h>): Renamed
25252         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
25253         (Unibyte characters <ctype.h>): New section.
25254         (String handling <string.h>): New section.
25255         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
25256         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
25257         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
25258         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
25259         tan, tanh, tanl, y0, y1, yn.
25260         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
25261         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
25262         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
25263         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
25264         unlockpt, vdprintf, vdprintf-posix.
25265         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
25266         (File system functions): Add concat-filename, sys_file, sys_ioctl,
25267         xconcat-filename.
25268         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
25269         getdtablesize, pipe2, pipe2-safer.
25270         (Security): New section.
25271         (Networking functions): Add accept4.
25272         (Signal handling): Add sigpipe.
25273         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
25274         mbmemcasecoll.
25275         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
25276         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
25277         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
25278         pipe-filter-ii.
25279         (Misc): Add argp-version-etc, login_tty, parse-duration.
25280
25281 2010-07-31  Bruno Haible  <bruno@clisp.org>
25282
25283         Improve doc in MODULES.html.
25284         * modules/linkat (Description): Add the word "function".
25285         * modules/mkfifo (Description): Likewise.
25286         * modules/mknod (Description): Likewise.
25287         * modules/remove (Description): Likewise.
25288         * modules/renameat (Description): Likewise.
25289         * modules/stat (Description): Likewise.
25290         * modules/symlink (Description): Likewise.
25291         * modules/unlink (Description): Likewise.
25292
25293 2010-07-31  Bruno Haible  <bruno@clisp.org>
25294
25295         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
25296         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
25297         option --enable/disable-c++ instead of --enable/disable-cxx.
25298         * NEWS: Mention the change.
25299
25300 2010-07-31  Bruno Haible  <bruno@clisp.org>
25301
25302         readlink, areadlink: Relax test a bit.
25303         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
25304         alternative to ENOTDIR.
25305         * tests/test-areadlink.h (test_areadlink): Likewise.
25306         Reported by Rainer Tammer.
25307
25308 2010-07-31  Bruno Haible  <bruno@clisp.org>
25309
25310         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
25311         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
25312         character, perform the search using U_STRCHR.
25313         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
25314         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
25315         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
25316         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
25317         Suggested by Paolo Bonzini.
25318
25319 2010-07-31  Bruno Haible  <bruno@clisp.org>
25320
25321         unistr/u*-strstr: Fix dependencies.
25322         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
25323         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
25324         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
25325
25326 2010-07-31  Bruno Haible  <bruno@clisp.org>
25327
25328         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
25329         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
25330         the beginning of the loop.
25331         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
25332         cases in 'switch' statement.
25333
25334         unistr/u8-strchr: Fix several bugs.
25335         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
25336         the string. When not found, return NULL, not a pointer near the end.
25337
25338         More tests for unistr/u8-strchr.
25339         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
25340         that the function does not read past the first occurrence of the byte
25341         being searched.
25342         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
25343         * tests/unistr/test-u16-strchr.c (main): New function.
25344         * tests/unistr/test-u32-strchr.c (main): New function.
25345
25346 2010-07-31  Bruno Haible  <bruno@clisp.org>
25347
25348         posix-modules: Ignore backup files of documentation files.
25349         * posix-modules: grep only through files named *.texi.
25350
25351 2010-07-31  Bruno Haible  <bruno@clisp.org>
25352
25353         symlinkat: Fix documentation.
25354         * doc/posix-functions/readlinkat.texi: Fix module name.
25355
25356 2010-07-31  Bruno Haible  <bruno@clisp.org>
25357
25358         fchownat: Replace also when chown has the trailing slash bug.
25359         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
25360         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
25361         introduced on 2010-04-10.
25362         Reported by Rainer Tammer.
25363
25364 2010-07-31  Bruno Haible  <bruno@clisp.org>
25365
25366         linkat: Work around AIX 7.1 bug.
25367         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
25368         whether linkat handles trailing slash correctly. If not, replace linkat
25369         and define LINKAT_TRAILING_SLASH_BUG.
25370         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
25371         check whether (fd1,file1) points to a directory if file1 or file2 ends
25372         in a slash. Code taken from lib/link.c.
25373         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
25374         Reported by Rainer Tammer.
25375
25376 2010-07-31  Bruno Haible  <bruno@clisp.org>
25377
25378         Correctly determine whether pow is available in libc on AIX 7 with xlc.
25379         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
25380         This disables an xlc optimization that was causing wrong test results.
25381         Reported by Rainer Tammer.
25382
25383 2010-07-31  Bruno Haible  <bruno@clisp.org>
25384
25385         iconv: Work around AIX 6.1..7.1 bug.
25386         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
25387         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
25388         cross-compiling, guess no on all versions of AIX.
25389         Reported by Rainer Tammer.
25390
25391 2010-07-31  Bruno Haible  <bruno@clisp.org>
25392
25393         readlink: Relax test a bit.
25394         * tests/test-readlink.h (test_readlink): Allow different errno value
25395         when readlink is called with a file name that ends in / and refers to
25396         a file.
25397         Suggested by Eric Blake.
25398         Reported by Rainer Tammer.
25399
25400 2010-07-31  Bruno Haible  <bruno@clisp.org>
25401
25402         copysign: Does not require -lm on glibc systems.
25403         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
25404         gl_COMMON_DOUBLE_MATHFUNC.
25405         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
25406
25407 2010-07-31  Bruno Haible  <bruno@clisp.org>
25408
25409         duplocale: Work around AIX 7.1 bug.
25410         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
25411         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
25412         * lib/duplocale.c (rpl_duplocale): Update comment.
25413         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
25414         Reported by Rainer Tammer.
25415
25416 2010-07-30  Bruno Haible  <bruno@clisp.org>
25417
25418         dirfd: Avoid link error on AIX 7.1.
25419         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
25420         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
25421         exist, set REPLACE_DIRFD.
25422         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
25423         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
25424         * doc/posix-functions/dirfd.texi: Update.
25425         Reported by Rainer Tammer.
25426
25427 2010-07-30  Eric Blake  <eblake@redhat.com>
25428
25429         strtod: next round of AIX fixes
25430         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
25431         exponent.
25432         * tests/test-strtod.c (main): Enhance tests.
25433         * doc/posix-functions/strtod.texi (strtod): Document next bug.
25434         Reported by Rainer Tammer.
25435
25436         futimens: fix configure check
25437         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
25438         Reported by Bruno Haible.
25439
25440 2010-07-30  Bruno Haible  <bruno@clisp.org>
25441
25442         getline: Update regarding AIX.
25443         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
25444         Reported by Rainer Tammer.
25445
25446 2010-07-30  Bruno Haible  <bruno@clisp.org>
25447
25448         wcwidth: Drop replacement on AIX 7.
25449         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
25450         AIX 7.
25451         Reported by Rainer Tammer.
25452
25453 2010-07-30  Bruno Haible  <bruno@clisp.org>
25454
25455         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
25456         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
25457         a 'char *'.
25458         Reported by Rainer Tammer.
25459
25460 2010-07-30  Bruno Haible  <bruno@clisp.org>
25461
25462         unlink: Update regarding AIX.
25463         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
25464         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
25465         Reported by Rainer Tammer.
25466
25467 2010-07-30  Bruno Haible  <bruno@clisp.org>
25468
25469         symlink: Update regarding AIX.
25470         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
25471         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
25472         Reported by Rainer Tammer.
25473
25474 2010-07-30  Bruno Haible  <bruno@clisp.org>
25475
25476         strndup: Update regarding AIX.
25477         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
25478         AIX 7.
25479         Reported by Rainer Tammer.
25480
25481 2010-07-30  Bruno Haible  <bruno@clisp.org>
25482
25483         stat: Update regarding AIX.
25484         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
25485         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
25486         Reported by Rainer Tammer.
25487
25488 2010-07-30  Bruno Haible  <bruno@clisp.org>
25489
25490         truncl: Fix autoconf test.
25491         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
25492         whether truncl works.
25493         Reported by Rainer Tammer.
25494
25495 2010-07-30  Bruno Haible  <bruno@clisp.org>
25496
25497         round: Update regarding AIX.
25498         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
25499         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
25500         Reported by Rainer Tammer.
25501
25502 2010-07-30  Bruno Haible  <bruno@clisp.org>
25503
25504         rename: Update regarding AIX.
25505         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
25506         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
25507         Reported by Rainer Tammer.
25508
25509 2010-07-30  Bruno Haible  <bruno@clisp.org>
25510
25511         printf.m4: Update regarding AIX.
25512         * m4/printf.m4: Update comments regarding AIX.
25513         Reported by Rainer Tammer.
25514
25515 2010-07-30  Bruno Haible  <bruno@clisp.org>
25516
25517         iconv: Update regarding AIX.
25518         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
25519         AIX 7.
25520         Reported by Rainer Tammer.
25521
25522 2010-07-30  Bruno Haible  <bruno@clisp.org>
25523
25524         getopt: Update regarding AIX.
25525         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
25526         no on AIX.
25527         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
25528         Reported by Rainer Tammer.
25529
25530 2010-07-30  Bruno Haible  <bruno@clisp.org>
25531
25532         ldexpl; Update regarding AIX.
25533         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
25534         on AIX 7.
25535         Reported by Rainer Tammer.
25536
25537 2010-07-30  Bruno Haible  <bruno@clisp.org>
25538
25539         frexpl: Update regarding AIX.
25540         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
25541         on AIX 7.
25542         Reported by Rainer Tammer.
25543
25544 2010-07-30  Bruno Haible  <bruno@clisp.org>
25545
25546         open, fopen: Update regarding AIX.
25547         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
25548         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25549         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
25550         * doc/posix-functions/fopen.texi: Likewise.
25551         Reported by Rainer Tammer.
25552
25553 2010-07-30  Bruno Haible  <bruno@clisp.org>
25554
25555         chown: Update doc regarding AIX.
25556         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
25557         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
25558         Reported by Rainer Tammer.
25559
25560 2010-07-30  Eric Blake  <eblake@redhat.com>
25561
25562         strtod: fix bug in replacement function on AIX
25563         * lib/strtod.c (strtod): Special case broken "0x" parse in
25564         underlying strtod.
25565         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
25566         * doc/posix-functions/strtod.texi (strtod): Likewise.
25567         Reported by Rainer Tammer.
25568
25569 2010-07-30  Bruno Haible  <bruno@clisp.org>
25570
25571         mbrlen: Fix cross-compilation guess for AIX.
25572         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
25573         guess. Leftover from 2008-12-22.
25574
25575 2010-07-30  Bruno Haible  <bruno@clisp.org>
25576
25577         mbrtowc: Fix cross-compilation guess for AIX.
25578         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
25579         guess. Leftover from 2008-12-21.
25580
25581 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
25582
25583         init.sh: work around trap limitation of some shells
25584         * tests/init.sh (setup_): Move exit trap outside of shell function.
25585
25586 2010-07-29  Eric Blake  <eblake@redhat.com>
25587
25588         strtod: aid debugging
25589         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
25590         understanding why strtod is rejected.
25591
25592 2010-07-28  Bruno Haible  <bruno@clisp.org>
25593
25594         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
25595         * lib/unistr/u8-chr.c: Include <string.h>.
25596         * tests/unistr/test-u8-chr.c: Likewise.
25597         * tests/unistr/test-u16-chr.c: Likewise.
25598         * tests/unistr/test-u32-chr.c: Likewise.
25599         * tests/unistr/test-u8-strchr.c: Likewise.
25600         * tests/unistr/test-u16-strchr.c: Likewise.
25601         * tests/unistr/test-u32-strchr.c: Likewise.
25602         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
25603         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
25604         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
25605         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
25606
25607 2010-07-28  Bruno Haible  <bruno@clisp.org>
25608
25609         Use spaces for indentation, not tabs.
25610         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
25611
25612 2010-07-27  Bruno Haible  <bruno@clisp.org>
25613
25614         mbspcasecmp: Fix function specification.
25615         * lib/string.in.h (mbspcasecmp): Fix specification comment.
25616         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
25617         Reported by Eric Blake <eblake@redhat.com>.
25618
25619 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
25620
25621         timespec: use cast and not conditional, as truncation isn't possible
25622         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
25623         instead of a conditional.  Comment about the situation in more detail.
25624         This undoes most of the 2009-10-29 patch.
25625
25626 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
25627
25628         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
25629         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
25630         * lib/unistr/u8-strchr.c: Likewise.
25631         * modules/unistr/u8-chr: Depend on memchr.
25632
25633         unistr/u*-strchr: add tests
25634         * modules/unistr/u8-strchr-tests: New file.
25635         * modules/unistr/u16-strchr-tests: New file.
25636         * modules/unistr/u32-strchr-tests: New file.
25637         * tests/unistr/test-strchr.h: New file.
25638         * tests/unistr/test-u8-strchr.c: New file.
25639         * tests/unistr/test-u16-strchr.c: New file.
25640         * tests/unistr/test-u32-strchr.c: New file.
25641
25642         unistr/u*-chr: test multibyte sequences more
25643         * tests/unistr/test-chr.h: Do complete testing of the characters in the
25644         test vector.
25645         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
25646         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
25647         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
25648
25649         unistr/u*-chr: test multibyte sequences
25650         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
25651
25652         unistr/u*-chr: prepare for multibyte tests
25653         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
25654         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
25655         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
25656         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
25657         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
25658         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
25659
25660 2010-07-18  Bruno Haible  <bruno@clisp.org>
25661
25662         unistr/u8-strchr: Optimize non-ASCII argument case.
25663         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
25664         because the first byte often matches anyway.
25665         Reported by Pádraig Brady <P@draigbrady.com>.
25666
25667 2010-07-15  Karl Berry  <karl@gnu.org>
25668
25669         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
25670
25671 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
25672
25673         getcwd: on Solaris, work better if ancestors are inaccessible
25674         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
25675         buffer and size, try again with a large buffer.  This works better
25676         on Solaris, since its getcwd succeeds even if the path to the root
25677         is inaccessible, and this is helpful in common cases such as .zfs
25678         hidden directories.  Problem reported by J Chapman Flack in
25679         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
25680         Use system getcwd if it's declared, not merely if it's partly
25681         working; use the partly-working test only to avoid needless effort
25682         if the system getcwd fails.
25683         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
25684         comment that was already obsolete and is now even more obsolete.
25685         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
25686         now might call strdup.
25687
25688 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
25689
25690         pthread: Add enough so that coreutils/src/sort.c compiles.
25691         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
25692         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
25693         gnulib. Include <sched.h> and <time.h>, as per POSIX.
25694         Include <sys/types.h>, in case it defines pthread_t.
25695         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
25696         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
25697         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
25698         (pthread_rwlockattr_t, pthread_spinlock_t):
25699         New typedefs, if HAVE_PTHREAD_T is not defined.
25700         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
25701         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
25702         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
25703         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
25704         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
25705         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
25706         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
25707         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
25708         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
25709         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
25710         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
25711         New macros.
25712         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
25713         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
25714         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
25715         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
25716         (pthread_spin_unlock): New dummy functions.
25717         (pthread_create): Return EAGAIN; don't set errno.
25718         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
25719         require AC_C_INLINE.
25720         * modules/pthread (Depends-on): Add sched, time.
25721         (pthread.h): Use AM_V_GEN.
25722
25723 2010-07-13  Bruno Haible  <bruno@clisp.org>
25724
25725         striconveh: Don't malloc memory if the result buffer is sufficient.
25726         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
25727         buffer if its size is sufficient.
25728         Reported by Ludovic Courtès <ludo@gnu.org>.
25729
25730 2010-07-13  Bruno Haible  <bruno@clisp.org>
25731
25732         strtod: Add safety check.
25733         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
25734
25735 2010-07-12  Bruno Haible  <bruno@clisp.org>
25736
25737         Unify tests that set gl_cv_func_ldexpl_no_libm.
25738         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
25739         gl_FUNC_LDEXPL.
25740         (gl_FUNC_LDEXPL): Invoke it.
25741         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
25742
25743 2010-07-12  Bruno Haible  <bruno@clisp.org>
25744
25745         Unify tests that set gl_cv_func_ldexp_no_libm.
25746         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
25747         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
25748         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
25749         (configure.ac): Simply invoke gl_FUNC_LDEXP.
25750         * modules/strtod (Files): Add m4/ldexp.m4.
25751
25752 2010-07-12  Bruno Haible  <bruno@clisp.org>
25753
25754         Unify tests that set gl_cv_func_frexpl_no_libm.
25755         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
25756         gl_FUNC_FREXPL_NO_LIBM.
25757         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
25758         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
25759
25760 2010-07-12  Bruno Haible  <bruno@clisp.org>
25761
25762         Unify tests that set gl_cv_func_frexp_no_libm.
25763         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
25764         gl_FUNC_FREXP_NO_LIBM.
25765         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
25766         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25767
25768 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
25769
25770         memcoll: clarify sizes versus lengths, document better, and tweak perf
25771         * lib/memcoll.c (strcoll_loop, memcoll0):
25772         Improve quality of descriptive comments.  Name variables
25773         consistently as to whether they are lengths (which do not include
25774         terminating null) versus sizes (which do).
25775         * lib/xmemcoll.c (xmemcoll0): Likewise.
25776         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
25777         returned when s1size == 0; this is easier to compile and saves
25778         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
25779
25780 2010-07-12  Bruno Haible  <bruno@clisp.org>
25781
25782         Tests for module '_Exit'.
25783         * modules/_Exit-tests: New file.
25784         * tests/test-_Exit.sh: New file.
25785         * tests/test-_Exit.c: New file.
25786
25787         New module '_Exit'.
25788         * lib/stdlib.in.h (__attribute__): New macro.
25789         (_Exit): New declaration.
25790         * lib/_Exit.c: New file.
25791         * m4/_Exit.m4: New file.
25792         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
25793         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
25794         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
25795         * modules/_Exit: New file.
25796         * tests/test-stdlib-c++.cc (_Exit): Check signature.
25797         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
25798
25799 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
25800
25801         strtod: make it more-accurate typically, and don't require libm
25802         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
25803         Include limits.h.  Don't include string.h.
25804         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
25805         (locale_isspace): New function, so that no casts are needed to
25806         check whether *s is a space.
25807         (ldexp): Provide an unused dummy if not available.
25808         (scale_radix_exp, parse_number, underlying_strtod): New functions.
25809         (strtod): Use them.  This implementation prefers to use the
25810         underlying strtod if available, falling back on our own code
25811         only to fix known bugs.  This is more likely to produce an
25812         accurate result.  Also, it avoids the use of libm functions.
25813         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
25814         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
25815         was absent, but it caused a test failure with coreutils.
25816         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
25817         with libm.
25818         * modules/strtod (Makefile.am, Link): libm is no longer needed.
25819         * modules/strtod-tests (Makefile.am): Likewise.
25820
25821 2010-07-11  Pádraig Brady  <P@draigBrady.com>
25822             Bruno Haible  <bruno@clisp.org>
25823
25824         unistr/u8-strchr: Optimize ASCII argument case.
25825         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
25826
25827 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
25828
25829         (x)memcoll: minor tweaks
25830         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
25831         is after the type that it qualifies.
25832         (memcoll0): Likewise.
25833         * lib/memcoll.h (memcoll0): Likewise.
25834         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
25835         * lib/xmemcoll.h (xmemcoll0): Likewise.
25836         * lib/memcoll.c (memcoll0): Correct the comment.  This function
25837         differs from memcoll in that the NUL byte is part of the argument.
25838         Omit the abort-checks, as performance is a real issue here.  Plus,
25839         the checks were wrong anyway (an off-by-one error).  Omit local
25840         variable 'diff', as it's a bit clearer that way.
25841         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
25842         no longer needed.
25843
25844 2010-07-08  Chen Guo <chenguo4@yahoo.com>
25845
25846         (x)memcoll: speedup when input is known to be NUL delimited
25847         * lib/memcoll.c: Include stdlib.
25848         (memcoll0): New function.
25849         (strcoll_loop): New function, refactored for use in both memcoll
25850         and memcoll0.
25851         * lib/memcoll.h (memcoll0): Add prototype.
25852         * lib/xmemcoll.c (xmemcoll0): New function.
25853         (collate_error): New function, refactored for use in both xmemcoll
25854         and xmemcoll0.
25855         * lib/xmemcoll.h (xmemcoll0): Add prototype.
25856         * m4/memcoll.m4: add inline invocation.
25857
25858 2010-07-06  Pádraig Brady  <P@draigBrady.com>
25859
25860         * build-aux/bootstrap: Remove any local translations
25861         from the translation project synchronization directory,
25862         so that local only translations are not distributed.
25863
25864 2010-07-04  Bruno Haible  <bruno@clisp.org>
25865
25866         fsusage: Clarify which code applies to which platforms.
25867         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
25868         platform.
25869         * lib/fsusage.c (get_fs_usage): Likewise.
25870
25871 2010-07-04  Bruno Haible  <bruno@clisp.org>
25872
25873         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
25874         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
25875         Reported by Martin Lambers <marlam@marlam.de>.
25876
25877 2010-07-04  Jim Meyering  <meyering@redhat.com>
25878
25879         hash: once again explicitly disallow insertion of NULL
25880         * lib/hash.c (hash_insert0): Reinstate just-removed test:
25881         inserting a NULL pointer cannot work with these functions.
25882         Add a comment with details.
25883         This reverts part of the 2010-07-01 commit, 5bef1a35
25884         "hash: extend module to deal with non-pointer keys".
25885
25886 2010-07-01  Bruno Haible  <bruno@clisp.org>
25887
25888         stdbool: Update doc.
25889         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
25890         Info from Christian Weisgerber <naddy@mips.inka.de>.
25891
25892 2010-07-01  Jim Meyering  <meyering@redhat.com>
25893
25894         hash: extend module to deal with non-pointer keys
25895         * lib/hash.c (hash_insert0): New interface, much like hash_insert
25896         but that allows insertion of non-pointer entries.
25897         Do not disallow an ENTRY value of NULL.
25898         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
25899         * lib/hash.h (hash_insert0): Declare.
25900
25901 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25902
25903         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
25904         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
25905         not present (i.e. with autoconf 2.59 and when using gettextize, not
25906         gnulib), require AC_GNU_SOURCE instead.
25907
25908 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
25909
25910         idpriv-drop: Fix tests.
25911         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
25912         not to the test-idpriv-droptemp program.
25913
25914 2010-06-29  Bruno Haible  <bruno@clisp.org>
25915
25916         string: Fix syntax error with g++ 2.96.
25917         * lib/string.in.h (__pure__): Remove definition.
25918         (_GL_ATTRIBUTE_PURE): New macro.
25919         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
25920         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
25921         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25922
25923 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
25924
25925         unitypes: Fix bug introduced on 2010-05-18.
25926         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
25927
25928 2010-06-22  Eric Blake  <eblake@redhat.com>
25929
25930         memmem: slight optimization
25931         * lib/str-two-way.h (critical_factorization): Update comments.
25932         Reduce work during factorization phase.
25933         Reported by Carlos Bueno <carlos@bueno.org>.
25934
25935 2010-06-21  Bruno Haible  <bruno@clisp.org>
25936
25937         Fix HAVE_CALLOC_POSIX misnomer.
25938         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
25939         !HAVE_CALLOC_POSIX.
25940         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
25941         HAVE_CALLOC_POSIX.
25942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
25943         instead of HAVE_CALLOC_POSIX.
25944         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
25945         HAVE_CALLOC_POSIX.
25946
25947         Use modern idiom for calloc() replacement.
25948         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
25949         AC_FUNC_CALLOC.
25950         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
25951         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
25952         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
25953         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
25954         (gl_REPLACE_CALLOC): New macro.
25955
25956 2010-06-21  Bruno Haible  <bruno@clisp.org>
25957
25958         Fix HAVE_REALLOC_POSIX misnomer.
25959         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
25960         !HAVE_REALLOC_POSIX.
25961         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
25962         HAVE_REALLOC_POSIX.
25963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
25964         instead of HAVE_REALLOC_POSIX.
25965         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
25966         HAVE_REALLOC_POSIX.
25967
25968         Use modern idiom for realloc() replacement.
25969         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
25970         AC_FUNC_REALLOC.
25971         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
25972         Autoconf's AC_FUNC_REALLOC.
25973         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
25974         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
25975         (gl_REPLACE_REALLOC): New macro.
25976         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
25977
25978 2010-06-21  Bruno Haible  <bruno@clisp.org>
25979
25980         Fix HAVE_MALLOC_POSIX misnomer.
25981         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
25982         !HAVE_MALLOC_POSIX.
25983         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
25984         HAVE_MALLOC_POSIX.
25985         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
25986         instead of HAVE_MALLOC_POSIX.
25987         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
25988         HAVE_MALLOC_POSIX.
25989
25990         Use modern idiom for malloc() replacement.
25991         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
25992         AC_FUNC_MALLOC.
25993         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
25994         Autoconf's AC_FUNC_MALLOC.
25995         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
25996         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
25997         (gl_REPLACE_MALLOC): New macro.
25998         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
25999
26000 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
26001
26002         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
26003         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
26004         This macro takes 3 arguments, not 4.
26005
26006 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
26007
26008         ipv6: fix detection under mingw
26009         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
26010         in6_addr.
26011
26012 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
26013
26014         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
26015         that strtod() works when cross-compiling to a glibc version known
26016         to work.
26017
26018 2010-06-15  Bruno Haible  <bruno@clisp.org>
26019
26020         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
26021
26022 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
26023
26024         select: Correct timeout.
26025         * lib/select.c (rpl_select): Compute wait_timeout correctly.
26026
26027 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26028
26029         git-version-gen: init shell var to avoid env var influence
26030         * build-aux/git-version-gen (v): Init shell var to empty.
26031
26032 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
26033
26034         priv-set: Don't assume that priv.h exists merely because getppriv does.
26035         See Jan Andersen's bug report about AIX 5L in
26036         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
26037         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
26038         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
26039         * lib/priv-set.h: Likewise.
26040         * tests/test-priv-set.c: Likewise.
26041
26042 2010-06-13  Bruno Haible  <bruno@clisp.org>
26043
26044         relocatable: Make it easier to test whether to install wrappers.
26045         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
26046         RELOCATABLE_VIA_WRAPPER.
26047
26048 2010-06-13  Bruno Haible  <bruno@clisp.org>
26049
26050         gnulib-tool: Display specified modules and dependencies differently.
26051         * gnulib-tool (func_show_module_list): New function.
26052         (func_import, func_create_testdir): Invoke it.
26053         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26054
26055 2010-06-13  Bruno Haible  <bruno@clisp.org>
26056
26057         gnulib-tool: Align code of func_import and func_create_testdir.
26058         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
26059         specified_modules.
26060
26061 2010-06-12  Jim Meyering  <meyering@redhat.com>
26062
26063         test-inttostr: avoid spurious failure on Solaris 9
26064         * tests/test-inttostr.c (main): Skip the test when snprintf fails
26065         to accept "%ju".  Reported by Bruno Haible.
26066
26067 2010-06-11  Jim Meyering  <meyering@redhat.com>
26068
26069         test-sys_socket: mark variables as used more readably
26070         * tests/test-sys_socket.c (main): Mark otherwise unused variables
26071         as "used" explicitly via (void) statement casts.  This is more
26072         readable than using them in an artificial return expression.
26073         Suggestion from Bruno Haible.
26074
26075 2010-06-11  Bruno Haible  <bruno@clisp.org>
26076
26077         Avoid some more warnings from "gcc -Wwrite-strings".
26078         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
26079         to 'const char *'.
26080         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
26081         * tests/test-c-strcasestr.c (main): Likewise.
26082         * tests/test-mbscasestr1.c (main): Likewise.
26083         * tests/test-mbscasestr2.c (main): Likewise.
26084         * tests/test-memmem.c (main): Likewise.
26085         * tests/test-strstr.c (main): Likewise.
26086         * tests/test-strcasestr.c (main): Likewise.
26087
26088 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26089
26090         init.sh: change framework_failure_ to fail with status 99, not 1
26091         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
26092         automake's parallel-tests rule that this is an unexpected failure,
26093         even if the test is listed in XFAIL_TESTS.
26094
26095 2010-06-11  Jim Meyering  <meyering@redhat.com>
26096
26097         test-inttostr: avoid warnings about 4-6KB literal strings
26098         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
26099         Include "macros.h", for its definition of ASSERT.
26100         (CK): s/assert/ASSERT/
26101         * modules/inttostr-tests (Files): Add macros.h.
26102
26103         init.sh: don't use $ME_ or skip_ before they are defined
26104         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
26105         their first uses.  Also hoist their companions: warn_, fail_,
26106         framework_failure_, $stderr_fileno.  Prompted by a patch from
26107         Stefano Lattarini.
26108
26109         test-sys_socket: avoid set-but-not-used warnings from gcc
26110         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
26111         avoid warning about set-but-not-used variables.
26112
26113         test-xvasprintf: avoid 'const' discard warnings
26114         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
26115         "const" when assigning from literal strings.
26116         (test_xasprintf): Add "void" in function argument list to placate
26117         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
26118
26119         tests: avoid compilation warnings in argmatch and exclude tests...
26120         in packages that define ARGMATCH_DIE_DECL, like coreutils.
26121         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
26122         Since it always exits, declare with the "noreturn" attribute.
26123         * tests/test-argmatch.c: Likewise.
26124
26125         tests: avoid 'const' discard warnings in mbsstr tests
26126         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
26127         * tests/test-mbsstr2.c (main): Likewise.
26128
26129         test-verify: avoid warning from gcc's -Wmissing-declarations
26130         * tests/test-verify.c (function): Declare to be static.
26131
26132         test-inttostr.c: include <string.h> for use of strcmp
26133         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
26134
26135         test-linkat: avoid failed assertion on "other" architectures
26136         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
26137         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
26138         sparc: https://bugs.launchpad.net/bugs/591968
26139
26140 2010-06-11  Jim Meyering  <meyering@redhat.com>
26141
26142         printf.m4: avoid autoconf's "Expanded Before Required" warning
26143         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
26144         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
26145         autoconf warning.
26146
26147 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
26148
26149         Replacement header templates are now named with ".in", not "_".
26150         * doc/gnulib-intro.texi: Correct.
26151
26152 2010-06-10  Jim Meyering  <meyering@redhat.com>
26153
26154         inttostr-tests: depend on snprintf, not snprintf-posix
26155         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
26156         snprintf-posix, to avoid this aclocal failure:
26157           missing file gnulib-tests/vasnprintf.c
26158           configure.ac:45: error: expected source file, required through \
26159           AC_LIBSOURCES, not found
26160
26161 2010-06-10  Jim Meyering  <meyering@redhat.com>
26162
26163         inttostr: add a new function, inttostr, and tests
26164         The namesake function was not available.  The existence of the
26165         template file, inttostr.c makes its addition nontrivial.
26166         * lib/anytostr.c: Rename from inttostr.c.
26167         (anytostr): Rename from inttostr.
26168         * lib/inttostr.c: New file.
26169         * modules/inttostr (Files): Add anytostr.c.
26170         (Makefile.am): Set lib_SOURCES instead of ...
26171         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
26172         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
26173         * lib/offtostr.c: Likewise.
26174         * lib/uinttostr.c: Likewise.
26175         * lib/umaxtostr.c: Likewise.
26176         * modules/inttostr-tests: New file.
26177         * tests/test-inttostr.c: New file.  Test these functions.
26178
26179 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
26180             Bruno Haible  <bruno@clisp.org>
26181
26182         Add "Extending Gnulib" chapter to manual.
26183         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
26184         chapter.
26185         (Extending Gnulib): New chapter.
26186         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
26187         chapter.
26188
26189 2010-06-09  Bruno Haible  <bruno@clisp.org>
26190
26191         Avoid relocwrapper link errors due to gnulib replacement functions.
26192         * lib/areadlink.c: Use the system's malloc, realloc functions.
26193         (areadlink): Set errno to ENOMEM explicitly.
26194         * modules/areadlink (Depends-on): Remove malloc-posix.
26195         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26196
26197 2010-06-09  Bruno Haible  <bruno@clisp.org>
26198
26199         Avoid relocwrapper link errors due to gnulib replacement functions.
26200         * lib/canonicalize-lgpl.c: Use the system's malloc function.
26201         * lib/malloca.c: Likewise.
26202         * lib/relocatable.c: Likewise.
26203         * lib/progreloc.c: Use the system's malloc, sprintf functions.
26204         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
26205         * lib/setenv.c: Use the system's malloc, realloc functions.
26206         * lib/strerror.c: Use the system's sprintf function.
26207         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26208
26209 2010-06-04  Bruno Haible  <bruno@clisp.org>
26210
26211         Prefer documented low-level autoconf macro names.
26212         * m4/lib-link.m4: Use m4_translit instead of translit.
26213         * m4/environ.m4: Likewise.
26214         * m4/mathfunc.m4: Likewise.
26215         * m4/onceonly.m4: Likewise.
26216         * m4/stdint.m4: Likewise.
26217         Suggested by Eric Blake.
26218
26219 2010-06-04  Martin Lambers  <marlam@marlam.de>
26220             Bruno Haible  <bruno@clisp.org>
26221
26222         havelib: Allow library names with '+' characters.
26223         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26224         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
26225
26226 2010-06-09  Bruno Haible  <bruno@clisp.org>
26227
26228         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
26229         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
26230         realloc failed.
26231
26232 2010-06-08  Peter Simons  <simons@cryp.to>
26233
26234         maint.mk: make the news-check rule more configurable
26235         * top/maint.mk (news-check-lines-spec): New variable.
26236         (news-check): Use "sed -n 1,10p" in place of "head".
26237
26238 2010-06-07  Jim Meyering  <meyering@redhat.com>
26239
26240         do-release-commit-and-tag: fix typo in --help
26241         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
26242
26243         regex: avoid new dead-code warning with gcc-4.6.0
26244         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
26245         if-block containing a while-loop.  It's been unused for at least
26246         5 years.
26247
26248 2010-06-05  Bruno Haible  <bruno@clisp.org>
26249
26250         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
26251         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
26252
26253 2010-06-04  Bruno Haible  <bruno@clisp.org>
26254
26255         Update to GNU gettext 0.18.1.
26256         * modules/gettext (configure.ac): Require gettext infrastructure from
26257         version 0.18.1.
26258
26259 2010-06-03  Bruno Haible  <bruno@clisp.org>
26260
26261         Don't use AC_LIBOBJ with file names in subdirectories.
26262         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
26263         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
26264         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
26265         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
26266         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
26267         gl_LIBUNISTRING_LIBSOURCE.
26268         (Makefile.am): Augment lib_SOURCES here, conditionally.
26269         * NEWS: Drop requirement for Automake option 'subdir-objects'.
26270
26271 2010-06-03  Bruno Haible  <bruno@clisp.org>
26272
26273         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
26274         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
26275         expansion does not end with a newline.
26276         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
26277         unnecessary newline.
26278
26279 2010-06-03  Bruno Haible  <bruno@clisp.org>
26280
26281         Reduce dependencies.
26282         * tests/test-quotearg.h: New file, extracted from
26283         tests/test-quotearg.c.
26284         * tests/test-quotearg-simple.c: New file, extracted from
26285         tests/test-quotearg.c.
26286         * tests/test-quotearg.c: Don't include <ctype.h>.
26287         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
26288         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
26289         use_quote_double_quotes, use_quotearg_colon): Moved to
26290         tests/test-quotearg.h.
26291         (results_g, flag_results, custom_quotes, custom_results): Moved
26292         to tests/test-quotearg-simple.c.
26293         (main): Moved the part that does not depend on gettext to
26294         tests/test-quotearg-simple.c. Return 77 if the test cannot be
26295         performed.
26296         * modules/quotearg-simple: New file.
26297         * modules/quotearg-simple-tests: New file.
26298         * modules/quotearg (Depends-on): Add quotearg-simple.
26299         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
26300         (Files): Add tests/test-quotearg.h.
26301         Reported by Paolo Bonzini.
26302
26303 2010-06-03  Bruno Haible  <bruno@clisp.org>
26304
26305         Reduce dependencies.
26306         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
26307
26308 2010-06-03  Bruno Haible  <bruno@clisp.org>
26309
26310         time: Undefine more broken macros.
26311         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
26312         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
26313         Reported by Eric Blake.
26314
26315 2010-06-03  Bruno Haible  <bruno@clisp.org>
26316
26317         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
26318         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
26319         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
26320         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
26321         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
26322         Reported by Ludovic Courtès <ludo@gnu.org>.
26323
26324 2010-06-02  Eric Blake  <eblake@redhat.com>
26325
26326         time: work with mingw + pthreads-win32 library
26327         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
26328         if timespec is defined only in pthread.h.
26329         * modules/time (Makefile.am): Substitute it.
26330         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
26331         <pthread.h>, when needed.
26332         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
26333         from the library.
26334
26335 2010-05-31  Bruno Haible  <bruno@clisp.org>
26336
26337         Avoid expanding two macros in the wrong order.
26338         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
26339         gl_LIBUNISTRING if it is defined.
26340         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
26341         autoconf >= 2.64.
26342         Reported by Ludovic Courtès <ludo@gnu.org>.
26343
26344 2010-05-27  Jim Meyering  <meyering@redhat.com>
26345
26346         maint.mk: also prohibit "#undef" of always-defined symbols
26347         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
26348         Allow more than one space before the symbol name.
26349         (sc_prohibit_always-defined_macros): Use grep's -E, now that
26350         the regexp uses alternation.
26351
26352 2010-05-26  Eric Blake  <eblake@redhat.com>
26353
26354         maint.mk: avoid echo -e
26355         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
26356         Convert all uses of echo -* to printf.
26357         Reported by Matthias Bolte.
26358
26359 2010-05-25  Bruno Haible  <bruno@clisp.org>
26360
26361         Update to GNU gettext 0.18, part 2.
26362         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
26363         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
26364
26365 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26366
26367         Add missing include in test-pwrite.c.
26368         * tests/test-pwrite.c: Include string.h, for strcmp.
26369
26370 2010-05-24  Bruno Haible  <bruno@clisp.org>
26371
26372         * NEWS: Mention requirement for Automake option 'subdir-objects'.
26373
26374 2010-05-24  Bruno Haible  <bruno@clisp.org>
26375
26376         Don't use conversion with transliteration in u{8,16,32}_strcoll.
26377         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
26378         iconveh_error argument.
26379         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
26380         U_STRCONV_TO_LOCALE.
26381         * lib/unistr/u16-strcoll.c: Likewise.
26382         * lib/unistr/u32-strcoll.c: Likewise.
26383         * modules/unistr/u8-strcoll (Depends-on): Add
26384         uniconv/u8-strconv-to-enc, localcharset. Remove
26385         uniconv/u8-strconv-to-locale.
26386         (configure.ac): Bump version number.
26387         * modules/unistr/u16-strcoll (Depends-on): Add
26388         uniconv/u16-strconv-to-enc, localcharset. Remove
26389         uniconv/u16-strconv-to-locale.
26390         (configure.ac): Bump version number.
26391         * modules/unistr/u32-strcoll (Depends-on): Add
26392         uniconv/u32-strconv-to-enc, localcharset. Remove
26393         uniconv/u32-strconv-to-locale.
26394         (configure.ac): Bump version number.
26395
26396 2010-05-24  Bruno Haible  <bruno@clisp.org>
26397
26398         Avoid a test failure on NetBSD 5.0.
26399         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
26400         an iconv() bug.
26401
26402 2010-05-24  Bruno Haible  <bruno@clisp.org>
26403
26404         Adjust #include directive style.
26405         * modules/regex (Includes): Recommend to write <regex.h>.
26406
26407 2010-05-24  Bruno Haible  <bruno@clisp.org>
26408
26409         regex: Don't require alloca.
26410         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
26411         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
26412         only inside if (0).
26413
26414 2010-05-23  Jim Meyering  <meyering@redhat.com>
26415
26416         test-renameat.c: include <sys/stat.h>
26417         * tests/test-renameat.c: Include <sys/stat.h>; required for
26418         definition of S_IS* macros.
26419
26420 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
26421
26422         Update maintainer documentation for 'relocatable-prog' module.
26423         * doc/relocatable-maint.texi: Update.
26424         Comments by Bruno Haible.
26425
26426 2010-05-23  Bruno Haible  <bruno@clisp.org>
26427
26428         git-merge-changelog: Enable --split-merged-entry by default.
26429         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
26430         (usage): Don't mention this option any more.
26431         Reported by Ralf Wildenhues.
26432
26433 2010-05-23  Jim Meyering  <meyering@redhat.com>
26434
26435         test-pwrite: do not leave behind a test file named "out"
26436         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
26437         The trivial-looking use of init.sh is really necessary.
26438         It ensures that the temporary file, "out", is created in
26439         a temporary directory, and removed upon termination.
26440         * tests/test-pwrite.sh: Re-add file.
26441         * modules/pwrite-tests: Reference it.
26442
26443 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26444
26445         Fix output redirection buglet in init.sh.
26446         * tests/init.sh: Fix redirection of stderr.
26447
26448 2010-05-20  Simon Josefsson  <simon@josefsson.org>
26449
26450         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
26451
26452 2010-05-17  Simon Josefsson  <simon@josefsson.org>
26453
26454         * modules/valgrind-tests: New file.
26455         * m4/valgrind-tests.m4: New file.
26456         * doc/valgrind-tests.texi: New file.
26457         * doc/gnulib.texi (Running self-tests under valgrind): New
26458         section.
26459
26460 2010-05-19  Bruno Haible  <bruno@clisp.org>
26461
26462         Clean up dead code in recent commit.
26463         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
26464         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
26465         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
26466         Suggested by Paolo Bonzini.
26467
26468 2010-05-19  Bruno Haible  <bruno@clisp.org>
26469
26470         Avoid valgrind error reports from libunistring.
26471         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
26472         * modules/libunistring (Files): Add it.
26473         * modules/libunistring-optional (Files): Likewise.
26474
26475 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
26476             Bruno Haible  <bruno@clisp.org>
26477
26478         New module 'libunistring-optional'.
26479         * modules/libunistring-optional: New file.
26480         * m4/libunistring-base.m4: New file.
26481         * m4/libunistring-optional.m4: New file.
26482         * lib/unicase.in.h: Renamed from lib/unicase.h.
26483         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
26484         * lib/unictype.in.h: Renamed from lib/unictype.h.
26485         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
26486         * lib/uniname.in.h: Renamed from lib/uniname.h.
26487         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
26488         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
26489         * lib/unistr.in.h: Renamed from lib/unistr.h.
26490         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
26491         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
26492         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
26493         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
26494         gl_LIBUNISTRING. If the library was found, determine the installed
26495         version and set LIBUNISTRING_VERSION.
26496         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
26497         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
26498         handle a configuration option --with-included-libunistring.
26499         * modules/libunistring (Files): Add m4/absolute-header.m4.
26500         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
26501         Add m4/libunistring-base.m4.
26502         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26503         (Makefile.am): Build unicase.h from unicase.in.h.
26504         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
26505         Add m4/libunistring-base.m4.
26506         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26507         (Makefile.am): Build uniconv.h from uniconv.in.h.
26508         * modules/unictype/base (Files): Use unictype.in.h instead of
26509         unictype.h. Add m4/libunistring-base.m4.
26510         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26511         (Makefile.am): Build unictype.h from unictype.in.h.
26512         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
26513         Add m4/libunistring-base.m4.
26514         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26515         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
26516         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
26517         Add m4/libunistring-base.m4.
26518         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26519         (Makefile.am): Build uniname.h from uniname.in.h.
26520         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
26521         Add m4/libunistring-base.m4.
26522         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26523         (Makefile.am): Build uninorm.h from uninorm.in.h.
26524         * modules/unistdio/base (Files): Use unistdio.in.h instead of
26525         unistdio.h. Add m4/libunistring-base.m4.
26526         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26527         (Makefile.am): Build unistdio.h from unistdio.in.h.
26528         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
26529         Add m4/libunistring-base.m4.
26530         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26531         (Makefile.am): Build unistr.h from unistr.in.h.
26532         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
26533         Add m4/libunistring-base.m4.
26534         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26535         (Makefile.am): Build unitypes.h from unitypes.in.h.
26536         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
26537         Add m4/libunistring-base.m4.
26538         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26539         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
26540         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
26541         uniwidth.h. Add m4/libunistring-base.m4.
26542         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26543         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
26544         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
26545         instead of augmenting lib_SOURCES.
26546         * modules/unicase/empty-suffix-context: Likewise.
26547         * modules/unicase/locale-language: Likewise.
26548         * modules/unicase/tolower: Likewise.
26549         * modules/unicase/totitle: Likewise.
26550         * modules/unicase/toupper: Likewise.
26551         * modules/unicase/u8-casecmp: Likewise.
26552         * modules/unicase/u8-casecoll: Likewise.
26553         * modules/unicase/u8-casefold: Likewise.
26554         * modules/unicase/u8-casexfrm: Likewise.
26555         * modules/unicase/u8-ct-casefold: Likewise.
26556         * modules/unicase/u8-ct-tolower: Likewise.
26557         * modules/unicase/u8-ct-totitle: Likewise.
26558         * modules/unicase/u8-ct-toupper: Likewise.
26559         * modules/unicase/u8-is-cased: Likewise.
26560         * modules/unicase/u8-is-casefolded: Likewise.
26561         * modules/unicase/u8-is-lowercase: Likewise.
26562         * modules/unicase/u8-is-titlecase: Likewise.
26563         * modules/unicase/u8-is-uppercase: Likewise.
26564         * modules/unicase/u8-prefix-context: Likewise.
26565         * modules/unicase/u8-suffix-context: Likewise.
26566         * modules/unicase/u8-tolower: Likewise.
26567         * modules/unicase/u8-totitle: Likewise.
26568         * modules/unicase/u8-toupper: Likewise.
26569         * modules/unicase/u16-casecmp: Likewise.
26570         * modules/unicase/u16-casecoll: Likewise.
26571         * modules/unicase/u16-casefold: Likewise.
26572         * modules/unicase/u16-casexfrm: Likewise.
26573         * modules/unicase/u16-ct-casefold: Likewise.
26574         * modules/unicase/u16-ct-tolower: Likewise.
26575         * modules/unicase/u16-ct-totitle: Likewise.
26576         * modules/unicase/u16-ct-toupper: Likewise.
26577         * modules/unicase/u16-is-cased: Likewise.
26578         * modules/unicase/u16-is-casefolded: Likewise.
26579         * modules/unicase/u16-is-lowercase: Likewise.
26580         * modules/unicase/u16-is-titlecase: Likewise.
26581         * modules/unicase/u16-is-uppercase: Likewise.
26582         * modules/unicase/u16-prefix-context: Likewise.
26583         * modules/unicase/u16-suffix-context: Likewise.
26584         * modules/unicase/u16-tolower: Likewise.
26585         * modules/unicase/u16-totitle: Likewise.
26586         * modules/unicase/u16-toupper: Likewise.
26587         * modules/unicase/u32-casecmp: Likewise.
26588         * modules/unicase/u32-casecoll: Likewise.
26589         * modules/unicase/u32-casefold: Likewise.
26590         * modules/unicase/u32-casexfrm: Likewise.
26591         * modules/unicase/u32-ct-casefold: Likewise.
26592         * modules/unicase/u32-ct-tolower: Likewise.
26593         * modules/unicase/u32-ct-totitle: Likewise.
26594         * modules/unicase/u32-ct-toupper: Likewise.
26595         * modules/unicase/u32-is-cased: Likewise.
26596         * modules/unicase/u32-is-casefolded: Likewise.
26597         * modules/unicase/u32-is-lowercase: Likewise.
26598         * modules/unicase/u32-is-titlecase: Likewise.
26599         * modules/unicase/u32-is-uppercase: Likewise.
26600         * modules/unicase/u32-prefix-context: Likewise.
26601         * modules/unicase/u32-suffix-context: Likewise.
26602         * modules/unicase/u32-tolower: Likewise.
26603         * modules/unicase/u32-totitle: Likewise.
26604         * modules/unicase/u32-toupper: Likewise.
26605         * modules/unicase/ulc-casecmp: Likewise.
26606         * modules/unicase/ulc-casecoll: Likewise.
26607         * modules/unicase/ulc-casexfrm: Likewise.
26608         * modules/uniconv/u8-conv-from-enc: Likewise.
26609         * modules/uniconv/u8-conv-to-enc: Likewise.
26610         * modules/uniconv/u8-strconv-from-enc: Likewise.
26611         * modules/uniconv/u8-strconv-from-locale: Likewise.
26612         * modules/uniconv/u8-strconv-to-enc: Likewise.
26613         * modules/uniconv/u8-strconv-to-locale: Likewise.
26614         * modules/uniconv/u16-conv-from-enc: Likewise.
26615         * modules/uniconv/u16-conv-to-enc: Likewise.
26616         * modules/uniconv/u16-strconv-from-enc: Likewise.
26617         * modules/uniconv/u16-strconv-from-locale: Likewise.
26618         * modules/uniconv/u16-strconv-to-enc: Likewise.
26619         * modules/uniconv/u16-strconv-to-locale: Likewise.
26620         * modules/uniconv/u32-conv-from-enc: Likewise.
26621         * modules/uniconv/u32-conv-to-enc: Likewise.
26622         * modules/uniconv/u32-strconv-from-enc: Likewise.
26623         * modules/uniconv/u32-strconv-from-locale: Likewise.
26624         * modules/uniconv/u32-strconv-to-enc: Likewise.
26625         * modules/uniconv/u32-strconv-to-locale: Likewise.
26626         * modules/unictype/bidicategory-byname: Likewise.
26627         * modules/unictype/bidicategory-name: Likewise.
26628         * modules/unictype/bidicategory-of: Likewise.
26629         * modules/unictype/bidicategory-test: Likewise.
26630         * modules/unictype/block-list: Likewise.
26631         * modules/unictype/block-test: Likewise.
26632         * modules/unictype/category-C: Likewise.
26633         * modules/unictype/category-Cc: Likewise.
26634         * modules/unictype/category-Cf: Likewise.
26635         * modules/unictype/category-Cn: Likewise.
26636         * modules/unictype/category-Co: Likewise.
26637         * modules/unictype/category-Cs: Likewise.
26638         * modules/unictype/category-L: Likewise.
26639         * modules/unictype/category-Ll: Likewise.
26640         * modules/unictype/category-Lm: Likewise.
26641         * modules/unictype/category-Lo: Likewise.
26642         * modules/unictype/category-Lt: Likewise.
26643         * modules/unictype/category-Lu: Likewise.
26644         * modules/unictype/category-M: Likewise.
26645         * modules/unictype/category-Mc: Likewise.
26646         * modules/unictype/category-Me: Likewise.
26647         * modules/unictype/category-Mn: Likewise.
26648         * modules/unictype/category-N: Likewise.
26649         * modules/unictype/category-Nd: Likewise.
26650         * modules/unictype/category-Nl: Likewise.
26651         * modules/unictype/category-No: Likewise.
26652         * modules/unictype/category-P: Likewise.
26653         * modules/unictype/category-Pc: Likewise.
26654         * modules/unictype/category-Pd: Likewise.
26655         * modules/unictype/category-Pe: Likewise.
26656         * modules/unictype/category-Pf: Likewise.
26657         * modules/unictype/category-Pi: Likewise.
26658         * modules/unictype/category-Po: Likewise.
26659         * modules/unictype/category-Ps: Likewise.
26660         * modules/unictype/category-S: Likewise.
26661         * modules/unictype/category-Sc: Likewise.
26662         * modules/unictype/category-Sk: Likewise.
26663         * modules/unictype/category-Sm: Likewise.
26664         * modules/unictype/category-So: Likewise.
26665         * modules/unictype/category-Z: Likewise.
26666         * modules/unictype/category-Zl: Likewise.
26667         * modules/unictype/category-Zp: Likewise.
26668         * modules/unictype/category-Zs: Likewise.
26669         * modules/unictype/category-and: Likewise.
26670         * modules/unictype/category-and-not: Likewise.
26671         * modules/unictype/category-byname: Likewise.
26672         * modules/unictype/category-name: Likewise.
26673         * modules/unictype/category-none: Likewise.
26674         * modules/unictype/category-of: Likewise.
26675         * modules/unictype/category-or: Likewise.
26676         * modules/unictype/category-test: Likewise.
26677         * modules/unictype/combining-class: Likewise.
26678         * modules/unictype/ctype-alnum: Likewise.
26679         * modules/unictype/ctype-alpha: Likewise.
26680         * modules/unictype/ctype-blank: Likewise.
26681         * modules/unictype/ctype-cntrl: Likewise.
26682         * modules/unictype/ctype-digit: Likewise.
26683         * modules/unictype/ctype-graph: Likewise.
26684         * modules/unictype/ctype-lower: Likewise.
26685         * modules/unictype/ctype-print: Likewise.
26686         * modules/unictype/ctype-punct: Likewise.
26687         * modules/unictype/ctype-space: Likewise.
26688         * modules/unictype/ctype-upper: Likewise.
26689         * modules/unictype/ctype-xdigit: Likewise.
26690         * modules/unictype/decimal-digit: Likewise.
26691         * modules/unictype/digit: Likewise.
26692         * modules/unictype/mirror: Likewise.
26693         * modules/unictype/numeric: Likewise.
26694         * modules/unictype/property-alphabetic: Likewise.
26695         * modules/unictype/property-ascii-hex-digit: Likewise.
26696         * modules/unictype/property-bidi-arabic-digit: Likewise.
26697         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
26698         * modules/unictype/property-bidi-block-separator: Likewise.
26699         * modules/unictype/property-bidi-boundary-neutral: Likewise.
26700         * modules/unictype/property-bidi-common-separator: Likewise.
26701         * modules/unictype/property-bidi-control: Likewise.
26702         * modules/unictype/property-bidi-embedding-or-override: Likewise.
26703         * modules/unictype/property-bidi-eur-num-separator: Likewise.
26704         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
26705         * modules/unictype/property-bidi-european-digit: Likewise.
26706         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
26707         * modules/unictype/property-bidi-left-to-right: Likewise.
26708         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
26709         * modules/unictype/property-bidi-other-neutral: Likewise.
26710         * modules/unictype/property-bidi-pdf: Likewise.
26711         * modules/unictype/property-bidi-segment-separator: Likewise.
26712         * modules/unictype/property-bidi-whitespace: Likewise.
26713         * modules/unictype/property-byname: Likewise.
26714         * modules/unictype/property-combining: Likewise.
26715         * modules/unictype/property-composite: Likewise.
26716         * modules/unictype/property-currency-symbol: Likewise.
26717         * modules/unictype/property-dash: Likewise.
26718         * modules/unictype/property-decimal-digit: Likewise.
26719         * modules/unictype/property-default-ignorable-code-point: Likewise.
26720         * modules/unictype/property-deprecated: Likewise.
26721         * modules/unictype/property-diacritic: Likewise.
26722         * modules/unictype/property-extender: Likewise.
26723         * modules/unictype/property-format-control: Likewise.
26724         * modules/unictype/property-grapheme-base: Likewise.
26725         * modules/unictype/property-grapheme-extend: Likewise.
26726         * modules/unictype/property-grapheme-link: Likewise.
26727         * modules/unictype/property-hex-digit: Likewise.
26728         * modules/unictype/property-hyphen: Likewise.
26729         * modules/unictype/property-id-continue: Likewise.
26730         * modules/unictype/property-id-start: Likewise.
26731         * modules/unictype/property-ideographic: Likewise.
26732         * modules/unictype/property-ids-binary-operator: Likewise.
26733         * modules/unictype/property-ids-trinary-operator: Likewise.
26734         * modules/unictype/property-ignorable-control: Likewise.
26735         * modules/unictype/property-iso-control: Likewise.
26736         * modules/unictype/property-join-control: Likewise.
26737         * modules/unictype/property-left-of-pair: Likewise.
26738         * modules/unictype/property-line-separator: Likewise.
26739         * modules/unictype/property-logical-order-exception: Likewise.
26740         * modules/unictype/property-lowercase: Likewise.
26741         * modules/unictype/property-math: Likewise.
26742         * modules/unictype/property-non-break: Likewise.
26743         * modules/unictype/property-not-a-character: Likewise.
26744         * modules/unictype/property-numeric: Likewise.
26745         * modules/unictype/property-other-alphabetic: Likewise.
26746         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
26747         * modules/unictype/property-other-grapheme-extend: Likewise.
26748         * modules/unictype/property-other-id-continue: Likewise.
26749         * modules/unictype/property-other-id-start: Likewise.
26750         * modules/unictype/property-other-lowercase: Likewise.
26751         * modules/unictype/property-other-math: Likewise.
26752         * modules/unictype/property-other-uppercase: Likewise.
26753         * modules/unictype/property-paired-punctuation: Likewise.
26754         * modules/unictype/property-paragraph-separator: Likewise.
26755         * modules/unictype/property-pattern-syntax: Likewise.
26756         * modules/unictype/property-pattern-white-space: Likewise.
26757         * modules/unictype/property-private-use: Likewise.
26758         * modules/unictype/property-punctuation: Likewise.
26759         * modules/unictype/property-quotation-mark: Likewise.
26760         * modules/unictype/property-radical: Likewise.
26761         * modules/unictype/property-sentence-terminal: Likewise.
26762         * modules/unictype/property-soft-dotted: Likewise.
26763         * modules/unictype/property-space: Likewise.
26764         * modules/unictype/property-terminal-punctuation: Likewise.
26765         * modules/unictype/property-test: Likewise.
26766         * modules/unictype/property-titlecase: Likewise.
26767         * modules/unictype/property-unassigned-code-value: Likewise.
26768         * modules/unictype/property-unified-ideograph: Likewise.
26769         * modules/unictype/property-uppercase: Likewise.
26770         * modules/unictype/property-variation-selector: Likewise.
26771         * modules/unictype/property-white-space: Likewise.
26772         * modules/unictype/property-xid-continue: Likewise.
26773         * modules/unictype/property-xid-start: Likewise.
26774         * modules/unictype/property-zero-width: Likewise.
26775         * modules/unictype/scripts: Likewise.
26776         * modules/unictype/syntax-c-ident: Likewise.
26777         * modules/unictype/syntax-c-whitespace: Likewise.
26778         * modules/unictype/syntax-java-ident: Likewise.
26779         * modules/unictype/syntax-java-whitespace: Likewise.
26780         * modules/unilbrk/u8-possible-linebreaks: Likewise.
26781         * modules/unilbrk/u8-width-linebreaks: Likewise.
26782         * modules/unilbrk/u16-possible-linebreaks: Likewise.
26783         * modules/unilbrk/u16-width-linebreaks: Likewise.
26784         * modules/unilbrk/u32-possible-linebreaks: Likewise.
26785         * modules/unilbrk/u32-width-linebreaks: Likewise.
26786         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
26787         * modules/unilbrk/ulc-width-linebreaks: Likewise.
26788         * modules/uniname/uniname: Likewise.
26789         * modules/uninorm/canonical-decomposition: Likewise.
26790         * modules/uninorm/composition: Likewise.
26791         * modules/uninorm/decomposing-form: Likewise.
26792         * modules/uninorm/decomposition: Likewise.
26793         * modules/uninorm/filter: Likewise.
26794         * modules/uninorm/nfc: Likewise.
26795         * modules/uninorm/nfd: Likewise.
26796         * modules/uninorm/nfkc: Likewise.
26797         * modules/uninorm/nfkd: Likewise.
26798         * modules/uninorm/u8-normalize: Likewise.
26799         * modules/uninorm/u8-normcmp: Likewise.
26800         * modules/uninorm/u8-normcoll: Likewise.
26801         * modules/uninorm/u8-normxfrm: Likewise.
26802         * modules/uninorm/u16-normalize: Likewise.
26803         * modules/uninorm/u16-normcmp: Likewise.
26804         * modules/uninorm/u16-normcoll: Likewise.
26805         * modules/uninorm/u16-normxfrm: Likewise.
26806         * modules/uninorm/u32-normalize: Likewise.
26807         * modules/uninorm/u32-normcmp: Likewise.
26808         * modules/uninorm/u32-normcoll: Likewise.
26809         * modules/uninorm/u32-normxfrm: Likewise.
26810         * modules/unistdio/u8-asnprintf: Likewise.
26811         * modules/unistdio/u8-asprintf: Likewise.
26812         * modules/unistdio/u8-snprintf: Likewise.
26813         * modules/unistdio/u8-sprintf: Likewise.
26814         * modules/unistdio/u8-u8-asnprintf: Likewise.
26815         * modules/unistdio/u8-u8-asprintf: Likewise.
26816         * modules/unistdio/u8-u8-snprintf: Likewise.
26817         * modules/unistdio/u8-u8-sprintf: Likewise.
26818         * modules/unistdio/u8-u8-vasnprintf: Likewise.
26819         * modules/unistdio/u8-u8-vasprintf: Likewise.
26820         * modules/unistdio/u8-u8-vsnprintf: Likewise.
26821         * modules/unistdio/u8-u8-vsprintf: Likewise.
26822         * modules/unistdio/u8-vasnprintf: Likewise.
26823         * modules/unistdio/u8-vasprintf: Likewise.
26824         * modules/unistdio/u8-vsnprintf: Likewise.
26825         * modules/unistdio/u8-vsprintf: Likewise.
26826         * modules/unistdio/u16-asnprintf: Likewise.
26827         * modules/unistdio/u16-asprintf: Likewise.
26828         * modules/unistdio/u16-snprintf: Likewise.
26829         * modules/unistdio/u16-sprintf: Likewise.
26830         * modules/unistdio/u16-u16-asnprintf: Likewise.
26831         * modules/unistdio/u16-u16-asprintf: Likewise.
26832         * modules/unistdio/u16-u16-snprintf: Likewise.
26833         * modules/unistdio/u16-u16-sprintf: Likewise.
26834         * modules/unistdio/u16-u16-vasnprintf: Likewise.
26835         * modules/unistdio/u16-u16-vasprintf: Likewise.
26836         * modules/unistdio/u16-u16-vsnprintf: Likewise.
26837         * modules/unistdio/u16-u16-vsprintf: Likewise.
26838         * modules/unistdio/u16-vasnprintf: Likewise.
26839         * modules/unistdio/u16-vasprintf: Likewise.
26840         * modules/unistdio/u16-vsnprintf: Likewise.
26841         * modules/unistdio/u16-vsprintf: Likewise.
26842         * modules/unistdio/u32-asnprintf: Likewise.
26843         * modules/unistdio/u32-asprintf: Likewise.
26844         * modules/unistdio/u32-snprintf: Likewise.
26845         * modules/unistdio/u32-sprintf: Likewise.
26846         * modules/unistdio/u32-u32-asnprintf: Likewise.
26847         * modules/unistdio/u32-u32-asprintf: Likewise.
26848         * modules/unistdio/u32-u32-snprintf: Likewise.
26849         * modules/unistdio/u32-u32-sprintf: Likewise.
26850         * modules/unistdio/u32-u32-vasnprintf: Likewise.
26851         * modules/unistdio/u32-u32-vasprintf: Likewise.
26852         * modules/unistdio/u32-u32-vsnprintf: Likewise.
26853         * modules/unistdio/u32-u32-vsprintf: Likewise.
26854         * modules/unistdio/u32-vasnprintf: Likewise.
26855         * modules/unistdio/u32-vasprintf: Likewise.
26856         * modules/unistdio/u32-vsnprintf: Likewise.
26857         * modules/unistdio/u32-vsprintf: Likewise.
26858         * modules/unistdio/ulc-asnprintf: Likewise.
26859         * modules/unistdio/ulc-asprintf: Likewise.
26860         * modules/unistdio/ulc-fprintf: Likewise.
26861         * modules/unistdio/ulc-snprintf: Likewise.
26862         * modules/unistdio/ulc-sprintf: Likewise.
26863         * modules/unistdio/ulc-vasnprintf: Likewise.
26864         * modules/unistdio/ulc-vasprintf: Likewise.
26865         * modules/unistdio/ulc-vfprintf: Likewise.
26866         * modules/unistdio/ulc-vsnprintf: Likewise.
26867         * modules/unistdio/ulc-vsprintf: Likewise.
26868         * modules/unistr/u8-check: Likewise.
26869         * modules/unistr/u8-chr: Likewise.
26870         * modules/unistr/u8-cmp: Likewise.
26871         * modules/unistr/u8-cmp2: Likewise.
26872         * modules/unistr/u8-cpy: Likewise.
26873         * modules/unistr/u8-cpy-alloc: Likewise.
26874         * modules/unistr/u8-endswith: Likewise.
26875         * modules/unistr/u8-mblen: Likewise.
26876         * modules/unistr/u8-mbsnlen: Likewise.
26877         * modules/unistr/u8-mbtouc: Likewise.
26878         * modules/unistr/u8-mbtouc-unsafe: Likewise.
26879         * modules/unistr/u8-mbtoucr: Likewise.
26880         * modules/unistr/u8-move: Likewise.
26881         * modules/unistr/u8-next: Likewise.
26882         * modules/unistr/u8-prev: Likewise.
26883         * modules/unistr/u8-set: Likewise.
26884         * modules/unistr/u8-startswith: Likewise.
26885         * modules/unistr/u8-stpcpy: Likewise.
26886         * modules/unistr/u8-stpncpy: Likewise.
26887         * modules/unistr/u8-strcat: Likewise.
26888         * modules/unistr/u8-strchr: Likewise.
26889         * modules/unistr/u8-strcmp: Likewise.
26890         * modules/unistr/u8-strcoll: Likewise.
26891         * modules/unistr/u8-strcpy: Likewise.
26892         * modules/unistr/u8-strcspn: Likewise.
26893         * modules/unistr/u8-strdup: Likewise.
26894         * modules/unistr/u8-strlen: Likewise.
26895         * modules/unistr/u8-strmblen: Likewise.
26896         * modules/unistr/u8-strmbtouc: Likewise.
26897         * modules/unistr/u8-strncat: Likewise.
26898         * modules/unistr/u8-strncmp: Likewise.
26899         * modules/unistr/u8-strncpy: Likewise.
26900         * modules/unistr/u8-strnlen: Likewise.
26901         * modules/unistr/u8-strpbrk: Likewise.
26902         * modules/unistr/u8-strrchr: Likewise.
26903         * modules/unistr/u8-strspn: Likewise.
26904         * modules/unistr/u8-strstr: Likewise.
26905         * modules/unistr/u8-strtok: Likewise.
26906         * modules/unistr/u8-to-u16: Likewise.
26907         * modules/unistr/u8-to-u32: Likewise.
26908         * modules/unistr/u8-uctomb: Likewise.
26909         * modules/unistr/u16-check: Likewise.
26910         * modules/unistr/u16-chr: Likewise.
26911         * modules/unistr/u16-cmp: Likewise.
26912         * modules/unistr/u16-cmp2: Likewise.
26913         * modules/unistr/u16-cpy: Likewise.
26914         * modules/unistr/u16-cpy-alloc: Likewise.
26915         * modules/unistr/u16-endswith: Likewise.
26916         * modules/unistr/u16-mblen: Likewise.
26917         * modules/unistr/u16-mbsnlen: Likewise.
26918         * modules/unistr/u16-mbtouc: Likewise.
26919         * modules/unistr/u16-mbtouc-unsafe: Likewise.
26920         * modules/unistr/u16-mbtoucr: Likewise.
26921         * modules/unistr/u16-move: Likewise.
26922         * modules/unistr/u16-next: Likewise.
26923         * modules/unistr/u16-prev: Likewise.
26924         * modules/unistr/u16-set: Likewise.
26925         * modules/unistr/u16-startswith: Likewise.
26926         * modules/unistr/u16-stpcpy: Likewise.
26927         * modules/unistr/u16-stpncpy: Likewise.
26928         * modules/unistr/u16-strcat: Likewise.
26929         * modules/unistr/u16-strchr: Likewise.
26930         * modules/unistr/u16-strcmp: Likewise.
26931         * modules/unistr/u16-strcoll: Likewise.
26932         * modules/unistr/u16-strcpy: Likewise.
26933         * modules/unistr/u16-strcspn: Likewise.
26934         * modules/unistr/u16-strdup: Likewise.
26935         * modules/unistr/u16-strlen: Likewise.
26936         * modules/unistr/u16-strmblen: Likewise.
26937         * modules/unistr/u16-strmbtouc: Likewise.
26938         * modules/unistr/u16-strncat: Likewise.
26939         * modules/unistr/u16-strncmp: Likewise.
26940         * modules/unistr/u16-strncpy: Likewise.
26941         * modules/unistr/u16-strnlen: Likewise.
26942         * modules/unistr/u16-strpbrk: Likewise.
26943         * modules/unistr/u16-strrchr: Likewise.
26944         * modules/unistr/u16-strspn: Likewise.
26945         * modules/unistr/u16-strstr: Likewise.
26946         * modules/unistr/u16-strtok: Likewise.
26947         * modules/unistr/u16-to-u32: Likewise.
26948         * modules/unistr/u16-to-u8: Likewise.
26949         * modules/unistr/u16-uctomb: Likewise.
26950         * modules/unistr/u32-check: Likewise.
26951         * modules/unistr/u32-chr: Likewise.
26952         * modules/unistr/u32-cmp: Likewise.
26953         * modules/unistr/u32-cmp2: Likewise.
26954         * modules/unistr/u32-cpy: Likewise.
26955         * modules/unistr/u32-cpy-alloc: Likewise.
26956         * modules/unistr/u32-endswith: Likewise.
26957         * modules/unistr/u32-mblen: Likewise.
26958         * modules/unistr/u32-mbsnlen: Likewise.
26959         * modules/unistr/u32-mbtouc: Likewise.
26960         * modules/unistr/u32-mbtouc-unsafe: Likewise.
26961         * modules/unistr/u32-mbtoucr: Likewise.
26962         * modules/unistr/u32-move: Likewise.
26963         * modules/unistr/u32-next: Likewise.
26964         * modules/unistr/u32-prev: Likewise.
26965         * modules/unistr/u32-set: Likewise.
26966         * modules/unistr/u32-startswith: Likewise.
26967         * modules/unistr/u32-stpcpy: Likewise.
26968         * modules/unistr/u32-stpncpy: Likewise.
26969         * modules/unistr/u32-strcat: Likewise.
26970         * modules/unistr/u32-strchr: Likewise.
26971         * modules/unistr/u32-strcmp: Likewise.
26972         * modules/unistr/u32-strcoll: Likewise.
26973         * modules/unistr/u32-strcpy: Likewise.
26974         * modules/unistr/u32-strcspn: Likewise.
26975         * modules/unistr/u32-strdup: Likewise.
26976         * modules/unistr/u32-strlen: Likewise.
26977         * modules/unistr/u32-strmblen: Likewise.
26978         * modules/unistr/u32-strmbtouc: Likewise.
26979         * modules/unistr/u32-strncat: Likewise.
26980         * modules/unistr/u32-strncmp: Likewise.
26981         * modules/unistr/u32-strncpy: Likewise.
26982         * modules/unistr/u32-strnlen: Likewise.
26983         * modules/unistr/u32-strpbrk: Likewise.
26984         * modules/unistr/u32-strrchr: Likewise.
26985         * modules/unistr/u32-strspn: Likewise.
26986         * modules/unistr/u32-strstr: Likewise.
26987         * modules/unistr/u32-strtok: Likewise.
26988         * modules/unistr/u32-to-u16: Likewise.
26989         * modules/unistr/u32-to-u8: Likewise.
26990         * modules/unistr/u32-uctomb: Likewise.
26991         * modules/uniwbrk/u8-wordbreaks: Likewise.
26992         * modules/uniwbrk/u16-wordbreaks: Likewise.
26993         * modules/uniwbrk/u32-wordbreaks: Likewise.
26994         * modules/uniwbrk/ulc-wordbreaks: Likewise.
26995         * modules/uniwbrk/wordbreak-property: Likewise.
26996         * modules/uniwidth/u8-strwidth: Likewise.
26997         * modules/uniwidth/u8-width: Likewise.
26998         * modules/uniwidth/u16-strwidth: Likewise.
26999         * modules/uniwidth/u16-width: Likewise.
27000         * modules/uniwidth/u32-strwidth: Likewise.
27001         * modules/uniwidth/u32-width: Likewise.
27002         * modules/uniwidth/width: Likewise.
27003         * modules/unicase/cased-tests (Makefile.am): Link all test programs
27004         with $(LIBUNISTRING).
27005         * modules/unicase/ignorable-tests: Likewise.
27006         * modules/unicase/locale-language-tests: Likewise.
27007         * modules/unicase/tolower-tests: Likewise.
27008         * modules/unicase/totitle-tests: Likewise.
27009         * modules/unicase/toupper-tests: Likewise.
27010         * modules/unicase/u8-casecmp-tests: Likewise.
27011         * modules/unicase/u8-casecoll-tests: Likewise.
27012         * modules/unicase/u8-casefold-tests: Likewise.
27013         * modules/unicase/u8-is-cased-tests: Likewise.
27014         * modules/unicase/u8-is-casefolded-tests: Likewise.
27015         * modules/unicase/u8-is-lowercase-tests: Likewise.
27016         * modules/unicase/u8-is-titlecase-tests: Likewise.
27017         * modules/unicase/u8-is-uppercase-tests: Likewise.
27018         * modules/unicase/u8-tolower-tests: Likewise.
27019         * modules/unicase/u8-totitle-tests: Likewise.
27020         * modules/unicase/u8-toupper-tests: Likewise.
27021         * modules/unicase/u16-casecmp-tests: Likewise.
27022         * modules/unicase/u16-casecoll-tests: Likewise.
27023         * modules/unicase/u16-casefold-tests: Likewise.
27024         * modules/unicase/u16-is-cased-tests: Likewise.
27025         * modules/unicase/u16-is-casefolded-tests: Likewise.
27026         * modules/unicase/u16-is-lowercase-tests: Likewise.
27027         * modules/unicase/u16-is-titlecase-tests: Likewise.
27028         * modules/unicase/u16-is-uppercase-tests: Likewise.
27029         * modules/unicase/u16-tolower-tests: Likewise.
27030         * modules/unicase/u16-totitle-tests: Likewise.
27031         * modules/unicase/u16-toupper-tests: Likewise.
27032         * modules/unicase/u32-casecmp-tests: Likewise.
27033         * modules/unicase/u32-casecoll-tests: Likewise.
27034         * modules/unicase/u32-casefold-tests: Likewise.
27035         * modules/unicase/u32-is-cased-tests: Likewise.
27036         * modules/unicase/u32-is-casefolded-tests: Likewise.
27037         * modules/unicase/u32-is-lowercase-tests: Likewise.
27038         * modules/unicase/u32-is-titlecase-tests: Likewise.
27039         * modules/unicase/u32-is-uppercase-tests: Likewise.
27040         * modules/unicase/u32-tolower-tests: Likewise.
27041         * modules/unicase/u32-totitle-tests: Likewise.
27042         * modules/unicase/u32-toupper-tests: Likewise.
27043         * modules/unicase/ulc-casecmp-tests: Likewise.
27044         * modules/unicase/ulc-casecoll-tests: Likewise.
27045         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
27046         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
27047         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
27048         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
27049         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
27050         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
27051         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
27052         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
27053         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
27054         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
27055         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
27056         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
27057         * modules/unictype/bidicategory-byname-tests: Likewise.
27058         * modules/unictype/bidicategory-name-tests: Likewise.
27059         * modules/unictype/bidicategory-of-tests: Likewise.
27060         * modules/unictype/bidicategory-test-tests: Likewise.
27061         * modules/unictype/block-list-tests: Likewise.
27062         * modules/unictype/block-of-tests: Likewise.
27063         * modules/unictype/block-test-tests: Likewise.
27064         * modules/unictype/category-C-tests: Likewise.
27065         * modules/unictype/category-Cc-tests: Likewise.
27066         * modules/unictype/category-Cf-tests: Likewise.
27067         * modules/unictype/category-Cn-tests: Likewise.
27068         * modules/unictype/category-Co-tests: Likewise.
27069         * modules/unictype/category-Cs-tests: Likewise.
27070         * modules/unictype/category-L-tests: Likewise.
27071         * modules/unictype/category-Ll-tests: Likewise.
27072         * modules/unictype/category-Lm-tests: Likewise.
27073         * modules/unictype/category-Lo-tests: Likewise.
27074         * modules/unictype/category-Lt-tests: Likewise.
27075         * modules/unictype/category-Lu-tests: Likewise.
27076         * modules/unictype/category-M-tests: Likewise.
27077         * modules/unictype/category-Mc-tests: Likewise.
27078         * modules/unictype/category-Me-tests: Likewise.
27079         * modules/unictype/category-Mn-tests: Likewise.
27080         * modules/unictype/category-N-tests: Likewise.
27081         * modules/unictype/category-Nd-tests: Likewise.
27082         * modules/unictype/category-Nl-tests: Likewise.
27083         * modules/unictype/category-No-tests: Likewise.
27084         * modules/unictype/category-P-tests: Likewise.
27085         * modules/unictype/category-Pc-tests: Likewise.
27086         * modules/unictype/category-Pd-tests: Likewise.
27087         * modules/unictype/category-Pe-tests: Likewise.
27088         * modules/unictype/category-Pf-tests: Likewise.
27089         * modules/unictype/category-Pi-tests: Likewise.
27090         * modules/unictype/category-Po-tests: Likewise.
27091         * modules/unictype/category-Ps-tests: Likewise.
27092         * modules/unictype/category-S-tests: Likewise.
27093         * modules/unictype/category-Sc-tests: Likewise.
27094         * modules/unictype/category-Sk-tests: Likewise.
27095         * modules/unictype/category-Sm-tests: Likewise.
27096         * modules/unictype/category-So-tests: Likewise.
27097         * modules/unictype/category-Z-tests: Likewise.
27098         * modules/unictype/category-Zl-tests: Likewise.
27099         * modules/unictype/category-Zp-tests: Likewise.
27100         * modules/unictype/category-Zs-tests: Likewise.
27101         * modules/unictype/category-and-not-tests: Likewise.
27102         * modules/unictype/category-and-tests: Likewise.
27103         * modules/unictype/category-byname-tests: Likewise.
27104         * modules/unictype/category-name-tests: Likewise.
27105         * modules/unictype/category-none-tests: Likewise.
27106         * modules/unictype/category-of-tests: Likewise.
27107         * modules/unictype/category-or-tests: Likewise.
27108         * modules/unictype/category-test-withtable-tests: Likewise.
27109         * modules/unictype/combining-class-tests: Likewise.
27110         * modules/unictype/ctype-alnum-tests: Likewise.
27111         * modules/unictype/ctype-alpha-tests: Likewise.
27112         * modules/unictype/ctype-blank-tests: Likewise.
27113         * modules/unictype/ctype-cntrl-tests: Likewise.
27114         * modules/unictype/ctype-digit-tests: Likewise.
27115         * modules/unictype/ctype-graph-tests: Likewise.
27116         * modules/unictype/ctype-lower-tests: Likewise.
27117         * modules/unictype/ctype-print-tests: Likewise.
27118         * modules/unictype/ctype-punct-tests: Likewise.
27119         * modules/unictype/ctype-space-tests: Likewise.
27120         * modules/unictype/ctype-upper-tests: Likewise.
27121         * modules/unictype/ctype-xdigit-tests: Likewise.
27122         * modules/unictype/decimal-digit-tests: Likewise.
27123         * modules/unictype/digit-tests: Likewise.
27124         * modules/unictype/mirror-tests: Likewise.
27125         * modules/unictype/numeric-tests: Likewise.
27126         * modules/unictype/property-alphabetic-tests: Likewise.
27127         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
27128         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
27129         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
27130         * modules/unictype/property-bidi-block-separator-tests: Likewise.
27131         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
27132         * modules/unictype/property-bidi-common-separator-tests: Likewise.
27133         * modules/unictype/property-bidi-control-tests: Likewise.
27134         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
27135         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
27136         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
27137         * modules/unictype/property-bidi-european-digit-tests: Likewise.
27138         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
27139         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
27140         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
27141         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
27142         * modules/unictype/property-bidi-pdf-tests: Likewise.
27143         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
27144         * modules/unictype/property-bidi-whitespace-tests: Likewise.
27145         * modules/unictype/property-byname-tests: Likewise.
27146         * modules/unictype/property-combining-tests: Likewise.
27147         * modules/unictype/property-composite-tests: Likewise.
27148         * modules/unictype/property-currency-symbol-tests: Likewise.
27149         * modules/unictype/property-dash-tests: Likewise.
27150         * modules/unictype/property-decimal-digit-tests: Likewise.
27151         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
27152         * modules/unictype/property-deprecated-tests: Likewise.
27153         * modules/unictype/property-diacritic-tests: Likewise.
27154         * modules/unictype/property-extender-tests: Likewise.
27155         * modules/unictype/property-format-control-tests: Likewise.
27156         * modules/unictype/property-grapheme-base-tests: Likewise.
27157         * modules/unictype/property-grapheme-extend-tests: Likewise.
27158         * modules/unictype/property-grapheme-link-tests: Likewise.
27159         * modules/unictype/property-hex-digit-tests: Likewise.
27160         * modules/unictype/property-hyphen-tests: Likewise.
27161         * modules/unictype/property-id-continue-tests: Likewise.
27162         * modules/unictype/property-id-start-tests: Likewise.
27163         * modules/unictype/property-ideographic-tests: Likewise.
27164         * modules/unictype/property-ids-binary-operator-tests: Likewise.
27165         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
27166         * modules/unictype/property-ignorable-control-tests: Likewise.
27167         * modules/unictype/property-iso-control-tests: Likewise.
27168         * modules/unictype/property-join-control-tests: Likewise.
27169         * modules/unictype/property-left-of-pair-tests: Likewise.
27170         * modules/unictype/property-line-separator-tests: Likewise.
27171         * modules/unictype/property-logical-order-exception-tests: Likewise.
27172         * modules/unictype/property-lowercase-tests: Likewise.
27173         * modules/unictype/property-math-tests: Likewise.
27174         * modules/unictype/property-non-break-tests: Likewise.
27175         * modules/unictype/property-not-a-character-tests: Likewise.
27176         * modules/unictype/property-numeric-tests: Likewise.
27177         * modules/unictype/property-other-alphabetic-tests: Likewise.
27178         * modules/unictype/property-other-default-ignorable-code-point-tests:
27179         Likewise.
27180         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
27181         * modules/unictype/property-other-id-continue-tests: Likewise.
27182         * modules/unictype/property-other-id-start-tests: Likewise.
27183         * modules/unictype/property-other-lowercase-tests: Likewise.
27184         * modules/unictype/property-other-math-tests: Likewise.
27185         * modules/unictype/property-other-uppercase-tests: Likewise.
27186         * modules/unictype/property-paired-punctuation-tests: Likewise.
27187         * modules/unictype/property-paragraph-separator-tests: Likewise.
27188         * modules/unictype/property-pattern-syntax-tests: Likewise.
27189         * modules/unictype/property-pattern-white-space-tests: Likewise.
27190         * modules/unictype/property-private-use-tests: Likewise.
27191         * modules/unictype/property-punctuation-tests: Likewise.
27192         * modules/unictype/property-quotation-mark-tests: Likewise.
27193         * modules/unictype/property-radical-tests: Likewise.
27194         * modules/unictype/property-sentence-terminal-tests: Likewise.
27195         * modules/unictype/property-soft-dotted-tests: Likewise.
27196         * modules/unictype/property-space-tests: Likewise.
27197         * modules/unictype/property-terminal-punctuation-tests: Likewise.
27198         * modules/unictype/property-test-tests: Likewise.
27199         * modules/unictype/property-titlecase-tests: Likewise.
27200         * modules/unictype/property-unassigned-code-value-tests: Likewise.
27201         * modules/unictype/property-unified-ideograph-tests: Likewise.
27202         * modules/unictype/property-uppercase-tests: Likewise.
27203         * modules/unictype/property-variation-selector-tests: Likewise.
27204         * modules/unictype/property-white-space-tests: Likewise.
27205         * modules/unictype/property-xid-continue-tests: Likewise.
27206         * modules/unictype/property-xid-start-tests: Likewise.
27207         * modules/unictype/property-zero-width-tests: Likewise.
27208         * modules/unictype/scripts-tests: Likewise.
27209         * modules/unictype/syntax-c-ident-tests: Likewise.
27210         * modules/unictype/syntax-c-whitespace-tests: Likewise.
27211         * modules/unictype/syntax-java-ident-tests: Likewise.
27212         * modules/unictype/syntax-java-whitespace-tests: Likewise.
27213         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
27214         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
27215         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
27216         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
27217         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
27218         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
27219         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
27220         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
27221         * modules/uniname/uniname-tests: Likewise.
27222         * modules/uninorm/canonical-decomposition-tests: Likewise.
27223         * modules/uninorm/compat-decomposition-tests: Likewise.
27224         * modules/uninorm/composition-tests: Likewise.
27225         * modules/uninorm/decomposing-form-tests: Likewise.
27226         * modules/uninorm/decomposition-tests: Likewise.
27227         * modules/uninorm/filter-tests: Likewise.
27228         * modules/uninorm/nfc-tests: Likewise.
27229         * modules/uninorm/nfd-tests: Likewise.
27230         * modules/uninorm/nfkc-tests: Likewise.
27231         * modules/uninorm/nfkd-tests: Likewise.
27232         * modules/uninorm/u8-normcmp-tests: Likewise.
27233         * modules/uninorm/u8-normcoll-tests: Likewise.
27234         * modules/uninorm/u16-normcmp-tests: Likewise.
27235         * modules/uninorm/u16-normcoll-tests: Likewise.
27236         * modules/uninorm/u32-normcmp-tests: Likewise.
27237         * modules/uninorm/u32-normcoll-tests: Likewise.
27238         * modules/unistdio/u8-asnprintf-tests: Likewise.
27239         * modules/unistdio/u8-vasnprintf-tests: Likewise.
27240         * modules/unistdio/u8-vasprintf-tests: Likewise.
27241         * modules/unistdio/u8-vsnprintf-tests: Likewise.
27242         * modules/unistdio/u8-vsprintf-tests: Likewise.
27243         * modules/unistdio/u16-asnprintf-tests: Likewise.
27244         * modules/unistdio/u16-vasnprintf-tests: Likewise.
27245         * modules/unistdio/u16-vasprintf-tests: Likewise.
27246         * modules/unistdio/u16-vsnprintf-tests: Likewise.
27247         * modules/unistdio/u16-vsprintf-tests: Likewise.
27248         * modules/unistdio/u32-asnprintf-tests: Likewise.
27249         * modules/unistdio/u32-vasnprintf-tests: Likewise.
27250         * modules/unistdio/u32-vasprintf-tests: Likewise.
27251         * modules/unistdio/u32-vsnprintf-tests: Likewise.
27252         * modules/unistdio/u32-vsprintf-tests: Likewise.
27253         * modules/unistdio/ulc-asnprintf-tests: Likewise.
27254         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
27255         * modules/unistdio/ulc-vasprintf-tests: Likewise.
27256         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
27257         * modules/unistdio/ulc-vsprintf-tests: Likewise.
27258         * modules/unistr/u8-check-tests: Likewise.
27259         * modules/unistr/u8-chr-tests: Likewise.
27260         * modules/unistr/u8-cmp-tests: Likewise.
27261         * modules/unistr/u8-cmp2-tests: Likewise.
27262         * modules/unistr/u8-cpy-alloc-tests: Likewise.
27263         * modules/unistr/u8-cpy-tests: Likewise.
27264         * modules/unistr/u8-mblen-tests: Likewise.
27265         * modules/unistr/u8-mbsnlen-tests: Likewise.
27266         * modules/unistr/u8-mbtouc-tests: Likewise.
27267         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
27268         * modules/unistr/u8-mbtoucr-tests: Likewise.
27269         * modules/unistr/u8-move-tests: Likewise.
27270         * modules/unistr/u8-next-tests: Likewise.
27271         * modules/unistr/u8-prev-tests: Likewise.
27272         * modules/unistr/u8-set-tests: Likewise.
27273         * modules/unistr/u8-stpcpy-tests: Likewise.
27274         * modules/unistr/u8-stpncpy-tests: Likewise.
27275         * modules/unistr/u8-strcat-tests: Likewise.
27276         * modules/unistr/u8-strcmp-tests: Likewise.
27277         * modules/unistr/u8-strcoll-tests: Likewise.
27278         * modules/unistr/u8-strcpy-tests: Likewise.
27279         * modules/unistr/u8-strdup-tests: Likewise.
27280         * modules/unistr/u8-strlen-tests: Likewise.
27281         * modules/unistr/u8-strmblen-tests: Likewise.
27282         * modules/unistr/u8-strmbtouc-tests: Likewise.
27283         * modules/unistr/u8-strncat-tests: Likewise.
27284         * modules/unistr/u8-strncmp-tests: Likewise.
27285         * modules/unistr/u8-strncpy-tests: Likewise.
27286         * modules/unistr/u8-strnlen-tests: Likewise.
27287         * modules/unistr/u8-to-u16-tests: Likewise.
27288         * modules/unistr/u8-to-u32-tests: Likewise.
27289         * modules/unistr/u8-uctomb-tests: Likewise.
27290         * modules/unistr/u16-check-tests: Likewise.
27291         * modules/unistr/u16-chr-tests: Likewise.
27292         * modules/unistr/u16-cmp-tests: Likewise.
27293         * modules/unistr/u16-cmp2-tests: Likewise.
27294         * modules/unistr/u16-cpy-alloc-tests: Likewise.
27295         * modules/unistr/u16-cpy-tests: Likewise.
27296         * modules/unistr/u16-mblen-tests: Likewise.
27297         * modules/unistr/u16-mbsnlen-tests: Likewise.
27298         * modules/unistr/u16-mbtouc-tests: Likewise.
27299         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
27300         * modules/unistr/u16-mbtoucr-tests: Likewise.
27301         * modules/unistr/u16-move-tests: Likewise.
27302         * modules/unistr/u16-next-tests: Likewise.
27303         * modules/unistr/u16-prev-tests: Likewise.
27304         * modules/unistr/u16-set-tests: Likewise.
27305         * modules/unistr/u16-stpcpy-tests: Likewise.
27306         * modules/unistr/u16-stpncpy-tests: Likewise.
27307         * modules/unistr/u16-strcat-tests: Likewise.
27308         * modules/unistr/u16-strcmp-tests: Likewise.
27309         * modules/unistr/u16-strcoll-tests: Likewise.
27310         * modules/unistr/u16-strcpy-tests: Likewise.
27311         * modules/unistr/u16-strdup-tests: Likewise.
27312         * modules/unistr/u16-strlen-tests: Likewise.
27313         * modules/unistr/u16-strmblen-tests: Likewise.
27314         * modules/unistr/u16-strmbtouc-tests: Likewise.
27315         * modules/unistr/u16-strncat-tests: Likewise.
27316         * modules/unistr/u16-strncmp-tests: Likewise.
27317         * modules/unistr/u16-strncpy-tests: Likewise.
27318         * modules/unistr/u16-strnlen-tests: Likewise.
27319         * modules/unistr/u16-to-u32-tests: Likewise.
27320         * modules/unistr/u16-to-u8-tests: Likewise.
27321         * modules/unistr/u16-uctomb-tests: Likewise.
27322         * modules/unistr/u32-check-tests: Likewise.
27323         * modules/unistr/u32-chr-tests: Likewise.
27324         * modules/unistr/u32-cmp-tests: Likewise.
27325         * modules/unistr/u32-cmp2-tests: Likewise.
27326         * modules/unistr/u32-cpy-alloc-tests: Likewise.
27327         * modules/unistr/u32-cpy-tests: Likewise.
27328         * modules/unistr/u32-mblen-tests: Likewise.
27329         * modules/unistr/u32-mbsnlen-tests: Likewise.
27330         * modules/unistr/u32-mbtouc-tests: Likewise.
27331         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
27332         * modules/unistr/u32-mbtoucr-tests: Likewise.
27333         * modules/unistr/u32-move-tests: Likewise.
27334         * modules/unistr/u32-next-tests: Likewise.
27335         * modules/unistr/u32-prev-tests: Likewise.
27336         * modules/unistr/u32-set-tests: Likewise.
27337         * modules/unistr/u32-stpcpy-tests: Likewise.
27338         * modules/unistr/u32-stpncpy-tests: Likewise.
27339         * modules/unistr/u32-strcat-tests: Likewise.
27340         * modules/unistr/u32-strcmp-tests: Likewise.
27341         * modules/unistr/u32-strcoll-tests: Likewise.
27342         * modules/unistr/u32-strcpy-tests: Likewise.
27343         * modules/unistr/u32-strdup-tests: Likewise.
27344         * modules/unistr/u32-strlen-tests: Likewise.
27345         * modules/unistr/u32-strmblen-tests: Likewise.
27346         * modules/unistr/u32-strmbtouc-tests: Likewise.
27347         * modules/unistr/u32-strncat-tests: Likewise.
27348         * modules/unistr/u32-strncmp-tests: Likewise.
27349         * modules/unistr/u32-strncpy-tests: Likewise.
27350         * modules/unistr/u32-strnlen-tests: Likewise.
27351         * modules/unistr/u32-to-u16-tests: Likewise.
27352         * modules/unistr/u32-to-u8-tests: Likewise.
27353         * modules/unistr/u32-uctomb-tests: Likewise.
27354         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
27355         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
27356         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
27357         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
27358         * modules/uniwidth/u8-strwidth-tests: Likewise.
27359         * modules/uniwidth/u8-width-tests: Likewise.
27360         * modules/uniwidth/u16-strwidth-tests: Likewise.
27361         * modules/uniwidth/u16-width-tests: Likewise.
27362         * modules/uniwidth/u32-strwidth-tests: Likewise.
27363         * modules/uniwidth/u32-width-tests: Likewise.
27364         * modules/uniwidth/width-tests: Likewise.
27365
27366 2010-05-18  Richard Jones  <rjones@redhat.com>
27367
27368         doc: users.txt: list hivex
27369         * users.txt: Add hivex.
27370
27371 2010-05-18  Richard Jones  <rjones@redhat.com>
27372
27373         doc: users.txt: list febootstrap
27374         * users.txt: Add febootstrap.
27375
27376 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
27377
27378         bootstrap: fix an error when gnulib is not used as a git submodule
27379         * build-aux/bootstrap (gnulib_path): If its length is zero then
27380         assign "gnulib" to it.
27381         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
27382
27383 2010-05-16  Bruno Haible  <bruno@clisp.org>
27384
27385         Avoid autoconf warnings about AM_ICONV.
27386         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
27387         2.64.
27388
27389 2010-05-16  Bruno Haible  <bruno@clisp.org>
27390
27391         absolute-header: Make the macro usable in more situations.
27392         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
27393         from gl_ABSOLUTE_HEADER.
27394         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
27395
27396 2010-05-16  James Youngman  <jay@gnu.org>
27397
27398         doc: update users.txt
27399         * users.txt: Add CSSC.
27400
27401 2010-05-16  Jim Meyering  <meyering@redhat.com>
27402
27403         init.sh: fix an error in the previous change; add more comments
27404         * tests/init.sh: Compare exit code in loop against 9, not 2.
27405         Patch by Bruno Haible.
27406         Make the two tests more similar by adding an empty "then" clause.
27407         Add comments.
27408
27409         init.sh: avoid unnecessary shell re-exec
27410         * tests/init.sh: Improve the re-exec-required check to first test the
27411         current shell.  If it passes the test, do not search for a shell that
27412         does pass, and do not re-exec.  This test is particularly contorted to
27413         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
27414         of $(...) evokes a syntax error and causes immediate shell exit with
27415         status 2.  Bruno Haible reported that the re-exec made it impossible
27416         to single-step through any init.sh-using script.
27417
27418 2010-05-16  Bruno Haible  <bruno@clisp.org>
27419
27420         Fix collision between gnulib's and libintl's printf replacements.
27421         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
27422         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
27423         (printf): When using GNU C, map the __printf__ function to rpl_printf
27424         via __asm__. When not using GNU C, define rpl_printf instead of
27425         __printf__.
27426         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
27427         commit.
27428         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
27429         commit.
27430         * m4/asm-underscore.m4: New file.
27431         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
27432         * modules/stdio (Files): Add m4/asm-underscore.m4.
27433         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
27434         Reported by Ben Pfaff.
27435
27436 2010-05-16  Bruno Haible  <bruno@clisp.org>
27437
27438         verify: Avoid skipping the test on openSUSE 11.0.
27439         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
27440
27441 2010-05-13  Bruno Haible  <bruno@clisp.org>
27442
27443         Avoid useless warnings from G++.
27444         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
27445         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
27446         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27447
27448 2010-05-11  Jim Meyering  <meyering@redhat.com>
27449
27450         maint.mk: tweak preceding change
27451         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
27452         regexps tighter by anchoring at EOL, and make the new group "shy"
27453         for slightly decreased overhead.
27454
27455 2010-05-11  Eric Blake  <eblake@redhat.com>
27456
27457         maint.mk: gnulib doesn't guarantee NSIG
27458         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
27459
27460 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
27461
27462         test-pwrite.c: Remove unused variable declaration.
27463         * tests/test-pwrite.c (main): Remove read_buf declaration.
27464
27465         Remove useless test-pwrite.sh file.
27466         * tests/test-pwrite.sh: Delete file.
27467         * modules/pwrite-tests: Remove references.
27468         Reported by Bruno Haible.
27469
27470 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
27471
27472         init.sh: fix a typo
27473         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
27474
27475 2010-05-10  Jim Meyering  <meyering@redhat.com>
27476
27477         maint.mk: avoid using a temporary file in the always-defined-macros check
27478         * top/maint.mk (.re-defmac): Remove rule.
27479         (gl_trap_): Remove definition.
27480         (sc_prohibit_always-defined_macros): Rewrite not to create and
27481         depend on a temporary file.  Instead, depend on GNU grep's ability
27482         to read a list of regular expressions from stdin when given "-f -".
27483
27484 2010-05-09  Bruno Haible  <bruno@clisp.org>
27485
27486         Update to GNU gettext 0.18, part 1.
27487         * m4/gettext.m4: Update to GNU gettext 0.18.
27488         * m4/intl.m4: Likewise.
27489         * m4/po.m4: Likewise.
27490         * modules/gettext (Files): Add m4/fcntl-o.m4.
27491         (configure.ac): Require gettext infrastructure from version 0.18.
27492
27493 2010-05-09  Jim Meyering  <meyering@redhat.com>
27494
27495         init.sh: enable MALLOC_PERTURB_
27496         * tests/init.sh: Enable glibc's malloc-perturbing option.
27497
27498         maint.mk: improve sc_cross_check_PATH_usage_in_tests
27499         With my recent change in init.sh from the two-line form:
27500             -#   : ${srcdir=.}
27501             -#   . "$srcdir/init.sh"; path_prepend_ .
27502             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
27503         I noticed that using the one-line form would cause this test
27504         to fail with a false-positive, or to stop working altogether,
27505         depending on whether help-version changed or all the tests did.
27506         * top/maint.mk (_hv_regex): Remove this definition.
27507         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
27508         (_hv_regex_strong): Use a stronger regex to check for conformance.
27509         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
27510         Give a separate diagnostic for lack of conforming use.
27511
27512         maint.mk: prohibit definition of symbols defined by gnulib
27513         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
27514         definition of symbols defined by gnulib.
27515
27516 2010-05-09  Bruno Haible  <bruno@clisp.org>
27517
27518         acl: Avoid test failure on Cygwin-hosted mingw.
27519         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
27520
27521 2010-05-09  Bruno Haible  <bruno@clisp.org>
27522
27523         error: Use system's fcntl function.
27524         * lib/error.c (fcntl): Undefine.
27525
27526 2010-05-09  Jim Meyering  <meyering@redhat.com>
27527
27528         verify: adjust formatting to be more consistent
27529         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
27530         argument-list '('s, and after one comma.
27531
27532 2010-05-09  Bruno Haible  <bruno@clisp.org>
27533
27534         error: More reliable output on mingw.
27535         * lib/error.c: Include <windows.h>.
27536         (is_open): New function.
27537         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
27538         defined.
27539
27540 2010-05-09  Bruno Haible  <bruno@clisp.org>
27541
27542         vasnprintf: Fix syntax errors in libintl build on mingw.
27543         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
27544         pad_ourselves and prec_ourselves after use.
27545
27546 2010-05-08  Bruno Haible  <bruno@clisp.org>
27547
27548         * lib/config.charset: Update comments for Cygwin 1.7.
27549         * lib/localcharset.c: Likewise.
27550
27551 2010-05-07  Jim Meyering  <meyering@redhat.com>
27552
27553         init.sh: improve comments
27554         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
27555         . "${srcdir=.}/init.sh"; path_prepend_ .
27556         Add a note about path_prepend_ and the alternative of using
27557         TESTS_ENVIRONMENT.
27558
27559 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27560
27561         exclude: Unescape hashed patterns in wildcard mode.
27562         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
27563         to the hash list.
27564         * tests/test-exclude8.sh: New test case.
27565         * modules/exclude-tests: Add new test.
27566
27567 2010-05-05  Eric Blake  <eblake@redhat.com>
27568
27569         verify: automate tests
27570         * modules/verify-tests: New module.
27571         * tests/test-verify.sh: New file.
27572         * tests/test-verify.c: Guard each negative test with a unique id.
27573         Also avoid warning about unused left hand of comma expressions.
27574
27575 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
27576
27577         Further improvements to verify.h, suggested by Eric Blake.
27578         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
27579         the GL_* versions, to avoid collision with OpenGL.
27580         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
27581         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
27582         than testing merely whether it's defined.
27583
27584         Modify verify.h to pacify gcc -Wredundant_decls.
27585         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
27586         These use the prefix "GL_" since they're likely to be useful elsewhere.
27587         We may need to break them out into a different .h file.
27588         (__COUNTER__): Define to 0 if the compiler doesn't support it.
27589         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
27590         of verify_function__.
27591
27592 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
27593
27594         Tests for module pwrite.
27595         * modules/pwrite-tests: New file.
27596         * tests/test-pwrite.sh: New file.
27597         * tests/test-pwrite.c: New file.
27598
27599         New module pwrite.
27600         * lib/unistd.in.h (pwrite): New declaration.
27601         * lib/pwrite.c: New file, from glibc with modifications.
27602         * m4/pwrite.m4: New file.
27603         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
27604         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
27605         REPLACE_PWRITE.
27606         * modules/pwrite: New file.
27607         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
27608         REPLACE_PWRITE.
27609         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
27610         * doc/posix-functions/pwrite.texi: Mention the new module.
27611
27612 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
27613
27614         pread: Update documentation.
27615         * doc/posix-functions/pread.texi: Mention the 'pread' module.
27616
27617 2010-05-04  Eric Blake  <eblake@redhat.com>
27618
27619         docs: update cygwin progress
27620         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
27621         this bug.
27622         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
27623         Added in cygwin 1.7.2.
27624         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
27625         Likewise.
27626         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
27627         Likewise.
27628         * doc/glibc-functions/dup3.texi (dup3): Likewise.
27629         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
27630         * doc/glibc-functions/accept4.texi (accept4): Likewise.
27631         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
27632         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
27633         Mention nproc module.
27634         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
27635         bug in cygwin 1.7.5 addition.
27636         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
27637         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
27638         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
27639         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
27640         1.7.5.
27641         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
27642         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
27643         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
27644         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
27645         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
27646         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
27647         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
27648         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
27649         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
27650         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
27651         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
27652         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
27653         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
27654         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
27655         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
27656         Likewise.
27657         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
27658         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
27659         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
27660         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
27661         Likewise.
27662         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
27663         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
27664         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
27665         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
27666         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
27667         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
27668         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
27669         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
27670         Likewise.
27671         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
27672         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
27673         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
27674         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
27675         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
27676         Likewise.
27677         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
27678         Likewise.
27679         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
27680         Likewise.
27681         * doc/glibc-functions/xdrrec_endofrecord.texi
27682         (xdrrec_endofrecord): Likewise.
27683         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
27684         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
27685         Likewise.
27686         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
27687         Likewise.
27688
27689 2010-05-04  Jim Meyering  <meyering@redhat.com>
27690
27691         gendocs.sh: make its "-s FILE" option more useful
27692         * build-aux/gendocs.sh: When honoring the -s FILE option, update
27693         $PACKAGE to reflect the probably-different basename of "FILE".
27694
27695 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27696
27697         bootstrap: don't ignore download_po_files failure
27698         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
27699         failure.
27700
27701 2010-05-03  Jim Meyering  <meyering@redhat.com>
27702
27703         maint.mk: allow to pass options to gendocs.sh
27704         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
27705         (gendocs_options_): New overridable variable.
27706
27707         gnu-web-doc-update: don't ignore configure or build failure
27708         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
27709
27710         announce-gen: backslash-escape '@'s in --help output
27711         * build-aux/announce-gen: Fix syntax errors.
27712
27713         maint.mk, announce-gen: allow project-specific announcement mail headers
27714         * top/maint.mk (translation_project_): Define default.
27715         (announcement_Cc_, announcement_mail_headers_): Likewise.
27716         (announcement): Invoke announce-gen with new --mail-headers option.
27717         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
27718
27719         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
27720         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
27721         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
27722         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
27723         line in the "err2" output file when running "make check" in verbose
27724         mode (i.e., with set -x enabled).
27725
27726 2010-05-03  Bruno Haible  <bruno@clisp.org>
27727
27728         wctob: Fix for weird platforms.
27729         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
27730         argument value.
27731
27732 2010-05-03  Jim Meyering  <meyering@redhat.com>
27733
27734         maint.mk: prohibit unwarranted use of <strings.h>
27735         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
27736         strings.h in a file that does not also use strcasecmp, strncasecmp,
27737         ffs or ffsll.
27738
27739         maint.mk: remove obsolete comments
27740         * top/maint.mk: Remove stale, commented-out rules.
27741
27742 2010-05-02  Bruno Haible  <bruno@clisp.org>
27743
27744         wcwidth: Declare also when it's aliased.
27745         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
27746         macro.
27747
27748 2010-05-02  Bruno Haible  <bruno@clisp.org>
27749
27750         Fix regression from 2010-04-25.
27751         * gnulib-tool (func_modules_transitive_closure): Check the status of
27752         all modules, not only of the tests that are of the form foo-tests where
27753         foo is a module.
27754
27755 2010-05-02  Bruno Haible  <bruno@clisp.org>
27756
27757         wctob: Work around nasty Cygwin 1.7.2 bug.
27758         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
27759         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
27760
27761 2010-05-01  Bruno Haible  <bruno@clisp.org>
27762
27763         fpurge: Sharper test.
27764         * tests/test-fpurge.c (main): Add one more ftell check.
27765         * modules/fpurge-tests (Depends-on): Add ftell.
27766         Suggested by Eric Blake.
27767
27768 2010-05-01  Bruno Haible  <bruno@clisp.org>
27769
27770         ftello: Another test.
27771         * tests/test-ftello3.c: New file.
27772         * modules/ftello-tests (Files): Add it.
27773         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
27774         MOSTLYCLEANFILES.
27775
27776         ftell: Another test.
27777         * tests/test-ftell3.c: New file.
27778         * modules/ftell-tests (Files): Add it.
27779         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
27780         MOSTLYCLEANFILES.
27781
27782 2010-05-01  Bruno Haible  <bruno@clisp.org>
27783
27784         ftell, ftello: Work around Solaris bug.
27785         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
27786         * lib/ftello.c: Include stdio-impl.h.
27787         (ftello): On Solaris, when _IOWRT is set, compute the result without
27788         looking at _IOREAD.
27789         * modules/ftello (Files): Add lib/stdio-impl.h.
27790         * doc/posix-functions/ftell.texi: Mention Solaris bug.
27791         * doc/posix-functions/ftello.texi: Likewise.
27792         Reported by Eric Blake.
27793
27794 2010-05-01  Bruno Haible  <bruno@clisp.org>
27795
27796         freading: Adapt to special meaning of _IOREAD flag on Solaris.
27797         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
27798         the _IOWRT flag is also set.
27799
27800 2010-05-01  Bruno Haible  <bruno@clisp.org>
27801
27802         Fix doc about a HP-UX stdio bug.
27803         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
27804         * doc/posix-functions/ftello.texi: Likewise.
27805
27806 2010-05-01  Bruno Haible  <bruno@clisp.org>
27807
27808         lseek test: Fix failure on Solaris.
27809         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
27810         output.
27811
27812 2010-04-30  Jim Meyering  <meyering@redhat.com>
27813
27814         bootstrap: don't ignore failure to generate po*/Makevars
27815         * build-aux/bootstrap (with_gettext): Don't ignore failure
27816         to create po/Makevars or runtime-po/Makevars.
27817
27818 2010-04-29  Eric Blake  <eblake@redhat.com>
27819
27820         headers: relax license to LGPLv2+
27821         * modules/fcntl-h (License): Relax license.
27822         * modules/getopt-posix (License): Likewise.
27823         * modules/locale (License): Likewise.
27824         * modules/math (License): Likewise.
27825         * modules/pty (License): Likewise.
27826         * modules/sched (License): Likewise.
27827         * modules/search (License): Likewise.
27828         * modules/spawn (License): Likewise.
27829         * modules/stdarg (License): Likewise.
27830         * modules/sysexits (License): Likewise.
27831
27832 2010-04-29  Jim Meyering  <meyering@redhat.com>
27833
27834         inttypes: relax license to LGPLv2+
27835         * modules/inttypes (License): Relax license.
27836
27837 2010-04-29  Simon Josefsson  <simon@josefsson.org>
27838
27839         * top/maint.mk (indent): Run twice to produce idempotent results.
27840
27841 2010-04-28  Bruno Haible  <bruno@clisp.org>
27842
27843         getdate: Generate getdate.c in the source directory.
27844         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
27845         MOSTLYCLEANFILES.
27846         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
27847
27848 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
27849
27850         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
27851         is not declared as a const *; avoid warnings in that case.
27852
27853 2010-04-28  Eric Blake  <eblake@redhat.com>
27854
27855         canonicalize-lgpl: avoid compiler warning
27856         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
27857         declaration' / 'extraneous semicolon' warning with some compilers.
27858         Reported by Andreas Gruenbacher.
27859
27860 2010-04-28  Jim Meyering  <meyering@redhat.com>
27861
27862         init.sh: ensure a more reliable exit status when exiting via trap
27863         * tests/init.sh (setup_): Don't rely on $? in signal handler.
27864         Inspired by patches from Dmitry V. Levin.
27865         Also trap on signal 3 (SIGQUIT).
27866
27867 2010-04-27  Bruno Haible  <bruno@clisp.org>
27868
27869         Update doc about utimes().
27870         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
27871         'utimens' module.
27872         Reported by Andreas Gruenbacher <agruen@suse.de>.
27873
27874 2010-04-27  Eric Blake  <eblake@redhat.com>
27875
27876         full-read, full-write: relax license
27877         * modules/full-read (License): Drop to LGPLv2+.
27878         * modules/full-write (License): Likewise.
27879         * modules/safe-read (License): Likewise.
27880         * modules/safe-write (License): Likewise.
27881
27882         pthread: mention library for linking
27883         * modules/pthread (Link): Mention $(LIB_PTHREAD).
27884
27885 2010-04-27  Jim Meyering  <meyering@redhat.com>
27886
27887         maint.mk: fix a bug introduced in last change
27888         * top/maint.mk (gl_assured_headers_): Now that all names are on
27889         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
27890         is not anchored to end of word, it should be adequate.
27891
27892         maint.mk: avoid side-effect in latest syntax-check
27893         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
27894         to run commands via $(shell...), and hence to incur cost only when
27895         the new rule is actually run.
27896
27897         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
27898         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
27899         and use that to create a regexp used to detect all #if HAVE_..._H uses.
27900         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
27901         (gl_assured_headers_, az_, AZ_): Define.
27902         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
27903
27904 2010-04-26  Jim Meyering  <jim@meyering.net>
27905             Bruno Haible  <bruno@clisp.org>
27906
27907         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
27908         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
27909         Prompted by an exchange with Gilles Espinasse.
27910
27911 2010-04-26  Jim Meyering  <meyering@redhat.com>
27912
27913         git-version-gen: aesthetic tweak
27914         * build-aux/git-version-gen: Use "$nl" rather than a literal,
27915         so that the command remains on a single line.
27916
27917 2010-04-26  Eric Blake  <eblake@redhat.com>
27918
27919         git-version-gen: allow use on EBCDIC hosts
27920         * build-aux/git-version-gen (dirty): Use literal rather than tying
27921         ourselves to ascii.
27922         Reported by Steve Goetze.
27923
27924 2010-04-25  Bruno Haible  <bruno@clisp.org>
27925
27926         netdb: Add support for GNULIB_POSIXCHECK.
27927         * lib/netdb.in.h: Include warn-on-use.h.
27928         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
27929         functions are used when GNULIB_POSIXCHECK is defined and the
27930         getaddrinfo module is not in use.
27931         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
27932         freeaddrinfo, gai_strerror, getnameinfo are declared.
27933         * modules/netdb (Depends-on): Add warn-on-use.
27934         (Makefile.am): Include warn-on-use.h in netdb.h.
27935
27936 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
27937
27938         build: avoid "make check" failure without .git/ directory
27939         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
27940         there is no .git/ directory.
27941
27942 2010-04-25  Bruno Haible  <bruno@clisp.org>
27943
27944         ptsname: Fix misuse of ttyname_r.
27945         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
27946         of errno.
27947
27948 2010-04-25  Bruno Haible  <bruno@clisp.org>
27949
27950         ttyname_r: Make it work on Solaris 10.
27951         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
27952         if the system function has the POSIX declaration. Test whether the
27953         function fails if the buffer is less than 128 bytes large.
27954         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
27955         system's ttyname_r function. Provide a reasonably large buffer.
27956         * modules/ttyname_r (Depends-on): Add extensions.
27957         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
27958
27959 2010-04-25  Bruno Haible  <bruno@clisp.org>
27960
27961         Use the 'extensions' module for some more functions on Solaris.
27962         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
27963         module.
27964         * doc/posix-functions/ctime_r.texi: Likewise.
27965         * doc/posix-functions/getgrgid_r.texi: Likewise.
27966         * doc/posix-functions/getgrnam_r.texi: Likewise.
27967         * doc/posix-functions/getpwnam_r.texi: Likewise.
27968         * doc/posix-functions/getpwuid_r.texi: Likewise.
27969         * doc/posix-functions/readdir_r.texi: Likewise.
27970         * doc/posix-functions/sigwait.texi: Likewise.
27971         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
27972         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
27973
27974 2010-04-25  Bruno Haible  <bruno@clisp.org>
27975
27976         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
27977         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
27978         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
27979         * lib/ttyname_r.c: Include <limits.h>.
27980         (ttyname_r): Define using the system's ttyname_r function, if it exists
27981         and not on Solaris.
27982         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
27983         set.
27984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
27985         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
27986         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
27987         Reported by Simon Josefsson.
27988
27989 2010-04-25  Bruno Haible  <bruno@clisp.org>
27990
27991         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
27992         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
27993         * doc/posix-functions/ctime_r.texi: Likewise.
27994         * doc/posix-functions/getgrgid_r.texi: Likewise.
27995         * doc/posix-functions/getgrnam_r.texi: Likewise.
27996         * doc/posix-functions/getlogin_r.texi: Likewise.
27997         * doc/posix-functions/getpwnam_r.texi: Likewise.
27998         * doc/posix-functions/getpwuid_r.texi: Likewise.
27999         * doc/posix-functions/readdir_r.texi: Likewise.
28000         * doc/posix-functions/sigwait.texi: Likewise.
28001         * doc/posix-functions/ttyname_r.texi: Likewise.
28002         Reported by Simon Josefsson.
28003
28004 2010-04-25  Bruno Haible  <bruno@clisp.org>
28005
28006         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
28007         * gnulib-tool (func_usage): Document that --with-*-tests options apply
28008         also to --create-testdir.
28009         (func_acceptable): Don't consider the status of *-tests modules here.
28010         (func_modules_transitive_closure): Consider it here, before including a
28011         test module.
28012         (func_import, func_create_testdir): Set inc_all_direct_tests,
28013         inc_all_indirect_tests.
28014         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
28015         --create-testdir and --create-megatestdir.
28016
28017 2010-04-25  Bruno Haible  <bruno@clisp.org>
28018
28019         gnulib-tool: Add --without-*-tests options.
28020         * gnulib-tool (func_usage): Document the --without-*-tests options.
28021         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
28022         excl_unportable_tests): New variables.
28023         Fail if they are specified with --import or --update.
28024         (func_acceptable): Respect the excl_*_tests variables.
28025         (func_import): Set the excl_*_tests variables to empty.
28026
28027 2010-04-25  Simon Josefsson  <simon@josefsson.org>
28028             Bruno Haible  <bruno@clisp.org>
28029
28030         Work around a MacOS X 10.4 bug with openpty.
28031         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
28032         * tests/test-openpty.c (main): Close the master side explicitly.
28033
28034 2010-04-25  Bruno Haible  <bruno@clisp.org>
28035
28036         strnlen: Fix a C++ test error on MacOS X and Solaris.
28037         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
28038         the function is not declared.
28039         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
28040         Simon Josefsson.
28041
28042 2010-04-24  Bruno Haible  <bruno@clisp.org>
28043
28044         Avoid a gcc warning.
28045         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
28046         of correct type for %08lx directive.
28047         Reported by Eric Blake.
28048
28049 2010-04-24  Bruno Haible  <bruno@clisp.org>
28050
28051         vasnprintf: Correct errno value in case of out-of-memory.
28052         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
28053         or sprintf. Use the errno value from SNPRINTF or sprintf.
28054         Reported by Ian Beckwith <ianb@erislabs.net>.
28055
28056 2010-04-24  Bruno Haible  <bruno@clisp.org>
28057
28058         ansi-c++-opt: Find correct compiler when cross-compiling.
28059         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
28060         AC_CHECK_PROGS.
28061         Reported by Simon Josefsson.
28062
28063 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
28064
28065         vc-list-files: Add support for subversion
28066         * build-aux/vc-list-files: Use "svn list" to generate the list of
28067         files controlled by subversion.
28068
28069 2010-04-23  Jim Meyering  <meyering@redhat.com>
28070
28071         vc-list-files tests: convert to use init.sh
28072         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
28073         path_prepend_.
28074         Use Exit, not exit.
28075         Use skip_ rather than open coding it.
28076         Remove trap set-up and compare definitions.
28077         * tests/test-vc-list-files-git.sh: Likewise.
28078         * modules/vc-list-files-tests (Files): Add tests/init.sh.
28079
28080 2010-04-22  Simon Josefsson  <simon@josefsson.org>
28081
28082         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
28083         backup files.
28084
28085 2010-04-21  Simon Josefsson  <simon@josefsson.org>
28086
28087         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
28088
28089 2010-04-20  Eric Blake  <eblake@redhat.com>
28090
28091         tests: be robust to ignored SIGPIPE
28092         * tests/test-select-in.sh: Consume all output.
28093         * tests/test-lseek.sh: Check correct exit status, while avoiding
28094         EPIPE.
28095
28096 2010-04-20  Simon Josefsson  <simon@josefsson.org>
28097             Bruno Haible  <bruno@clisp.org>
28098
28099         visibility: Don't use -fvisibility if it leads to a warning.
28100         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
28101         yes, don't pretend that visibility works if it leads to a warning.
28102         Reported by Mike Gran <spk121@yahoo.com>.
28103
28104 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
28105
28106         * build-aux/bootstrap: Use "git -h" for testing for supported options
28107         instead of "git --help".  The short-form option only shows a summary,
28108         and doesn't layout the full man page.  Grep for the full option name
28109         in the summary, too.
28110
28111 2010-04-19  Bruno Haible  <bruno@clisp.org>
28112
28113         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
28114         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
28115         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
28116         mention of RELOCATABLE_STRIP.
28117         Reported by Sylvain Beucler <beuc@beuc.net>.
28118
28119 2010-04-19  Bruno Haible  <bruno@clisp.org>
28120
28121         * lib/diffseq.h: Fix typo in comment.
28122         Reported by Eric Blake.
28123
28124 2010-04-19  Bruno Haible  <bruno@clisp.org>
28125
28126         ioctl: Move autoconf macro to a .m4 file.
28127         * m4/ioctl.m4: New file, extracted from modules/ioctl.
28128         * modules/ioctl (Files): Add it.
28129         (configure.ac): Simply invoke gl_FUNC_IOCTL.
28130         Reported by Ian Beckwith <ianb@erislabs.net>.
28131
28132 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
28133             Bruno Haible  <bruno@clisp.org>
28134
28135         diffseq: Accommodate use-case with abstract arrays.
28136         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
28137         is not defined.
28138         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
28139         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
28140
28141 2010-04-18  Bruno Haible  <bruno@clisp.org>
28142
28143         * doc/posix-headers/stdbool.texi: More precise wording.
28144
28145 2010-04-17  Jim Meyering  <meyering@redhat.com>
28146
28147         maint.mk: use gnu-style indentation in an embedded perl script
28148         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
28149         Rename variable: s/two/last_two_bytes/
28150
28151 2010-04-16  Eric Blake  <eblake@redhat.com>
28152
28153         test-stdbool: skip test that fails with Solaris CC
28154         * tests/test-stdbool.c (f): Skip test that causes compilation
28155         error under buggy C++ compiler.
28156         * lib/stdbool.in.h: Document the limitation.
28157         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
28158
28159         setenv: allow compilation with C++
28160         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
28161         register keyword.
28162
28163         stdint: allow test to pass with C++
28164         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
28165
28166         getopt: allow compilation with C++
28167         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
28168         struct.
28169         * lib/getopt.c (_getopt_internal_r): Use correct type.
28170         Reported by Dagobert Michelson, via Joel E. Denny.
28171
28172 2010-04-16  Bruno Haible  <bruno@clisp.org>
28173
28174         Override netdb.h always.
28175         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
28176         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
28177         Reported by Ludovic Courtès <ludo@gnu.org>.
28178
28179 2010-04-15  Bruno Haible  <bruno@clisp.org>
28180
28181         openpty: Fix mistake from 2010-03-21.
28182         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
28183         Reported by Simon Josefsson.
28184
28185 2010-04-15  Eric Blake  <eblake@redhat.com>
28186
28187         test-forkpty: fix expected signature
28188         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
28189         Reported by Simon Josefsson.
28190
28191 2010-04-15  Jim Meyering  <meyering@redhat.com>
28192
28193         maint.mk: texinfo_suffix_re_: correct the default regexp
28194         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
28195
28196         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
28197         make it configurable via texinfo_suffix_re_.
28198
28199 2010-04-14  Eric Blake  <eblake@redhat.com>
28200
28201         strtok_r: relax license to LGPLv2+
28202         * modules/strtok_r (License): Relax license.
28203         Reported by Matthias Bolte.
28204
28205 2010-04-14  Simon Josefsson  <simon@josefsson.org>
28206
28207         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
28208         version 1.4.4 by default instead of requiring the libgcrypt
28209         version used during build.  This makes it possible to use the
28210         application with older but still binary compatible libgcrypt
28211         versions.
28212
28213 2010-04-13  Eric Blake  <eblake@redhat.com>
28214
28215         getopt-gnu: match recent glibc fixes and posix ruling
28216         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
28217         '+' handling, when requesting extensions.
28218         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
28219         'W;' handling.
28220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
28221         * doc/posix-functions/getopt.texi (getopt): Document this.
28222         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28223         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28224         Likewise.
28225
28226         getopt: merge bug fixes from glibc
28227         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
28228         diagnostics.  Honor '+:' correctly.  Reject ';'.
28229
28230         getopt-posix: detect MacOS bug
28231         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
28232         optind when missing a required argument.
28233         * doc/posix-functions/getopt.texi (getopt): Document the bug.
28234         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28235         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28236         Likewise.
28237
28238         getopt-posix: avoid spurious failure on Solaris
28239         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
28240         an indicator that setting optind=1 is sufficient for reset.
28241
28242         getopt-posix: avoid spurious failure on FreeBSD
28243         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
28244         in POSIX mode, since the m4 test uses it.
28245
28246         gnulib-tool: silence warning on BSD sh
28247         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
28248
28249 2010-04-13  Jim Meyering  <meyering@redhat.com>
28250
28251         doc: users.txt: GNU patch now uses gnulib
28252         * users.txt: Add patch.
28253
28254 2010-04-12  Jim Meyering  <meyering@redhat.com>
28255
28256         maint.mk: generate more concise timing data for syntax-check rules
28257         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
28258         " done" from each line that reports a syntax-check test duration.
28259
28260 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
28261
28262         git-version-gen: use "git update-index..." rather than "git status"
28263         * build-aux/git-version-gen: Use git update-index --refresh, not
28264         "git status".  With some versions of git, "git status" would fail
28265         to update the index and result in an unwarranted "-dirty" suffix.
28266
28267 2010-04-11  Jim Meyering  <meyering@redhat.com>
28268
28269         openat: correct formatting (no semantic change)
28270         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
28271         Suggested by Bruno Haible.
28272
28273 2010-04-11  Bruno Haible  <bruno@clisp.org>
28274
28275         Stricter declaration checking in testdirs.
28276         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28277         If for_tests is true, augment AM_CPPFLAGS to define
28278         GNULIB_STRICT_CHECKING.
28279         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
28280         GNULIB_STRICT_CHECKING is defined, verify that the function is
28281         declared.
28282
28283 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
28284             Bruno Haible  <bruno@clisp.org>
28285
28286         libunistring: Improve configure output.
28287         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
28288         Don't say "consider installing GNU libunistring" when checking again
28289         with libiconv.
28290
28291 2010-04-11  Bruno Haible  <bruno@clisp.org>
28292
28293         libunistring: Correct value of $LTLIBUNISTRING.
28294         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
28295         correct the value of $LTLIBUNISTRING.
28296
28297 2010-04-11  Bruno Haible  <bruno@clisp.org>
28298
28299         havelib: Add static libraries to LIBS in the right order.
28300         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
28301         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
28302
28303 2010-04-11  Bruno Haible  <bruno@clisp.org>
28304
28305         libunistring: Detect libunistring also when it depends on libiconv.
28306         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
28307         the second AC_LIB_HAVE_LINKFLAGS invocation.
28308
28309 2010-04-11  James Youngman  <jay@gnu.org>
28310
28311         close-stream: declare local scalars to be "const"
28312         * lib/close-stream.c (close_stream): Make boolean variables const
28313         to document the fact that we set but do not change them.
28314
28315 2010-04-11  Bruno Haible  <bruno@clisp.org>
28316
28317         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
28318
28319 2010-04-11  Jim Meyering  <meyering@redhat.com>
28320
28321         maint.mk: don't include dist-check.mk
28322         * top/maint.mk: Remove bogus include directive.
28323
28324         maint.mk: improve empty-line-at-EOF check
28325         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
28326         solution, rather than tail+Perl-based one.  The latter would read
28327         a few kilobytes from the end of each file, and did not handle empty
28328         files properly.
28329
28330         maint.mk: print the elapsed time for each syntax-check rule
28331         * top/maint.mk (sc_m_rules_): Save start time in a file.
28332         (sc_z_rules_): New rules: remove temp file and print elapsed time.
28333         (local-check): Interpose the .z rules
28334
28335 2010-04-11  Jim Meyering  <meyering@redhat.com>
28336
28337         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
28338         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
28339         empty file with one that ends in an empty line.
28340
28341 2010-04-10  Bruno Haible  <bruno@clisp.org>
28342
28343         mkdir: Make it work on mingw64.
28344         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
28345         * lib/mkdir.c: Update comment.
28346         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
28347
28348 2010-04-10  Bruno Haible  <bruno@clisp.org>
28349
28350         Don't override improved macro from newer autoconf.
28351         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
28352         autoconf >= 2.62.
28353         Reported by Joel E. Denny <jdenny@clemson.edu>.
28354
28355 2010-04-10  Jim Meyering  <meyering@redhat.com>
28356
28357         maint.mk: new syntax-check rule: prohibit empty lines at end of file
28358         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
28359
28360         maint.mk: correct a diagnostic
28361         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
28362         in diagnostic; now use $prohibit.
28363
28364 2010-04-10  Bruno Haible  <address@hidden>
28365
28366         fchownat: Fix a C++ test error on Solaris 8.
28367         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
28368         the function does not exist.
28369
28370 2010-04-10  Bruno Haible  <bruno@clisp.org>
28371
28372         vasnprintf: Add more tests.
28373         * tests/test-vasnprintf-posix.c: Include <errno.h>.
28374         (test_function): Test converting an invalid wide string.
28375
28376         vasnprintf: Correct handling of unconvertible wide string arguments.
28377         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
28378         VASNPRINTF.
28379         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
28380         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
28381         smaller than the expected maximum need for the directive. Set errno to
28382         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
28383         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
28384         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
28385         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
28386         * modules/vasnprintf (Files): Add m4/printf.m4.
28387         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28388
28389 2010-04-10  Bruno Haible  <bruno@clisp.org>
28390
28391         vasnprintf: Fix crash in %ls directive.
28392         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
28393         string is passed as argument to %ls, with no precision and no width.
28394         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28395
28396 2010-04-10  Bruno Haible  <bruno@clisp.org>
28397
28398         vasnprintf: Fix multiple test failures on mingw.
28399         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
28400         _snprintf, or snwprintf, not _snwprintf.
28401
28402 2010-04-10  Bruno Haible  <bruno@clisp.org>
28403
28404         write: Fix a C++ test error on mingw.
28405         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
28406
28407 2010-04-10  Bruno Haible  <bruno@clisp.org>
28408
28409         vasnprintf test: Reduce code duplication.
28410         * tests/test-vasnprintf.c (test_function): New function, extracted from
28411         test_vasnprintf.
28412         (test_vasnprintf, test_asnprintf): Invoke it.
28413
28414 2010-04-10  Bruno Haible  <bruno@clisp.org>
28415
28416         strnlen: Fix warning in C++ mode on MacOS X.
28417         * lib/string.in.h (strnlen): Use the modern idiom.
28418         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
28419         defining strnlen as a macro already in <config.h>.
28420         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28421         REPLACE_STRNLEN.
28422         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
28423         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28424
28425 2010-04-08  James Youngman  <jay@gnu.org>
28426
28427         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
28428         the example.
28429
28430 2010-04-09  Jim Meyering  <meyering@redhat.com>
28431
28432         maint.mk: print better diagnostic when there is no $(_hv_file)
28433         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
28434         announce that when $(_hv_file) (aka help-version) does not exist.
28435
28436         init.sh: run tr in the "C" locale to avoid multibyte interpretation
28437         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
28438         not try to interpret its random input bytes.  Jarno Rajahalme reported
28439         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
28440         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
28441         (mktempd_): Likewise, just in case.
28442
28443         ftruncate: add two years to projected module removal date: 2012
28444         * m4/ftruncate.m4: Adjust comments.
28445
28446         ftruncate: mark module as obsolete; even MinGW provides it, now
28447         * modules/ftruncate (Status): Obsolete.
28448         (Notice): Say that.
28449         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
28450         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
28451
28452 2010-04-08  Bruno Haible  <bruno@clisp.org>
28453
28454         Fix side effects from tests-related modules.
28455         * modules/dprintf-posix (Comment): New section.
28456         * modules/fprintf-posix (Comment): Likewise.
28457         * modules/obstack-printf-posix (Comment): Likewise.
28458         * modules/printf-posix (Comment): Likewise.
28459         * modules/snprintf-posix (Comment): Likewise.
28460         * modules/sprintf-posix (Comment): Likewise.
28461         * modules/vasnprintf-posix (Comment): Likewise.
28462         * modules/vasprintf-posix (Comment): Likewise.
28463         * modules/vdprintf-posix (Comment): Likewise.
28464         * modules/vfprintf-posix (Comment): Likewise.
28465         * modules/vprintf-posix (Comment): Likewise.
28466         * modules/vsnprintf-posix (Comment): Likewise.
28467         * modules/vsprintf-posix (Comment): Likewise.
28468         * modules/xprintf-posix (Comment): Likewise.
28469         * modules/xvasprintf-posix (Comment): Likewise.
28470         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
28471         * modules/floorf-tests (Depends-on): Likewise.
28472         * modules/round-tests (Depends-on): Likewise.
28473         * modules/roundf-tests (Depends-on): Likewise.
28474         * modules/trunc-tests (Depends-on): Likewise.
28475         * modules/truncf-tests (Depends-on): Likewise.
28476         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
28477         'fprintf-posix' module is not present.
28478         * tests/test-floorf2.c (check): Likewise.
28479         * tests/test-trunc2.c (check): Likewise.
28480         * tests/test-truncf2.c (check): Likewise.
28481         * tests/test-round2.c (equal): Likewise.
28482         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28483
28484 2010-04-07  Karl Berry  <karl@gnu.org>
28485
28486         * config/srclist.txt,
28487         * config/srclistvars.sh,
28488         * config/srclist-update: doc fixes.
28489
28490 2010-04-07  Jim Meyering  <meyering@redhat.com>
28491
28492         maint.mk: add a PATH crosschecking syntax-check rule
28493         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
28494         Useful if you use a test like the one in help-version (coreutils,
28495         diffutils, grep, gzip) that ensures $(VERSION) matches what is
28496         printed by prog --version.
28497
28498 2010-04-06  Bruno Haible  <bruno@clisp.org>
28499
28500         Fix link error on mingw.
28501         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
28502         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
28503
28504 2010-04-06  Bruno Haible  <bruno@clisp.org>
28505
28506         Assume rmdir exists.
28507         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
28508
28509 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
28510
28511         doc: update users.txt
28512         * users.txt: Add gcal.
28513
28514 2010-04-06  Jim Meyering  <meyering@redhat.com>
28515
28516         init.sh: simply unset TMPDIR rather than risking env -i
28517         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
28518         although it probably works fine on all Unix-based systems, some
28519         systems (Cygwin?) cannot tolerate a totally cleared environment.
28520         Suggestion from Eric Blake.
28521
28522 2010-04-06  Jim Meyering  <meyering@redhat.com>
28523
28524         init.sh: portability fix: use env's POSIX-specified -i option not -u
28525         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
28526         than unportable env -u.  Solaris 5.11's env lacks support for -u.
28527
28528 2010-04-05  Bruno Haible  <bruno@clisp.org>
28529
28530         btowc: Work around Cygwin 1.7.2 bug.
28531         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
28532         does not map NUL to 0.
28533         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
28534
28535 2010-04-05  Bruno Haible  <bruno@clisp.org>
28536
28537         Make the multithread modules work on Cygwin 1.7.2.
28538         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
28539         imported symbols can be declared weak, so that it returns "no" on
28540         Cygwin 1.7.2.
28541
28542 2010-04-05  Bruno Haible  <bruno@clisp.org>
28543
28544         Use the module 'strncat'.
28545         * modules/unistr/u8-strncat (Depends-on): Add strncat.
28546
28547         Tests for module 'strncat'.
28548         * modules/strncat-tests: New file.
28549         * tests/test-strncat.c: New file.
28550
28551         New module 'strncat'.
28552         * lib/string.in.h (strncat): New declaration.
28553         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
28554         * m4/strncat.m4: New file, based on m4/memchr.m4.
28555         * modules/strncat: New file.
28556         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
28557         is declared.
28558         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
28559         REPLACE_STRNCAT.
28560         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
28561         REPLACE_STRNCAT.
28562         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
28563         module.
28564         * tests/test-string-c++.cc: Check signature of strncat.
28565
28566 2010-04-05  Jim Meyering  <meyering@redhat.com>
28567
28568         xstrtoumax-tests: convert to use init.sh
28569         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
28570         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28571         Use Exit, not exit.
28572         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28573
28574         xstrtoimax-tests: convert to use init.sh
28575         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
28576         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28577         Use Exit, not exit.
28578         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28579
28580 2010-04-05  Bruno Haible  <bruno@clisp.org>
28581
28582         sys_socket: Avoid #define replacements in C++ mode.
28583         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
28584         warning to the function if possible, rather than #defining the symbol
28585         to a dysfunctional alias.
28586
28587 2010-04-05  Bruno Haible  <bruno@clisp.org>
28588
28589         fseeko: Fix C++ test error on mingw.
28590         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
28591         gl_FUNC_FSEEKO.
28592         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
28593         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
28594         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
28595         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
28596
28597 2010-04-05  Bruno Haible  <bruno@clisp.org>
28598
28599         duplocale: Improve test output.
28600         * tests/test-duplocale.c (main): Print reason for skipped test.
28601
28602 2010-04-05  Bruno Haible  <bruno@clisp.org>
28603
28604         Assume rmdir exists.
28605         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
28606         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
28607
28608 2010-04-05  Bruno Haible  <bruno@clisp.org>
28609
28610         Fix link error on Solaris 8 with cc.
28611         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
28612
28613 2010-04-05  Bruno Haible  <bruno@clisp.org>
28614
28615         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
28616         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
28617
28618 2010-04-05  Bruno Haible  <bruno@clisp.org>
28619
28620         vasprintf: Update documentation.
28621         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
28622
28623 2010-04-05  Bruno Haible  <bruno@clisp.org>
28624
28625         ptsname: Improve test.
28626         * tests/test-ptsname.c (main): Also try the various master names of BSD
28627         systems.
28628
28629 2010-04-05  Bruno Haible  <bruno@clisp.org>
28630
28631         memchr: Avoid a possible C++ test error.
28632         * lib/string.in.h (memchr): Provide declaration if function is missing.
28633         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
28634         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
28635         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
28636         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
28637
28638 2010-04-05  Bruno Haible  <bruno@clisp.org>
28639
28640         strtok_r: Improve idiom.
28641         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
28642         AC_LIBOBJ is used.
28643
28644 2010-04-05  Bruno Haible  <bruno@clisp.org>
28645
28646         strdup: Improve idiom.
28647         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
28648         AC_LIBOBJ is used.
28649         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
28650         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
28651         when AC_LIBOBJ is used.
28652
28653 2010-04-05  Bruno Haible  <bruno@clisp.org>
28654
28655         mbsinit, mbrtowc, wcrtomb: Improve idioms.
28656         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
28657         don't set REPLACE_MBSINIT to 1.
28658         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
28659         don't set REPLACE_MBRTOWC to 1.
28660         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
28661         exist, don't set REPLACE_MBSRTOWCS to 1.
28662         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
28663         exist, don't set REPLACE_MBSNRTOWCS to 1.
28664         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
28665         don't set REPLACE_WCRTOMB to 1.
28666         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
28667         exist, don't set REPLACE_WCSRTOMBS to 1.
28668         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
28669         exist, don't set REPLACE_WCSNRTOMBS to 1.
28670
28671 2010-04-05  Bruno Haible  <bruno@clisp.org>
28672
28673         ldexpl: Improve idiom.
28674         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
28675         make sure to set HAVE_DECL_LDEXPL to 0.
28676
28677 2010-04-05  Jim Meyering  <meyering@redhat.com>
28678
28679         xstrtol-tests: convert to use init.sh
28680         * modules/xstrtol-tests (Files): Add tests/init.sh.
28681         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28682         Use Exit, not exit.
28683         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28684
28685         atexit-tests: convert to use init.sh
28686         * modules/atexit-tests (Files): Add tests/init.sh.
28687         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28688         Use Exit, not exit.
28689         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28690
28691         init.sh: fix typo
28692         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
28693
28694         init.sh: make it easier for a test script to write to the tty, ...
28695         when using automake's parallel-tests mode.
28696         * tests/init.sh (stderr_fileno_): Define overridable variable.
28697         (warn_): New function, to use it.
28698         (fail_, skip_, framework_failure_): Use warn_.
28699
28700 2010-04-04  Bruno Haible  <bruno@clisp.org>
28701
28702         btowc: Avoid warning.
28703         * lib/btowc.c: Include <stdlib.h>.
28704         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
28705
28706 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
28707             Bruno Haible  <bruno@clisp.org>
28708
28709         wchar: Port to NetBSD 1.5.
28710         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
28711         * lib/wctype.in.h (WEOF): Likewise.
28712
28713 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
28714             Bruno Haible  <bruno@clisp.org>
28715
28716         Port extended stdio to NetBSD 1.5.
28717         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
28718         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
28719         older.
28720
28721 2010-04-04  Bruno Haible  <bruno@clisp.org>
28722
28723         string: Remove unused substitution.
28724         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
28725         HAVE_DECL_STRERROR.
28726         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
28727
28728 2010-04-04  Bruno Haible  <bruno@clisp.org>
28729
28730         strtod: Avoid a possible C++ test error.
28731         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
28732         set REPLACE_STRTOD.
28733
28734 2010-04-04  Bruno Haible  <bruno@clisp.org>
28735
28736         strerror: Update documentation.
28737         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
28738
28739 2010-04-04  Bruno Haible  <bruno@clisp.org>
28740
28741         stdio: Fix some C++ test errors on Solaris 8 with GCC.
28742         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
28743         _GL_CXXALIAS_SYS_CAST.
28744
28745 2010-04-04  Bruno Haible  <bruno@clisp.org>
28746
28747         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
28748         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
28749         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
28750         REPLACE_FREXPL to 1.
28751         * doc/posix-functions/frexpl.texi: Update documentation.
28752
28753 2010-04-04  Bruno Haible  <bruno@clisp.org>
28754
28755         math: Fix some C++ test errors on Solaris 8 and Cygwin.
28756         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
28757
28758 2010-04-04  Bruno Haible  <bruno@clisp.org>
28759
28760         Implement nanosleep for native Windows.
28761         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
28762
28763 2010-04-04  Bruno Haible  <bruno@clisp.org>
28764
28765         math: Fix some C++ test errors on Solaris 8.
28766         * lib/math.in.h (truncf, trunc): Use simpler idiom.
28767
28768 2010-04-04  Bruno Haible  <bruno@clisp.org>
28769
28770         math: Fix some C++ test errors on Cygwin.
28771         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
28772         truncl): Provide declaration if the system does not have it.
28773         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
28774         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
28775         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
28776         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
28777         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
28778         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
28779         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
28780         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
28781         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
28782         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
28783         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
28784         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
28785         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
28786         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
28787         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
28788         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
28789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
28790         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
28791         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
28792         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
28793         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
28794         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
28795
28796 2010-04-04  Bruno Haible  <bruno@clisp.org>
28797
28798         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
28799         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
28800         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
28801         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28802         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
28803         * m4/isinf.m4 (gl_ISINF): Likewise.
28804         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28805
28806 2010-04-04  Bruno Haible  <bruno@clisp.org>
28807
28808         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
28809         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28810
28811 2010-04-04  Bruno Haible  <bruno@clisp.org>
28812
28813         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
28814         * modules/tmpfile (configure.ac): Update.
28815
28816         tmpfile: Fix C++ test error on mingw.
28817         * lib/stdio.in.h (tmpfile): New declaration.
28818         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
28819         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
28820         * modules/tmpfile (Depends-on): Add stdio.
28821         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
28822         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
28823         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
28824         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
28825         REPLACE_TMPFILE.
28826         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
28827
28828 2010-04-04  Bruno Haible  <bruno@clisp.org>
28829
28830         ioctl: Fix C++ test error on mingw.
28831         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
28832         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
28833         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
28834
28835 2010-04-03  Bruno Haible  <bruno@clisp.org>
28836
28837         wcwidth: Fix C++ test error on mingw.
28838         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
28839         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
28840         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
28841
28842 2010-04-03  Bruno Haible  <bruno@clisp.org>
28843
28844         nanosleep: Fix C++ test error on mingw.
28845         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
28846         * lib/time.in.h (nanosleep): Use modern idiom.
28847         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
28848         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
28849         REPLACE_NANOSLEEP to 1.
28850         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
28851         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
28852
28853 2010-04-03  Bruno Haible  <bruno@clisp.org>
28854
28855         strptime: Fix C++ test error on mingw.
28856         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
28857         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
28858         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
28859         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
28860         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
28861         not REPLACE_STRPTIME.
28862         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
28863         REPLACE_STRPTIME.
28864
28865 2010-04-03  Bruno Haible  <bruno@clisp.org>
28866
28867         timegm: Fix C++ test error on mingw.
28868         * lib/time.in.h (timegm): Use modern idiom.
28869         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
28870         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
28871         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
28872         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
28873
28874 2010-04-03  Bruno Haible  <bruno@clisp.org>
28875
28876         timegm: Assume declaration if function exists.
28877         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
28878         if it exists. Don't clobber ac_cv_func_timegm.
28879
28880 2010-04-03  Bruno Haible  <bruno@clisp.org>
28881
28882         time_r: Fix C++ test error on mingw.
28883         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
28884         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
28885         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
28886         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
28887         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
28888
28889 2010-04-03  Bruno Haible  <bruno@clisp.org>
28890
28891         time_r: Minor updates.
28892         * modules/time_r (Description): Mention the provided functions.
28893         * lib/time_r.c: Don't include <string.h>.
28894         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
28895         * doc/posix-functions/localtime_r.texi: Likewise.
28896
28897 2010-04-03  Bruno Haible  <bruno@clisp.org>
28898
28899         time: Fix regression introduced on 2010-03-08.
28900         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
28901         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
28902
28903 2010-04-03  Jim Meyering  <meyering@redhat.com>
28904
28905         maint.mk: don't silently disable project-specific syntax-check rules
28906         * top/maint.mk (_prohibit_regexp): Define, to help people realize
28907         that they need to convert their project-specific syntax-check rules
28908         to use the new _sc_search_regexp.
28909
28910 2010-04-03  Bruno Haible  <bruno@clisp.org>
28911
28912         fchdir: Fix regression introduced on 2010-03-08.
28913         * lib/unistd.in.h (fchdir): Fix declaration.
28914         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
28915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
28916         REPLACE_FCHDIR.
28917         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
28918         REPLACE_FCHDIR.
28919
28920 2010-04-03  Bruno Haible  <bruno@clisp.org>
28921
28922         getpagesize: Fix C++ test error on mingw.
28923         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
28924         system does not declare the function.
28925         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
28926         declared.
28927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28928         HAVE_DECL_GETPAGESIZE.
28929         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
28930
28931 2010-04-03  Bruno Haible  <bruno@clisp.org>
28932
28933         stdio: Make C++ tests work on mingw.
28934         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
28935         does not declare the function.
28936
28937 2010-04-03  Bruno Haible  <bruno@clisp.org>
28938
28939         ftello: Fix C++ test error on mingw.
28940         * lib/stdio.in.h (ftello): Use modern idiom.
28941         * lib/ftello.c (ftello): Renamed from rpl_ftello.
28942         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
28943         is missing and that it needs to be replaced.
28944         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
28945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
28946         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
28947
28948 2010-04-03  Bruno Haible  <bruno@clisp.org>
28949
28950         fseeko: Fix C++ test error on mingw.
28951         * lib/stdio.in.h (fseeko): Use modern idiom.
28952         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
28953         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
28954         is missing and that it needs to be replaced.
28955         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
28956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
28957         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
28958
28959 2010-04-03  Bruno Haible  <bruno@clisp.org>
28960
28961         mkstemp: Fix C++ test error on mingw.
28962         * lib/stdlib.in.h (mkstemp): Use modern idiom.
28963         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
28964         function is missing and that it needs to be replaced.
28965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
28966         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
28967
28968 2010-04-03  Bruno Haible  <bruno@clisp.org>
28969
28970         stpncpy: Fix C++ test error on mingw.
28971         * lib/string.in.h (stpncpy): Use modern idiom.
28972         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
28973         function is missing and that it needs to be replaced.
28974         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28975         REPLACE_STPNCPY.
28976         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
28977
28978 2010-04-03  Bruno Haible  <bruno@clisp.org>
28979
28980         sys_stat: Fix C++ test error on mingw.
28981         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
28982         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
28983
28984 2010-04-03  Bruno Haible  <bruno@clisp.org>
28985
28986         pty: Update doc.
28987         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
28988
28989 2010-04-03  Bruno Haible  <bruno@clisp.org>
28990
28991         unistd: Fix C++ test error on mingw.
28992         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
28993
28994 2010-04-03  Bruno Haible  <bruno@clisp.org>
28995
28996         Update doc regarding mingw.
28997         * doc/glibc-functions/openpty.texi: Update regarding mingw.
28998         * doc/glibc-functions/login_tty.texi: Likewise.
28999         * doc/glibc-functions/forkpty.texi: Likewise.
29000
29001 2010-04-03  Bruno Haible  <bruno@clisp.org>
29002
29003         stdlib: Avoid compilation failure of c-strtold on mingw.
29004         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
29005
29006 2010-04-03  Bruno Haible  <bruno@clisp.org>
29007
29008         locale: Make C++ tests work on Cygwin and mingw.
29009         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
29010         cannot provide the function.
29011         Reported by Simon Josefsson.
29012
29013 2010-04-03  Bruno Haible  <bruno@clisp.org>
29014
29015         localename: Port to MacOS X 10.6.
29016         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
29017         memory layout of the locales in MacOS X 10.6 as well.
29018         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
29019
29020 2010-04-02  Bruno Haible  <bruno@clisp.org>
29021
29022         gnulib-tool: Ensure that long-running tests are executed last.
29023         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
29024         running tests after the one for the other tests.
29025
29026 2010-04-02  Bruno Haible  <bruno@clisp.org>
29027
29028         gnulib-tool: Ensure the tests in the main directory are executed first.
29029         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
29030         start with the current directory.
29031
29032 2010-04-02  Bruno Haible  <bruno@clisp.org>
29033
29034         Tests for module 'havelib', moved here from GNU gettext.
29035         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
29036         modifications.
29037         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
29038         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
29039         with modifications.
29040         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
29041         modifications.
29042         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
29043         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
29044         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
29045         with modifications.
29046         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
29047         with modifications.
29048         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
29049         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
29050         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
29051         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
29052         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
29053         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
29054         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
29055         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
29056         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
29057         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
29058         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
29059         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
29060         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
29061         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
29062         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
29063         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
29064         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
29065         with modifications.
29066         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
29067         with modifications.
29068         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
29069         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
29070         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
29071         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
29072         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
29073         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
29074         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
29075         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
29076         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
29077         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
29078         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
29079         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
29080         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
29081         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
29082         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
29083         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
29084         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
29085         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
29086         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
29087         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
29088         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
29089         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
29090         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
29091         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
29092         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
29093         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
29094         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
29095         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
29096         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
29097         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
29098         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
29099         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
29100         * tests/havelib/rpathx/rpathx.c: New file, from
29101         gettext/autoconf-lib-link.
29102         * tests/havelib/rpathx/Makefile.am: New file, from
29103         gettext/autoconf-lib-link.
29104         * tests/havelib/rpathx/configure.ac: New file, from
29105         gettext/autoconf-lib-link with modifications.
29106         * tests/havelib/rpathy/rpathy.c: New file, from
29107         gettext/autoconf-lib-link.
29108         * tests/havelib/rpathy/Makefile.am: New file, from
29109         gettext/autoconf-lib-link.
29110         * tests/havelib/rpathy/configure.ac: New file, from
29111         gettext/autoconf-lib-link with modifications.
29112         * tests/havelib/rpathz/rpathz.c: New file, from
29113         gettext/autoconf-lib-link.
29114         * tests/havelib/rpathz/Makefile.am: New file, from
29115         gettext/autoconf-lib-link.
29116         * tests/havelib/rpathz/configure.ac: New file, from
29117         gettext/autoconf-lib-link with modifications.
29118         * tests/havelib/rpathlx/usex.c: New file, from
29119         gettext/autoconf-lib-link.
29120         * tests/havelib/rpathlx/Makefile.am: New file, from
29121         gettext/autoconf-lib-link.
29122         * tests/havelib/rpathlx/configure.ac: New file, from
29123         gettext/autoconf-lib-link with modifications.
29124         * tests/havelib/rpathly/usey.c: New file, from
29125         gettext/autoconf-lib-link.
29126         * tests/havelib/rpathly/Makefile.am: New file, from
29127         gettext/autoconf-lib-link.
29128         * tests/havelib/rpathly/configure.ac: New file, from
29129         gettext/autoconf-lib-link with modifications.
29130         * tests/havelib/rpathlz/usez.c: New file, from
29131         gettext/autoconf-lib-link.
29132         * tests/havelib/rpathlz/Makefile.am: New file, from
29133         gettext/autoconf-lib-link.
29134         * tests/havelib/rpathlz/configure.ac: New file, from
29135         gettext/autoconf-lib-link with modifications.
29136         * tests/havelib/rpathlyx/usey.c: New file, from
29137         gettext/autoconf-lib-link.
29138         * tests/havelib/rpathlyx/Makefile.am: New file, from
29139         gettext/autoconf-lib-link.
29140         * tests/havelib/rpathlyx/configure.ac: New file, from
29141         gettext/autoconf-lib-link with modifications.
29142         * tests/havelib/rpathlzyx/usez.c: New file, from
29143         gettext/autoconf-lib-link.
29144         * tests/havelib/rpathlzyx/Makefile.am: New file, from
29145         gettext/autoconf-lib-link.
29146         * tests/havelib/rpathlzyx/configure.ac: New file, from
29147         gettext/autoconf-lib-link with modifications.
29148         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
29149         with modifications.
29150
29151 2010-04-02  Bruno Haible  <bruno@clisp.org>
29152
29153         gnulib-tool: Create distributed built sources also for the tests.
29154         * gnulib-tool (func_create_testdir): Also generate distributed built
29155         sources in the tests directory.
29156
29157 2010-04-02  Bruno Haible  <bruno@clisp.org>
29158
29159         gnulib-tool: Obey user's environment variables.
29160         * gnulib-tool (func_create_testdir): When creating built sources,
29161         respect the environment variables for autoconf, automake, etc. given by
29162         the user.
29163
29164 2010-04-02  Bruno Haible  <bruno@clisp.org>
29165
29166         gnulib-tool: Provide the value of --m4-base to modules.
29167         * gnulib-tool (func_import, func_create_testdir): Emit a definition
29168         of gl_m4_base.
29169
29170 2010-04-02  Eric Blake  <eblake@redhat.com>
29171
29172         maint.mk: fix some fallout
29173         * NEWS: Document the incompatible change, and its effect on cfg.mk.
29174         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
29175
29176 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29177
29178         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
29179         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
29180         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
29181         (sc_cast_of_x_alloc_return_value): Likewise.
29182         (sc_cast_of_alloca_return_value): Likewise.
29183         (sc_space_tab): Likewise.
29184         (sc_prohibit_atoi_atof): Likewise.
29185         (sc_prohibit_magic_number_exit): Likewise.
29186         (sc_error_exit_success): Likewise.
29187         (sc_file_system): Likewise.
29188         (sc_prohibit_have_config_h): Likewise.
29189         (sc_require_config_h): Likewise.
29190         (sc_prohibit_HAVE_MBRTOWC): Likewise.
29191         (sc_obsolete_symbols): Likewise.
29192         (sc_changelog): Likewise.
29193         (sc_program_name): Likewise.
29194         (sc_the_the): Likewise.
29195         (sc_trailing_blank): Likewise.
29196         (sc_two_space_separator_in_usage): Likewise.
29197         (sc_useless_cpp_parens): Likewise.
29198         (sc_GPL_version): Likewise.
29199         (sc_GFDL_version): Likewise.
29200         (sc_texinfo_acronym): Likewise.
29201         (sc_prohibit_cvs_keyword): Likewise.
29202         (sc_prohibit_stat_st_blocks): Likewise.
29203         (sc_prohibit_S_IS_definition): Likewise.
29204         (sc_redundant_const): Likewise.
29205         (sc_makefile_TAB_only_indentation): Likewise.
29206         (sc_m4_quote_check): Likewise.
29207         (sc_makefile_path_separator_check): Likewise.
29208         (sc_copyright_check): Likewise.
29209         (sc_Wundef_boolean): Likewise.
29210         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29211
29212         maint.mk: match 0 or more whitespace-before-function-call '('
29213         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
29214         that have zero or two-and-more spaces between the function name
29215         and the open parenthesis.
29216         (sc_error_message_warn_fatal): Likewise.
29217         (sc_error_message_uppercase): Likewise.
29218         (sc_error_message_period): Likewise.
29219
29220 2010-03-31  Eric Blake  <eblake@redhat.com>
29221
29222         maint.mk: check for [ as well as test
29223         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
29224         Based on a libvirt report by Matthias Bolte.
29225
29226         gnumakefile: don't squelch _version output
29227         * top/GNUmakefile (_version): Create one-shot dependency rather
29228         than using $(shell) when version must be regenerated.
29229         (_autoreconf): Run verbosely, by default.
29230
29231         sys_time: avoid compiler warnings
29232         * lib/sys_time.in.h (includes): Ensure gcc pragma is
29233         unconditional, fixing regression from 2010-03-29.
29234         Reported by Simon Josefsson.
29235
29236 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29237
29238         maint.mk: s/_header_without_use/_sc_header_without_use/
29239         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
29240         (sc_prohibit_assert_without_use): Use the new name.
29241         (sc_prohibit_close_stream_without_use): Likewise.
29242         (sc_prohibit_getopt_without_use): Likewise.
29243         (sc_prohibit_quotearg_without_use): Likewise.
29244         (sc_prohibit_quote_without_use): Likewise.
29245         (sc_prohibit_long_options_without_use): Likewise.
29246         (sc_prohibit_inttostr_without_use): Likewise.
29247         (sc_prohibit_ignore_value_without_use): Likewise.
29248         (sc_prohibit_error_without_use): Likewise.
29249         (sc_prohibit_xalloc_without_use): Likewise.
29250         (sc_prohibit_hash_without_use): Likewise.
29251         (sc_prohibit_hash_pjw_without_use): Likewise.
29252         (sc_prohibit_safe_read_without_use): Likewise.
29253         (sc_prohibit_argmatch_without_use): Likewise.
29254         (sc_prohibit_canonicalize_without_use): Likewise.
29255         (sc_prohibit_root_dev_ino_without_use): Likewise.
29256         (sc_prohibit_openat_without_use): Likewise.
29257         (sc_prohibit_c_ctype_without_use): Likewise.
29258         (sc_prohibit_signal_without_use): Likewise.
29259         (sc_prohibit_intprops_without_use): Likewise.
29260
29261 2010-03-30  Eric Blake  <eblake@redhat.com>
29262
29263         maint: improve module indicators
29264         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
29265         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
29266         columns, and avoid extra macro expansion.
29267
29268         fdopendir: work around FreeBSD bug
29269         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
29270         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
29271         * modules/dirent (Makefile.am): Substitute it.
29272         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
29273         declaration.
29274         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
29275         fix.
29276         Reported by Christian Weisgerber <naddy@mips.inka.de>.
29277
29278 2010-03-29  Bruno Haible  <bruno@clisp.org>
29279
29280         Emit #pragma system_header after the inclusion guard, not before.
29281         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
29282         guard that spans the entire file, not before. This enables an
29283         optimization in GCC's preprocessor.
29284         * lib/ctype.in.h: Likewise.
29285         * lib/dirent.in.h: Likewise.
29286         * lib/errno.in.h: Likewise.
29287         * lib/float.in.h: Likewise.
29288         * lib/getopt.in.h: Likewise.
29289         * lib/iconv.in.h: Likewise.
29290         * lib/langinfo.in.h: Likewise.
29291         * lib/locale.in.h: Likewise.
29292         * lib/math.in.h: Likewise.
29293         * lib/netdb.in.h: Likewise.
29294         * lib/netinet_in.in.h: Likewise.
29295         * lib/pty.in.h: Likewise.
29296         * lib/sched.in.h: Likewise.
29297         * lib/se-selinux.in.h: Likewise.
29298         * lib/search.in.h: Likewise.
29299         * lib/spawn.in.h: Likewise.
29300         * lib/stdarg.in.h: Likewise.
29301         * lib/stdint.in.h: Likewise.
29302         * lib/string.in.h: Likewise.
29303         * lib/strings.in.h: Likewise.
29304         * lib/sys_file.in.h: Likewise.
29305         * lib/sys_ioctl.in.h: Likewise.
29306         * lib/sys_time.in.h: Likewise.
29307         * lib/sys_times.in.h: Likewise.
29308         * lib/sys_utsname.in.h: Likewise.
29309         * lib/sys_wait.in.h: Likewise.
29310         * lib/sysexits.in.h: Likewise.
29311         * lib/wctype.in.h: Likewise.
29312
29313 2010-03-28  James Youngman  <jay@gnu.org>
29314
29315         save-cwd: don't leak a file descriptor when the caller execs.
29316         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
29317         saved file descriptor.
29318         * modules/save-cwd (Depends-on): Depend on cloexec.
29319
29320 2010-03-29  Bruno Haible  <bruno@clisp.org>
29321
29322         Remove vestiges of fts-lgpl module.
29323         * lib/fts_.h: Assume GNULIB_FTS is 1.
29324         * lib/fts.c: Likewise.
29325         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
29326
29327 2010-03-28  Bruno Haible  <bruno@clisp.org>
29328
29329         Fix definition of tests witness macro.
29330         * gnulib-tool (func_import): Fix definition of witness macro.
29331
29332 2010-03-28  Bruno Haible  <bruno@clisp.org>
29333
29334         Fix ioctl's protoype on glibc systems.
29335         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
29336         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
29337         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
29338         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
29339         signature. If not, arrange to replace the ioctl function.
29340         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29341         REPLACE_IOCTL.
29342         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
29343         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
29344         Reported by Ludovic Courtès <ludo@gnu.org>.
29345
29346 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
29347
29348         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
29349         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
29350         made it so grep -r --include=GLOB* ... did not work.
29351
29352 2010-03-26  Jim Meyering  <meyering@redhat.com>
29353             Eric Blake  <eblake@redhat.com>
29354
29355         maint.mk: prohibit use of test's -o and -a operators
29356         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
29357
29358 2010-03-28  Bruno Haible  <bruno@clisp.org>
29359
29360         Remove unused GNULIB_XYZ macro definitions.
29361         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
29362         invocation.
29363
29364 2010-03-28  Bruno Haible  <bruno@clisp.org>
29365
29366         Mark privileged tests modules.
29367         * modules/idpriv-drop-tests (Status): New section.
29368         * modules/idpriv-droptemp-tests (Status): New section.
29369
29370 2010-03-28  Bruno Haible  <bruno@clisp.org>
29371
29372         Split C++ tests into separate tests modules.
29373         * modules/dirent-c++-tests: New file, extracted from
29374         modules/dirent-tests.
29375         * modules/dirent-tests: Depend on it.
29376         * modules/fcntl-h-c++-tests: New file, extracted from
29377         modules/fcntl-h-tests.
29378         * modules/fcntl-h-tests: Depend on it.
29379         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
29380         * modules/glob-tests: Depend on it.
29381         * modules/iconv-h-c++-tests: New file, extracted from
29382         modules/iconv-h-tests.
29383         * modules/iconv-h-tests: Depend on it.
29384         * modules/langinfo-c++-tests: New file, extracted from
29385         modules/langinfo-tests.
29386         * modules/langinfo-tests: Depend on it.
29387         * modules/locale-c++-tests: New file, extracted from
29388         modules/locale-tests.
29389         * modules/locale-tests: Depend on it.
29390         * modules/math-c++-tests: New file, extracted from modules/math-tests.
29391         * modules/math-tests: Depend on it.
29392         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
29393         * modules/pty-tests: Depend on it.
29394         * modules/search-c++-tests: New file, extracted from
29395         modules/search-tests.
29396         * modules/search-tests: Depend on it.
29397         * modules/signal-c++-tests: New file, extracted from
29398         modules/signal-tests.
29399         * modules/signal-tests: Depend on it.
29400         * modules/spawn-c++-tests: New file, extracted from
29401         modules/spawn-tests.
29402         * modules/spawn-tests: Depend on it.
29403         * modules/stdio-c++-tests: New file, extracted from
29404         modules/stdio-tests.
29405         * modules/stdio-tests: Depend on it.
29406         * modules/stdlib-c++-tests: New file, extracted from
29407         modules/stdlib-tests.
29408         * modules/stdlib-tests: Depend on it.
29409         * modules/string-c++-tests: New file, extracted from
29410         modules/string-tests.
29411         * modules/string-tests: Depend on it.
29412         * modules/sys_ioctl-c++-tests: New file, extracted from
29413         modules/sys_ioctl-tests.
29414         * modules/sys_ioctl-tests: Depend on it.
29415         * modules/sys_select-c++-tests: New file, extracted from
29416         modules/sys_select-tests.
29417         * modules/sys_select-tests: Depend on it.
29418         * modules/sys_socket-c++-tests: New file, extracted from
29419         modules/sys_socket-tests.
29420         * modules/sys_socket-tests: Depend on it.
29421         * modules/sys_stat-c++-tests: New file, extracted from
29422         modules/sys_stat-tests.
29423         * modules/sys_stat-tests: Depend on it.
29424         * modules/sys_time-c++-tests: New file, extracted from
29425         modules/sys_time-tests.
29426         * modules/sys_time-tests: Depend on it.
29427         * modules/time-c++-tests: New file, extracted from modules/time-tests.
29428         * modules/time-tests: Depend on it.
29429         * modules/unistd-c++-tests: New file, extracted from
29430         modules/unistd-tests.
29431         * modules/unistd-tests: Depend on it.
29432         * modules/wchar-c++-tests: New file, extracted from
29433         modules/wchar-tests.
29434         * modules/wchar-tests: Depend on it.
29435         * modules/wctype-c++-tests: New file, extracted from
29436         modules/wctype-tests.
29437         * modules/wctype-tests: Depend on it.
29438         Reported by Simon Josefsson.
29439
29440 2010-03-28  Bruno Haible  <bruno@clisp.org>
29441
29442         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
29443         * gnulib-tool (func_exists_module): New function, extracted from
29444         func_verify_module.
29445         (func_verify_module): Use it.
29446         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
29447         'foo' only if 'foo' exists.
29448         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
29449         module.
29450
29451 2010-03-28  Bruno Haible  <bruno@clisp.org>
29452
29453         gnulib-tool: Add support for special categories of tests.
29454         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
29455         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
29456         (func_usage): Document them.
29457         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
29458         inc_unportable_tests, inc_all_tests): New variables.
29459         (func_acceptable): Consider these variables.
29460         (func_modules_transitive_closure): Make it work when the 'Status' field
29461         consists of multiple words.
29462         (func_import): Store and restore the values of inc_cxx_tests,
29463         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
29464         inc_all_tests in gnulib-comp.m4.
29465         (func_create_testdir): Set inc_all_tests to true.
29466         * doc/gnulib.texi (Extra tests modules): New section.
29467         Suggested by Jim Meyering.
29468
29469 2010-03-28  Bruno Haible  <bruno@clisp.org>
29470
29471         ansi-c++-opt: Allow turning off the C++ build by default.
29472         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
29473         gl_CXX_CHOICE_DEFAULT_NO is defined.
29474         Requested by Eric Blake.
29475
29476 2010-03-28  Bruno Haible  <bruno@clisp.org>
29477
29478         unistd: Avoid #define replacements in C++ mode.
29479         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
29480         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
29481         setsockopt, shutdown, select): In C++, attach a warning to the function
29482         if possible, rather than #defining the symbol to a dysfunctional alias.
29483         Reported by John W. Eaton <jwe@gnu.org>.
29484
29485 2010-03-28  Bruno Haible  <bruno@clisp.org>
29486
29487         Fix link errors on mingw.
29488         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
29489         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
29490         $(LIBSOCKET).
29491         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
29492         $(LIBSOCKET).
29493
29494 2010-03-28  Bruno Haible  <bruno@clisp.org>
29495             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29496
29497         lib-ignore: Determine different options for different compilers.
29498         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
29499         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
29500         Add comments.
29501         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
29502         * NEWS: Mention the change.
29503
29504 2010-03-27  Bruno Haible  <bruno@clisp.org>
29505
29506         Remove unused GNULIB_XYZ macro definitions.
29507         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
29508         * modules/fseek (configure.ac): Likewise.
29509         * modules/ioctl (configure.ac): Likewise.
29510         * modules/open (configure.ac): Likewise.
29511         * modules/stdlib-safer (configure.ac): Likewise.
29512
29513 2010-03-27  Bruno Haible  <bruno@clisp.org>
29514
29515         Add a remark about certain modules.
29516         * modules/malloc (Comment): New section.
29517         * modules/realloc (Comment): Likewise.
29518         * modules/sigpipe (Comment): Likewise.
29519
29520 2010-03-27  Bruno Haible  <bruno@clisp.org>
29521
29522         Resolve conflict between the two kinds of module indicators.
29523         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
29524         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
29525         * modules/canonicalize (configure.ac): Invoke
29526         gl_MODULE_INDICATOR_FOR_TESTS.
29527         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
29528         GNULIB_XYZ.
29529         * tests/test-dirent-c++.cc: Likewise.
29530         * tests/test-dirent-safer.c: Likewise.
29531         * tests/test-dup2.c: Likewise.
29532         * tests/test-fchdir.c: Likewise.
29533         * tests/test-fcntl-h-c++.cc: Likewise.
29534         * tests/test-getopt.c: Likewise.
29535         * tests/test-getopt.h: Likewise.
29536         * tests/test-langinfo-c++.cc: Likewise.
29537         * tests/test-locale-c++.cc: Likewise.
29538         * tests/test-math-c++.cc: Likewise.
29539         * tests/test-pty-c++.cc: Likewise.
29540         * tests/test-search-c++.cc: Likewise.
29541         * tests/test-signal-c++.cc: Likewise.
29542         * tests/test-spawn-c++.cc: Likewise.
29543         * tests/test-stdio-c++.cc: Likewise.
29544         * tests/test-stdlib-c++.cc: Likewise.
29545         * tests/test-string-c++.cc: Likewise.
29546         * tests/test-sys_ioctl-c++.cc: Likewise.
29547         * tests/test-sys_select-c++.cc: Likewise.
29548         * tests/test-sys_socket-c++.cc: Likewise.
29549         * tests/test-sys_stat-c++.cc: Likewise.
29550         * tests/test-sys_time-c++.cc: Likewise.
29551         * tests/test-time-c++.cc: Likewise.
29552         * tests/test-unistd-c++.cc: Likewise.
29553         * tests/test-wchar-c++.cc: Likewise.
29554         * tests/uninorm/test-u8-nfc.c: Likewise.
29555         * tests/uninorm/test-u8-nfd.c: Likewise.
29556         * tests/uninorm/test-u8-nfkc.c: Likewise.
29557         * tests/uninorm/test-u8-nfkd.c: Likewise.
29558         * tests/uninorm/test-u16-nfc.c: Likewise.
29559         * tests/uninorm/test-u16-nfd.c: Likewise.
29560         * tests/uninorm/test-u16-nfkc.c: Likewise.
29561         * tests/uninorm/test-u16-nfkd.c: Likewise.
29562         * tests/uninorm/test-u32-nfc.c: Likewise.
29563         * tests/uninorm/test-u32-nfc-big.c: Likewise.
29564         * tests/uninorm/test-u32-nfd.c: Likewise.
29565         * tests/uninorm/test-u32-nfd-big.c: Likewise.
29566         * tests/uninorm/test-u32-nfkc.c: Likewise.
29567         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
29568         * tests/uninorm/test-u32-nfkd.c: Likewise.
29569         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
29570         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29571
29572 2010-03-27  Bruno Haible  <bruno@clisp.org>
29573
29574         Distinguish two kinds of module indicators.
29575         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
29576         gl_MODULE_INDICATOR.
29577         (gl_MODULE_INDICATOR): New macro.
29578         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
29579         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
29580         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
29581         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
29582         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
29583         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
29584         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
29585         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
29586         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
29587         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
29588         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
29589         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
29590         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
29591         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
29592         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
29593         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
29594         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
29595         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
29596         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
29597         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
29598         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
29599         * modules/cloexec (configure.ac): Likewise.
29600         * modules/getopt-gnu (configure.ac): Likewise.
29601         * modules/uninorm/u8-normalize (configure.ac): Likewise.
29602         * modules/uninorm/u16-normalize (configure.ac): Likewise.
29603         * modules/uninorm/u32-normalize (configure.ac): Likewise.
29604         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
29605
29606 2010-03-27  Bruno Haible  <bruno@clisp.org>
29607
29608         New module description field 'Comment'.
29609         * gnulib-tool: New option --extract-comment.
29610         (func_usage): Document it.
29611         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
29612         (func_get_comment): New function.
29613         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
29614
29615 2010-03-27  Bruno Haible  <bruno@clisp.org>
29616
29617         Addendum to 2010-02-07 commit.
29618         * gnulib-tool (func_usage): Document --extract-applicability option.
29619
29620 2010-03-27  Bruno Haible  <bruno@clisp.org>
29621
29622         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
29623         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
29624         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
29625         rather than link errors.
29626
29627 2010-03-27  Bruno Haible  <bruno@clisp.org>
29628
29629         Avoid side effects from tests-related modules on the compilation of lib.
29630         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
29631         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
29632         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
29633         parameter. Emit into AM_CPPFLAGS a definition of the designated C
29634         macro.
29635         (func_import): Define a witness macro. Assign it a value that depends
29636         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
29637         tests-related modules.
29638         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
29639         Reported by Jim Meyering.
29640
29641 2010-03-27  Bruno Haible  <bruno@clisp.org>
29642
29643         Factorize common .m4 code.
29644         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
29645         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
29646         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
29647         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
29648         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
29649         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
29650         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
29651         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
29652         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
29653         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
29654         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
29655         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
29656         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
29657         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
29658         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
29659         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
29660         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
29661         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
29662         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
29663         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
29664         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
29665         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
29666         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
29667         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
29668         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
29669         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
29670         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
29671         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
29672         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
29673         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
29674         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
29675         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
29676
29677 2010-03-27  Bruno Haible  <bruno@clisp.org>
29678
29679         Fix a compilation error on Cygwin with g++ >= 4.3.
29680         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
29681         if it is undefined or if we alias it to chmod.
29682         (lstat): Don't warn about the use of this function if it is undefined
29683         or if we alias it to stat.
29684         Reported by Simon Josefsson.
29685
29686 2010-03-27  Bruno Haible  <bruno@clisp.org>
29687
29688         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
29689         * modules/getlogin (configure.ac): Update.
29690
29691         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
29692         * modules/getlogin_r (configure.ac): Update.
29693
29694         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
29695         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
29696         * modules/inet_ntop (configure.ac): Update.
29697
29698         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
29699         * modules/inet_pton (configure.ac): Update.
29700
29701         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
29702         * modules/mbslen (configure.ac): Update.
29703
29704         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
29705         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
29706         * modules/forkpty (configure.ac): Update.
29707         * modules/openpty (configure.ac): Update.
29708
29709 2010-03-26  Simon Josefsson  <simon@josefsson.org>
29710
29711         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
29712         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
29713
29714 2010-03-25  Eric Blake  <eblake@redhat.com>
29715
29716         maint: use pragma consistently across replacement headers
29717         * lib/ctype.in.h (system_header): Hoist for consistent placement.
29718         * lib/dirent.in.h (system_header): Likewise.
29719         * lib/errno.in.h (system_header): Likewise.
29720         * lib/float.in.h (system_header): Likewise.
29721         * lib/getopt.in.h (system_header): Likewise.
29722         * lib/iconv.in.h (system_header): Likewise.
29723         * lib/inttypes.in.h (system_header): Likewise.
29724         * lib/langinfo.in.h (system_header): Likewise.
29725         * lib/locale.in.h (system_header): Likewise.
29726         * lib/math.in.h (system_header): Likewise.
29727         * lib/netdb.in.h (system_header): Likewise.
29728         * lib/netinet_in.in.h (system_header): Likewise.
29729         * lib/pty.in.h (system_header): Likewise.
29730         * lib/sched.in.h (system_header): Likewise.
29731         * lib/se-selinux.in.h (system_header): Likewise.
29732         * lib/search.in.h (system_header): Likewise.
29733         * lib/spawn.in.h (system_header): Likewise.
29734         * lib/stdarg.in.h (system_header): Likewise.
29735         * lib/stdint.in.h (system_header): Likewise.
29736         * lib/string.in.h (system_header): Likewise.
29737         * lib/strings.in.h (system_header): Likewise.
29738         * lib/sys_file.in.h (system_header): Likewise.
29739         * lib/sys_ioctl.in.h (system_header): Likewise.
29740         * lib/sys_socket.in.h (system_header): Likewise.
29741         * lib/sys_times.in.h (system_header): Likewise.
29742         * lib/sys_utsname.in.h (system_header): Likewise.
29743         * lib/sys_wait.in.h (system_header): Likewise.
29744         * lib/sysexits.in.h (system_header): Likewise.
29745         * lib/unistd.in.h (system_header): Likewise.
29746         * lib/wctype.in.h (system_header): Likewise.
29747
29748         arpa/inet: fix mingw compilation warning
29749         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
29750         Reported by Matthew Bolte.
29751
29752 2010-03-25  Bruno Haible  <bruno@clisp.org>
29753
29754         Avoid collision between gnulib wrapper and libintl wrapper.
29755         * lib/printf.c (printf): Don't define if a printf wrapper is already
29756         defined in intl/printf.c.
29757         Reported by Michel Boaventura <michel@michelboaventura.com>.
29758
29759 2010-03-25  Bruno Haible  <bruno@clisp.org>
29760
29761         Use ANSI C.
29762         * lib/readutmp.h (getutent): Provide ANSI C prototype.
29763
29764 2010-03-25  Bruno Haible  <bruno@clisp.org>
29765
29766         Minor formatting changes.
29767         * lib/acosl.c: Insert space before function argument list.
29768         * lib/argz.c: Likewise.
29769         * lib/asinl.c: Likewise.
29770         * lib/expl.c: Likewise.
29771         * lib/gen-uni-tables.c: Likewise.
29772         * lib/gettext.h: Likewise.
29773         * lib/glthread/lock.h: Likewise.
29774         * lib/tanl.c: Likewise.
29775         * lib/uniname/uniname.c: Likewise.
29776         * tests/test-idpriv-drop.c: Likewise.
29777         * tests/test-idpriv-droptemp.c: Likewise.
29778         * tests/test-lock.c: Likewise.
29779         * tests/test-tls.c: Likewise.
29780         * lib/argp-help.c: Insert space before function-like macro argument
29781         list.
29782         * lib/memcmp.c: Likewise.
29783         * tests/test-base64.c: Likewise.
29784         * lib/localename.c: Insert space before sizeof's argument list.
29785         * lib/safe-alloc.h: Likewise.
29786         * lib/file-set.h: Insert space before macro argument list.
29787         * tests/test-argp.c: Likewise.
29788         * lib/argp-namefrob.h: Insert space before function parameter list.
29789         * lib/getaddrinfo.c: Likewise.
29790         * lib/netdb.in.h: Likewise.
29791         * lib/parse-duration.h: Likewise.
29792         * lib/parse-duration.c: Likewise.
29793         * lib/poll.c: Likewise.
29794         * lib/select.c: Likewise.
29795         * lib/trim.h: Likewise.
29796         * tests/test-usleep.c: Likewise.
29797         * lib/ldexpl.c: Insert space before function parameter list and before
29798         function argument list.
29799         * lib/logl.c: Likewise.
29800         * lib/sqrtl.c: Likewise.
29801         * lib/trim.c: Likewise.
29802         * lib/cosl.c: Use GNU style indentation. Insert space before function
29803         argument list.
29804         * lib/sinl.c: Likewise.
29805         * lib/tsearch.c: Insert space after 'for'.
29806         Reported by Jim Meyering.
29807
29808 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
29809
29810         * maint.mk (sc_Wundef_boolean): Check for the presence of the
29811         config header before grepping, as it's not present before
29812         autoreconf/configure are run.  Reported by Simon Josefsson.
29813
29814 2010-03-23  Bruno Haible  <bruno@clisp.org>
29815
29816         pt_chown: Make it work with automake < 1.11.
29817         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
29818         Reported by Simon Josefsson.
29819
29820 2010-03-23  Bruno Haible  <bruno@clisp.org>
29821
29822         pt_chown: Don't depend on GPLed modules.
29823         * lib/pt_chown.c: Don't include idpriv.h.
29824         (main): Don't drop privileges.
29825         * modules/pt_chown (Depends-on): Remove idpriv-drop.
29826         Reported by Simon Josefsson.
29827
29828 2010-03-24  Simon Josefsson  <simon@josefsson.org>
29829
29830         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
29831         suggestions from karl@freefriends.org (Karl Berry).
29832
29833 2010-03-22  Eric Blake  <eblake@redhat.com>
29834
29835         gethostname: further tweaks
29836         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
29837         are overriding gethostname.
29838         Suggested by Bruno Haible.
29839
29840 2010-03-21  Bruno Haible  <bruno@clisp.org>
29841
29842         Fix comments.
29843         * lib/forkpty.c (rpl_forkpty): Fix comment.
29844         * lib/openpty.c (rpl_openpty): Likewise.
29845         Reported by Eric Blake.
29846
29847 2010-03-22  Eric Blake  <eblake@redhat.com>
29848
29849         gethostname: fix build on mingw
29850         * lib/unistd.in.h (includes): Work around fact that mingw
29851         <winsock2.h> re-includes <unistd.h>, by avoiding any
29852         redeclarations if we are being included by <winsock2.h>.
29853         Reported by Matthias Bolte.
29854
29855 2010-03-21  Bruno Haible  <bruno@clisp.org>
29856
29857         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
29858         * lib/forkpty.c (forkpty): New replacement function, from glibc with
29859         modifications.
29860         * lib/pty.in.h (forkpty): Update declaration. Add comments.
29861         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
29862         provide the replacement.
29863         * modules/forkpty (Depends-on): Add openpty, login_tty.
29864         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
29865         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
29866         * doc/glibc-functions/forkpty.texi: More supported platforms.
29867         * config/srclist.txt: Add forkpty.c (commented).
29868
29869 2010-03-21  Bruno Haible  <bruno@clisp.org>
29870
29871         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
29872         (Makefile.am): Verify that PTY_LIB is defined.
29873
29874         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
29875
29876 2010-03-21  Bruno Haible  <bruno@clisp.org>
29877
29878         Tests for module 'login_tty'.
29879         * modules/login_tty-tests: New file.
29880         * tests/test-login_tty.c: New file.
29881
29882         New module 'login_tty'.
29883         * lib/login_tty.c: New file.
29884         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
29885         * modules/login_tty: New file.
29886         * doc/glibc-functions/login_tty.texi: Mention the new module.
29887
29888 2010-03-21  Bruno Haible  <bruno@clisp.org>
29889
29890         login_tty: Documentation.
29891         * doc/glibc-functions/login_tty.texi: New file.
29892         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
29893
29894 2010-03-21  Bruno Haible  <bruno@clisp.org>
29895
29896         pty: Consistent macro naming.
29897         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
29898         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
29899         * modules/pty (configure.ac): Update.
29900
29901 2010-03-21  Bruno Haible  <bruno@clisp.org>
29902
29903         Tests for openpty: Make stricter.
29904         * tests/test-openpty.c (main): Add test of canonical processing and
29905         erase.
29906         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
29907
29908         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
29909         * lib/openpty.c (openpty): New replacement function.
29910         * lib/pty.in.h: Include <termios.h>.
29911         (openpty): Update declaration. Add comments.
29912         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
29913         is not declared, arrange to provide the replacement. Check for _getpty
29914         and posix_openpt.
29915         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
29916         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
29917         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
29918         * modules/pty-tests (test_pty_c___LDADD): New variable.
29919         * doc/glibc-functions/openpty.texi: More supported platforms.
29920
29921 2010-03-21  Bruno Haible  <bruno@clisp.org>
29922
29923         setenv: Tweaks.
29924         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
29925         the test program.
29926         * doc/posix-functions/setenv.texi: Update platforms list.
29927
29928 2010-03-21  Bruno Haible  <bruno@clisp.org>
29929
29930         New module 'unlockpt'.
29931         * lib/unlockpt.c: New file, from glibc with modifications.
29932         * m4/unlockpt.m4: New file.
29933         * modules/unlockpt: New file.
29934         * lib/stdlib.in.h (unlockpt): New declaration.
29935         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
29936         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
29937         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
29938         HAVE_UNLOCKPT.
29939         * doc/posix-functions/unlockpt.texi: Mention the new module.
29940         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
29941         * config/srclist.txt: Add unlockpt.c (commented).
29942
29943 2010-03-21  Jim Meyering  <meyering@redhat.com>
29944
29945         maint.mk: prohibit inclusion of "intprops.h" without use
29946         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
29947
29948 2010-03-21  Bruno Haible  <bruno@clisp.org>
29949
29950         New module 'grantpt'.
29951         * lib/grantpt.c: New file, from glibc with modifications.
29952         * m4/grantpt.m4: New file.
29953         * modules/grantpt: New file.
29954         * lib/stdlib.in.h (grantpt): New declaration.
29955         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
29956         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
29957         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
29958         HAVE_GRANTPT.
29959         * doc/posix-functions/grantpt.texi: Mention the new module.
29960         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
29961         * config/srclist.txt: Add grantpt.c (commented).
29962
29963 2010-03-21  Bruno Haible  <bruno@clisp.org>
29964
29965         New module 'pt_chown'.
29966         * lib/pt_chown.c: New file, from glibc with modifications.
29967         * lib/pty-private.h: New file, from glibc with modifications.
29968         * modules/pt_chown: New file.
29969         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
29970
29971 2010-03-21  Bruno Haible  <bruno@clisp.org>
29972
29973         Tests for module 'ptsname'.
29974         * modules/ptsname-tests: New file.
29975         * tests/test-ptsname.c: New file.
29976
29977         New module 'ptsname'.
29978         * lib/ptsname.c: New file, from glibc with modifications.
29979         * m4/ptsname.m4: New file.
29980         * modules/ptsname: New file.
29981         * lib/stdlib.in.h (ptsname): New declaration.
29982         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
29983         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
29984         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
29985         HAVE_PTSNAME.
29986         * doc/posix-functions/ptsname.texi: Mention the new module.
29987         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
29988         * config/srclist.txt: Add ptsname.c (commented).
29989
29990 2010-03-21  Bruno Haible  <bruno@clisp.org>
29991
29992         Tests for module 'ttyname_r'.
29993         * modules/ttyname_r-tests: New file.
29994         * tests/test-ttyname_r.c: New file.
29995
29996         New module 'ttyname_r'.
29997         * lib/ttyname_r.c: New file.
29998         * m4/ttyname_r.m4: New file.
29999         * modules/ttyname_r: New file.
30000         * lib/unistd.in.h (ttyname_r): New declaration.
30001         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
30002         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
30003         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
30004         HAVE_TTYNAME_R.
30005         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
30006         * doc/posix-functions/ttyname_r.texi: Mention the new module.
30007
30008 2010-03-20  Bruno Haible  <bruno@clisp.org>
30009
30010         signal: Undefine macro definitions in C++ mode.
30011         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
30012         sigfillset): Undefine macro definitions from the system header in C++
30013         mode.
30014         Reported by John W. Eaton <jwe@gnu.org>.
30015
30016 2010-03-20  Bruno Haible  <bruno@clisp.org>
30017
30018         Ensure no #include statements inside extern "C" { ... }.
30019         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
30020         contain #include statements.
30021         * lib/time.in.h: Likewise.
30022
30023 2010-03-20  Bruno Haible  <bruno@clisp.org>
30024
30025         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
30026         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
30027         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
30028         Reported by John W. Eaton <jwe@gnu.org>.
30029
30030 2010-03-20  Bruno Haible  <bruno@clisp.org>
30031
30032         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
30033         Reported by Jim Meyering.
30034
30035 2010-03-20  Bruno Haible  <bruno@clisp.org>
30036
30037         pipe: Set errno upon failure.
30038         * lib/pipe.h: Specify that when -1 is returned, errno is set.
30039         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
30040         errno value in error message.
30041
30042 2010-03-20  Bruno Haible  <bruno@clisp.org>
30043             Jim Meyering  <meyering@redhat.com>
30044
30045         lchown: Avoid "unused variable" warning.
30046         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
30047
30048 2010-03-20  Bruno Haible  <bruno@clisp.org>
30049
30050         Work around unlink() bug on MacOS X 10.5.6.
30051         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
30052         attempting to unlink a parent directory.
30053         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
30054         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
30055         activate for the replacement function.
30056         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
30057
30058 2010-03-20  Bruno Haible  <bruno@clisp.org>
30059
30060         Fix link errors on Solaris 8.
30061         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
30062         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
30063
30064 2010-03-19  Jim Meyering  <meyering@redhat.com>
30065
30066         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
30067         The _LIBC implementation of build_range_exp correctly honors the
30068         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
30069         However, the non-_LIBC implementation would ignore that syntax-bit
30070         flag and return REG_ERANGE unconditionally.
30071         This change makes it honor that flag.
30072         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
30073         Make two pointer parameters "const".
30074         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
30075         (parse_bracket_exp): Update caller.
30076
30077         regex.m4: correct the reversed range endpoint ([b-a]) test
30078         * m4/regex.m4: When requiring that [b-a] evoke failure,
30079         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
30080         test pass once again for x86-based systems.
30081
30082 2010-03-19  Bruno Haible  <bruno@clisp.org>
30083
30084         scandir: Fix link error on Solaris 8.
30085         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
30086         macros.
30087
30088 2010-03-19  Bruno Haible  <bruno@clisp.org>
30089
30090         getusershell: Fix documentation.
30091         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
30092         module.
30093         * doc/glibc-functions/setusershell.texi: Likewise.
30094
30095         getusershell: Provide declaration, missing on Solaris 9.
30096         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
30097         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
30098         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
30099         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
30100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30101         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
30102         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
30103         HAVE_GETUSERSHELL.
30104         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
30105
30106 2010-03-19  Bruno Haible  <bruno@clisp.org>
30107
30108         wctype: Provide iswblank function.
30109         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
30110         exists and is fine.
30111         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
30112         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
30113         * tests/test-wctype.c (main): Re-enable the iswblank tests.
30114         * doc/posix-functions/iswblank.texi: Update.
30115
30116 2010-03-19  Bruno Haible  <bruno@clisp.org>
30117
30118         Tests of module 'pty' in C++ mode.
30119         * modules/pty-tests: New file.
30120         * tests/test-pty-c++.cc: New file.
30121         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30122
30123 2010-03-19  Eric Blake  <eblake@redhat.com>
30124
30125         logb: fix documentation
30126         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
30127         1.5 declaration bug.
30128
30129         forkpty, openpty: prefer glibc's const-safe prototype
30130         * lib/forkpty.c (rpl_forkpty): New file.
30131         * lib/openpty.c (rpl_openpty): Likewise.
30132         * modules/forkpty (Files): Distribute it.
30133         * modules/openpty (Files): Likewise.
30134         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
30135         check...
30136         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
30137         replacement for for non-const BSD signature.
30138         * modules/pty (Makefile.am): Substitute witnesses.
30139         * lib/pty.in.h (forkpty, openpty): Declare replacements.
30140         * tests/test-forkpty.c: Update signature check.
30141         * tests/test-openpty.c: Likewise.
30142         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
30143         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30144
30145         forkpty, openpty: split functions into new modules
30146         * modules/pty (Makefile.am): Substitute new witnesses.
30147         (Libraries): Move library detection...
30148         * modules/forkpty: ...into new module.
30149         * modules/openpty: Another new module.
30150         * modules/pty-tests: Rename and split...
30151         * modules/forkpty-tests: ...to this...
30152         * modules/openpty-tests: ...and this.
30153         * tests/test-pty.c: Rename and split...
30154         * tests/test-forkpty.c: ...to this...
30155         * tests/test-openpty.c: ...and this.
30156         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
30157         (gl_PTY): Split library searching...
30158         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
30159         (gl_FORKPTY, gl_OPENPTY): New macros.
30160         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
30161         * NEWS: Mention the split.
30162         * MODULES.html.sh (Misc): Document the modules.
30163         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
30164         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30165
30166         pty: improve replacement header
30167         * lib/pty.in.h: New file.
30168         * modules/pty (Files): Ship it.
30169         (Makefile.am): Always build replacement.
30170         * m4/pty.m4: Rename...
30171         * m4/pty_h.m4: ...to this.
30172         (gl_PTY): Modernize setting of witness macros; update check of
30173         forkpty to take proper advantage of cache.
30174         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
30175
30176         getopt: avoid compiler warning
30177         * lib/getopt.c (attribute_hidden): Remove unused macro.
30178
30179 2010-03-18  Bruno Haible  <bruno@clisp.org>
30180
30181         Fix link errors on Solaris 8.
30182         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
30183         * modules/search-tests (test_search_c___LDADD): Likewise.
30184         * modules/signal-tests (test_signal_c___LDADD): Likewise.
30185         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
30186         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
30187         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
30188         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
30189         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
30190         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
30191
30192 2010-03-18  Bruno Haible  <bruno@clisp.org>
30193
30194         Fix bug introduced on 2010-03-14.
30195         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
30196         (gl_SPAWN_H): Require it.
30197         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
30198         Reported by Simon Josefsson.
30199
30200 2010-03-18  Bruno Haible  <bruno@clisp.org>
30201
30202         Fix typo introduced on 2009-12-31.
30203         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
30204         posix_spawn_file_actions_adddup2.
30205
30206 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
30207         and Eric Blake  <eblake@redhat.com>
30208
30209         test-vc-list-files-git: make more robust
30210         * tests/test-vc-list-files-git.sh: Unset problematic environment
30211         variables.  Chain commands together.
30212
30213 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
30214
30215         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
30216         `AC_CHECK_DECL' invocation.
30217
30218 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
30219
30220         * lib/inttostr.c (inttostr): Make sure the invocation of verify
30221         appears before executable statements. Suggested by Petr Sumbera
30222         <Petr.Sumbera@Sun.COM>.
30223
30224 2010-03-14  Bruno Haible  <bruno@clisp.org>
30225
30226         * tests/test-flock.c (test_exclusive): Comment out a test that causes
30227         portability problems. Instead use a simpler test.
30228         (main): Check that invalid arguments are rejected only on Linux.
30229
30230 2010-03-14  Bruno Haible  <bruno@clisp.org>
30231
30232         Fix bug introduced on 2009-12-31.
30233         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30234         gl_PREREQ_SYS_H_WINSOCK2 always.
30235         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
30236         SYS_SOCKET_H variable.
30237         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
30238         Update comments.
30239         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
30240         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30241         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30242         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30243         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
30244
30245 2010-03-14  Bruno Haible  <bruno@clisp.org>
30246
30247         Fix values returned by sinl, cosl.
30248         * lib/trigl.h: Add specification comments.
30249         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
30250         that combines the values from the precomputed table with the values of
30251         the Chebyshev polynomials.
30252
30253 2010-03-14  Bruno Haible  <bruno@clisp.org>
30254
30255         Fix compilation error when modules 'posix_spawn[p]' are not used.
30256         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
30257         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
30258
30259 2010-03-14  Bruno Haible  <bruno@clisp.org>
30260
30261         Fix compilation error on mingw when module 'time_r' is not used.
30262         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
30263         is 1.
30264         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
30265         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
30266         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
30267         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
30268
30269 2010-03-14  Bruno Haible  <bruno@clisp.org>
30270
30271         Fix compilation error with Sun C.
30272         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
30273         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
30274         instead of GCC specific ULONG_LONG_MAX.
30275         * lib/xstrtoll.c: Likewise.
30276         * lib/xstrtoull.c: Likewise.
30277
30278 2010-03-13  Bruno Haible  <bruno@clisp.org>
30279
30280         Allow the user to disable C++ code and tests.
30281         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
30282         (gl_PROG_ANSI_CXX): Require it.
30283
30284 2010-03-13  Bruno Haible  <bruno@clisp.org>
30285
30286         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
30287         cases.
30288
30289 2010-03-13  Bruno Haible  <bruno@clisp.org>
30290
30291         Test that gnulib does not break the standard C++ headers.
30292         * tests/test-locale-c++2.cc: New file.
30293         * modules/locale-tests (Files): Add it.
30294         (Makefile.am): Compile it for test-locale-c++.
30295         * tests/test-math-c++2.cc: New file.
30296         * modules/math-tests (Files): Add it.
30297         (Makefile.am): Compile it for test-math-c++.
30298         * tests/test-signal-c++2.cc: New file.
30299         * modules/signal-tests (Files): Add it.
30300         (Makefile.am): Compile it for test-signal-c++.
30301         * tests/test-stdio-c++2.cc: New file.
30302         * modules/stdio-tests (Files): Add it.
30303         (Makefile.am): Compile it for test-stdio-c++.
30304         * tests/test-stdlib-c++2.cc: New file.
30305         * modules/stdlib-tests (Files): Add it.
30306         (Makefile.am): Compile it for test-stdlib-c++.
30307         * tests/test-string-c++2.cc: New file.
30308         * modules/string-tests (Files): Add it.
30309         (Makefile.am): Compile it for test-string-c++.
30310         * tests/test-time-c++2.cc: New file.
30311         * modules/time-tests (Files): Add it.
30312         (Makefile.am): Compile it for test-time-c++.
30313         Reported by John W. Eaton <jwe@gnu.org>.
30314
30315 2010-03-13  Bruno Haible  <bruno@clisp.org>
30316
30317         * gnulib-tool (func_usage): Clarify which options are available for
30318         --create-testdir and --create-megatestdir.
30319
30320 2010-03-13  Bruno Haible  <bruno@clisp.org>
30321
30322         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
30323         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
30324         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
30325         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
30326         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
30327         when appropriate.
30328         Reported by Jim Meyering.
30329
30330 2010-03-12  Simon Josefsson  <simon@josefsson.org>
30331
30332         * gnulib-tool (func_import): Explain origin of code.
30333
30334 2010-03-12  Bruno Haible  <bruno@clisp.org>
30335
30336         Fix problem with automake's definition of CXXLINK.
30337         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
30338         Reported by Simon Josefsson and Ludovic Courtès.
30339
30340 2010-03-12  Bruno Haible  <bruno@clisp.org>
30341
30342         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
30343         stable releases.
30344
30345 2010-03-11  Bruno Haible  <bruno@clisp.org>
30346
30347         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
30348         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
30349         whether the system provides one variant or multiple variants of the
30350         function.
30351         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
30352         C++ compilers.
30353         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
30354         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
30355         Reported by Jim Meyering.
30356
30357 2010-03-09  Simon Josefsson  <simon@josefsson.org>
30358
30359         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
30360
30361 2010-03-08  Bruno Haible  <bruno@clisp.org>
30362
30363         gnulib-tool: Add support for --libtool in --create-testdir.
30364         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
30365         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
30366
30367 2010-03-08  Eric Blake  <eblake@redhat.com>
30368
30369         gnulib-tool.texi: mention possibility of git submodule
30370         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
30371         submodules.
30372         * doc/.gitignore: Ignore another generated file.
30373
30374 2010-03-08  Karl Berry  <karl@gnu.org>
30375
30376         * doc/gnulib-tool.texi (VCS Issues): Mention third option
30377         of committing gnulib files while skipping others.
30378
30379 2010-03-07  Bruno Haible  <bruno@clisp.org>
30380
30381         Tests of module 'wctype' in C++ mode.
30382         * tests/test-wctype-c++.cc: New file.
30383         * modules/wctype-tests (Files): Add it and tests/signature.h.
30384         (Depends-on): Add ansi-c++-opt.
30385         (Makefile.am): Arrange to compile and run test-wctype-c++.
30386
30387         Tests of module 'wchar' in C++ mode.
30388         * tests/test-wchar-c++.cc: New file.
30389         * modules/wchar-tests (Files): Add it and tests/signature.h.
30390         (Depends-on): Add ansi-c++-opt.
30391         (Makefile.am): Arrange to compile and run test-wchar-c++.
30392         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
30393         gl_MODULE_INDICATOR.
30394
30395         Tests of module 'unistd' in C++ mode.
30396         * tests/test-unistd-c++.cc: New file.
30397         * modules/unistd-tests (Files): Add it and tests/signature.h.
30398         (Depends-on): Add ansi-c++-opt.
30399         (Makefile.am): Arrange to compile and run test-unistd-c++.
30400         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
30401         gl_MODULE_INDICATOR.
30402
30403         Tests of module 'time' in C++ mode.
30404         * tests/test-time-c++.cc: New file.
30405         * modules/time-tests (Files): Add it and tests/signature.h.
30406         (Depends-on): Add ansi-c++-opt.
30407         (Makefile.am): Arrange to compile and run test-time-c++.
30408         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30409
30410         Tests of module 'sys_time' in C++ mode.
30411         * tests/test-sys_time-c++.cc: New file.
30412         * modules/sys_time-tests (Files): Add it and tests/signature.h.
30413         (Depends-on): Add ansi-c++-opt.
30414         (Makefile.am): Arrange to compile and run test-sys_time-c++.
30415         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
30416         gl_MODULE_INDICATOR.
30417
30418         Tests of module 'sys_stat' in C++ mode.
30419         * tests/test-sys_stat-c++.cc: New file.
30420         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
30421         (Depends-on): Add ansi-c++-opt.
30422         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
30423         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
30424         gl_MODULE_INDICATOR.
30425
30426         Tests of module 'sys_socket' in C++ mode.
30427         * tests/test-sys_socket-c++.cc: New file.
30428         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
30429         (Depends-on): Add ansi-c++-opt.
30430         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
30431         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
30432         gl_MODULE_INDICATOR.
30433
30434         Tests of module 'sys_select' in C++ mode.
30435         * tests/test-sys_select-c++.cc: New file.
30436         * modules/sys_select-tests (Files): Add it and tests/signature.h.
30437         (Depends-on): Add ansi-c++-opt.
30438         (Makefile.am): Arrange to compile and run test-sys_select-c++.
30439         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
30440         gl_MODULE_INDICATOR.
30441
30442         Tests of module 'sys_ioctl' in C++ mode.
30443         * tests/test-sys_ioctl-c++.cc: New file.
30444         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
30445         (Depends-on): Add ansi-c++-opt.
30446         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
30447         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
30448         gl_MODULE_INDICATOR.
30449
30450         Tests of module 'string' in C++ mode.
30451         * tests/test-string-c++.cc: New file.
30452         * modules/string-tests (Files): Add it and tests/signature.h.
30453         (Depends-on): Add ansi-c++-opt.
30454         (Makefile.am): Arrange to compile and run test-string-c++.
30455         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
30456         gl_MODULE_INDICATOR.
30457
30458         Tests of module 'stdlib' in C++ mode.
30459         * tests/test-stdlib-c++.cc: New file.
30460         * modules/stdlib-tests (Files): Add it and tests/signature.h.
30461         (Depends-on): Add ansi-c++-opt.
30462         (Makefile.am): Arrange to compile and run test-stdlib-c++.
30463         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
30464         gl_MODULE_INDICATOR.
30465
30466         Tests of module 'stdio' in C++ mode.
30467         * tests/test-stdio-c++.cc: New file.
30468         * modules/stdio-tests (Files): Add it and tests/signature.h.
30469         (Depends-on): Add ansi-c++-opt.
30470         (Makefile.am): Arrange to compile and run test-stdio-c++.
30471         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
30472         gl_MODULE_INDICATOR.
30473
30474         Tests of module 'spawn' in C++ mode.
30475         * tests/test-spawn-c++.cc: New file.
30476         * modules/spawn-tests (Files): Add it and tests/signature.h.
30477         (Depends-on): Add ansi-c++-opt.
30478         (Makefile.am): Arrange to compile and run test-spawn-c++.
30479         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
30480         gl_MODULE_INDICATOR.
30481
30482         Tests of module 'signal' in C++ mode.
30483         * tests/test-signal-c++.cc: New file.
30484         * modules/signal-tests (Files): Add it and tests/signature.h.
30485         (Depends-on): Add ansi-c++-opt.
30486         (Makefile.am): Arrange to compile and run test-signal-c++.
30487         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
30488         gl_MODULE_INDICATOR.
30489
30490         Tests of module 'search' in C++ mode.
30491         * tests/test-search-c++.cc: New file.
30492         * modules/search-tests (Files): Add it and tests/signature.h.
30493         (Depends-on): Add ansi-c++-opt.
30494         (Makefile.am): Arrange to compile and run test-search-c++.
30495         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
30496         gl_MODULE_INDICATOR.
30497
30498         Tests of module 'math' in C++ mode.
30499         * tests/test-math-c++.cc: New file.
30500         * modules/math-tests (Files): Add it and tests/signature.h.
30501         (Depends-on): Add ansi-c++-opt.
30502         (Makefile.am): Arrange to compile and run test-math-c++.
30503         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30504
30505         Tests of module 'locale' in C++ mode.
30506         * tests/test-locale-c++.cc: New file.
30507         * modules/locale-tests (Files): Add it and tests/signature.h.
30508         (Depends-on): Add ansi-c++-opt.
30509         (Makefile.am): Arrange to compile and run test-locale-c++.
30510         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
30511         gl_MODULE_INDICATOR.
30512
30513         Tests of module 'langinfo' in C++ mode.
30514         * tests/test-langinfo-c++.cc: New file.
30515         * modules/langinfo-tests (Files): Add it and tests/signature.h.
30516         (Depends-on): Add ansi-c++-opt.
30517         (Makefile.am): Arrange to compile and run test-langinfo-c++.
30518         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
30519         gl_MODULE_INDICATOR.
30520
30521         Tests of module 'iconv-h' in C++ mode.
30522         * tests/test-iconv-h-c++.cc: New file.
30523         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
30524         (Depends-on): Add ansi-c++-opt.
30525         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
30526
30527         Tests of module 'glob' in C++ mode.
30528         * tests/test-glob-c++.cc: New file.
30529         * modules/glob-tests (Files): Add it.
30530         (Depends-on): Add ansi-c++-opt.
30531         (Makefile.am): Arrange to compile and run test-glob-c++.
30532
30533         Tests of module 'fcntl-h' in C++ mode.
30534         * tests/test-fcntl-h-c++.cc: New file.
30535         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
30536         (Depends-on): Add ansi-c++-opt.
30537         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
30538         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
30539         gl_MODULE_INDICATOR.
30540
30541         Tests of module 'dirent' in C++ mode.
30542         * tests/test-dirent-c++.cc: New file.
30543         * modules/dirent-tests (Files): Add it and tests/signature.h.
30544         (Depends-on): Add ansi-c++-opt.
30545         (Makefile.am): Arrange to compile and run test-dirent-c++.
30546         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30547         gl_MODULE_INDICATOR.
30548
30549         New module 'ansi-c++-opt'.
30550         * modules/ansi-c++-opt: New file.
30551         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
30552
30553         Document C++ namespace mode.
30554         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
30555
30556         wctype: Avoid #define replacements in C++ mode.
30557         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
30558         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
30559         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
30560         In C++, define a namespaced alias symbol.
30561         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
30562         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
30563         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
30564         rule.
30565
30566         wchar: Avoid #define replacements in C++ mode.
30567         * lib/wchar.in.h: Include c++defs.h.
30568         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
30569         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
30570         symbol.
30571         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
30572         * modules/wchar (Depends-on): Add c++defs.
30573         (Makefile.am): Update wchar.h rule.
30574
30575         unistd: Avoid #define replacements in C++ mode.
30576         * lib/unistd.in.h: Include c++defs.h.
30577         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
30578         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
30579         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
30580         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
30581         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
30582         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
30583         symbol.
30584         (environ): Update.
30585         * modules/unistd (Depends-on): Add c++defs.
30586         (Makefile.am): Update unistd.h rule.
30587
30588         time: Avoid #define replacements in C++ mode.
30589         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
30590         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
30591         define a namespaced alias symbol.
30592         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
30593         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
30594         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
30595         * modules/time (Depends-on): Add c++defs, warn-on-use.
30596         (Makefile.am): Update time.h rule.
30597         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
30598         * modules/nanosleep (configure.ac): Likewise.
30599         * modules/strptime (configure.ac): Likewise.
30600         * modules/timegm (configure.ac): Likewise.
30601
30602         sys_time: Avoid #define replacements in C++ mode.
30603         * lib/sys_time.in.h: Include c++defs.h.
30604         (gettimeofday): In C++, define a namespaced alias symbol.
30605         * modules/sys_time (Depends-on): Add c++defs.
30606         (Makefile.am): Update sys/time.h rule.
30607
30608         sys_stat: Avoid #define replacements in C++ mode.
30609         * lib/sys_stat.in.h: Include c++defs.h.
30610         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
30611         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
30612         namespaced alias symbol.
30613         In C++, define a namespaced alias symbol.
30614         * modules/sys_stat (Depends-on): Add c++defs.
30615         (Makefile.am): Update sys/stat.h rule.
30616
30617         sys_socket: Avoid #define replacements in C++ mode.
30618         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
30619         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
30620         definitions also when the system has a <sys/socket.h>.
30621         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30622         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
30623         In C++, define a namespaced alias symbol.
30624         * modules/sys_socket (Depends-on): Add c++defs.
30625         (Makefile.am): Update sys/socket.h rule.
30626
30627         sys_select: Avoid #define replacements in C++ mode.
30628         * lib/sys_select.in.h: Include c++defs.h. Enable the function
30629         definitions also when the system has a <sys/select.h>.
30630         (select): In C++, define a namespaced alias symbol.
30631         * modules/sys_select (Depends-on): Add c++defs.
30632         (Makefile.am): Update sys/select.h rule.
30633
30634         sys_ioctl: Avoid #define replacements in C++ mode.
30635         * lib/sys_ioctl.in.h: Include c++defs.h.
30636         (ioctl): In C++, define a namespaced alias symbol.
30637         * modules/sys_ioctl (Depends-on): Add c++defs.
30638         (Makefile.am): Update sys/ioctl.h rule.
30639
30640         string: Avoid #define replacements in C++ mode.
30641         * lib/string.in.h: Include c++defs.h.
30642         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
30643         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30644         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30645         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
30646         strsignal, strverscmp): In C++, define a namespaced alias symbol.
30647         * modules/string (Depends-on): Add c++defs.
30648         (Makefile.am): Update string.h rule.
30649
30650         stdlib: Avoid #define replacements in C++ mode.
30651         * lib/stdlib.in.h: Include c++defs.h.
30652         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
30653         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
30654         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
30655         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
30656         symbol.
30657         * modules/stdlib (Depends-on): Add c++defs.
30658         (Makefile.am): Update stdlib.h rule.
30659
30660         stdio: Avoid #define replacements in C++ mode.
30661         * lib/stdio.in.h: Include c++defs.h.
30662         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
30663         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
30664         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
30665         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
30666         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
30667         namespaced alias symbol.
30668         * modules/stdio (Depends-on): Add c++defs.
30669         (Makefile.am): Update stdio.h rule.
30670
30671         spawn: Avoid #define replacements in C++ mode.
30672         * lib/spawn.in.h: Include c++defs.h.
30673         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30674         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30675         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30676         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30677         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30678         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30679         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30680         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30681         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30682         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30683         In C++, define a namespaced alias symbol.
30684         * modules/spawn (Depends-on): Add c++defs.
30685         (Makefile.am): Update spawn.h rule.
30686
30687         signal: Avoid #define replacements in C++ mode.
30688         * lib/signal.in.h: Include c++defs.h.
30689         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30690         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
30691         namespaced alias symbol.
30692         * modules/signal (Depends-on): Add c++defs.
30693         (Makefile.am): Update signal.h rule.
30694
30695         search: Avoid #define replacements in C++ mode.
30696         * lib/search.in.h: Include c++defs.h.
30697         (_gl_search_compar_fn, _gl_search_action_fn): New types.
30698         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
30699         symbol.
30700         * modules/search (Depends-on): Add c++defs.
30701         (Makefile.am): Update search.h rule.
30702
30703         math: Avoid #define replacements in C++ mode.
30704         * lib/math.in.h: Include c++defs.h.
30705         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
30706         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
30707         trunc, truncl): In C++, define a namespaced alias symbol.
30708         * modules/math (Depends-on): Add c++defs.
30709         (Makefile.am): Update math.h rule.
30710
30711         locale: Avoid #define replacements in C++ mode.
30712         * lib/locale.in.h: Include c++defs.h.
30713         (duplocale): In C++, define a namespaced alias symbol.
30714         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
30715         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
30716         * modules/locale (Depends-on): Add c++defs.
30717         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
30718
30719         langinfo: Avoid #define replacements in C++ mode.
30720         * lib/langinfo.in.h: Include c++defs.h.
30721         (nl_langinfo): In C++, define a namespaced alias symbol.
30722         * modules/langinfo (Depends-on): Add c++defs.
30723         (Makefile.am): Update langinfo.h rule.
30724
30725         iconv-h: Avoid #define replacements in C++ mode.
30726         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
30727         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
30728         symbol.
30729         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
30730         whenever iconv is present.
30731         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
30732         (Makefile.am): Update iconv.h rule.
30733
30734         glob: Avoid #define replacements in C++ mode.
30735         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
30736         (_gl_glob_errfunc_fn): New type.
30737         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
30738         symbol.
30739         * modules/glob (Depends-on): Add c++defs, warn-on-use.
30740         (Makefile.am): Update glob.h rule.
30741
30742         fcntl-h: Avoid #define replacements in C++ mode.
30743         * lib/fcntl.in.h: Include c++defs.h.
30744         (fcntl, open, openat): In C++, define a namespaced alias symbol.
30745         * modules/fcntl-h (Depends-on): Add c++defs.
30746         (Makefile.am): Update fcntl.h rule.
30747
30748         dirent: Avoid #define replacements in C++ mode.
30749         * lib/dirent.in.h: Include c++defs.h.
30750         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
30751         namespaced alias symbol.
30752         (dirfd): Update declaration.
30753         * modules/dirent (Depends-on): Add c++defs.
30754         (Makefile.am): Update dirent.h rule.
30755
30756         ctype: Make it usable in C++ code.
30757         * lib/ctype.in.h: Include c++defs.h.
30758         (isblank): Declare as extern "C".
30759         * modules/ctype (Depends-on): Add c++defs.
30760         (Makefile.am): Update ctype.h rule.
30761
30762         New module 'c++defs'.
30763         * modules/c++defs: New file.
30764         * build-aux/c++defs.h: New file.
30765         Reported by John W. Eaton <jwe@gnu.org>.
30766
30767 2010-03-07  Bruno Haible  <bruno@clisp.org>
30768
30769         logb: Provide missing declaration for Cygwin.
30770         * lib/math.in.h (logb): New declaration.
30771         * m4/logb.m4: New file.
30772         * modules/logb (Files): Add m4/logb.m4.
30773         (Depends-on): Add math.
30774         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
30775         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
30776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
30777         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
30778         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
30779
30780 2010-03-07  Bruno Haible  <bruno@clisp.org>
30781
30782         Fix test-cond link error.
30783         * tests/test-cond.c: Include <stdio.h>.
30784
30785 2010-03-07  Bruno Haible  <bruno@clisp.org>
30786
30787         Fix test-dirent-safer link error.
30788         * modules/dirent-safer-tests (Makefile.am): Define
30789         test_dirent_safer_LDADD.
30790
30791 2010-03-07  Bruno Haible  <bruno@clisp.org>
30792
30793         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
30794         among default module list.
30795
30796 2010-03-07  Bruno Haible  <bruno@clisp.org>
30797
30798         Fix link error on platforms with GNU libiconv.
30799         * modules/unistr/u8-strcoll-tests (Makefile): Define
30800         test_u8_strcoll_LDADD.
30801         * modules/unistr/u16-strcoll-tests (Makefile): Define
30802         test_u16_strcoll_LDADD.
30803         * modules/unistr/u32-strcoll-tests (Makefile): Define
30804         test_u32_strcoll_LDADD.
30805
30806 2010-03-07  Bruno Haible  <bruno@clisp.org>
30807
30808         Use POSIX declarations for socket functions.
30809         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
30810         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
30811         rpl_sendto): Change declaration to match POSIX.
30812         * lib/connect.c (rpl_connect): Likewise.
30813         * lib/accept.c (rpl_accept): Likewise.
30814         * lib/bind.c (rpl_bind): Likewise.
30815         * lib/getpeername.c (rpl_getpeername): Likewise.
30816         * lib/getsockname.c (rpl_getsockname): Likewise.
30817         * lib/recv.c (rpl_recv): Likewise.
30818         * lib/send.c (rpl_send): Likewise.
30819         * lib/recvfrom.c (rpl_recvfrom): Likewise.
30820         * lib/sendto.c (rpl_sendto): Likewise.
30821
30822 2010-03-06  Bruno Haible  <bruno@clisp.org>
30823
30824         Clarify access, euidaccess, faccessat.
30825         * doc/posix-functions/faccessat.texi: Mention security problem under
30826         "Other problems", not "Portability problems".
30827         * doc/posix-functions/access.texi: Likewise. Mention a related security
30828         problem.
30829         * doc/glibc-functions/euidaccess.texi: Mention security problems.
30830         * lib/euidaccess.c: Add comments about platforms.
30831         * lib/unistd.in.h (access, euidaccess): Add warnings.
30832
30833 2010-03-07  Bruno Haible  <bruno@clisp.org>
30834
30835         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
30836         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
30837         (POSIX_SPAWN_SETSCHEDULER): Likewise.
30838         (POSIX_SPAWN_USEVFORK): Define in a way that works when
30839         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
30840         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
30841         declare when POSIX_SPAWN_SETSCHEDULER is zero.
30842         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
30843         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
30844         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
30845         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
30846         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
30847         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
30848         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
30849         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
30850         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
30851         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
30852         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
30853         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
30854         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
30855         Likewise.
30856         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
30857         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
30858         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
30859         Likewise.
30860         * tests/test-spawn.c (main): Make it work when
30861         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
30862
30863 2010-03-07  Bruno Haible  <bruno@clisp.org>
30864
30865         Fix incorrect Makefile.am generation in German locale.
30866         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30867         Execute sed command with character range in C locale.
30868
30869 2010-03-06  Bruno Haible  <bruno@clisp.org>
30870
30871         Tests for module 'iconv-h'.
30872         * modules/iconv-h-tests: New file.
30873         * tests/test-iconv-h.c: New file.
30874
30875         New module 'iconv-h'.
30876         * modules/iconv-h: New file.
30877         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
30878         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
30879         (configure.ac): Remove gl_ICONV_H.
30880         (Makefile.am): Remove rule for iconv.h.
30881
30882 2010-03-06  Bruno Haible  <bruno@clisp.org>
30883
30884         More consistent naming of *.m4 files.
30885         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
30886         * modules/wctype (Files): Update.
30887
30888         More consistent naming of *.m4 files.
30889         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
30890         * modules/wchar (Files): Update.
30891
30892 2010-03-06  Jim Meyering  <meyering@redhat.com>
30893
30894         euidaccess: relax license to LGPLv2+
30895         * modules/euidaccess (License): Relax to LGPLv2+.
30896
30897 2010-03-06  Bruno Haible  <bruno@clisp.org>
30898
30899         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
30900         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
30901         (Makefile.am): Augment lib_SOURCES instead.
30902
30903 2010-03-04  Jim Meyering  <meyering@redhat.com>
30904
30905         utime: remove obsolete module
30906         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
30907         unnecessary for years, and has been marked as obsolete for 10 months.
30908         * modules/utime: Remove file.
30909         * lib/utime.c: Remove file.
30910         * m4/utime.m4: Remove file.
30911         * m4/utimes-null.m4: Remove file.
30912         * doc/posix-functions/utime.texi (utime): Remove reference to
30913         the module.  Move the sole "fixed by gnulib" item into the
30914         "problems not fixed by Gnulib" list.
30915         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
30916
30917 2010-03-05  Simon Josefsson  <simon@josefsson.org>
30918
30919         * modules/exit (License): Relax license to LGPLv2+.
30920         (Status): Mark as obsolete.
30921         * NEWS: Mention deprecated 'exit' module.
30922         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
30923         of now obsolete 'exit'.
30924
30925 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30926
30927         fts-lgpl: remove unused module
30928         * modules/fts-lgpl: Remove.
30929         * MODULES.html.sh (func_all_modules): Adjust.
30930         * check-module (find_included_lib_files): Adjust.
30931         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
30932
30933 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
30934
30935         copy-acl: enhance Solaris ACL error handling
30936         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
30937         * lib/set-mode-acl.c (qset_acl): Likewise.
30938
30939 2010-03-02  Bruno Haible  <bruno@clisp.org>
30940
30941         spawn: Don't override the system defined values on FreeBSD 8.
30942         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
30943         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
30944         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
30945         if HAVE_POSIX_SPAWN is 1.
30946         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
30947
30948 2010-03-01  Bruno Haible  <bruno@clisp.org>
30949
30950         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
30951         regarding Automake.
30952
30953 2010-02-25  Bruno Haible  <bruno@clisp.org>
30954
30955         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
30956         * gnulib-tool: Define 'echo' as a function only before the ksh alias
30957         setting, not afterwards.
30958         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
30959
30960 2010-02-24  Eric Blake  <eblake@redhat.com>
30961
30962         bootstrap, git-version-gen: use timestamp
30963         * build-aux/git-version-gen (scriptversion): Force UTC.
30964         * build-aux/bootstrap (scriptversion): New variable.
30965
30966         bootstrap: allow older git
30967         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
30968         older than 1.6.4.  Requested by the libvirt project.
30969
30970 2010-02-23  Eric Blake  <eblake@redhat.com>
30971
30972         warn-on-use: work with old autoconf
30973         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
30974         AS_VAR semantics of autoconf 2.60.
30975         Reported by Bruno Haible.
30976
30977         bootstrap: improve some comments
30978         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
30979         clarification comments.
30980
30981         gettimeofday: provide correct function
30982         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
30983         when replacement is declared, otherwise provide gettimeofday.
30984         Reported by Michael Goffioul.
30985
30986 2010-02-23  Jim Meyering  <meyering@redhat.com>
30987
30988         lib-ignore: relax license to "unlimited", not LGPLv2+
30989         * modules/lib-ignore (License): Relax to "unlimited".
30990
30991 2010-02-23  Jim Meyering  <meyering@redhat.com>
30992
30993         lib-ignore: relax license to LGPLv2+
30994         * modules/lib-ignore (License): Relax to LGPLv2+.
30995
30996 2010-02-22  Eric Blake  <eblake@redhat.com>
30997
30998         lseek: avoid bash 3.2 broken pipe bug
30999         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
31000         warning from bash 3.2.
31001         Reported by Ben Pfaff, with analysis from Bruno Haible.
31002
31003         bootstrap: support non-FSF copyright holder
31004         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
31005         bootstrap.conf override of COPYRIGHT_HOLDER.
31006         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
31007
31008         bootstrap: interoperate with gettext 0.14.1
31009         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
31010
31011         bootstrap: allow for alternate submodule location
31012         * build-aux/bootstrap (gnulib_path): New variable; use instead of
31013         hardcoding submodule location.
31014         (gnulib_mk): Allow direct use of Makefile.am.
31015
31016         bootstrap: use GNULIB_SRCDIR to reduce disk usage
31017         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
31018         rather than reconfiguring where the submodule points.
31019
31020         gettimeofday: restore support for platforms that lack function
31021         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
31022         replacement if function is missing.
31023         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
31024         * modules/sys_time (Makefile.am): Substitute it.
31025         * lib/sys_time.in.h (gettimeofday): Check it.
31026         Reported by Michael Goffioul.
31027
31028 2010-02-21  Bruno Haible  <bruno@clisp.org>
31029
31030         * lib/stdio.in.h (obstack_printf): Fix typo.
31031
31032 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
31033
31034         vc-list-files: use bzr ls's -R option
31035         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
31036         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
31037
31038 2010-02-21  Jim Meyering  <meyering@redhat.com>
31039
31040         init.sh: fix EXEEXT shims to work also for names like test-prog
31041         * tests/init.sh: Re-exec a better shell, when needed.
31042         If the current shell lacks support for posix $(...), an init.sh-using
31043         test will now try to find a shell that supports that.  If EXEEXT is
31044         nonempty, we also require support for hyphen-in-alias-name and shell
31045         substitutions like ${var#glob}.  Failure to find such a shell results
31046         in a skipped test.
31047
31048 2010-02-21  Bruno Haible  <bruno@clisp.org>
31049
31050         Really work around around "broken pipe" error message from bash 3.2.
31051         * gnulib-tool (func_reset_sigpipe): Remove function.
31052         (echo): In bash 3.2, define to a function that uses printf.
31053         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
31054
31055 2010-02-20  Bruno Haible  <bruno@clisp.org>
31056
31057         Restore support for automake 1.9.6 with autoconf 2.61.
31058         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
31059         Reported by James Youngman <jay@gnu.org>.
31060
31061 2010-02-20  Bruno Haible  <bruno@clisp.org>
31062
31063         Improve *printf warning condition.
31064         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
31065         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
31066         and the function is overridden due to SIGPIPE emulation.
31067
31068 2010-02-20  Bruno Haible  <bruno@clisp.org>
31069
31070         * lib/stdio.in.h: Tweak comments.
31071
31072 2010-02-19  Bruno Haible  <bruno@clisp.org>
31073
31074         Make it easier to find modules. New gnulib-tool option '--find'.
31075         * gnulib-tool: New option --find.
31076         (func_usage): Document it.
31077         (func_sanitize_modulelist): New function, extracted from
31078         func_all_modules.
31079         (func_all_modules): Invoke it.
31080         * doc/gnulib-tool.texi (Which modules?): New node.
31081
31082 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
31083
31084         * lib/sys_select.in.h: Provide select replacement even if
31085         sys/select.h exists on a system, for Interix.
31086
31087 2010-02-18  Jim Meyering  <meyering@redhat.com>
31088
31089         init.sh: don't use $(...) just yet
31090         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
31091         to accommodate e.g., Solaris' /bin/sh.
31092
31093 2010-02-17  Bruno Haible  <bruno@clisp.org>
31094
31095         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
31096         Reported by Ludovic Courtès <ludo@gnu.org>.
31097
31098 2010-02-16  Simon Josefsson  <simon@josefsson.org>
31099
31100         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
31101         linking with -lintl.
31102
31103 2010-02-17  Simon Josefsson  <simon@josefsson.org>
31104
31105         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
31106         if not provided by the system's netdb.h.  Reported by
31107         ludo@gnu.org (Ludovic Courtès).
31108
31109 2010-02-15  Jim Meyering  <meyering@redhat.com>
31110
31111         init.sh: improve portability and efficiency
31112         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
31113         "dummy" in a for loop.
31114         Use '!', not '^' to select the complement of a character set used
31115         in a "case" statement.
31116         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
31117         Suggestions from Eric Blake.
31118
31119         init.sh: automatically accommodate programs with the .exe suffix
31120         Automatically arrange for an invocation of "prog" to execute the
31121         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
31122         may use the simpler "prog", yet still work when built on a system
31123         that requires specifying the added suffix.
31124         Do this by constructing a function named "prog" that invokes
31125         "prog.exe" for each .exe file in selected directories.
31126         * tests/init.sh (find_exe_basenames_): New function.
31127         (create_exe_shim_functions_): New function.
31128         (path_prepend_): Use it.
31129
31130         maint.mk: mark syntax-check sc_*.m rules as .PHONY
31131         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
31132         "make -t syntax-check" doesn't create a ton of sc_*.m files.
31133
31134 2010-02-14  Jim Meyering  <meyering@redhat.com>
31135
31136         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
31137         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
31138         (sc_prohibit_hash_pjw_without_use): New rule.
31139
31140         maint.mk: allow the default upload destination dir to be overridden
31141         * top/maint.mk (upload_dest_dir_): Define with a default that
31142         preserves the status quo.
31143         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
31144         Reported by Peter Simons.
31145
31146         maint.mk: prohibit inclusion of "hash.h" without_use
31147         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
31148
31149 2010-02-10  Jim Meyering  <meyering@redhat.com>
31150
31151         maint.mk: prohibit inclusion of "ignore-value.h" without_use
31152         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
31153
31154 2010-02-09  Eric Blake  <ebb9@byu.net>
31155         and Bruno Haible  <bruno@clisp.org>
31156
31157         obstack-printf-posix: ensure declaration
31158         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
31159         extracted from gl_FUNC_OBSTACK_PRINTF.
31160         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
31161         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
31162         Likewise.
31163         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
31164         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
31165         0.
31166
31167 2010-02-08  Bruno Haible  <bruno@clisp.org>
31168
31169         gnulib-tool: Fix typo in 2010-02-07 commit.
31170         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
31171         Reported by Eric Blake.
31172
31173 2010-02-07  Bruno Haible  <bruno@clisp.org>
31174
31175         gnulib-tool: Fix up caching patches.
31176         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
31177         option --no-cache. Use associative arrays when supported by the shell.
31178         (sed_comments): New variable.
31179         (modcache): Renamed from do_cache.
31180         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
31181         abbreviate unnecessarily.
31182         (have_associative): New variable.
31183         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
31184         way also for ksh and zsh.
31185         (func_init_sed_convert_to_cache_statements): New function, extracted
31186         from func_cache_lookup_module. Add support for associative arrays.
31187         Don't set the c_MODULE_cached variable here. Ignore all lines before
31188         the first field header. Remove only the final newline, not all trailing
31189         newlines. Support empty fields correctly. Limit the use of 'eval' to
31190         assignments.
31191         (func_get_description, func_get_status, func_get_notice,
31192         func_get_applicability, func_get_filelist, func_get_dependencies,
31193         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
31194         func_get_automake_snippet, func_get_include_directive,
31195         func_get_link_directive, func_get_license, func_get_maintainer):
31196         Update documentation. List the unoptimized code first. Add support for
31197         associative arrays. Limit the use of 'eval' to assignments.
31198         (func_get_applicability): Undo stylistic pessimisations.
31199         (func_get_automake_snippet, func_get_include_directive): Reduce code
31200         duplication.
31201         (func_modules_transitive_closure, func_modules_add_dummy,
31202         func_modules_notice, func_modules_to_filelist, func_add_file,
31203         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
31204         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
31205         func_create_testdir, func_create_megatestdir): Update documentation.
31206
31207 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31208
31209         * gnulib-tool (func_cache_lookup_module): Store the module name
31210         belonging to the cache variable; error out if two different
31211         module names map to the same cache variable name.
31212
31213 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31214
31215         gnulib-tool: Make caching optional.
31216         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
31217         Update matching short versions of --no-changelog.
31218         (func_usage): Update.
31219         (sed_extract_cache_prog): Renamed from ...
31220         (sed_extract_prog): ... this; revert to old extraction script.
31221         (func_get_description, func_get_status)
31222         (func_get_notice, func_get_applicability, func_get_filelist)
31223         (func_get_dependencies, func_get_autoconf_early_snippet)
31224         (func_get_autoconf_snippet, func_get_automake_snippet)
31225         (func_get_include_directive, func_get_link_directive)
31226         (func_get_license, func_get_maintainer): If $do_cache is false,
31227         use old, non-caching extraction scripts.
31228         Suggestion by Bruno Haible.
31229
31230 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31231
31232         gnulib-tool: cache module metainformation.
31233         * gnulib-tool (sed_extract_prog): Match newline before each
31234         header, and rewrite header to a shell variable suffix.
31235         (func_cache_var, func_cache_lookup_module): New functions,
31236         to turn a module name into a cache variable prefix, and to
31237         look up and cache module metainformation.
31238         (func_get_description, func_get_status)
31239         (func_get_notice, func_get_applicability, func_get_filelist)
31240         (func_get_dependencies, func_get_autoconf_early_snippet)
31241         (func_get_autoconf_snippet, func_get_automake_snippet)
31242         (func_get_include_directive, func_get_link_directive)
31243         (func_get_license, func_get_maintainer): Use
31244         func_cache_lookup_module.
31245
31246 2010-02-07  Bruno Haible  <bruno@clisp.org>
31247
31248         fnctl: Fix missing dependency.
31249         * modules/fcntl (Depends-on): Add getdtablesize.
31250         Reported by John W. Eaton <jwe@gnu.org>.
31251
31252 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31253
31254         Argp: fix recognition of short alias options.
31255
31256         * lib/argp-parse.c (convert_options): Fix improper use of
31257         `|' between character values.
31258         * tests/test-argp.c (group1_option): New alias option
31259         --read (-r).
31260         (group1_parser): Special handling for 'r'.
31261         (test15): New test case.
31262         (test_fun): Add test15.
31263         * tests/test-argp-2.sh: Update expected --help and --usage
31264         outputs.
31265
31266 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31267
31268         * tests/test-argp.c: Fix indentation.
31269
31270 2010-02-04  Eric Blake  <ebb9@byu.net>
31271
31272         gettimeofday: expose type of second argument
31273         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
31274         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
31275         * tests/test-gettimeofday.c: Use it to silence warning.
31276         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
31277         the issue.
31278
31279 2010-02-03  Jim Meyering  <meyering@redhat.com>
31280
31281         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
31282         * lib/regcomp.c (TYPE_SIGNED): Define.
31283         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
31284
31285         regcomp.c: avoid a new -Wshadow warning
31286         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
31287
31288 2010-02-01  Jim Meyering  <meyering@redhat.com>
31289
31290         removing useless parentheses in cpp #define directives
31291         For motivation, see commit c0221df4, "define STREQ(a,b)
31292         consistently, removing useless parentheses"
31293         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
31294         * lib/mountlist.c (MNT_IGNORE): Likewise.
31295         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
31296
31297 2010-02-01  Eric Blake  <ebb9@byu.net>
31298
31299         sys_time: use link-warning
31300         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
31301         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
31302         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
31303         * modules/sys_time (Depends-on): Add warn-on-use.
31304         (Makefile.am): Always build replacement.
31305         (configure.ac): Update substitutions.
31306         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
31307         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
31308         bother with SYS_TIME_H.
31309         * modules/gettimeofday (configure.ac): Declare indicator.
31310         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
31311         in use.
31312
31313         closein-tests: silence compiler warning
31314         * tests/test-closein.c (main): Ignore fread result.
31315         * modules/closein-tests (Depends-on): Add ignore-value.
31316
31317         tests: silence warning about system return
31318         * tests/test-areadlink-with-size.c (main): Ignore system result.
31319         * tests/test-areadlink.c (main): Likewise.
31320         * tests/test-areadlinkat-with-size.c (main): Likewise.
31321         * tests/test-areadlinkat.c (main): Likewise.
31322         * tests/test-canonicalize-lgpl.c (main): Likewise.
31323         * tests/test-canonicalize.c (main): Likewise.
31324         * tests/test-chown.c (main): Likewise.
31325         * tests/test-fchownat.c (main): Likewise.
31326         * tests/test-fdutimensat.c (main): Likewise.
31327         * tests/test-fstatat.c (main): Likewise.
31328         * tests/test-futimens.c (main): Likewise.
31329         * tests/test-lchown.c (main): Likewise.
31330         * tests/test-link.c (main): Likewise.
31331         * tests/test-linkat.c (main): Likewise.
31332         * tests/test-lstat.c (main): Likewise.
31333         * tests/test-mkdir.c (main): Likewise.
31334         * tests/test-mkdirat.c (main): Likewise.
31335         * tests/test-mkfifo.c (main): Likewise.
31336         * tests/test-mkfifoat.c (main): Likewise.
31337         * tests/test-mknod.c (main): Likewise.
31338         * tests/test-readlink.c (main): Likewise.
31339         * tests/test-remove.c (main): Likewise.
31340         * tests/test-rename.c (main): Likewise.
31341         * tests/test-renameat.c (main): Likewise.
31342         * tests/test-rmdir.c (main): Likewise.
31343         * tests/test-symlink.c (main): Likewise.
31344         * tests/test-symlinkat.c (main): Likewise.
31345         * tests/test-unlink.c (main): Likewise.
31346         * tests/test-unlinkat.c (main): Likewise.
31347         * tests/test-utimens.c (main): Likewise.
31348         * tests/test-utimensat.c (main): Likewise.
31349         * modules/areadlink-tests (Depends-on): Add ignore-value.
31350         * modules/areadlink-with-size-tests (Depends-on): Likewise.
31351         * modules/areadlinkat-tests (Depends-on): Likewise.
31352         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
31353         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31354         * modules/canonicalize-tests (Depends-on): Likewise.
31355         * modules/chown-tests (Depends-on): Likewise.
31356         * modules/fdutimensat-tests (Depends-on): Likewise.
31357         * modules/futimens-tests (Depends-on): Likewise.
31358         * modules/lchown-tests (Depends-on): Likewise.
31359         * modules/link-tests (Depends-on): Likewise.
31360         * modules/linkat-tests (Depends-on): Likewise.
31361         * modules/lstat-tests (Depends-on): Likewise.
31362         * modules/mkdir-tests (Depends-on): Likewise.
31363         * modules/mkfifo-tests (Depends-on): Likewise.
31364         * modules/mkfifoat-tests (Depends-on): Likewise.
31365         * modules/mknod-tests (Depends-on): Likewise.
31366         * modules/openat-tests (Depends-on): Likewise.
31367         * modules/readlink-tests (Depends-on): Likewise.
31368         * modules/remove-tests (Depends-on): Likewise.
31369         * modules/rename-tests (Depends-on): Likewise.
31370         * modules/renameat-tests (Depends-on): Likewise.
31371         * modules/rmdir-tests (Depends-on): Likewise.
31372         * modules/symlink-tests (Depends-on): Likewise.
31373         * modules/symlinkat-tests (Depends-on): Likewise.
31374         * modules/unlink-tests (Depends-on): Likewise.
31375         * modules/utimens-tests (Depends-on): Likewise.
31376         * modules/utimensat-tests (Depends-on): Likewise.
31377
31378 2010-01-31  Bruno Haible  <bruno@clisp.org>
31379
31380         Perform the same test for many <math.h> functions.
31381         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
31382         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
31383         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
31384         of gl_MATHFUNC.
31385         * modules/acos (configure.ac): Likewise.
31386         * modules/asin (configure.ac): Likewise.
31387         * modules/atan (configure.ac): Likewise.
31388         * modules/atan2 (configure.ac): Likewise.
31389         * modules/cbrt (configure.ac): Likewise.
31390         * modules/copysign (configure.ac): Likewise.
31391         * modules/cos (configure.ac): Likewise.
31392         * modules/cosh (configure.ac): Likewise.
31393         * modules/erf (configure.ac): Likewise.
31394         * modules/erfc (configure.ac): Likewise.
31395         * modules/exp (configure.ac): Likewise.
31396         * modules/fmod (configure.ac): Likewise.
31397         * modules/hypot (configure.ac): Likewise.
31398         * modules/j0 (configure.ac): Likewise.
31399         * modules/j1 (configure.ac): Likewise.
31400         * modules/jn (configure.ac): Likewise.
31401         * modules/lgamma (configure.ac): Likewise.
31402         * modules/log (configure.ac): Likewise.
31403         * modules/log10 (configure.ac): Likewise.
31404         * modules/log1p (configure.ac): Likewise.
31405         * modules/pow (configure.ac): Likewise.
31406         * modules/remainder (configure.ac): Likewise.
31407         * modules/sin (configure.ac): Likewise.
31408         * modules/sinh (configure.ac): Likewise.
31409         * modules/tan (configure.ac): Likewise.
31410         * modules/tanh (configure.ac): Likewise.
31411         * modules/y0 (configure.ac): Likewise.
31412         * modules/y1 (configure.ac): Likewise.
31413         * modules/yn (configure.ac): Likewise.
31414         Suggested by Paolo Bonzini.
31415
31416 2010-01-31  Bruno Haible  <bruno@clisp.org>
31417
31418         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
31419
31420 2010-01-31  Bruno Haible  <bruno@clisp.org>
31421
31422         Work around getdelim() bug on FreeBSD 8.0.
31423         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
31424         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
31425         not work.
31426         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
31427         is 1.
31428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
31429         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
31430         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
31431         a non-zero size.
31432         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
31433
31434 2010-01-31  Bruno Haible  <bruno@clisp.org>
31435
31436         Work around getline() bug on FreeBSD 8.0.
31437         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
31438         and a non-zero size.
31439         * tests/test-getline.c (main): Likewise.
31440         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
31441         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
31442
31443 2010-01-28  Eric Blake  <ebb9@byu.net>
31444
31445         regex: fix build failure
31446         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
31447         platforms.
31448
31449 2010-01-28  Jim Meyering  <meyering@redhat.com>
31450
31451         regex: do not ignore memory allocation failure
31452         * lib/regex_internal.c (create_cd_newstate): Detect
31453         re_node_set_init_copy failure.   Extracted from glibc commit
31454         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
31455
31456         regex: sync more white-space changes from libc
31457         * lib/regex_internal.c: White-space only changes.
31458         * lib/regexec.c: Likewise.
31459
31460         regex: add many uses of __attribute_warn_unused_result__
31461         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
31462         * lib/regexec.c: Likewise.
31463         Extracted from a messy glibc commit.
31464
31465         regcomp.c: spelling and merge-artifact from glibc
31466         * lib/regcomp.c: Merge remainder of glibc's
31467         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
31468
31469         regcomp.c: sync white-space changes from glibc
31470         * lib/regcomp.c: Merge to accommodate white space
31471         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
31472
31473         regcomp.c: do not ignore internal return values
31474         * lib/regcomp.c: Do not ignore internal return values.
31475         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
31476         but without its white-space changes and spelling fixes.
31477
31478         regex_internal.h: define __attribute_warn_unused_result__
31479         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
31480
31481         maint: add a syntax-check rule to check for vulnerable Makefile.in
31482         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
31483
31484 2010-01-27  Jim Meyering  <meyering@redhat.com>
31485
31486         ncftpput-ftp: clean up spaces
31487         * build-aux/ncftpput-ftp: Make Copyright line consistent.
31488         Remove trailing blanks.
31489
31490 2010-01-27  Simon Josefsson  <simon@josefsson.org>
31491
31492         * build-aux/git-version-gen: Fix copyright statement.
31493         * build-aux/gnupload: Likewise.
31494         * tests/test-arcfour.c: Likewise.
31495         * tests/test-arctwo.c: Likewise.
31496         * tests/test-count-one-bits.c: Likewise.
31497         * tests/test-crc.c: Likewise.
31498         * tests/test-des.c: Likewise.
31499         * tests/test-gc-arcfour.c: Likewise.
31500         * tests/test-gc-arctwo.c: Likewise.
31501         * tests/test-gc-des.c: Likewise.
31502         * tests/test-gc-hmac-md5.c: Likewise.
31503         * tests/test-gc-hmac-sha1.c: Likewise.
31504         * tests/test-gc-md2.c: Likewise.
31505         * tests/test-gc-md4.c: Likewise.
31506         * tests/test-gc-md5.c: Likewise.
31507         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31508         * tests/test-gc-rijndael.c: Likewise.
31509         * tests/test-gc-sha1.c: Likewise.
31510         * tests/test-gc.c: Likewise.
31511         * tests/test-gethostname.c: Likewise.
31512         * tests/test-gettimeofday.c: Likewise.
31513         * tests/test-hash.c: Likewise.
31514         * tests/test-hmac-md5.c: Likewise.
31515         * tests/test-hmac-sha1.c: Likewise.
31516         * tests/test-md2.c: Likewise.
31517         * tests/test-md4.c: Likewise.
31518         * tests/test-md5.c: Likewise.
31519         * tests/test-memchr.c: Likewise.
31520         * tests/test-memchr2.c: Likewise.
31521         * tests/test-memcmp.c: Likewise.
31522         * tests/test-memmem.c: Likewise.
31523         * tests/test-memrchr.c: Likewise.
31524         * tests/test-rawmemchr.c: Likewise.
31525         * tests/test-read-file.c: Likewise.
31526         * tests/test-rijndael.c: Likewise.
31527         * tests/test-sockets.c: Likewise.
31528         * tests/test-strchrnul.c: Likewise.
31529         * tests/test-strstr.c: Likewise.
31530         * tests/test-strtod.c: Likewise.
31531         * build-aux/ncftpput-ftp: Likewise.
31532
31533 2010-01-26  Eric Blake  <ebb9@byu.net>
31534
31535         ignore-value: update recommended header name
31536         * modules/ignore-value (Include): Only use <> for headers that
31537         exist in glibc.
31538
31539 2010-01-26  Jim Meyering  <meyering@redhat.com>
31540
31541         test-userspec.c: avoid compiler warnings
31542         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
31543         and "initialization discards qualifiers..." warnings.
31544         Put the first "uid" in its own scope, and make char* members "const".
31545
31546 2010-01-25  Bruno Haible  <bruno@clisp.org>
31547
31548         gnulib-tool: Make warning diagnostics consistent.
31549         * gnulib-tool (func_warning): New function.
31550         Use it everywhere where gnulib-tool produces output to stderr and it is
31551         not a fatal error.
31552
31553 2010-01-25  Bruno Haible  <bruno@clisp.org>
31554
31555         Fix test dependencies.
31556         * modules/xstrtol-tests (Depends-on): Add inttypes.
31557         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
31558
31559 2010-01-25 Pádraig Brady <P@draigBrady.com>
31560
31561         syntax-check: detect incorrect boolean macro values in config.h
31562         * modules/maintainer-makefile (configure.ac): Parameterize the location
31563         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
31564         The logic is from Eric Blake and the location indicated by Jim Meyering.
31565         Note the more natural CONFIG_HEADER name is prohibited by automake
31566         for backwards compatibility reasons.
31567         * top/maint.mk (sc_Wundef_boolean): New rule.
31568
31569 2010-01-25  Jim Meyering  <meyering@redhat.com>
31570
31571         bootstrap: detect MacOS 10.6's shasum, too
31572         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
31573         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
31574
31575 2010-01-23  Jim Meyering  <meyering@redhat.com>
31576
31577         xstrtoll: new module
31578         * modules/xstrtoll: New file.
31579         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
31580         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
31581         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
31582         ./configure fails if you use this module and lack "long long".
31583         * modules/xstrtoll-tests: New module.
31584         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
31585         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
31586         new init.sh-based test framework.
31587
31588 2010-01-24  Bruno Haible  <bruno@clisp.org>
31589
31590         Tests for module 'yn'.
31591         * modules/yn-tests: New file.
31592         * tests/test-yn.c: New file.
31593
31594         Tests for module 'y1'.
31595         * modules/y1-tests: New file.
31596         * tests/test-y1.c: New file.
31597
31598         Tests for module 'y0'.
31599         * modules/y0-tests: New file.
31600         * tests/test-y0.c: New file.
31601
31602         Tests for module 'tanh'.
31603         * modules/tanh-tests: New file.
31604         * tests/test-tanh.c: New file.
31605
31606         Tests for module 'tan'.
31607         * modules/tan-tests: New file.
31608         * tests/test-tan.c: New file.
31609
31610         Tests for module 'sqrt'.
31611         * modules/sqrt-tests: New file.
31612         * tests/test-sqrt.c: New file.
31613
31614         Tests for module 'sinh'.
31615         * modules/sinh-tests: New file.
31616         * tests/test-sinh.c: New file.
31617
31618         Tests for module 'sin'.
31619         * modules/sin-tests: New file.
31620         * tests/test-sin.c: New file.
31621
31622         Tests for module 'rint'.
31623         * modules/rint-tests: New file.
31624         * tests/test-rint.c: New file.
31625
31626         Tests for module 'remainder'.
31627         * modules/remainder-tests: New file.
31628         * tests/test-remainder.c: New file.
31629
31630         Tests for module 'pow'.
31631         * modules/pow-tests: New file.
31632         * tests/test-pow.c: New file.
31633
31634         Tests for module 'nextafter'.
31635         * modules/nextafter-tests: New file.
31636         * tests/test-nextafter.c: New file.
31637
31638         Tests for module 'modf'.
31639         * modules/modf-tests: New file.
31640         * tests/test-modf.c: New file.
31641
31642         Tests for module 'logb'.
31643         * modules/logb-tests: New file.
31644         * tests/test-logb.c: New file.
31645
31646         Tests for module 'log1p'.
31647         * modules/log1p-tests: New file.
31648         * tests/test-log1p.c: New file.
31649
31650         Tests for module 'log10'.
31651         * modules/log10-tests: New file.
31652         * tests/test-log10.c: New file.
31653
31654         Tests for module 'log'.
31655         * modules/log-tests: New file.
31656         * tests/test-log.c: New file.
31657
31658         Tests for module 'lgamma'.
31659         * modules/lgamma-tests: New file.
31660         * tests/test-lgamma.c: New file.
31661
31662         Tests for module 'ldexp'.
31663         * modules/ldexp-tests: New file.
31664         * tests/test-ldexp.c: New file.
31665
31666         Tests for module 'jn'.
31667         * modules/jn-tests: New file.
31668         * tests/test-jn.c: New file.
31669
31670         Tests for module 'j1'.
31671         * modules/j1-tests: New file.
31672         * tests/test-j1.c: New file.
31673
31674         Tests for module 'j0'.
31675         * modules/j0-tests: New file.
31676         * tests/test-j0.c: New file.
31677
31678         Tests for module 'hypot'.
31679         * modules/hypot-tests: New file.
31680         * tests/test-hypot.c: New file.
31681
31682         Tests for module 'fmod'.
31683         * modules/fmod-tests: New file.
31684         * tests/test-fmod.c: New file.
31685
31686         Tests for module 'fabs'.
31687         * modules/fabs-tests: New file.
31688         * tests/test-fabs.c: New file.
31689
31690         Tests for module 'exp'.
31691         * modules/exp-tests: New file.
31692         * tests/test-exp.c: New file.
31693
31694         Tests for module 'erfc'.
31695         * modules/erfc-tests: New file.
31696         * tests/test-erfc.c: New file.
31697
31698         Tests for module 'erf'.
31699         * modules/erf-tests: New file.
31700         * tests/test-erf.c: New file.
31701
31702         Tests for module 'cosh'.
31703         * modules/cosh-tests: New file.
31704         * tests/test-cosh.c: New file.
31705
31706         Tests for module 'cos'.
31707         * modules/cos-tests: New file.
31708         * tests/test-cos.c: New file.
31709
31710         Tests for module 'copysign'.
31711         * modules/copysign-tests: New file.
31712         * tests/test-copysign.c: New file.
31713
31714         Tests for module 'cbrt'.
31715         * modules/cbrt-tests: New file.
31716         * tests/test-cbrt.c: New file.
31717
31718         Tests for module 'atan2'.
31719         * modules/atan2-tests: New file.
31720         * tests/test-atan2.c: New file.
31721
31722         Tests for module 'atan'.
31723         * modules/atan-tests: New file.
31724         * tests/test-atan.c: New file.
31725
31726         Tests for module 'asin'.
31727         * modules/asin-tests: New file.
31728         * tests/test-asin.c: New file.
31729
31730         Tests for module 'acos'.
31731         * modules/acos-tests: New file.
31732         * tests/test-acos.c: New file.
31733
31734 2010-01-24  Bruno Haible  <bruno@clisp.org>
31735
31736         Fix tests for common <math.h> functions.
31737         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
31738         code snippet that references the function pointer, rather than merely
31739         calling the function. Substitute the FUNC_LIBM variable.
31740         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
31741         * modules/acos (configure.ac): Likewise.
31742         * modules/asin (configure.ac): Likewise.
31743         * modules/atan (configure.ac): Likewise.
31744         * modules/atan2 (configure.ac): Likewise.
31745         * modules/cbrt (configure.ac): Likewise.
31746         * modules/copysign (configure.ac): Likewise.
31747         * modules/cos (configure.ac): Likewise.
31748         * modules/cosh (configure.ac): Likewise.
31749         * modules/erf (configure.ac): Likewise.
31750         * modules/erfc (configure.ac): Likewise.
31751         * modules/exp (configure.ac): Likewise.
31752         * modules/fabs (configure.ac): Likewise.
31753         * modules/fmod (configure.ac): Likewise.
31754         * modules/hypot (configure.ac): Likewise.
31755         * modules/j0 (configure.ac): Likewise.
31756         * modules/j1 (configure.ac): Likewise.
31757         * modules/jn (configure.ac): Likewise.
31758         * modules/ldexp (configure.ac): Likewise.
31759         * modules/lgamma (configure.ac): Likewise.
31760         * modules/log (configure.ac): Likewise.
31761         * modules/log10 (configure.ac): Likewise.
31762         * modules/log1p (configure.ac): Likewise.
31763         * modules/logb (configure.ac): Likewise.
31764         * modules/modf (configure.ac): Likewise.
31765         * modules/nextafter (configure.ac): Likewise.
31766         * modules/pow (configure.ac): Likewise.
31767         * modules/remainder (configure.ac): Likewise.
31768         * modules/rint (configure.ac): Likewise.
31769         * modules/sin (configure.ac): Likewise.
31770         * modules/sinh (configure.ac): Likewise.
31771         * modules/tan (configure.ac): Likewise.
31772         * modules/tanh (configure.ac): Likewise.
31773         * modules/y0 (configure.ac): Likewise.
31774         * modules/y1 (configure.ac): Likewise.
31775         * modules/yn (configure.ac): Likewise.
31776
31777 2010-01-24  Bruno Haible  <bruno@clisp.org>
31778
31779         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
31780         * tests/test-acosl.c (x): New variable.
31781         (main): Store argument in x and fetch it from x.
31782         * tests/test-asinl.c (x): New variable.
31783         (main): Store argument in x and fetch it from x.
31784         * tests/test-atanl.c (x): New variable.
31785         (main): Store argument in x and fetch it from x.
31786         * tests/test-cosl.c (x): New variable.
31787         (main): Store argument in x and fetch it from x.
31788         * tests/test-expl.c (x): New variable.
31789         (main): Store argument in x and fetch it from x.
31790         * tests/test-logl.c (x): New variable.
31791         (main): Store argument in x and fetch it from x.
31792         * tests/test-sinl.c (x): New variable.
31793         (main): Store argument in x and fetch it from x.
31794         * tests/test-sqrtl.c (x): New variable.
31795         (main): Store argument in x and fetch it from x.
31796         * tests/test-tanl.c (x): New variable.
31797         (main): Store argument in x and fetch it from x.
31798
31799 2010-01-24  Bruno Haible  <bruno@clisp.org>
31800
31801         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
31802         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
31803         assignments to the initial TESTS_ENVIRONMENT.
31804         * doc/gnulib.texi (Unit test modules): Document it.
31805         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
31806         TESTS_ENVIRONMENT.
31807         * modules/btowc-tests (Makefile.am): Likewise.
31808         * modules/c-stack-tests (Makefile.am): Likewise.
31809         * modules/c-strcase-tests (Makefile.am): Likewise.
31810         * modules/copy-file-tests (Makefile.am): Likewise.
31811         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
31812         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
31813         * modules/mbrtowc-tests (Makefile.am): Likewise.
31814         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31815         * modules/mbscasestr-tests (Makefile.am): Likewise.
31816         * modules/mbschr-tests (Makefile.am): Likewise.
31817         * modules/mbscspn-tests (Makefile.am): Likewise.
31818         * modules/mbsinit-tests (Makefile.am): Likewise.
31819         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31820         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
31821         * modules/mbspbrk-tests (Makefile.am): Likewise.
31822         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31823         * modules/mbsrchr-tests (Makefile.am): Likewise.
31824         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
31825         * modules/mbsspn-tests (Makefile.am): Likewise.
31826         * modules/mbsstr-tests (Makefile.am): Likewise.
31827         * modules/nl_langinfo-tests (Makefile.am): Likewise.
31828         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
31829         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31830         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31831         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31832         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31833         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
31834         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31835         * modules/wcrtomb-tests (Makefile.am): Likewise.
31836         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
31837         * modules/wcsrtombs-tests (Makefile.am): Likewise.
31838         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
31839         assignments from TESTS_ENVIRONMENT.
31840         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
31841         augmentation.
31842         * modules/argp-version-etc-tests (Makefile.am): Likewise.
31843         * modules/atexit-tests (Makefile.am): Likewise.
31844         * modules/binary-io-tests (Makefile.am): Likewise.
31845         * modules/closein-tests (Makefile.am): Likewise.
31846         * modules/dprintf-posix-tests (Makefile.am): Likewise.
31847         * modules/exclude-tests (Makefile.am): Likewise.
31848         * modules/fflush-tests (Makefile.am): Likewise.
31849         * modules/fpending-tests (Makefile.am): Likewise.
31850         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31851         * modules/freadahead-tests (Makefile.am): Likewise.
31852         * modules/freadptr-tests (Makefile.am): Likewise.
31853         * modules/freadseek-tests (Makefile.am): Likewise.
31854         * modules/fseek-tests (Makefile.am): Likewise.
31855         * modules/fseeko-tests (Makefile.am): Likewise.
31856         * modules/ftell-tests (Makefile.am): Likewise.
31857         * modules/ftello-tests (Makefile.am): Likewise.
31858         * modules/idpriv-drop-tests (Makefile.am): Likewise.
31859         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
31860         * modules/lseek-tests (Makefile.am): Likewise.
31861         * modules/parse-duration-tests (Makefile.am): Likewise.
31862         * modules/perror-tests (Makefile.am): Likewise.
31863         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
31864         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
31865         * modules/pipe-tests (Makefile.am): Likewise.
31866         * modules/pread-tests (Makefile.am): Likewise.
31867         * modules/printf-posix-tests (Makefile.am): Likewise.
31868         * modules/select-tests (Makefile.am): Likewise.
31869         * modules/sigpipe-tests (Makefile.am): Likewise.
31870         * modules/tsearch-tests (Makefile.am): Likewise.
31871         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
31872         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
31873         * modules/uniname/uniname-tests (Makefile.am): Likewise.
31874         * modules/uniwidth/width-tests (Makefile.am): Likewise.
31875         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
31876         * modules/version-etc-tests (Makefile.am): Likewise.
31877         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31878         * modules/vprintf-posix-tests (Makefile.am): Likewise.
31879         * modules/xalloc-die-tests (Makefile.am): Likewise.
31880         * modules/xprintf-posix-tests (Makefile.am): Likewise.
31881         * modules/xstrtoimax-tests (Makefile.am): Likewise.
31882         * modules/xstrtol-tests (Makefile.am): Likewise.
31883         * modules/xstrtoumax-tests (Makefile.am): Likewise.
31884         * modules/yesno-tests (Makefile.am): Likewise.
31885         Suggested by Jim Meyering.
31886
31887 2010-01-24  Bruno Haible  <bruno@clisp.org>
31888
31889         More documentation.
31890         * doc/gnulib.texi (Writing modules): New chapter.
31891         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
31892         the new chapter.
31893
31894 2010-01-24  Jim Meyering  <meyering@redhat.com>
31895
31896         maint.mk: do not prepend "./" after filtering
31897         * top/maint.mk (_prepend_srcdir_prefix): New variable
31898         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
31899         "./" when $(srcdir) is ".".
31900
31901         define STREQ(a,b) consistently, removing useless parentheses
31902         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
31903         since the only risk is that "a" or "b" contains an unparenthesized
31904         comma, but if either did that, STREQ would have 3 or more arguments.
31905         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
31906         * lib/fts.c (STREQ): Remove unnecessary parentheses.
31907         * lib/hash-triple.c (STREQ): Likewise.
31908         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
31909         * lib/getugroups.c (STREQ): Likewise.
31910
31911 2010-01-23  Jim Meyering  <meyering@redhat.com>
31912
31913         maint.mk: fix syntax-check in a non-srcdir build directory
31914         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
31915         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
31916
31917 2010-01-22  Jim Meyering  <meyering@redhat.com>
31918
31919         userspec: add unit tests
31920         * tests/test-userspec.c: New file.
31921         * modules/userspec-tests: Likewise.
31922
31923 2010-01-21  Jim Meyering  <meyering@redhat.com>
31924
31925         maint.mk: handle source file names containing "." robustly
31926         * top/maint.mk (_dot_escaped_srcdir): Define.
31927         (VC_LIST): Use it in LHS of sed substitution.
31928
31929 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
31930
31931         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
31932         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
31933         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
31934         from a non-srcdir build.
31935
31936 2010-01-20  Eric Blake  <ebb9@byu.net>
31937
31938         warn-on-use: use instead of link-warning
31939         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
31940         * modules/unistd (Depends-on, Makefile.am): Likewise.
31941         * modules/arpa_inet (Depends-on): Replace link-warning with
31942         warn-on-use.
31943         (Makefile.am): Update rules accordingly.
31944         * modules/ctype (Depends-on, Makefile.am): Likewise.
31945         * modules/dirent (Depends-on, Makefile.am): Likewise.
31946         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
31947         * modules/inttypes (Depends-on, Makefile.am): Likewise.
31948         * modules/langinfo (Depends-on, Makefile.am): Likewise.
31949         * modules/locale (Depends-on, Makefile.am): Likewise.
31950         * modules/math (Depends-on, Makefile.am): Likewise.
31951         * modules/search (Depends-on, Makefile.am): Likewise.
31952         * modules/signal (Depends-on, Makefile.am): Likewise.
31953         * modules/spawn (Depends-on, Makefile.am): Likewise.
31954         * modules/stdlib (Depends-on, Makefile.am): Likewise.
31955         * modules/string (Depends-on, Makefile.am): Likewise.
31956         * modules/strings (Depends-on, Makefile.am): Likewise.
31957         * modules/sys_file (Depends-on, Makefile.am): Likewise.
31958         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
31959         * modules/sys_select (Depends-on, Makefile.am): Likewise.
31960         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
31961         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
31962         * modules/sys_times (Depends-on, Makefile.am): Likewise.
31963         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
31964         * modules/wchar (Depends-on, Makefile.am): Likewise.
31965         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
31966         should be poisoned.
31967         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
31968         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
31969         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
31970         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31971         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31972         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31973         * m4/math_h.m4 (gl_MATH_H): Likewise.
31974         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31975         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
31976         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31977         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
31978         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
31979         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
31980         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
31981         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
31982         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
31983         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31984         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31985         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
31986         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31987         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31988         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
31989         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31990         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
31991         GL_LINK_WARNING.
31992         * lib/ctype.in.h: Likewise.
31993         * lib/dirent.in.h: Likewise.
31994         * lib/fcntl.in.h: Likewise.
31995         * lib/inttypes.in.h: Likewise.
31996         * lib/langinfo.in.h: Likewise.
31997         * lib/locale.in.h: Likewise.
31998         * lib/math.in.h: Likewise.
31999         * lib/search.in.h: Likewise.
32000         * lib/signal.in.h: Likewise.
32001         * lib/spawn.in.h: Likewise.
32002         * lib/stdio.in.h: Likewise.
32003         * lib/stdlib.in.h: Likewise.
32004         * lib/string.in.h: Likewise.
32005         * lib/strings.in.h: Likewise.
32006         * lib/sys_file.in.h: Likewise.
32007         * lib/sys_ioctl.in.h: Likewise.
32008         * lib/sys_select.in.h: Likewise.
32009         * lib/sys_socket.in.h: Likewise.
32010         * lib/sys_stat.in.h: Likewise.
32011         * lib/sys_times.in.h: Likewise.
32012         * lib/sys_utsname.in.h: Likewise.
32013         * lib/unistd.in.h: Likewise.
32014         * lib/wchar.in.h: Likewise.
32015
32016 2010-01-20  Bruno Haible  <bruno@clisp.org>
32017
32018         Avoid duplicate -lm.
32019         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
32020         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
32021         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
32022         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
32023         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
32024         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
32025         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
32026         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
32027         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
32028         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
32029         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
32030         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32031         Reported by Paolo Bonzini.
32032
32033 2010-01-19  Bruno Haible  <bruno@clisp.org>
32034
32035         langinfo, nl_langinfo: Relicense under LGPLv2+.
32036         * modules/langinfo (License): Change to LGPLv2+.
32037         * modules/nl_langinfo (License): Likewise.
32038         Patch by David Lutterkort <lutter@redhat.com>.
32039
32040 2010-01-19  Bruno Haible  <bruno@clisp.org>
32041
32042         Avoid compilation error with cc on OSF/1 5.1.
32043         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
32044         statement, not before.
32045         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32046
32047 2010-01-18  Bruno Haible  <bruno@clisp.org>
32048
32049         Avoid a link error due to the __printf__ symbol.
32050         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
32051         and 2.6.x.
32052         (__format__, __printf__): Remove definitions.
32053         * lib/argp-fmtstream.h: Likewise.
32054         * lib/argp.h: Likewise.
32055         * lib/error.h: Likewise.
32056         * lib/vasnprintf.h: Likewise.
32057         * lib/xprintf.h: Likewise.
32058         * lib/xvasprintf.h: Likewise.
32059         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32060
32061 2010-01-18  Bruno Haible  <bruno@clisp.org>
32062
32063         Tests for module 'tanl'.
32064         * modules/tanl-tests: New file.
32065         * tests/test-tanl.c: New file.
32066
32067         Tests for module 'sqrtl'.
32068         * modules/sqrtl-tests: New file.
32069         * tests/test-sqrtl.c: New file.
32070
32071         Tests for module 'sinl'.
32072         * modules/sinl-tests: New file.
32073         * tests/test-sinl.c: New file.
32074
32075         Tests for module 'logl'.
32076         * modules/logl-tests: New file.
32077         * tests/test-logl.c: New file.
32078
32079         Tests for module 'expl'.
32080         * modules/expl-tests: New file.
32081         * tests/test-expl.c: New file.
32082
32083         Tests for module 'cosl'.
32084         * modules/cosl-tests: New file.
32085         * tests/test-cosl.c: New file.
32086
32087         Tests for module 'atanl'.
32088         * modules/atanl-tests: New file.
32089         * tests/test-atanl.c: New file.
32090
32091         Tests for module 'asinl'.
32092         * modules/asinl-tests: New file.
32093         * tests/test-asinl.c: New file.
32094
32095         Tests for module 'acosl'.
32096         * modules/acosl-tests: New file.
32097         * tests/test-acosl.c: New file.
32098
32099         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32100         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
32101         tanl): Use the standard gnulib idiom.
32102         * lib/cosl.c: Don't include trigl.c and sincosl.c.
32103         * lib/sinl.c: Likewise.
32104         * lib/tanl.c: Don't include trigl.c.
32105         (kernel_tanl): Make static.
32106         * lib/sincosl.c: Include trigl.h first.
32107         * lib/trigl.c: Likewise.
32108         * m4/acosl.m4: New file.
32109         * m4/asinl.m4: New file.
32110         * m4/atanl.m4: New file.
32111         * m4/cosl.m4: New file.
32112         * m4/expl.m4: New file.
32113         * m4/logl.m4: New file.
32114         * m4/sinl.m4: New file.
32115         * m4/sqrtl.m4: New file.
32116         * m4/tanl.m4: New file.
32117         * m4/mathl.m4: Remove file.
32118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
32119         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32120         Don't initialize GNULIB_MATHL.
32121         * modules/acosl: New file.
32122         * modules/asinl: New file.
32123         * modules/atanl: New file.
32124         * modules/cosl: New file.
32125         * modules/expl: New file.
32126         * modules/logl: New file.
32127         * modules/sinl: New file.
32128         * modules/sqrtl: New file.
32129         * modules/tanl: New file.
32130         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
32131         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
32132         substitute GNULIB_MATHL.
32133         * modules/mathl: Rewritten.
32134         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
32135         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
32136         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
32137         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
32138         * doc/posix-functions/expl.texi: Mention the 'expl' module.
32139         * doc/posix-functions/logl.texi: Mention the 'logl' module.
32140         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
32141         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
32142         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
32143
32144 2010-01-18  Bruno Haible  <bruno@clisp.org>
32145
32146         sqrt: Make gl_FUNC_SQRT requirable.
32147         * m4/sqrt.m4: New file.
32148         * modules/sqrt (Files): Add it.
32149         (configure.ac): Invoke gl_FUNC_SQRT.
32150
32151 2010-01-18  Bruno Haible  <bruno@clisp.org>
32152
32153         New modules for common <math.h> functions.
32154         * m4/mathfunc.m4: New file.
32155         * modules/acos: New file.
32156         * modules/asin: New file.
32157         * modules/atan: New file.
32158         * modules/atan2: New file.
32159         * modules/cbrt: New file.
32160         * modules/copysign: New file.
32161         * modules/cos: New file.
32162         * modules/cosh: New file.
32163         * modules/erf: New file.
32164         * modules/erfc: New file.
32165         * modules/exp: New file.
32166         * modules/fabs: New file.
32167         * modules/fmod: New file.
32168         * modules/hypot: New file.
32169         * modules/j0: New file.
32170         * modules/j1: New file.
32171         * modules/jn: New file.
32172         * modules/ldexp: New file.
32173         * modules/lgamma: New file.
32174         * modules/log: New file.
32175         * modules/log10: New file.
32176         * modules/log1p: New file.
32177         * modules/logb: New file.
32178         * modules/modf: New file.
32179         * modules/nextafter: New file.
32180         * modules/pow: New file.
32181         * modules/remainder: New file.
32182         * modules/rint: New file.
32183         * modules/sin: New file.
32184         * modules/sinh: New file.
32185         * modules/sqrt: New file.
32186         * modules/tan: New file.
32187         * modules/tanh: New file.
32188         * modules/y0: New file.
32189         * modules/y1: New file.
32190         * modules/yn: New file.
32191         * doc/posix-functions/acos.texi: Mention the 'acos' module.
32192         * doc/posix-functions/asin.texi: Mention the 'asin' module.
32193         * doc/posix-functions/atan.texi: Mention the 'atan' module.
32194         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
32195         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
32196         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
32197         * doc/posix-functions/cos.texi: Mention the 'cos' module.
32198         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
32199         * doc/posix-functions/erf.texi: Mention the 'erf' module.
32200         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
32201         * doc/posix-functions/exp.texi: Mention the 'exp' module.
32202         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
32203         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
32204         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
32205         * doc/posix-functions/j0.texi: Mention the 'j0' module.
32206         * doc/posix-functions/j1.texi: Mention the 'j1' module.
32207         * doc/posix-functions/jn.texi: Mention the 'jn' module.
32208         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
32209         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
32210         * doc/posix-functions/log.texi: Mention the 'log' module.
32211         * doc/posix-functions/log10.texi: Mention the 'log10' module.
32212         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
32213         * doc/posix-functions/logb.texi: Mention the 'logb' module.
32214         * doc/posix-functions/modf.texi: Mention the 'modf' module.
32215         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
32216         * doc/posix-functions/pow.texi: Mention the 'pow' module.
32217         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
32218         * doc/posix-functions/rint.texi: Mention the 'rint' module.
32219         * doc/posix-functions/sin.texi: Mention the 'sin' module.
32220         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
32221         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
32222         * doc/posix-functions/tan.texi: Mention the 'tan' module.
32223         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
32224         * doc/posix-functions/y0.texi: Mention the 'y0' module.
32225         * doc/posix-functions/y1.texi: Mention the 'y1' module.
32226         * doc/posix-functions/yn.texi: Mention the 'yn' module.
32227
32228 2010-01-18  Jim Meyering  <meyering@redhat.com>
32229
32230         ignore-value: relax license to LGPLv2+
32231         * modules/ignore-value (License): Relax to LGPLv2+.
32232
32233         getdate: don't leak when TZ contains two or more '"'s
32234         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
32235         double quote in TZ after the first one.
32236
32237         readtokens: do not leak internal token_lengths buffer
32238         * lib/readtokens.c (readtokens): Free the local, lengths,
32239         when the supplied "token_lengths" parameter is NULL.
32240
32241 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32242
32243         Fix a couple of missing LIBTHREAD link failures on AIX.
32244         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
32245         $(LIBTHREAD).
32246         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
32247
32248         Link test-poll against INET_PTON_LIB.
32249         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
32250         for inet_pton on Solaris 10.
32251
32252 2010-01-17  Bruno Haible  <bruno@clisp.org>
32253
32254         unistdio/*-sprintf: Fix typo in module description.
32255         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
32256         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
32257         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
32258         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
32259         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
32260         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
32261         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
32262         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32263
32264 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32265
32266         gnulib-tool: fix filelist for AIX, HP-UX ksh.
32267         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
32268         variables in shell case patterns, for AIX and HP-UX ksh.
32269
32270         Split large sed scripts, for HP-UX sed.
32271         * modules/stdio: Split sed scripts around 50 sed commands,
32272         to avoid HP-UX limit of 99 commands, in the near future.
32273         * modules/string: Likewise.
32274         * modules/unistd: Likewise.
32275
32276         gnulib-tool: avoid writing in the current directory.
32277         * gnulib-tool (func_emit_lib_Makefile_am)
32278         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
32279         not in the current directory, so concurrent gnulib-tool
32280         instances do not interfere.
32281
32282 2010-01-16  Jim Meyering  <meyering@redhat.com>
32283
32284         doc: update users.txt
32285         * users.txt: Add grep.
32286         (diffutils, gzip): Update URLs.
32287
32288 2010-01-12  Bruno Haible  <bruno@clisp.org>
32289
32290         posix_spawn: Avoid test failure on Cygwin.
32291         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
32292         characters.
32293         Reported by Simon Josefsson.
32294
32295 2010-01-12  Bruno Haible  <bruno@clisp.org>
32296
32297         * tests/test-cond.c (main): When skipping the test, show the reason.
32298
32299 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32300
32301         * lib/striconv.c (str_cd_iconv): Avoid if before free.
32302
32303 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32304
32305         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
32306         VC_LIST_ALWAYS_EXCLUDE_REGEX.
32307
32308 2010-01-12  Eric Blake  <ebb9@byu.net>
32309
32310         build: guarantee AS_VAR_IF
32311         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
32312         (gl_AS_VAR_IF): Move...
32313         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
32314         Reported by Simon Josefsson.
32315
32316 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32317
32318         * lib/stdio.in.h: Fix typo.
32319
32320 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32321
32322         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
32323         libgpg-error.
32324
32325 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32326
32327         * tests/test-xalloc-die.sh: Use $EXEEXT.
32328
32329 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32330             Bruno Haible  <bruno@clisp.org>
32331
32332         getlogin, getlogin_r: Avoid test failure.
32333         * tests/test-getlogin.c: Include <stdio.h>.
32334         (main): Skip the test when the function fails because stdin is not a
32335         tty.
32336         * tests/test-getlogin_r.c: Include <stdio.h>.
32337         (main): Skip the test when the function fails because stdin is not a
32338         tty.
32339
32340 2010-01-11  Eric Blake  <ebb9@byu.net>
32341
32342         tests: avoid more large file warnings
32343         * tests/test-fflush.c: Avoid warning about ftell use.
32344         * tests/test-fseek.c: Avoid warning about fseek use.
32345
32346 2010-01-10  Bruno Haible  <bruno@clisp.org>
32347
32348         nproc: Work better on Linux when /proc and /sys are not mounted.
32349         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
32350         as lower bound when, on glibc/Linux systems,
32351         sysconf (_SC_NPROCESSORS_CONF) returns 1.
32352         Suggested by Pádraig Brady <P@draigbrady.com>.
32353         Reported by Dmitry V. Levin <ldv@altlinux.org>.
32354
32355         nproc: Refactor.
32356         * lib/nproc.c (num_processors_via_affinity_mask): New function,
32357         extracted from num_processors.
32358         (num_processors): Call it.
32359
32360 2010-01-11  Jim Meyering  <meyering@redhat.com>
32361
32362         utimecmp: avoid new warning from upcoming gcc-4.5.0
32363         * lib/utimecmp.c (BILLION): Define using #define rather than an
32364         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
32365
32366 2010-01-11  Eric Blake  <ebb9@byu.net>
32367
32368         math: add portability warnings for classification macros
32369         * modules/math (Depends-on): Add warn-on-use.
32370         (Makefile.am): Provide new substitutions.
32371         * m4/math_h.m4 (gl_MATH_H): Require inline.
32372         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
32373         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
32374         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
32375         implement warnings.
32376
32377         unistd: warn on use of environ without module
32378         * modules/unistd (Depends-on): Add warn-on-use.
32379         (Makefile.am): Provide new substitutions.
32380         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
32381         * lib/unistd.in.h (environ): Wrap with a warning helper function.
32382
32383         stdio: warn on suspicious uses
32384         * modules/stdio (Depends-on): Add warn-on-use.
32385         (Makefile.am): Provide new substitutions.
32386         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
32387         fseeko.
32388         * lib/stdio.in.h (gets): Always warn on use.
32389         (fseek, ftell): Adjust when warnings are issued, and honor
32390         _GL_NO_LARGE_FILES as a way to silence the warning.
32391         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
32392         any warning about large file offsets.
32393         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
32394         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
32395         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
32396         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
32397         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
32398         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
32399         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
32400         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
32401
32402         warn-on-use: new module
32403         * modules/warn-on-use: New file.
32404         * build-aux/warn-on-use.h: Likewise.
32405         * m4/warn-on-use.m4: Likewise.
32406         * MODULES.html.sh (Support for building): Mention it.
32407
32408 2010-01-10  Bruno Haible  <bruno@clisp.org>
32409
32410         Tests for module 'unistr/u32-strdup'.
32411         * modules/unistr/u32-strdup-tests: New file.
32412         * tests/unistr/test-u32-strdup.c: New file.
32413
32414         Tests for module 'unistr/u16-strdup'.
32415         * modules/unistr/u16-strdup-tests: New file.
32416         * tests/unistr/test-u16-strdup.c: New file.
32417
32418         Tests for module 'unistr/u8-strdup'.
32419         * modules/unistr/u8-strdup-tests: New file.
32420         * tests/unistr/test-u8-strdup.c: New file.
32421         * tests/unistr/test-strdup.h: New file.
32422
32423         Tests for module 'unistr/u32-strncmp'.
32424         * modules/unistr/u32-strncmp-tests: New file.
32425         * tests/unistr/test-u32-strncmp.c: New file.
32426
32427         Tests for module 'unistr/u16-strncmp'.
32428         * modules/unistr/u16-strncmp-tests: New file.
32429         * tests/unistr/test-u16-strncmp.c: New file.
32430
32431         Tests for module 'unistr/u8-strncmp'.
32432         * modules/unistr/u8-strncmp-tests: New file.
32433         * tests/unistr/test-u8-strncmp.c: New file.
32434         * tests/unistr/test-strncmp.h: New file.
32435
32436         Tests for module 'unistr/u32-strcoll'.
32437         * modules/unistr/u32-strcoll-tests: New file.
32438         * tests/unistr/test-u32-strcoll.c: New file.
32439
32440         Tests for module 'unistr/u16-strcoll'.
32441         * modules/unistr/u16-strcoll-tests: New file.
32442         * tests/unistr/test-u16-strcoll.c: New file.
32443
32444         Tests for module 'unistr/u8-strcoll'.
32445         * modules/unistr/u8-strcoll-tests: New file.
32446         * tests/unistr/test-u8-strcoll.c: New file.
32447
32448         Tests for module 'unistr/u32-strcmp'.
32449         * modules/unistr/u32-strcmp-tests: New file.
32450         * tests/unistr/test-u32-strcmp.c: New file.
32451         * tests/unistr/test-u32-strcmp.h: New file.
32452
32453         Tests for module 'unistr/u16-strcmp'.
32454         * modules/unistr/u16-strcmp-tests: New file.
32455         * tests/unistr/test-u16-strcmp.c: New file.
32456         * tests/unistr/test-u16-strcmp.h: New file.
32457
32458         Tests for module 'unistr/u8-strcmp'.
32459         * modules/unistr/u8-strcmp-tests: New file.
32460         * tests/unistr/test-u8-strcmp.c: New file.
32461         * tests/unistr/test-u8-strcmp.h: New file.
32462         * tests/unistr/test-strcmp.h: New file.
32463
32464         Tests for module 'unistr/u32-strncat'.
32465         * modules/unistr/u32-strncat-tests: New file.
32466         * tests/unistr/test-u32-strncat.c: New file.
32467
32468         Tests for module 'unistr/u16-strncat'.
32469         * modules/unistr/u16-strncat-tests: New file.
32470         * tests/unistr/test-u16-strncat.c: New file.
32471
32472         Tests for module 'unistr/u8-strncat'.
32473         * modules/unistr/u8-strncat-tests: New file.
32474         * tests/unistr/test-u8-strncat.c: New file.
32475         * tests/unistr/test-strncat.h: New file.
32476
32477         Tests for module 'unistr/u32-strcat'.
32478         * modules/unistr/u32-strcat-tests: New file.
32479         * tests/unistr/test-u32-strcat.c: New file.
32480
32481         Tests for module 'unistr/u16-strcat'.
32482         * modules/unistr/u16-strcat-tests: New file.
32483         * tests/unistr/test-u16-strcat.c: New file.
32484
32485         Tests for module 'unistr/u8-strcat'.
32486         * modules/unistr/u8-strcat-tests: New file.
32487         * tests/unistr/test-u8-strcat.c: New file.
32488         * tests/unistr/test-strcat.h: New file.
32489
32490         Tests for module 'unistr/u32-stpncpy'.
32491         * modules/unistr/u32-stpncpy-tests: New file.
32492         * tests/unistr/test-u32-stpncpy.c: New file.
32493
32494         Tests for module 'unistr/u16-stpncpy'.
32495         * modules/unistr/u16-stpncpy-tests: New file.
32496         * tests/unistr/test-u16-stpncpy.c: New file.
32497
32498         Tests for module 'unistr/u8-stpncpy'.
32499         * modules/unistr/u8-stpncpy-tests: New file.
32500         * tests/unistr/test-u8-stpncpy.c: New file.
32501         * tests/unistr/test-stpncpy.h: New file.
32502
32503         Tests for module 'unistr/u32-strncpy'.
32504         * modules/unistr/u32-strncpy-tests: New file.
32505         * tests/unistr/test-u32-strncpy.c: New file.
32506
32507         Tests for module 'unistr/u16-strncpy'.
32508         * modules/unistr/u16-strncpy-tests: New file.
32509         * tests/unistr/test-u16-strncpy.c: New file.
32510
32511         Tests for module 'unistr/u8-strncpy'.
32512         * modules/unistr/u8-strncpy-tests: New file.
32513         * tests/unistr/test-u8-strncpy.c: New file.
32514         * tests/unistr/test-strncpy.h: New file.
32515
32516         Tests for module 'unistr/u32-stpcpy'.
32517         * modules/unistr/u32-stpcpy-tests: New file.
32518         * tests/unistr/test-u32-stpcpy.c: New file.
32519
32520         Tests for module 'unistr/u16-stpcpy'.
32521         * modules/unistr/u16-stpcpy-tests: New file.
32522         * tests/unistr/test-u16-stpcpy.c: New file.
32523
32524         Tests for module 'unistr/u8-stpcpy'.
32525         * modules/unistr/u8-stpcpy-tests: New file.
32526         * tests/unistr/test-u8-stpcpy.c: New file.
32527         * tests/unistr/test-stpcpy.h: New file.
32528
32529         Tests for module 'unistr/u32-strcpy'.
32530         * modules/unistr/u32-strcpy-tests: New file.
32531         * tests/unistr/test-u32-strcpy.c: New file.
32532
32533         Tests for module 'unistr/u16-strcpy'.
32534         * modules/unistr/u16-strcpy-tests: New file.
32535         * tests/unistr/test-u16-strcpy.c: New file.
32536
32537         Tests for module 'unistr/u8-strcpy'.
32538         * modules/unistr/u8-strcpy-tests: New file.
32539         * tests/unistr/test-u8-strcpy.c: New file.
32540         * tests/unistr/test-strcpy.h: New file.
32541
32542         Tests for module 'unistr/u32-strnlen'.
32543         * modules/unistr/u32-strnlen-tests: New file.
32544         * tests/unistr/test-u32-strnlen.c: New file.
32545
32546         Tests for module 'unistr/u16-strnlen'.
32547         * modules/unistr/u16-strnlen-tests: New file.
32548         * tests/unistr/test-u16-strnlen.c: New file.
32549
32550         Tests for module 'unistr/u8-strnlen'.
32551         * modules/unistr/u8-strnlen-tests: New file.
32552         * tests/unistr/test-u8-strnlen.c: New file.
32553         * tests/unistr/test-strnlen.h: New file.
32554
32555         Tests for module 'unistr/u32-strlen'.
32556         * modules/unistr/u32-strlen-tests: New file.
32557         * tests/unistr/test-u32-strlen.c: New file.
32558
32559         Tests for module 'unistr/u16-strlen'.
32560         * modules/unistr/u16-strlen-tests: New file.
32561         * tests/unistr/test-u16-strlen.c: New file.
32562
32563         Tests for module 'unistr/u8-strlen'.
32564         * modules/unistr/u8-strlen-tests: New file.
32565         * tests/unistr/test-u8-strlen.c: New file.
32566
32567         Tests for module 'unistr/u32-prev'.
32568         * modules/unistr/u32-prev-tests: New file.
32569         * tests/unistr/test-u32-prev.c: New file.
32570
32571         Tests for module 'unistr/u16-prev'.
32572         * modules/unistr/u16-prev-tests: New file.
32573         * tests/unistr/test-u16-prev.c: New file.
32574
32575         Tests for module 'unistr/u8-prev'.
32576         * modules/unistr/u8-prev-tests: New file.
32577         * tests/unistr/test-u8-prev.c: New file.
32578
32579         Tests for module 'unistr/u32-next'.
32580         * modules/unistr/u32-next-tests: New file.
32581         * tests/unistr/test-u32-next.c: New file.
32582
32583         Tests for module 'unistr/u16-next'.
32584         * modules/unistr/u16-next-tests: New file.
32585         * tests/unistr/test-u16-next.c: New file.
32586
32587         Tests for module 'unistr/u8-next'.
32588         * modules/unistr/u8-next-tests: New file.
32589         * tests/unistr/test-u8-next.c: New file.
32590
32591         Tests for module 'unistr/u32-strmbtouc'.
32592         * modules/unistr/u32-strmbtouc-tests: New file.
32593         * tests/unistr/test-u32-strmbtouc.c: New file.
32594
32595         Tests for module 'unistr/u16-strmbtouc'.
32596         * modules/unistr/u16-strmbtouc-tests: New file.
32597         * tests/unistr/test-u16-strmbtouc.c: New file.
32598
32599         Tests for module 'unistr/u8-strmbtouc'.
32600         * modules/unistr/u8-strmbtouc-tests: New file.
32601         * tests/unistr/test-u8-strmbtouc.c: New file.
32602
32603         Tests for module 'unistr/u32-strmblen'.
32604         * modules/unistr/u32-strmblen-tests: New file.
32605         * tests/unistr/test-u32-strmblen.c: New file.
32606
32607         Tests for module 'unistr/u16-strmblen'.
32608         * modules/unistr/u16-strmblen-tests: New file.
32609         * tests/unistr/test-u16-strmblen.c: New file.
32610
32611         Tests for module 'unistr/u8-strmblen'.
32612         * modules/unistr/u8-strmblen-tests: New file.
32613         * tests/unistr/test-u8-strmblen.c: New file.
32614
32615         Tests for module 'unistr/u32-cpy-alloc'.
32616         * modules/unistr/u32-cpy-alloc-tests: New file.
32617         * tests/unistr/test-u32-cpy-alloc.c: New file.
32618
32619         Tests for module 'unistr/u16-cpy-alloc'.
32620         * modules/unistr/u16-cpy-alloc-tests: New file.
32621         * tests/unistr/test-u16-cpy-alloc.c: New file.
32622
32623         Tests for module 'unistr/u8-cpy-alloc'.
32624         * modules/unistr/u8-cpy-alloc-tests: New file.
32625         * tests/unistr/test-u8-cpy-alloc.c: New file.
32626         * tests/unistr/test-cpy-alloc.h: New file.
32627
32628         Tests for module 'unistr/u32-mbsnlen'.
32629         * modules/unistr/u32-mbsnlen-tests: New file.
32630         * tests/unistr/test-u32-mbsnlen.c: New file.
32631
32632         Tests for module 'unistr/u16-mbsnlen'.
32633         * modules/unistr/u16-mbsnlen-tests: New file.
32634         * tests/unistr/test-u16-mbsnlen.c: New file.
32635
32636         Tests for module 'unistr/u8-mbsnlen'.
32637         * modules/unistr/u8-mbsnlen-tests: New file.
32638         * tests/unistr/test-u8-mbsnlen.c: New file.
32639
32640         Tests for module 'unistr/u32-chr'.
32641         * modules/unistr/u32-chr-tests: New file.
32642         * tests/unistr/test-u32-chr.c: New file.
32643
32644         Tests for module 'unistr/u16-chr'.
32645         * modules/unistr/u16-chr-tests: New file.
32646         * tests/unistr/test-u16-chr.c: New file.
32647
32648         Tests for module 'unistr/u8-chr'.
32649         * modules/unistr/u8-chr-tests: New file.
32650         * tests/unistr/test-u8-chr.c: New file.
32651         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
32652
32653         Tests for module 'unistr/u32-cmp2'.
32654         * modules/unistr/u32-cmp2-tests: New file.
32655         * tests/unistr/test-u32-cmp2.c: New file.
32656
32657         Tests for module 'unistr/u16-cmp2'.
32658         * modules/unistr/u16-cmp2-tests: New file.
32659         * tests/unistr/test-u16-cmp2.c: New file.
32660
32661         Tests for module 'unistr/u8-cmp2'.
32662         * modules/unistr/u8-cmp2-tests: New file.
32663         * tests/unistr/test-u8-cmp2.c: New file.
32664         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
32665
32666         Tests for module 'unistr/u32-cmp'.
32667         * modules/unistr/u32-cmp-tests: New file.
32668         * tests/unistr/test-u32-cmp.c: New file.
32669
32670         Tests for module 'unistr/u16-cmp'.
32671         * modules/unistr/u16-cmp-tests: New file.
32672         * tests/unistr/test-u16-cmp.c: New file.
32673
32674         Tests for module 'unistr/u8-cmp'.
32675         * modules/unistr/u8-cmp-tests: New file.
32676         * tests/unistr/test-u8-cmp.c: New file.
32677         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
32678
32679         Tests for module 'unistr/u32-set'.
32680         * modules/unistr/u32-set-tests: New file.
32681         * tests/unistr/test-u32-set.c: New file.
32682
32683         Tests for module 'unistr/u16-set'.
32684         * modules/unistr/u16-set-tests: New file.
32685         * tests/unistr/test-u16-set.c: New file.
32686
32687         Tests for module 'unistr/u8-set'.
32688         * modules/unistr/u8-set-tests: New file.
32689         * tests/unistr/test-u8-set.c: New file.
32690         * tests/unistr/test-set.h: New file.
32691
32692         Tests for module 'unistr/u32-move'.
32693         * modules/unistr/u32-move-tests: New file.
32694         * tests/unistr/test-u32-move.c: New file.
32695
32696         Tests for module 'unistr/u16-move'.
32697         * modules/unistr/u16-move-tests: New file.
32698         * tests/unistr/test-u16-move.c: New file.
32699
32700         Tests for module 'unistr/u8-move'.
32701         * modules/unistr/u8-move-tests: New file.
32702         * tests/unistr/test-u8-move.c: New file.
32703         * tests/unistr/test-move.h: New file.
32704
32705         Tests for module 'unistr/u32-cpy'.
32706         * modules/unistr/u32-cpy-tests: New file.
32707         * tests/unistr/test-u32-cpy.c: New file.
32708
32709         Tests for module 'unistr/u16-cpy'.
32710         * modules/unistr/u16-cpy-tests: New file.
32711         * tests/unistr/test-u16-cpy.c: New file.
32712
32713         Tests for module 'unistr/u8-cpy'.
32714         * modules/unistr/u8-cpy-tests: New file.
32715         * tests/unistr/test-u8-cpy.c: New file.
32716         * tests/unistr/test-cpy.h: New file.
32717
32718 2010-01-09  Bruno Haible  <bruno@clisp.org>
32719
32720         Tests for module 'unistr/u32-uctomb'.
32721         * modules/unistr/u32-uctomb-tests: New file.
32722         * tests/unistr/test-u32-uctomb.c: New file.
32723
32724         Tests for module 'unistr/u16-uctomb'.
32725         * modules/unistr/u16-uctomb-tests: New file.
32726         * tests/unistr/test-u16-uctomb.c: New file.
32727
32728         Tests for module 'unistr/u8-uctomb'.
32729         * modules/unistr/u8-uctomb-tests: New file.
32730         * tests/unistr/test-u8-uctomb.c: New file.
32731
32732         Tests for module 'unistr/u32-mbtoucr'.
32733         * modules/unistr/u32-mbtoucr-tests: New file.
32734         * tests/unistr/test-u32-mbtoucr.c: New file.
32735
32736         Tests for module 'unistr/u16-mbtoucr'.
32737         * modules/unistr/u16-mbtoucr-tests: New file.
32738         * tests/unistr/test-u16-mbtoucr.c: New file.
32739
32740         Tests for module 'unistr/u8-mbtoucr'.
32741         * modules/unistr/u8-mbtoucr-tests: New file.
32742         * tests/unistr/test-u8-mbtoucr.c: New file.
32743
32744         Tests for module 'unistr/u32-mbtouc'.
32745         * modules/unistr/u32-mbtouc-tests: New file.
32746         * tests/unistr/test-u32-mbtouc.c: New file.
32747
32748         Tests for module 'unistr/u16-mbtouc'.
32749         * modules/unistr/u16-mbtouc-tests: New file.
32750         * tests/unistr/test-u16-mbtouc.c: New file.
32751
32752         Tests for module 'unistr/u8-mbtouc'.
32753         * modules/unistr/u8-mbtouc-tests: New file.
32754         * tests/unistr/test-u8-mbtouc.c: New file.
32755
32756         Tests for module 'unistr/u32-mbtouc-unsafe'.
32757         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
32758         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
32759         * tests/unistr/test-u32-mbtouc.h: New file.
32760
32761         Tests for module 'unistr/u16-mbtouc-unsafe'.
32762         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
32763         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
32764         * tests/unistr/test-u16-mbtouc.h: New file.
32765
32766         Tests for module 'unistr/u8-mbtouc-unsafe'.
32767         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
32768         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
32769         * tests/unistr/test-u8-mbtouc.h: New file.
32770
32771         Tests for module 'unistr/u32-mblen'.
32772         * modules/unistr/u32-mblen-tests: New file.
32773         * tests/unistr/test-u32-mblen.c: New file.
32774
32775         Tests for module 'unistr/u16-mblen'.
32776         * modules/unistr/u16-mblen-tests: New file.
32777         * tests/unistr/test-u16-mblen.c: New file.
32778
32779         Tests for module 'unistr/u8-mblen'.
32780         * modules/unistr/u8-mblen-tests: New file.
32781         * tests/unistr/test-u8-mblen.c: New file.
32782
32783         Tests for module 'unistr/u32-to-u16'.
32784         * modules/unistr/u32-to-u16-tests: New file.
32785         * tests/unistr/test-u32-to-u16.c: New file.
32786
32787         Tests for module 'unistr/u32-to-u8'.
32788         * modules/unistr/u32-to-u8-tests: New file.
32789         * tests/unistr/test-u32-to-u8.c: New file.
32790
32791         Tests for module 'unistr/u16-to-u32'.
32792         * modules/unistr/u16-to-u32-tests: New file.
32793         * tests/unistr/test-u16-to-u32.c: New file.
32794
32795         Tests for module 'unistr/u16-to-u8'.
32796         * modules/unistr/u16-to-u8-tests: New file.
32797         * tests/unistr/test-u16-to-u8.c: New file.
32798
32799         Tests for module 'unistr/u8-to-u32'.
32800         * modules/unistr/u8-to-u32-tests: New file.
32801         * tests/unistr/test-u8-to-u32.c: New file.
32802
32803         Tests for module 'unistr/u8-to-u16'.
32804         * modules/unistr/u8-to-u16-tests: New file.
32805         * tests/unistr/test-u8-to-u16.c: New file.
32806
32807         Tests for module 'unistr/u32-check'.
32808         * modules/unistr/u32-check-tests: New file.
32809         * tests/unistr/test-u32-check.c: New file.
32810
32811         Tests for module 'unistr/u16-check'.
32812         * modules/unistr/u16-check-tests: New file.
32813         * tests/unistr/test-u16-check.c: New file.
32814
32815         Tests for module 'unistr/u8-check'.
32816         * modules/unistr/u8-check-tests: New file.
32817         * tests/unistr/test-u8-check.c: New file.
32818
32819         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
32820         (category_equals): New function.
32821         (main): Add more tests.
32822         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
32823
32824         * tests/unictype/test-bidi_byname.c (main): Add more tests.
32825
32826 2010-01-10  Bruno Haible  <bruno@clisp.org>
32827
32828         unistr/u*-strcoll: Try harder to distinguish different strings.
32829         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
32830         compare s1 and s2 to see if they are different.
32831
32832 2010-01-10  Bruno Haible  <bruno@clisp.org>
32833
32834         unistr/u*-stpncpy: Fix the return value.
32835         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
32836         description of the return value consistent with stpncpy in glibc.
32837         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
32838         written non-NUL unit.
32839
32840 2010-01-10  Bruno Haible  <bruno@clisp.org>
32841
32842         unistr/u*-next: Add missing dependencies.
32843         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
32844         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
32845         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
32846
32847 2010-01-10  Bruno Haible  <bruno@clisp.org>
32848
32849         unistr/u8-mbsnlen: Fix return value for incomplete character.
32850         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
32851         u8_mblen.
32852         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
32853         Remove unistr/u8-mblen.
32854         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
32855         u16_mblen.
32856         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
32857         Remove unistr/u16-mblen.
32858
32859 2010-01-10  Bruno Haible  <bruno@clisp.org>
32860
32861         wchar: Fix compilation error when <wchar.h> is used from coreutils.
32862         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
32863         Reported by Brian Gough <bjg@gnu.org> and
32864         Chris Clayton <chris2553@googlemail.com> via
32865         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
32866
32867 2010-01-09  Bruno Haible  <bruno@clisp.org>
32868
32869         unistr/u16-to-u32: Reject invalid input.
32870         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
32871         u16_mbtouc.
32872         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
32873         Remove unistr/u16-mbtouc.
32874
32875         unistr/u16-to-u8: Reject invalid input.
32876         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
32877         u16_mbtouc.
32878         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
32879         Remove unistr/u16-mbtouc.
32880
32881         unistr/u8-to-u32: Reject invalid input.
32882         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
32883         u8_mbtouc.
32884         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
32885         Remove unistr/u8-mbtouc.
32886
32887         unistr/u8-to-u16: Reject invalid input.
32888         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
32889         u8_mbtouc.
32890         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
32891         Remove unistr/u8-mbtouc.
32892
32893 2010-01-09  Bruno Haible  <bruno@clisp.org>
32894
32895         Tests for module 'getlogin'.
32896         * modules/getlogin-tests: New file.
32897         * tests/test-getlogin.c: New file.
32898
32899         New module 'getlogin'.
32900         * lib/unistd.in.h (getlogin): New declaration.
32901         * lib/getlogin.c: New file.
32902         * m4/getlogin.m4: New file.
32903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
32904         HAVE_GETLOGIN.
32905         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
32906         HAVE_GETLOGIN.
32907         * modules/getlogin: New file.
32908         * doc/posix-functions/getlogin.texi: Mention the new module.
32909         Reported by John W. Eaton <jwe@gnu.org>.
32910
32911 2010-01-09  Bruno Haible  <bruno@clisp.org>
32912
32913         getlogin_r: Support for native Windows.
32914         * lib/getlogin_r.c: Include <windows.h>
32915         (getlogin_r): Implement for native Windows.
32916         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
32917         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
32918         via John W. Eaton <jwe@gnu.org>.
32919
32920 2010-01-09  Bruno Haible  <bruno@clisp.org>
32921
32922         getlogin_r: Small fixes.
32923         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
32924         succeeds.
32925         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
32926         before testing whether getlogin_r is declared. No need to set
32927         HAVE_DECL_GETLOGIN_R to 1.
32928         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
32929
32930 2010-01-09  Bruno Haible  <bruno@clisp.org>
32931
32932         * lib/unistd.in.h (getlogin_r): Add comment.
32933
32934 2010-01-09  Bruno Haible  <bruno@clisp.org>
32935
32936         Tests for module 'getlogin_r'.
32937         * modules/getlogin_r-tests: New file.
32938         * tests/test-getlogin_r.c: New file.
32939
32940 2010-01-09  Jim Meyering  <meyering@redhat.com>
32941
32942         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
32943         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
32944         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
32945
32946 2010-01-08  Simon Josefsson  <simon@josefsson.org>
32947
32948         * lib/dup2.c (rpl_dup2): Improve comment.
32949
32950 2010-01-08  Eric Blake  <ebb9@byu.net>
32951
32952         maint.mk: allow packages to add makefile @@ exceptions
32953         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
32954         (sc_makefile_check): Rename...
32955         (sc_makefile_at_at_check): ...to this, and use hook.
32956
32957         dup2: work around mingw bug
32958         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
32959         Reported by Simon Josefsson.
32960
32961 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
32962
32963         glob: Fix C++ compilation.
32964         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
32965         C++.
32966
32967 2010-01-07  Bruno Haible  <bruno@clisp.org>
32968
32969         Fix indentation of wctype.in.h, broken since 2007-01-06.
32970         * lib/wctype.in.h: Fix indentation of preprocessor directives.
32971
32972 2010-01-07  Bruno Haible  <bruno@clisp.org>
32973
32974         mbslen: Avoid collision with system function.
32975         * lib/string.in.h [MirBSD]: Include <wchar.h>.
32976         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
32977         * m4/mbslen.m4: New file.
32978         * modules/mbslen (Files): Add it.
32979         (configure.ac): Invoke gl_MBSLEN.
32980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
32981         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
32982         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
32983         via Ian Beckwith <ianb@erislabs.net>.
32984
32985 2010-01-07  Bruno Haible  <bruno@clisp.org>
32986
32987         dirent: Document the last fix.
32988         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
32989
32990 2010-01-07  Bruno Haible  <bruno@clisp.org>
32991
32992         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
32993         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
32994         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
32995         va_list are defined.
32996         * doc/posix-headers/stdio.texi: Document the bug of missing types.
32997         Reported by Eric Blake.
32998
32999 2010-01-07  Bruno Haible  <bruno@clisp.org>
33000
33001         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
33002         * modules/xlist (Depends-on): Add 'list',
33003         * modules/xoset (Depends-on): Add 'oset'.
33004         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33005
33006 2010-01-07  Bruno Haible  <bruno@clisp.org>
33007
33008         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
33009         * doc/posix-functions/strncasecmp.texi: Likewise.
33010
33011 2010-01-07  Bruno Haible  <bruno@clisp.org>
33012
33013         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
33014
33015 2010-01-07  John W. Eaton  <jwe@octave.org>
33016
33017         wctype: allow C++ use
33018         * lib/wctype.in.h: Add extern "C" block for C++.
33019
33020 2010-01-06  Eric Blake  <ebb9@byu.net>
33021
33022         maint.mk: detect incorrect GFDL usage
33023         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
33024
33025 2010-01-06  Jim Meyering  <meyering@redhat.com>
33026         and Eric Blake  <ebb9@byu.net>
33027
33028         maint.mk: ignore multi-line copyright in NEWS
33029         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
33030
33031 2010-01-06  Eric Blake  <ebb9@byu.net>
33032
33033         select: add missing dependency
33034         * modules/select-tests (Depends-on): Move sockets dependency...
33035         * modules/select (Depends-on): ...here.
33036         Reported by Ian Beckwith.
33037
33038         doc: regenerate INSTALL
33039         * doc/INSTALL: Reflect recent autoconf update.
33040         * doc/INSTALL.ISO: Likewise.
33041         * doc/INSTALL.UTF-8: Likewise.
33042
33043         pread: fix compilation on glibc
33044         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
33045         Reported by Ralf Wildenhues.
33046
33047         dirent: fix test failure
33048         * lib/dirent.in.h (includes): Guarantee ino_t.
33049         Reported by Ralf Wildenhues.
33050
33051 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
33052
33053         linkat, renameat: avoid bad free
33054         * lib/at-func2.c (at_func2): Fix typo.
33055         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
33056
33057 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33058
33059         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
33060         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
33061         to avoid failure of symlink test later.
33062
33063 2010-01-06  Eric Blake  <ebb9@byu.net>
33064
33065         stdio, unistd: guarantee ssize_t
33066         * lib/unistd.in.h (includes): Ensure that types required by POSIX
33067         2008 are exposed when needed.
33068         * lib/stdio.in.h (includes): Likewise.
33069         Reported by Ralf Wildenhues.
33070
33071 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
33072
33073         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
33074         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
33075         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
33076
33077 2010-01-06  Jim Meyering  <meyering@redhat.com>
33078
33079         readtokens: this module *does* require xalloc.h
33080         It uses only functions that were omitted by the old syntax-check rule.
33081         * lib/readtokens.c: Include "xalloc.h" once again.
33082         * modules/readtokens (Depends-on): Add xalloc.
33083         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
33084
33085 2010-01-05  Eric Blake  <ebb9@byu.net>
33086
33087         maint: support 'make announcement' from a VPATH build
33088         * top/maint.mk (announcement): Look for correct NEWS file.
33089
33090 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
33091
33092         utimens (fdutimens): ignore a negative FD, per contract
33093         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
33094         when we have a valid file descriptor.  Otherwise, using a brand
33095         new glibc (with just-patched futimens that now fails with EBADF)
33096         would cause this function to fail with ENOSYS.
33097         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
33098         See also http://bugzilla.redhat.com/552320.
33099
33100 2010-01-05  Eric Blake  <ebb9@byu.net>
33101
33102         strcase: document what it provides
33103         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
33104         gnulib module.
33105         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
33106         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
33107
33108 2010-01-05  Jim Meyering  <meyering@redhat.com>
33109
33110         maint: remove useless inclusions of "xalloc.h"
33111         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
33112         * lib/readtokens.c: Likewise.
33113         * lib/same.c: Likewise.
33114         * modules/getloadavg (Depends-on): Remove xalloc.
33115         * modules/readtokens: Likewise.
33116         * modules/same: Likewise.
33117
33118         maint.mk: include 4 more function names in alloca.h-checking regexp
33119         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
33120         regexp.  Before, we would give a false-positive (saying alloca.h
33121         is included unnecessarily) when the only uses involved omitted symbols.
33122
33123         xalloc.h: use consistent formatting
33124         * lib/xalloc.h: Move declarations to start in the first column.
33125
33126 2010-01-05  Eric Blake  <ebb9@byu.net>
33127
33128         mkdir: avoid xalloc
33129         * lib/mkdir.c (includes): Drop unused header.
33130         Reported by John W. Eaton.
33131
33132 2010-01-04  Jim Meyering  <meyering@redhat.com>
33133
33134         nl_langinfo: avoid configure-time syntax error
33135         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
33136         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
33137         the empty string.  Don't let that provoke a shell syntax error.
33138
33139         regcomp, regexec, fnmatch: avoid array bounds read error
33140         * lib/regcomp.c (build_equiv_class): From glibc:
33141         Use only the low 24 bits of a findidx return value as an index
33142         into the weights array.  Patch by Ulrich Drepper:
33143         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
33144         * lib/regexec.c (check_node_accept_bytes): Likewise.
33145         * lib/fnmatch_loop.c (FCT): Likewise.
33146
33147         regcomp: skip collseq lookup when there are no rules
33148         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
33149         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
33150
33151         regcomp: recognize ill-formed { } expressions
33152         * lib/regcomp.c (parse_dup_op): From glibc:
33153         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
33154
33155         regcomp: fix typo in comment
33156         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
33157         s/satisfy/satisfies/.
33158
33159         regcomp: sync from glibc: remove dead store
33160         * lib/regcomp.c (duplicate_node_closure): Remove useless
33161         search_duplicated_node call and dead store.
33162
33163         regcomp: sync from glibc; always use nl_langinfo
33164         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
33165         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
33166         * modules/regex (Depends-on): Add nl_langinfo.
33167
33168 2010-01-04  Eric Blake  <ebb9@byu.net>
33169
33170         fdopendir: fix configure test
33171         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
33172
33173 2010-01-01  Bruno Haible  <bruno@clisp.org>
33174
33175         wchar: Remove unused configure check.
33176         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
33177
33178 2010-01-01  Eric Blake  <ebb9@byu.net>
33179
33180         headers: make check of system header explicit
33181         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
33182         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
33183         ourselves.
33184         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33185         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33186         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33187         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
33188         internals.
33189         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
33190         missing.
33191         Suggested by Bruno Haible.
33192
33193 2010-01-01  Jim Meyering  <meyering@redhat.com>
33194
33195         ChangeLog: tweak to eliminate unnecessary copyright line
33196         * ChangeLog: Remove a copyright line that was mistakenly updated
33197         by today's update-copyright run.  Reported by Eric Blake.
33198
33199         test-update-copyright: don't let envvar setting cause test failure
33200         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
33201
33202 2010-01-01  Bruno Haible  <bruno@clisp.org>
33203
33204         localename: Avoid gcc warning.
33205         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
33206         function if it is not used.
33207
33208 2010-01-01  Jim Meyering  <meyering@redhat.com>
33209
33210         update nearly all FSF copyright year lists to include 2010
33211         Use the same procedure as for 2009, outlined in
33212         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
33213
33214         version-etc: set COPYRIGHT_YEAR to 2010
33215         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
33216
33217 2009-12-31  Eric Blake  <ebb9@byu.net>
33218
33219         doc: correct availability of cygwin 1.5.x getopt
33220         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
33221         variables.
33222         * doc/posix-functions/opterr.texi (opterr): Likewise.
33223         * doc/posix-functions/optind.texi (optind): Likewise.
33224         * doc/posix-functions/optopt.texi (optopt): Likewise.
33225         * doc/posix-functions/tzname.texi (tzname): Likewise.
33226
33227         openat: update maintainer
33228         * modules/openat (Maintainer): Add myself.
33229
33230         utimens: avoid shadowing warning
33231         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
33232         buffers into one, to avoid shadowing, as well as avoiding a
33233         redundant stat.
33234         Reported by Jim Meyering.
33235
33236         test-dup2: avoid compiler warning
33237         * tests/test-dup2.c (is_inheritable): Only define if used.
33238
33239 2010-01-01  Bruno Haible  <bruno@clisp.org>
33240
33241         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
33242         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
33243         defined, use wctomb instead of wcrtomb.
33244
33245 2010-01-01  Bruno Haible  <bruno@clisp.org>
33246
33247         iconv: Reject native Solaris iconv.
33248         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
33249         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
33250
33251 2009-12-31  Bruno Haible  <bruno@clisp.org>
33252
33253         * tests/test-signal.c (main): Remove test of 'SIG'.
33254
33255 2009-12-31  Bruno Haible  <bruno@clisp.org>
33256
33257         spawn: Fix incomplete fix.
33258         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
33259         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
33260         warnings for GNULIB_POSIXCHECK again.
33261         Reported by Eric Blake.
33262
33263 2009-12-31  Bruno Haible  <bruno@clisp.org>
33264
33265         Avoid namespace pollution on glibc systems.
33266         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
33267         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
33268         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
33269         glibc systems.
33270
33271 2009-12-31  Bruno Haible  <bruno@clisp.org>
33272
33273         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
33274         (gl_REPLACE_WCHAR_H): Turn into a no-op.
33275         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
33276         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
33277         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
33278         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
33279         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
33280
33281 2009-12-31  Bruno Haible  <bruno@clisp.org>
33282
33283         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33284         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
33285         afterwards.
33286
33287 2009-12-31  Bruno Haible  <bruno@clisp.org>
33288
33289         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
33290         SYS_UTSNAME_H.
33291
33292 2009-12-31  Bruno Haible  <bruno@clisp.org>
33293
33294         spawn: Fix misapplied patch.
33295         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
33296         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
33297         warnings for GNULIB_POSIXCHECK.
33298
33299 2009-12-31  Bruno Haible  <bruno@clisp.org>
33300
33301         times: Update after sys_times changed.
33302         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
33303         * modules/times (Files): Add it.
33304         (configure.ac): Invoke gl_FUNC_TIMES.
33305
33306 2009-12-31  Bruno Haible  <bruno@clisp.org>
33307
33308         Use AC_C_INLINE where necessary.
33309         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
33310         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33311         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
33312         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
33313         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33314         * m4/mbiter.m4 (gl_MBITER): Likewise.
33315         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33316         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33317         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
33318         * modules/u64 (configure.ac): Likewise.
33319
33320 2009-12-31  Bruno Haible  <bruno@clisp.org>
33321
33322         Use AC_C_INLINE instead of module 'inline' where possible.
33323         * modules/inline (Description): Clarify purpose.
33324         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
33325         * modules/count-one-bits (Depends-on): Remove inline.
33326         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
33327         * modules/openat (Depends-on): Remove inline.
33328         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
33329         instead of depending on module 'inline'.
33330         * modules/filevercmp (Depends-on, configure.ac): Likewise.
33331         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
33332         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
33333         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
33334         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
33335         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
33336         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
33337         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
33338         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
33339         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
33340         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
33341         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
33342         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
33343         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
33344         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
33345         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
33346         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
33347         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
33348         Likewise.
33349         * modules/unictype/property-ascii-hex-digit (Depends-on,
33350         configure.ac): Likewise.
33351         * modules/unictype/property-bidi-arabic-digit (Depends-on,
33352         configure.ac): Likewise.
33353         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
33354         configure.ac): Likewise.
33355         * modules/unictype/property-bidi-block-separator (Depends-on,
33356         configure.ac): Likewise.
33357         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
33358         configure.ac): Likewise.
33359         * modules/unictype/property-bidi-common-separator (Depends-on,
33360         configure.ac): Likewise.
33361         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
33362         Likewise.
33363         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
33364         configure.ac): Likewise.
33365         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
33366         configure.ac): Likewise.
33367         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
33368         configure.ac): Likewise.
33369         * modules/unictype/property-bidi-european-digit (Depends-on,
33370         configure.ac): Likewise.
33371         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
33372         configure.ac): Likewise.
33373         * modules/unictype/property-bidi-left-to-right (Depends-on,
33374         configure.ac): Likewise.
33375         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
33376         configure.ac): Likewise.
33377         * modules/unictype/property-bidi-other-neutral (Depends-on,
33378         configure.ac): Likewise.
33379         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
33380         Likewise.
33381         * modules/unictype/property-bidi-segment-separator (Depends-on,
33382         configure.ac): Likewise.
33383         * modules/unictype/property-bidi-whitespace (Depends-on,
33384         configure.ac): Likewise.
33385         * modules/unictype/property-combining (Depends-on, configure.ac):
33386         Likewise.
33387         * modules/unictype/property-composite (Depends-on, configure.ac):
33388         Likewise.
33389         * modules/unictype/property-currency-symbol (Depends-on,
33390         configure.ac): Likewise.
33391         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
33392         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
33393         Likewise.
33394         * modules/unictype/property-default-ignorable-code-point (Depends-on,
33395         configure.ac): Likewise.
33396         * modules/unictype/property-deprecated (Depends-on, configure.ac):
33397         Likewise.
33398         * modules/unictype/property-diacritic (Depends-on, configure.ac):
33399         Likewise.
33400         * modules/unictype/property-extender (Depends-on, configure.ac):
33401         Likewise.
33402         * modules/unictype/property-format-control (Depends-on, configure.ac):
33403         Likewise.
33404         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
33405         Likewise.
33406         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
33407         Likewise.
33408         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
33409         Likewise.
33410         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
33411         Likewise.
33412         * modules/unictype/property-hyphen (Depends-on, configure.ac):
33413         Likewise.
33414         * modules/unictype/property-id-continue (Depends-on, configure.ac):
33415         Likewise.
33416         * modules/unictype/property-id-start (Depends-on, configure.ac):
33417         Likewise.
33418         * modules/unictype/property-ideographic (Depends-on, configure.ac):
33419         Likewise.
33420         * modules/unictype/property-ids-binary-operator (Depends-on,
33421         configure.ac): Likewise.
33422         * modules/unictype/property-ids-trinary-operator (Depends-on,
33423         configure.ac): Likewise.
33424         * modules/unictype/property-ignorable-control (Depends-on,
33425         configure.ac): Likewise.
33426         * modules/unictype/property-iso-control (Depends-on, configure.ac):
33427         Likewise.
33428         * modules/unictype/property-join-control (Depends-on, configure.ac):
33429         Likewise.
33430         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
33431         Likewise.
33432         * modules/unictype/property-line-separator (Depends-on, configure.ac):
33433         Likewise.
33434         * modules/unictype/property-logical-order-exception (Depends-on,
33435         configure.ac): Likewise.
33436         * modules/unictype/property-lowercase (Depends-on, configure.ac):
33437         Likewise.
33438         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
33439         * modules/unictype/property-non-break (Depends-on, configure.ac):
33440         Likewise.
33441         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
33442         Likewise.
33443         * modules/unictype/property-numeric (Depends-on, configure.ac):
33444         Likewise.
33445         * modules/unictype/property-other-alphabetic (Depends-on,
33446         configure.ac): Likewise.
33447         * modules/unictype/property-other-default-ignorable-code-point
33448         (Depends-on, configure.ac): Likewise.
33449         * modules/unictype/property-other-grapheme-extend (Depends-on,
33450         configure.ac): Likewise.
33451         * modules/unictype/property-other-id-continue (Depends-on,
33452         configure.ac): Likewise.
33453         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
33454         Likewise.
33455         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
33456         Likewise.
33457         * modules/unictype/property-other-math (Depends-on, configure.ac):
33458         Likewise.
33459         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
33460         Likewise.
33461         * modules/unictype/property-paired-punctuation (Depends-on,
33462         configure.ac): Likewise.
33463         * modules/unictype/property-paragraph-separator (Depends-on,
33464         configure.ac): Likewise.
33465         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
33466         Likewise.
33467         * modules/unictype/property-pattern-white-space (Depends-on,
33468         configure.ac): Likewise.
33469         * modules/unictype/property-private-use (Depends-on, configure.ac):
33470         Likewise.
33471         * modules/unictype/property-punctuation (Depends-on, configure.ac):
33472         Likewise.
33473         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
33474         Likewise.
33475         * modules/unictype/property-radical (Depends-on, configure.ac):
33476         Likewise.
33477         * modules/unictype/property-sentence-terminal (Depends-on,
33478         configure.ac): Likewise.
33479         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
33480         Likewise.
33481         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
33482         * modules/unictype/property-terminal-punctuation (Depends-on,
33483         configure.ac): Likewise.
33484         * modules/unictype/property-titlecase (Depends-on, configure.ac):
33485         Likewise.
33486         * modules/unictype/property-unassigned-code-value (Depends-on,
33487         configure.ac): Likewise.
33488         * modules/unictype/property-unified-ideograph (Depends-on,
33489         configure.ac): Likewise.
33490         * modules/unictype/property-uppercase (Depends-on, configure.ac):
33491         Likewise.
33492         * modules/unictype/property-variation-selector (Depends-on,
33493         configure.ac): Likewise.
33494         * modules/unictype/property-white-space (Depends-on, configure.ac):
33495         Likewise.
33496         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
33497         Likewise.
33498         * modules/unictype/property-xid-start (Depends-on, configure.ac):
33499         Likewise.
33500         * modules/unictype/property-zero-width (Depends-on, configure.ac):
33501         Likewise.
33502         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
33503         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
33504         Likewise.
33505
33506 2009-12-31  Bruno Haible  <bruno@clisp.org>
33507
33508         Remove unnecessary AC_C_INLINE invocation.
33509         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
33510         since 2009-08-21.
33511
33512 2009-12-31  Jim Meyering  <meyering@redhat.com>
33513
33514         maint.mk: don't require explicit gpg_key_ID in cfg.mk
33515         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
33516         With this change, we can all remove the gpg_key_ID = ... definition
33517         from our respective cfg.mk files.
33518
33519         maint.mk: create announcement template in ~/, not in /tmp
33520         * top/maint.mk (emit_upload_commands): Adjust.
33521         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
33522         Remove temporary file, .ci-msg.
33523
33524 2009-12-31  Eric Blake  <ebb9@byu.net>
33525
33526         link-warning: always build headers with link warnings
33527         * modules/arpa_inet (Makefile.am): Always build replacement
33528         header.
33529         * modules/ctype (Makefile.am): Likewise.
33530         * modules/dirent (Makefile.am): Likewise.
33531         * modules/inttypes (Makefile.am): Likewise.
33532         * modules/langinfo (Makefile.am): Likewise.
33533         * modules/locale (Makefile.am): Likewise.
33534         * modules/spawn (Makefile.am): Likewise.
33535         * modules/sys_file (Makefile.am): Likewise.
33536         * modules/sys_ioctl (Makefile.am): Likewise.
33537         * modules/sys_select (Makefile.am): Likewise.
33538         * modules/sys_socket (Makefile.am): Likewise.
33539         * modules/sys_times (Makefile.am): Likewise.
33540         * modules/sys_utsname (Makefile.am): Likewise.
33541         * modules/sys_wait (Makefile.am): Likewise.
33542         * modules/wchar (Makefile.am): Likewise.
33543         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
33544         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
33545         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
33546         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
33547         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
33548         Likewise.
33549         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33550         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33551         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
33552         Likewise.
33553         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
33554         Likewise.
33555         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
33556         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
33557         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
33558         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33559         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33560         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
33561         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
33562         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
33563         (gl_WCHAR_H_DEFAULTS): Likewise.
33564
33565 2009-12-31  Eric Blake  <ebb9@byu.net>
33566
33567         signal, spawn: use link warnings
33568         * lib/signal.in.h (sigset_t): Make unconditional.
33569         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
33570         (sigpending, sigprocmask, sigaction): Add link warnings.
33571         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
33572         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
33573         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
33574         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
33575         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
33576         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
33577         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
33578         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
33579         (posix_spawn_file_actions_destroy)
33580         (posix_spawn_file_actions_addopen)
33581         (posix_spawn_file_actions_addclose)
33582         (posix_spawn_file_actions_adddup2): Likewise.
33583         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
33584         * tests/test-signal.c (main): Enhance test.
33585
33586         spawn: improve wrapper support
33587         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
33588         (gl_SPAWN_H_DEFAULTS): New defaults.
33589         * modules/spawn (Makefile.am): Substitute them.
33590         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
33591         Only declare if missing or broken.
33592
33593         sys_times, sys_utsname: use include_next
33594         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
33595         header.
33596         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
33597         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
33598         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
33599         * modules/sys_times (Depends-on): Add include_next.
33600         (Makefile.am): Substitute additional values.
33601         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33602         * lib/sys_times.in.h (includes): Include native header, if
33603         available.
33604         * lib/sys_utsname.in.h (includes): Likewise.
33605         * tests/test-sys_times.c (main): Enhance test.
33606
33607         fdutimensat: revert prior patch
33608         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
33609         utimens.h.
33610         Reported by Bruno Haible.
33611
33612 2009-12-30  Eric Blake  <ebb9@byu.net>
33613
33614         sys_wait: drop link-warning dependency
33615         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
33616         link-warning efforts.
33617         * lib/sys_wait.in.h: Likewise.
33618
33619         fdutimensat: remove bogus dependency
33620         * modules/fdutimensat (Depends-on): Drop inline.
33621
33622         unistd: fix typo
33623         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
33624
33625 2009-12-30  Bruno Haible  <bruno@clisp.org>
33626
33627         Fix compilation error with Solaris cc.
33628         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
33629         * lib/unicase/u16-is-invariant.c: Likewise.
33630         * lib/unicase/u32-is-invariant.c: Likewise.
33631         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
33632
33633 2009-12-30  Bruno Haible  <bruno@clisp.org>
33634
33635         Fix test crash.
33636         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
33637         locales.
33638         Reported by Simon Josefsson <simon@josefsson.org>.
33639
33640 2009-12-30  Bruno Haible  <bruno@clisp.org>
33641
33642         Fix compilation error on most platforms.
33643         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
33644         Reported by Simon Josefsson <simon@josefsson.org>
33645         and Nelson H. F. Beebe <beebe@math.utah.edu>.
33646
33647 2009-12-30  Eric Blake  <ebb9@byu.net>
33648
33649         futimens, utimensat: work around ntfs-3g bug
33650         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
33651         a ctime bug is present, and expand workaround to cover ntfs-3g.
33652         * lib/utimens.c (fdutimens, lutimens): Likewise.
33653         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
33654         (validate_timespec): Adjust return value.
33655         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
33656         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33657         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
33658
33659 2009-12-29  Eric Blake  <ebb9@byu.net>
33660
33661         link-warning: make usage consistent
33662         * modules/ctype (Depends-on): Add link-warning.
33663         (Makefile.am): Update rules accordingly.
33664         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33665         * modules/locale (Depends-on, Makefile.am): Likewise.
33666         * modules/sys_file (Makefile.am): Likewise.
33667         * modules/getopt-posix (Makefile.am): Delete unused link warning
33668         efforts.
33669         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
33670         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
33671         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
33672         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
33673
33674         stdio: remove unused variables
33675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
33676         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
33677         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
33678
33679         tests: test more substitute headers
33680         * modules/ctype-tests: New file.
33681         * modules/dirent-tests: Likewise.
33682         * modules/spawn-tests: Likewise.
33683         * modules/sys_file-tests: Likewise.
33684         * modules/sys_ioctl-tests: Likewise.
33685         * modules/sys_wait-tests: Likewise.
33686         * tests/test-ctype.c: Likewise.
33687         * tests/test-dirent.c: Likewise.
33688         * tests/test-spawn.c: Likewise.
33689         * tests/test-sys_file.c: Likewise.
33690         * tests/test-sys_ioctl.c: Likewise.
33691         * tests/test-sys_wait.c: Likewise.
33692         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
33693         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
33694         whether or not flock is in use.
33695
33696         tests: remove License section from module
33697         * modules/arpa_inet-tests: Remove unneeded section.
33698         * modules/byteswap-tests: Likewise.
33699         * modules/ceilf-tests: Likewise.
33700         * modules/ceill-tests: Likewise.
33701         * modules/crypto/des-tests: Likewise.
33702         * modules/crypto/gc-arcfour-tests: Likewise.
33703         * modules/crypto/gc-arctwo-tests: Likewise.
33704         * modules/crypto/gc-des-tests: Likewise.
33705         * modules/crypto/gc-hmac-md5-tests: Likewise.
33706         * modules/crypto/gc-hmac-sha1-tests: Likewise.
33707         * modules/crypto/gc-md2-tests: Likewise.
33708         * modules/crypto/gc-md4-tests: Likewise.
33709         * modules/crypto/gc-md5-tests: Likewise.
33710         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
33711         * modules/crypto/gc-rijndael-tests: Likewise.
33712         * modules/crypto/gc-sha1-tests: Likewise.
33713         * modules/crypto/gc-tests: Likewise.
33714         * modules/crypto/md2-tests: Likewise.
33715         * modules/crypto/md4-tests: Likewise.
33716         * modules/fcntl-h-tests: Likewise.
33717         * modules/floorf-tests: Likewise.
33718         * modules/floorl-tests: Likewise.
33719         * modules/frexp-nolibm-tests: Likewise.
33720         * modules/frexp-tests: Likewise.
33721         * modules/frexpl-nolibm-tests: Likewise.
33722         * modules/frexpl-tests: Likewise.
33723         * modules/getaddrinfo-tests: Likewise.
33724         * modules/inttypes-tests: Likewise.
33725         * modules/isfinite-tests: Likewise.
33726         * modules/isinf-tests: Likewise.
33727         * modules/ldexpl-tests: Likewise.
33728         * modules/locale-tests: Likewise.
33729         * modules/math-tests: Likewise.
33730         * modules/netdb-tests: Likewise.
33731         * modules/netinet_in-tests: Likewise.
33732         * modules/printf-frexp-tests: Likewise.
33733         * modules/printf-frexpl-tests: Likewise.
33734         * modules/priv-set-tests: Likewise.
33735         * modules/random_r-tests: Likewise.
33736         * modules/round-tests: Likewise.
33737         * modules/roundf-tests: Likewise.
33738         * modules/roundl-tests: Likewise.
33739         * modules/search-tests: Likewise.
33740         * modules/select-tests: Likewise.
33741         * modules/signal-tests: Likewise.
33742         * modules/stdbool-tests: Likewise.
33743         * modules/stddef-tests: Likewise.
33744         * modules/stdint-tests: Likewise.
33745         * modules/stdio-tests: Likewise.
33746         * modules/stdlib-tests: Likewise.
33747         * modules/string-tests: Likewise.
33748         * modules/strings-tests: Likewise.
33749         * modules/sys_select-tests: Likewise.
33750         * modules/sys_socket-tests: Likewise.
33751         * modules/sys_stat-tests: Likewise.
33752         * modules/sys_time-tests: Likewise.
33753         * modules/sys_utsname-tests: Likewise.
33754         * modules/sysexits-tests: Likewise.
33755         * modules/time-tests: Likewise.
33756         * modules/trunc-tests: Likewise.
33757         * modules/truncf-tests: Likewise.
33758         * modules/truncl-tests: Likewise.
33759         * modules/tsearch-tests: Likewise.
33760         * modules/unistd-tests: Likewise.
33761         * modules/wchar-tests: Likewise.
33762         * modules/wctype-tests: Likewise.
33763
33764         tests: fix license on several tests
33765         * tests/test-des.c: Update to GPLv3+.
33766         * tests/test-flock.c: Likewise.
33767         * tests/test-fsync.c: Likewise.
33768         * tests/test-futimens.h: Likewise.
33769         * tests/test-gc-arcfour.c: Likewise.
33770         * tests/test-gc-arctwo.c: Likewise.
33771         * tests/test-gc-des.c: Likewise.
33772         * tests/test-gc-hmac-md5.c: Likewise.
33773         * tests/test-gc-hmac-sha1.c: Likewise.
33774         * tests/test-gc-md2.c: Likewise.
33775         * tests/test-gc-md4.c: Likewise.
33776         * tests/test-gc-md5.c: Likewise.
33777         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33778         * tests/test-gc-rijndael.c: Likewise.
33779         * tests/test-gc-sha1.c: Likewise.
33780         * tests/test-gc.c: Likewise.
33781         * tests/test-getcwd.c: Likewise.
33782         * tests/test-link.c: Likewise.
33783         * tests/test-link.h: Likewise.
33784         * tests/test-lutimens.h: Likewise.
33785         * tests/test-md2.c: Likewise.
33786         * tests/test-md4.c: Likewise.
33787         * tests/test-mkdir.h: Likewise.
33788         * tests/test-rename.c: Likewise.
33789         * tests/test-rename.h: Likewise.
33790         * tests/test-safe-alloc.c: Likewise.
33791         * tests/test-utimens-common.h: Likewise.
33792         * tests/test-utimens.h: Likewise.
33793
33794         maint: sync license texts
33795         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
33796         * doc/gpl-3.0.texi: Revert copyright year update.
33797         * doc/lgpl-3.0.texi: Likewise.
33798
33799 2009-12-29  Jim Meyering  <meyering@redhat.com>
33800
33801         update nearly all FSF copyright year lists to include 2009
33802         The files named by the following are exempted:
33803             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
33804               test -f "$dst" && { echo "$dst"; continue; }
33805               test -d "$dst" || continue
33806               echo "$dst"/$(basename "$src")
33807             done > exempt
33808             git ls-files tests/unictype >> exempt
33809         In the remaining files, convert to all-interval notation if
33810         - there is already at least one year interval like 2000-2003
33811         - the file is maintained by me
33812         - the file is in lib/uni*/, where that style already prevails
33813         Otherwise, use update-copyright's default.
33814
33815 2009-12-29  Simon Josefsson  <simon@josefsson.org>
33816         and Eric Blake  <ebb9@byu.net>
33817
33818         tests: don't require debug system() to pass
33819         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
33820         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33821         * tests/test-unlink.h (test_unlink_func): Likewise.
33822         * tests/test-fstatat.c (main): ...into callers.
33823         * tests/test-lstat.c (main): Likewise.
33824         * tests/test-rmdir.c (main): Likewise.
33825         * tests/test-unlink.c (main): Likewise.
33826         * tests/test-unlinkat.c (main): Likewise.
33827         * tests/test-areadlink-with-size.c (main): Don't require a
33828         debug-only system call to pass, aiding cross-testing to mingw.
33829         * tests/test-areadlink.c (main): Likewise.
33830         * tests/test-areadlinkat-with-size.c (main): Likewise.
33831         * tests/test-areadlinkat.c (main): Likewise.
33832         * tests/test-canonicalize-lgpl.c (main): Likewise.
33833         * tests/test-canonicalize.c (main): Likewise.
33834         * tests/test-chown.c (main): Likewise.
33835         * tests/test-fchownat.c (main): Likewise.
33836         * tests/test-lchown.c (main): Likewise.
33837         * tests/test-fdutimensat.c (main): Likewise.
33838         * tests/test-futimens.c (main): Likewise.
33839         * tests/test-link.c (main): Likewise.
33840         * tests/test-linkat.c (main): Likewise.
33841         * tests/test-mkdir.c (main): Likewise.
33842         * tests/test-mkdirat.c (main): Likewise.
33843         * tests/test-mkfifo.c (main): Likewise.
33844         * tests/test-mkfifoat.c (main): Likewise.
33845         * tests/test-mknod.c (main): Likewise.
33846         * tests/test-readlink.c (main): Likewise.
33847         * tests/test-remove.c (main): Likewise.
33848         * tests/test-rename.c (main): Likewise.
33849         * tests/test-renameat.c (main): Likewise.
33850         * tests/test-symlink.c (main): Likewise.
33851         * tests/test-symlinkat.c (main): Likewise.
33852         * tests/test-utimens.c (main): Likewise.
33853         * tests/test-utimensat.c (main): Likewise.
33854
33855 2009-12-29  Simon Josefsson  <simon@josefsson.org>
33856
33857         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
33858         on $(UNUSED_PARAMETER_H) to avoid build failure.
33859
33860 2009-12-28  Jim Meyering  <meyering@redhat.com>
33861
33862         update-copyright: you may specify a max. line length other than 72
33863         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
33864
33865         maint: use consistent FSF copyright line syntax
33866         * lib/posixtm.c: Add missing comma in FSF copyright line.
33867         * lib/posixtm.h: Likewise.
33868         * lib/getugroups.c: Add missing ", Inc.".
33869
33870         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
33871         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
33872         FSF copyright line.  Remove trailing blanks.
33873
33874 2009-12-28  Eric Blake  <ebb9@byu.net>
33875
33876         test-dup2: reduce dependencies
33877         * modules/cloexec (Configure.ac): Set witness.
33878         * modules/dup2-tests (Depends-on): Drop cloexec.
33879         * tests/test-dup2.c (main): Skip portion of test if cloexec module
33880         not present.
33881         Suggested by Bruno Haible.
33882
33883 2009-12-26  Bruno Haible  <bruno@clisp.org>
33884
33885         Remove an unneeded dependency.
33886         * modules/fseterr (Depends-on): Remove dup2.
33887
33888 2009-12-26  Eric Blake  <ebb9@byu.net>
33889
33890         tests: use macros.h in more places
33891         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
33892         (ASSERT_STREAM): Provide default of stderr.
33893         * tests/test-dirent-safer.c: Include macros.h, using alternate
33894         stream for assertions.
33895         * tests/test-dup-safer.c: Likewise.
33896         * tests/test-freopen-safer.c: Likewise.
33897         * tests/test-getopt.c: Likewise.
33898         * tests/test-openat-safer.c: Likewise.
33899         * tests/test-pipe.c: Likewise.
33900         * tests/test-popen-safer.c: Likewise.
33901         * modules/dirent-safer-tests (Files): Include macros.h.
33902         * modules/unistd-safer-tests (Files): Likewise.
33903         * modules/freopen-safer-tests (Files): Likewise.
33904         * modules/getopt-posix-tests (Files): Likewise.
33905         * modules/openat-safer-tests (Files): Likewise.
33906         * modules/pipe-tests (Files): Likewise.
33907
33908 2009-12-26  Bruno Haible  <bruno@clisp.org>
33909
33910         javacomp: Portability fix.
33911         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
33912         that it also works on Solaris.
33913
33914 2009-12-26  Bruno Haible  <bruno@clisp.org>
33915
33916         localename: Fix storage allocation of gl_locale_name_thread's result.
33917         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
33918         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
33919         all platforms that have 'uselocale'.
33920         (gl_locale_name_thread_unsafe): New function, extracted from
33921         gl_locale_name_thread.
33922         (gl_locale_name_thread): Call struniq on all platforms that have
33923         'uselocale'.
33924         * tests/test-localename.c (test_locale_name_thread): Check that the
33925         resulting strings are permanently allocated.
33926         * modules/localename-tests (Depends-on): Add strdup.
33927
33928 2009-12-26  Bruno Haible  <bruno@clisp.org>
33929
33930         * tests/test-localename.c (categories): Fill in the strings.
33931
33932 2009-12-26  Jim Meyering  <meyering@redhat.com>
33933
33934         isdir: complete the removal of m4/isdir.m4
33935         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
33936
33937         isdir: clean up, since at least grep still uses it
33938         * lib/isdir.c: Include "isdir.h".
33939         (S_ISDIR): Remove now-unneeded definition.
33940         * modules/isdir (Files): Add lib/isdir.h.
33941         * lib/isdir.h: New file, with declaration.
33942         * m4/isdir.m4: Remove file -- unneeded.
33943
33944 2009-12-25  Bruno Haible  <bruno@clisp.org>
33945
33946         selinux-h: Make generated .h files standalone.
33947         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
33948         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
33949         * lib/se-selinux.in.h: Likewise.
33950         * modules/selinux-h (Depends-on): Add unused-parameter.
33951         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
33952         selinux/selinux.h and selinux/context.h.
33953         Suggested by Eric Blake.
33954
33955 2009-12-25  Bruno Haible  <bruno@clisp.org>
33956
33957         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
33958         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
33959         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
33960         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
33961         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
33962
33963 2009-12-24  Bruno Haible  <bruno@clisp.org>
33964
33965         openat: Fix warning.
33966         * lib/openat-proc.c: Include <unistd.h>.
33967
33968 2009-12-24  Bruno Haible  <bruno@clisp.org>
33969
33970         New module 'unused-parameter'.
33971         * build-aux/unused-parameter.h: New file, extracted from earlier
33972         gnulib-common.m4.
33973         * modules/unused-parameter: New file.
33974         * lib/unistr.h: Include unused-parameter.h.
33975         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
33976         _GL_UNUSED.
33977         * modules/unistr/base (Depends-on): Add unused-parameter.
33978
33979 2009-12-24  Bruno Haible  <bruno@clisp.org>
33980
33981         Add missing dependencies to 'extensions' module.
33982         * m4/extensions.m4: Add comment.
33983         * modules/accept4 (Depends-on): Add extensions.
33984         * modules/dup3 (Depends-on): Likewise.
33985         * modules/fcntl (Depends-on): Likewise.
33986         * modules/futimens (Depends-on): Likewise.
33987         * modules/mknod (Depends-on): Likewise.
33988         * modules/pipe2 (Depends-on): Likewise.
33989         * modules/stat-time (Depends-on): Likewise.
33990         * modules/strcasestr-simple (Depends-on): Likewise.
33991         * modules/strsignal (Depends-on): Likewise.
33992         * modules/utimensat (Depends-on): Likewise.
33993         * modules/localcharset (Depends-on): Likewise. Needed because of
33994         gl_FCNTL_O_FLAGS.
33995         * modules/wcrtomb (Depends-on): Likewise. Needed because of
33996         AC_TYPE_MBSTATE_T.
33997         * modules/wcsnrtombs (Depends-on): Likewise.
33998         * modules/wcsrtombs (Depends-on): Likewise.
33999
34000 2009-12-24  Bruno Haible  <bruno@clisp.org>
34001
34002         binary-io: Avoid gcc warning due to SET_BINARY.
34003         * lib/binary-io.h (SET_BINARY): Cast the result to void.
34004         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
34005
34006 2009-12-24  Bruno Haible  <bruno@clisp.org>
34007
34008         Avoid future namespace pollution on glibc systems.
34009         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
34010         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
34011         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
34012         glibc systems.
34013
34014 2009-12-24  Bruno Haible  <bruno@clisp.org>
34015
34016         Refactor common macros used in tests.
34017         * tests/macros.h: New file.
34018         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
34019         and/or <stdlib.h>, if appropriate.
34020         (ASSERT, SIZEOF): Remove macros.
34021         * tests/test-areadlink-with-size.c: Likewise.
34022         * tests/test-areadlinkat.c: Likewise.
34023         * tests/test-areadlinkat-with-size.c: Likewise.
34024         * tests/test-argmatch.c: Likewise.
34025         * tests/test-argv-iter.c: Likewise.
34026         * tests/test-array-mergesort.c: Likewise.
34027         * tests/test-array_list.c: Likewise.
34028         * tests/test-array_oset.c: Likewise.
34029         * tests/test-avltree_list.c: Likewise.
34030         * tests/test-avltree_oset.c: Likewise.
34031         * tests/test-avltreehash_list.c: Likewise.
34032         * tests/test-base64.c: Likewise.
34033         * tests/test-binary-io.c: Likewise.
34034         * tests/test-bitrotate.c: Likewise.
34035         * tests/test-btowc.c: Likewise.
34036         * tests/test-byteswap.c: Likewise.
34037         * tests/test-c-ctype.c: Likewise.
34038         * tests/test-c-stack.c: Likewise.
34039         * tests/test-c-strcasecmp.c: Likewise.
34040         * tests/test-c-strcasestr.c: Likewise.
34041         * tests/test-c-strncasecmp.c: Likewise.
34042         * tests/test-c-strstr.c: Likewise.
34043         * tests/test-canonicalize-lgpl.c: Likewise.
34044         * tests/test-canonicalize.c: Likewise.
34045         * tests/test-carray_list.c: Likewise.
34046         * tests/test-ceilf1.c: Likewise.
34047         * tests/test-ceilf2.c: Likewise.
34048         * tests/test-ceill.c: Likewise.
34049         * tests/test-chown.c: Likewise.
34050         * tests/test-cloexec.c: Likewise.
34051         * tests/test-copy-acl.c: Likewise.
34052         * tests/test-copy-file.c: Likewise.
34053         * tests/test-count-one-bits.c: Likewise.
34054         * tests/test-dprintf-posix.c: Likewise.
34055         * tests/test-dup2.c: Likewise.
34056         * tests/test-dup3.c: Likewise.
34057         * tests/test-duplocale.c: Likewise.
34058         * tests/test-fbufmode.c: Likewise.
34059         * tests/test-fchdir.c: Likewise.
34060         * tests/test-fchownat.c: Likewise.
34061         * tests/test-fcntl-safer.c: Likewise.
34062         * tests/test-fcntl.c: Likewise.
34063         * tests/test-fdopendir.c: Likewise.
34064         * tests/test-fdutimensat.c: Likewise.
34065         * tests/test-fflush2.c: Likewise.
34066         * tests/test-file-has-acl.c: Likewise.
34067         * tests/test-filevercmp.c: Likewise.
34068         * tests/test-flock.c: Likewise.
34069         * tests/test-floorf1.c: Likewise.
34070         * tests/test-floorf2.c: Likewise.
34071         * tests/test-floorl.c: Likewise.
34072         * tests/test-fnmatch.c: Likewise.
34073         * tests/test-fopen.h: Likewise.
34074         * tests/test-fpending.c: Likewise.
34075         * tests/test-fprintf-posix.c: Likewise.
34076         * tests/test-fpurge.c: Likewise.
34077         * tests/test-freadable.c: Likewise.
34078         * tests/test-freadahead.c: Likewise.
34079         * tests/test-freading.c: Likewise.
34080         * tests/test-freadptr.c: Likewise.
34081         * tests/test-freadptr2.c: Likewise.
34082         * tests/test-freadseek.c: Likewise.
34083         * tests/test-freopen.c: Likewise.
34084         * tests/test-frexp.c: Likewise.
34085         * tests/test-frexpl.c: Likewise.
34086         * tests/test-fseek.c: Likewise.
34087         * tests/test-fseeko.c: Likewise.
34088         * tests/test-fstatat.c: Likewise.
34089         * tests/test-fstrcmp.c: Likewise.
34090         * tests/test-fsync.c: Likewise.
34091         * tests/test-ftell.c: Likewise.
34092         * tests/test-ftello.c: Likewise.
34093         * tests/test-func.c: Likewise.
34094         * tests/test-futimens.c: Likewise.
34095         * tests/test-fwritable.c: Likewise.
34096         * tests/test-fwriting.c: Likewise.
34097         * tests/test-getcwd.c: Likewise.
34098         * tests/test-getdate.c: Likewise.
34099         * tests/test-getdelim.c: Likewise.
34100         * tests/test-getdtablesize.c: Likewise.
34101         * tests/test-getgroups.c: Likewise.
34102         * tests/test-getline.c: Likewise.
34103         * tests/test-getndelim2.c: Likewise.
34104         * tests/test-glob.c: Likewise.
34105         * tests/test-hash.c: Likewise.
34106         * tests/test-i-ring.c: Likewise.
34107         * tests/test-iconv-utf.c: Likewise.
34108         * tests/test-iconv.c: Likewise.
34109         * tests/test-idpriv-drop.c: Likewise.
34110         * tests/test-idpriv-droptemp.c: Likewise.
34111         * tests/test-inet_ntop.c: Likewise.
34112         * tests/test-inet_pton.c: Likewise.
34113         * tests/test-isblank.c: Likewise.
34114         * tests/test-isfinite.c: Likewise.
34115         * tests/test-isinf.c: Likewise.
34116         * tests/test-isnan.c: Likewise.
34117         * tests/test-isnand.h: Likewise.
34118         * tests/test-isnanf.h: Likewise.
34119         * tests/test-isnanl.h: Likewise.
34120         * tests/test-lchown.c: Likewise.
34121         * tests/test-ldexpl.c: Likewise.
34122         * tests/test-link.c: Likewise.
34123         * tests/test-linkat.c: Likewise.
34124         * tests/test-linked_list.c: Likewise.
34125         * tests/test-linkedhash_list.c: Likewise.
34126         * tests/test-localename.c: Likewise.
34127         * tests/test-lseek.c: Likewise.
34128         * tests/test-lstat.c: Likewise.
34129         * tests/test-mbmemcasecmp.c: Likewise.
34130         * tests/test-mbmemcasecoll.c: Likewise.
34131         * tests/test-mbrtowc.c: Likewise.
34132         * tests/test-mbscasecmp.c: Likewise.
34133         * tests/test-mbscasestr1.c: Likewise.
34134         * tests/test-mbscasestr2.c: Likewise.
34135         * tests/test-mbscasestr3.c: Likewise.
34136         * tests/test-mbscasestr4.c: Likewise.
34137         * tests/test-mbschr.c: Likewise.
34138         * tests/test-mbscspn.c: Likewise.
34139         * tests/test-mbsinit.c: Likewise.
34140         * tests/test-mbsncasecmp.c: Likewise.
34141         * tests/test-mbsnrtowcs.c: Likewise.
34142         * tests/test-mbspbrk.c: Likewise.
34143         * tests/test-mbspcasecmp.c: Likewise.
34144         * tests/test-mbsrchr.c: Likewise.
34145         * tests/test-mbsrtowcs.c: Likewise.
34146         * tests/test-mbsspn.c: Likewise.
34147         * tests/test-mbsstr1.c: Likewise.
34148         * tests/test-mbsstr2.c: Likewise.
34149         * tests/test-mbsstr3.c: Likewise.
34150         * tests/test-memchr.c: Likewise.
34151         * tests/test-memchr2.c: Likewise.
34152         * tests/test-memcmp.c: Likewise.
34153         * tests/test-memmem.c: Likewise.
34154         * tests/test-memrchr.c: Likewise.
34155         * tests/test-mkdir.c: Likewise.
34156         * tests/test-mkdirat.c: Likewise.
34157         * tests/test-mkfifo.c: Likewise.
34158         * tests/test-mkfifoat.c: Likewise.
34159         * tests/test-mknod.c: Likewise.
34160         * tests/test-nanosleep.c: Likewise.
34161         * tests/test-nl_langinfo.c: Likewise.
34162         * tests/test-obstack-printf.c: Likewise.
34163         * tests/test-open.c: Likewise.
34164         * tests/test-openat.c: Likewise.
34165         * tests/test-pipe-filter-gi1.c: Likewise.
34166         * tests/test-pipe-filter-gi2-main.c: Likewise.
34167         * tests/test-pipe-filter-ii1.c: Likewise.
34168         * tests/test-pipe-filter-ii2-main.c: Likewise.
34169         * tests/test-pipe2.c: Likewise.
34170         * tests/test-popen.h: Likewise.
34171         * tests/test-posixtm.c: Likewise.
34172         * tests/test-pread.c: Likewise.
34173         * tests/test-printf-frexp.c: Likewise.
34174         * tests/test-printf-frexpl.c: Likewise.
34175         * tests/test-printf-posix.c: Likewise.
34176         * tests/test-priv-set.c: Likewise.
34177         * tests/test-quotearg.c: Likewise.
34178         * tests/test-random_r.c: Likewise.
34179         * tests/test-rawmemchr.c: Likewise.
34180         * tests/test-rbtree_list.c: Likewise.
34181         * tests/test-rbtree_oset.c: Likewise.
34182         * tests/test-rbtreehash_list.c: Likewise.
34183         * tests/test-readlink.c: Likewise.
34184         * tests/test-remove.c: Likewise.
34185         * tests/test-rename.c: Likewise.
34186         * tests/test-renameat.c: Likewise.
34187         * tests/test-rmdir.c: Likewise.
34188         * tests/test-round1.c: Likewise.
34189         * tests/test-roundf1.c: Likewise.
34190         * tests/test-roundl.c: Likewise.
34191         * tests/test-safe-alloc.c: Likewise.
34192         * tests/test-sameacls.c: Likewise.
34193         * tests/test-set-mode-acl.c: Likewise.
34194         * tests/test-setenv.c: Likewise.
34195         * tests/test-sigaction.c: Likewise.
34196         * tests/test-signbit.c: Likewise.
34197         * tests/test-sleep.c: Likewise.
34198         * tests/test-snprintf-posix.c: Likewise.
34199         * tests/test-snprintf.c: Likewise.
34200         * tests/test-sprintf-posix.c: Likewise.
34201         * tests/test-stat-time.c: Likewise.
34202         * tests/test-stat.c: Likewise.
34203         * tests/test-strcasestr.c: Likewise.
34204         * tests/test-strchrnul.c: Likewise.
34205         * tests/test-strerror.c: Likewise.
34206         * tests/test-striconv.c: Likewise.
34207         * tests/test-striconveh.c: Likewise.
34208         * tests/test-striconveha.c: Likewise.
34209         * tests/test-strsignal.c: Likewise.
34210         * tests/test-strstr.c: Likewise.
34211         * tests/test-strtod.c: Likewise.
34212         * tests/test-strverscmp.c: Likewise.
34213         * tests/test-symlink.c: Likewise.
34214         * tests/test-symlinkat.c: Likewise.
34215         * tests/test-trunc1.c: Likewise.
34216         * tests/test-trunc2.c: Likewise.
34217         * tests/test-truncf1.c: Likewise.
34218         * tests/test-truncf2.c: Likewise.
34219         * tests/test-truncl.c: Likewise.
34220         * tests/test-uname.c: Likewise.
34221         * tests/test-unlink.c: Likewise.
34222         * tests/test-unlinkat.c: Likewise.
34223         * tests/test-unsetenv.c: Likewise.
34224         * tests/test-usleep.c: Likewise.
34225         * tests/test-utimens.c: Likewise.
34226         * tests/test-utimensat.c: Likewise.
34227         * tests/test-vasnprintf-posix.c: Likewise.
34228         * tests/test-vasnprintf-posix2.c: Likewise.
34229         * tests/test-vasnprintf.c: Likewise.
34230         * tests/test-vasprintf-posix.c: Likewise.
34231         * tests/test-vasprintf.c: Likewise.
34232         * tests/test-vdprintf-posix.c: Likewise.
34233         * tests/test-vfprintf-posix.c: Likewise.
34234         * tests/test-vprintf-posix.c: Likewise.
34235         * tests/test-vsnprintf-posix.c: Likewise.
34236         * tests/test-vsnprintf.c: Likewise.
34237         * tests/test-vsprintf-posix.c: Likewise.
34238         * tests/test-wcrtomb.c: Likewise.
34239         * tests/test-wcsnrtombs.c: Likewise.
34240         * tests/test-wcsrtombs.c: Likewise.
34241         * tests/test-wctype.c: Likewise.
34242         * tests/test-wcwidth.c: Likewise.
34243         * tests/test-xfprintf-posix.c: Likewise.
34244         * tests/test-xmemdup0.c: Likewise.
34245         * tests/test-xprintf-posix.c: Likewise.
34246         * tests/test-xvasprintf.c: Likewise.
34247         * tests/unicase/test-locale-language.c: Likewise.
34248         * tests/unicase/test-mapping-part1.h: Likewise.
34249         * tests/unicase/test-predicate-part1.h: Likewise.
34250         * tests/unicase/test-u8-casecmp.c: Likewise.
34251         * tests/unicase/test-u8-casecoll.c: Likewise.
34252         * tests/unicase/test-u8-casefold.c: Likewise.
34253         * tests/unicase/test-u8-is-cased.c: Likewise.
34254         * tests/unicase/test-u8-is-casefolded.c: Likewise.
34255         * tests/unicase/test-u8-is-lowercase.c: Likewise.
34256         * tests/unicase/test-u8-is-titlecase.c: Likewise.
34257         * tests/unicase/test-u8-is-uppercase.c: Likewise.
34258         * tests/unicase/test-u8-tolower.c: Likewise.
34259         * tests/unicase/test-u8-totitle.c: Likewise.
34260         * tests/unicase/test-u8-toupper.c: Likewise.
34261         * tests/unicase/test-u16-casecmp.c: Likewise.
34262         * tests/unicase/test-u16-casecoll.c: Likewise.
34263         * tests/unicase/test-u16-casefold.c: Likewise.
34264         * tests/unicase/test-u16-is-cased.c: Likewise.
34265         * tests/unicase/test-u16-is-casefolded.c: Likewise.
34266         * tests/unicase/test-u16-is-lowercase.c: Likewise.
34267         * tests/unicase/test-u16-is-titlecase.c: Likewise.
34268         * tests/unicase/test-u16-is-uppercase.c: Likewise.
34269         * tests/unicase/test-u16-tolower.c: Likewise.
34270         * tests/unicase/test-u16-totitle.c: Likewise.
34271         * tests/unicase/test-u16-toupper.c: Likewise.
34272         * tests/unicase/test-u32-casecmp.c: Likewise.
34273         * tests/unicase/test-u32-casecoll.c: Likewise.
34274         * tests/unicase/test-u32-casefold.c: Likewise.
34275         * tests/unicase/test-u32-is-cased.c: Likewise.
34276         * tests/unicase/test-u32-is-casefolded.c: Likewise.
34277         * tests/unicase/test-u32-is-lowercase.c: Likewise.
34278         * tests/unicase/test-u32-is-titlecase.c: Likewise.
34279         * tests/unicase/test-u32-is-uppercase.c: Likewise.
34280         * tests/unicase/test-u32-tolower.c: Likewise.
34281         * tests/unicase/test-u32-totitle.c: Likewise.
34282         * tests/unicase/test-u32-toupper.c: Likewise.
34283         * tests/unicase/test-ulc-casecmp.c: Likewise.
34284         * tests/unicase/test-ulc-casecoll.c: Likewise.
34285         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34286         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
34287         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34288         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34289         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
34290         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
34291         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34292         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34293         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34294         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
34295         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34296         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34297         * tests/unictype/test-bidi_byname.c: Likewise.
34298         * tests/unictype/test-bidi_name.c: Likewise.
34299         * tests/unictype/test-bidi_of.c: Likewise.
34300         * tests/unictype/test-bidi_test.c: Likewise.
34301         * tests/unictype/test-block_list.c: Likewise.
34302         * tests/unictype/test-block_of.c: Likewise.
34303         * tests/unictype/test-block_test.c: Likewise.
34304         * tests/unictype/test-categ_and.c: Likewise.
34305         * tests/unictype/test-categ_and_not.c: Likewise.
34306         * tests/unictype/test-categ_byname.c: Likewise.
34307         * tests/unictype/test-categ_name.c: Likewise.
34308         * tests/unictype/test-categ_none.c: Likewise.
34309         * tests/unictype/test-categ_of.c: Likewise.
34310         * tests/unictype/test-categ_or.c: Likewise.
34311         * tests/unictype/test-categ_test_withtable.c: Likewise.
34312         * tests/unictype/test-combining.c: Likewise.
34313         * tests/unictype/test-decdigit.c: Likewise.
34314         * tests/unictype/test-digit.c: Likewise.
34315         * tests/unictype/test-mirror.c: Likewise.
34316         * tests/unictype/test-numeric.c: Likewise.
34317         * tests/unictype/test-pr_byname.c: Likewise.
34318         * tests/unictype/test-pr_test.c: Likewise.
34319         * tests/unictype/test-predicate-part1.h: Likewise.
34320         * tests/unictype/test-scripts.c: Likewise.
34321         * tests/unictype/test-sy_c_ident.c: Likewise.
34322         * tests/unictype/test-sy_java_ident.c: Likewise.
34323         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
34324         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
34325         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
34326         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
34327         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
34328         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
34329         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
34330         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
34331         * tests/uninorm/test-canonical-decomposition.c: Likewise.
34332         * tests/uninorm/test-compat-decomposition.c: Likewise.
34333         * tests/uninorm/test-composition.c: Likewise.
34334         * tests/uninorm/test-decomposing-form.c: Likewise.
34335         * tests/uninorm/test-decomposition.c: Likewise.
34336         * tests/uninorm/test-u8-nfc.c: Likewise.
34337         * tests/uninorm/test-u8-nfd.c: Likewise.
34338         * tests/uninorm/test-u8-nfkc.c: Likewise.
34339         * tests/uninorm/test-u8-nfkd.c: Likewise.
34340         * tests/uninorm/test-u8-normcmp.c: Likewise.
34341         * tests/uninorm/test-u8-normcoll.c: Likewise.
34342         * tests/uninorm/test-u16-nfc.c: Likewise.
34343         * tests/uninorm/test-u16-nfd.c: Likewise.
34344         * tests/uninorm/test-u16-nfkc.c: Likewise.
34345         * tests/uninorm/test-u16-nfkd.c: Likewise.
34346         * tests/uninorm/test-u16-normcmp.c: Likewise.
34347         * tests/uninorm/test-u16-normcoll.c: Likewise.
34348         * tests/uninorm/test-u32-nfc.c: Likewise.
34349         * tests/uninorm/test-u32-nfd.c: Likewise.
34350         * tests/uninorm/test-u32-nfkc.c: Likewise.
34351         * tests/uninorm/test-u32-nfkd.c: Likewise.
34352         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34353         * tests/uninorm/test-u32-normcmp.c: Likewise.
34354         * tests/uninorm/test-u32-normcoll.c: Likewise.
34355         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
34356         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
34357         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
34358         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
34359         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
34360         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
34361         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
34362         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
34363         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
34364         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
34365         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
34366         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
34367         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
34368         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
34369         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
34370         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
34371         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
34372         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
34373         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
34374         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
34375         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
34376         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
34377         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
34378         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
34379         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
34380         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
34381         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
34382         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
34383         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
34384         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
34385         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
34386         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
34387         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
34388         * tests/uniwidth/test-u8-strwidth.c: Likewise.
34389         * tests/uniwidth/test-u8-width.c: Likewise.
34390         * tests/uniwidth/test-u16-strwidth.c: Likewise.
34391         * tests/uniwidth/test-u16-width.c: Likewise.
34392         * tests/uniwidth/test-u32-strwidth.c: Likewise.
34393         * tests/uniwidth/test-u32-width.c: Likewise.
34394         * tests/uniwidth/test-uc_width.c: Likewise.
34395         * tests/uniwidth/test-uc_width2.c: Likewise.
34396         * modules/acl-tests (Files): Add tests/macros.h.
34397         * modules/areadlink-tests (Files): Likewise.
34398         * modules/areadlink-with-size-tests (Files): Likewise.
34399         * modules/areadlinkat-tests (Files): Likewise.
34400         * modules/areadlinkat-with-size-tests (Files): Likewise.
34401         * modules/argmatch-tests (Files): Likewise.
34402         * modules/argv-iter-tests (Files): Likewise.
34403         * modules/array-list-tests (Files): Likewise.
34404         * modules/array-mergesort-tests (Files): Likewise.
34405         * modules/array-oset-tests (Files): Likewise.
34406         * modules/avltree-list-tests (Files): Likewise.
34407         * modules/avltree-oset-tests (Files): Likewise.
34408         * modules/avltreehash-list-tests (Files): Likewise.
34409         * modules/base64-tests (Files): Likewise.
34410         * modules/binary-io-tests (Files): Likewise.
34411         * modules/bitrotate-tests (Files): Likewise.
34412         * modules/btowc-tests (Files): Likewise.
34413         * modules/byteswap-tests (Files): Likewise.
34414         * modules/c-ctype-tests (Files): Likewise.
34415         * modules/c-stack-tests (Files): Likewise.
34416         * modules/c-strcase-tests (Files): Likewise.
34417         * modules/c-strcasestr-tests (Files): Likewise.
34418         * modules/c-strstr-tests (Files): Likewise.
34419         * modules/canonicalize-lgpl-tests (Files): Likewise.
34420         * modules/canonicalize-tests (Files): Likewise.
34421         * modules/carray-list-tests (Files): Likewise.
34422         * modules/ceilf-tests (Files): Likewise.
34423         * modules/ceill-tests (Files): Likewise.
34424         * modules/chown-tests (Files): Likewise.
34425         * modules/cloexec-tests (Files): Likewise.
34426         * modules/copy-file-tests (Files): Likewise.
34427         * modules/count-one-bits-tests (Files): Likewise.
34428         * modules/dprintf-posix-tests (Files): Likewise.
34429         * modules/dup2-tests (Files): Likewise.
34430         * modules/dup3-tests (Files): Likewise.
34431         * modules/duplocale-tests (Files): Likewise.
34432         * modules/fbufmode-tests (Files): Likewise.
34433         * modules/fchdir-tests (Files): Likewise.
34434         * modules/fcntl-safer-tests (Files): Likewise.
34435         * modules/fcntl-tests (Files): Likewise.
34436         * modules/fdopendir-tests (Files): Likewise.
34437         * modules/fdutimensat-tests (Files): Likewise.
34438         * modules/fflush-tests (Files): Likewise.
34439         * modules/filevercmp-tests (Files): Likewise.
34440         * modules/flock-tests (Files): Likewise.
34441         * modules/floorf-tests (Files): Likewise.
34442         * modules/floorl-tests (Files): Likewise.
34443         * modules/fnmatch-tests (Files): Likewise.
34444         * modules/fopen-safer-tests (Files): Likewise.
34445         * modules/fopen-tests (Files): Likewise.
34446         * modules/fpending-tests (Files): Likewise.
34447         * modules/fprintf-posix-tests (Files): Likewise.
34448         * modules/fpurge-tests (Files): Likewise.
34449         * modules/freadable-tests (Files): Likewise.
34450         * modules/freadahead-tests (Files): Likewise.
34451         * modules/freading-tests (Files): Likewise.
34452         * modules/freadptr-tests (Files): Likewise.
34453         * modules/freadseek-tests (Files): Likewise.
34454         * modules/freopen-tests (Files): Likewise.
34455         * modules/frexp-nolibm-tests (Files): Likewise.
34456         * modules/frexp-tests (Files): Likewise.
34457         * modules/frexpl-nolibm-tests (Files): Likewise.
34458         * modules/frexpl-tests (Files): Likewise.
34459         * modules/fseek-tests (Files): Likewise.
34460         * modules/fseeko-tests (Files): Likewise.
34461         * modules/fstrcmp-tests (Files): Likewise.
34462         * modules/fsync-tests (Files): Likewise.
34463         * modules/ftell-tests (Files): Likewise.
34464         * modules/ftello-tests (Files): Likewise.
34465         * modules/func-tests (Files): Likewise.
34466         * modules/futimens-tests (Files): Likewise.
34467         * modules/fwritable-tests (Files): Likewise.
34468         * modules/fwriting-tests (Files): Likewise.
34469         * modules/getcwd-tests (Files): Likewise.
34470         * modules/getdate-tests (Files): Likewise.
34471         * modules/getdelim-tests (Files): Likewise.
34472         * modules/getdtablesize-tests (Files): Likewise.
34473         * modules/getgroups-tests (Files): Likewise.
34474         * modules/getline-tests (Files): Likewise.
34475         * modules/getndelim2-tests (Files): Likewise.
34476         * modules/glob-tests (Files): Likewise.
34477         * modules/hash-tests (Files): Likewise.
34478         * modules/i-ring-tests (Files): Likewise.
34479         * modules/iconv-tests (Files): Likewise.
34480         * modules/iconv_open-utf-tests (Files): Likewise.
34481         * modules/idpriv-drop-tests (Files): Likewise.
34482         * modules/idpriv-droptemp-tests (Files): Likewise.
34483         * modules/inet_ntop-tests (Files): Likewise.
34484         * modules/inet_pton-tests (Files): Likewise.
34485         * modules/isblank-tests (Files): Likewise.
34486         * modules/isfinite-tests (Files): Likewise.
34487         * modules/isinf-tests (Files): Likewise.
34488         * modules/isnan-tests (Files): Likewise.
34489         * modules/isnand-nolibm-tests (Files): Likewise.
34490         * modules/isnand-tests (Files): Likewise.
34491         * modules/isnanf-nolibm-tests (Files): Likewise.
34492         * modules/isnanf-tests (Files): Likewise.
34493         * modules/isnanl-nolibm-tests (Files): Likewise.
34494         * modules/isnanl-tests (Files): Likewise.
34495         * modules/lchown-tests (Files): Likewise.
34496         * modules/ldexpl-tests (Files): Likewise.
34497         * modules/link-tests (Files): Likewise.
34498         * modules/linkat-tests (Files): Likewise.
34499         * modules/linked-list-tests (Files): Likewise.
34500         * modules/linkedhash-list-tests (Files): Likewise.
34501         * modules/localename-tests (Files): Likewise.
34502         * modules/lseek-tests (Files): Likewise.
34503         * modules/lstat-tests (Files): Likewise.
34504         * modules/mbmemcasecmp-tests (Files): Likewise.
34505         * modules/mbmemcasecoll-tests (Files): Likewise.
34506         * modules/mbrtowc-tests (Files): Likewise.
34507         * modules/mbscasecmp-tests (Files): Likewise.
34508         * modules/mbscasestr-tests (Files): Likewise.
34509         * modules/mbschr-tests (Files): Likewise.
34510         * modules/mbscspn-tests (Files): Likewise.
34511         * modules/mbsinit-tests (Files): Likewise.
34512         * modules/mbsncasecmp-tests (Files): Likewise.
34513         * modules/mbsnrtowcs-tests (Files): Likewise.
34514         * modules/mbspbrk-tests (Files): Likewise.
34515         * modules/mbspcasecmp-tests (Files): Likewise.
34516         * modules/mbsrchr-tests (Files): Likewise.
34517         * modules/mbsrtowcs-tests (Files): Likewise.
34518         * modules/mbsspn-tests (Files): Likewise.
34519         * modules/mbsstr-tests (Files): Likewise.
34520         * modules/memchr-tests (Files): Likewise.
34521         * modules/memchr2-tests (Files): Likewise.
34522         * modules/memcmp-tests (Files): Likewise.
34523         * modules/memmem-tests (Files): Likewise.
34524         * modules/memrchr-tests (Files): Likewise.
34525         * modules/mkdir-tests (Files): Likewise.
34526         * modules/mkfifo-tests (Files): Likewise.
34527         * modules/mkfifoat-tests (Files): Likewise.
34528         * modules/mknod-tests (Files): Likewise.
34529         * modules/nanosleep-tests (Files): Likewise.
34530         * modules/nl_langinfo-tests (Files): Likewise.
34531         * modules/obstack-printf-tests (Files): Likewise.
34532         * modules/open-tests (Files): Likewise.
34533         * modules/openat-tests (Files): Likewise.
34534         * modules/pipe-filter-gi-tests (Files): Likewise.
34535         * modules/pipe-filter-ii-tests (Files): Likewise.
34536         * modules/pipe2-tests (Files): Likewise.
34537         * modules/popen-safer-tests (Files): Likewise.
34538         * modules/popen-tests (Files): Likewise.
34539         * modules/posixtm-tests (Files): Likewise.
34540         * modules/pread-tests (Files): Likewise.
34541         * modules/printf-frexp-tests (Files): Likewise.
34542         * modules/printf-frexpl-tests (Files): Likewise.
34543         * modules/printf-posix-tests (Files): Likewise.
34544         * modules/priv-set-tests (Files): Likewise.
34545         * modules/quotearg-tests (Files): Likewise.
34546         * modules/random_r-tests (Files): Likewise.
34547         * modules/rawmemchr-tests (Files): Likewise.
34548         * modules/rbtree-list-tests (Files): Likewise.
34549         * modules/rbtree-oset-tests (Files): Likewise.
34550         * modules/rbtreehash-list-tests (Files): Likewise.
34551         * modules/readlink-tests (Files): Likewise.
34552         * modules/remove-tests (Files): Likewise.
34553         * modules/rename-tests (Files): Likewise.
34554         * modules/renameat-tests (Files): Likewise.
34555         * modules/rmdir-tests (Files): Likewise.
34556         * modules/round-tests (Files): Likewise.
34557         * modules/roundf-tests (Files): Likewise.
34558         * modules/roundl-tests (Files): Likewise.
34559         * modules/safe-alloc-tests (Files): Likewise.
34560         * modules/setenv-tests (Files): Likewise.
34561         * modules/sigaction-tests (Files): Likewise.
34562         * modules/signbit-tests (Files): Likewise.
34563         * modules/sleep-tests (Files): Likewise.
34564         * modules/snprintf-posix-tests (Files): Likewise.
34565         * modules/snprintf-tests (Files): Likewise.
34566         * modules/sprintf-posix-tests (Files): Likewise.
34567         * modules/stat-tests (Files): Likewise.
34568         * modules/stat-time-tests (Files): Likewise.
34569         * modules/strcasestr-tests (Files): Likewise.
34570         * modules/strchrnul-tests (Files): Likewise.
34571         * modules/strerror-tests (Files): Likewise.
34572         * modules/striconv-tests (Files): Likewise.
34573         * modules/striconveh-tests (Files): Likewise.
34574         * modules/striconveha-tests (Files): Likewise.
34575         * modules/strsignal-tests (Files): Likewise.
34576         * modules/strstr-tests (Files): Likewise.
34577         * modules/strtod-tests (Files): Likewise.
34578         * modules/strverscmp-tests (Files): Likewise.
34579         * modules/symlink-tests (Files): Likewise.
34580         * modules/symlinkat-tests (Files): Likewise.
34581         * modules/trunc-tests (Files): Likewise.
34582         * modules/truncf-tests (Files): Likewise.
34583         * modules/truncl-tests (Files): Likewise.
34584         * modules/uname-tests (Files): Likewise.
34585         * modules/unicase/cased-tests (Files): Likewise.
34586         * modules/unicase/ignorable-tests (Files): Likewise.
34587         * modules/unicase/locale-language-tests (Files): Likewise.
34588         * modules/unicase/tolower-tests (Files): Likewise.
34589         * modules/unicase/totitle-tests (Files): Likewise.
34590         * modules/unicase/toupper-tests (Files): Likewise.
34591         * modules/unicase/u8-casecmp-tests (Files): Likewise.
34592         * modules/unicase/u8-casecoll-tests (Files): Likewise.
34593         * modules/unicase/u8-casefold-tests (Files): Likewise.
34594         * modules/unicase/u8-is-cased-tests (Files): Likewise.
34595         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
34596         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
34597         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
34598         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
34599         * modules/unicase/u8-tolower-tests (Files): Likewise.
34600         * modules/unicase/u8-totitle-tests (Files): Likewise.
34601         * modules/unicase/u8-toupper-tests (Files): Likewise.
34602         * modules/unicase/u16-casecmp-tests (Files): Likewise.
34603         * modules/unicase/u16-casecoll-tests (Files): Likewise.
34604         * modules/unicase/u16-casefold-tests (Files): Likewise.
34605         * modules/unicase/u16-is-cased-tests (Files): Likewise.
34606         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
34607         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
34608         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
34609         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
34610         * modules/unicase/u16-tolower-tests (Files): Likewise.
34611         * modules/unicase/u16-totitle-tests (Files): Likewise.
34612         * modules/unicase/u16-toupper-tests (Files): Likewise.
34613         * modules/unicase/u32-casecmp-tests (Files): Likewise.
34614         * modules/unicase/u32-casecoll-tests (Files): Likewise.
34615         * modules/unicase/u32-casefold-tests (Files): Likewise.
34616         * modules/unicase/u32-is-cased-tests (Files): Likewise.
34617         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
34618         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
34619         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
34620         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
34621         * modules/unicase/u32-tolower-tests (Files): Likewise.
34622         * modules/unicase/u32-totitle-tests (Files): Likewise.
34623         * modules/unicase/u32-toupper-tests (Files): Likewise.
34624         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
34625         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
34626         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
34627         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
34628         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
34629         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
34630         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
34631         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
34632         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
34633         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
34634         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
34635         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
34636         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
34637         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
34638         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
34639         * modules/unictype/bidicategory-name-tests (Files): Likewise.
34640         * modules/unictype/bidicategory-of-tests (Files): Likewise.
34641         * modules/unictype/bidicategory-test-tests (Files): Likewise.
34642         * modules/unictype/block-list-tests (Files): Likewise.
34643         * modules/unictype/block-of-tests (Files): Likewise.
34644         * modules/unictype/block-test-tests (Files): Likewise.
34645         * modules/unictype/category-C-tests (Files): Likewise.
34646         * modules/unictype/category-Cc-tests (Files): Likewise.
34647         * modules/unictype/category-Cf-tests (Files): Likewise.
34648         * modules/unictype/category-Cn-tests (Files): Likewise.
34649         * modules/unictype/category-Co-tests (Files): Likewise.
34650         * modules/unictype/category-Cs-tests (Files): Likewise.
34651         * modules/unictype/category-L-tests (Files): Likewise.
34652         * modules/unictype/category-Ll-tests (Files): Likewise.
34653         * modules/unictype/category-Lm-tests (Files): Likewise.
34654         * modules/unictype/category-Lo-tests (Files): Likewise.
34655         * modules/unictype/category-Lt-tests (Files): Likewise.
34656         * modules/unictype/category-Lu-tests (Files): Likewise.
34657         * modules/unictype/category-M-tests (Files): Likewise.
34658         * modules/unictype/category-Mc-tests (Files): Likewise.
34659         * modules/unictype/category-Me-tests (Files): Likewise.
34660         * modules/unictype/category-Mn-tests (Files): Likewise.
34661         * modules/unictype/category-N-tests (Files): Likewise.
34662         * modules/unictype/category-Nd-tests (Files): Likewise.
34663         * modules/unictype/category-Nl-tests (Files): Likewise.
34664         * modules/unictype/category-No-tests (Files): Likewise.
34665         * modules/unictype/category-P-tests (Files): Likewise.
34666         * modules/unictype/category-Pc-tests (Files): Likewise.
34667         * modules/unictype/category-Pd-tests (Files): Likewise.
34668         * modules/unictype/category-Pe-tests (Files): Likewise.
34669         * modules/unictype/category-Pf-tests (Files): Likewise.
34670         * modules/unictype/category-Pi-tests (Files): Likewise.
34671         * modules/unictype/category-Po-tests (Files): Likewise.
34672         * modules/unictype/category-Ps-tests (Files): Likewise.
34673         * modules/unictype/category-S-tests (Files): Likewise.
34674         * modules/unictype/category-Sc-tests (Files): Likewise.
34675         * modules/unictype/category-Sk-tests (Files): Likewise.
34676         * modules/unictype/category-Sm-tests (Files): Likewise.
34677         * modules/unictype/category-So-tests (Files): Likewise.
34678         * modules/unictype/category-Z-tests (Files): Likewise.
34679         * modules/unictype/category-Zl-tests (Files): Likewise.
34680         * modules/unictype/category-Zp-tests (Files): Likewise.
34681         * modules/unictype/category-Zs-tests (Files): Likewise.
34682         * modules/unictype/category-and-not-tests (Files): Likewise.
34683         * modules/unictype/category-and-tests (Files): Likewise.
34684         * modules/unictype/category-byname-tests (Files): Likewise.
34685         * modules/unictype/category-name-tests (Files): Likewise.
34686         * modules/unictype/category-none-tests (Files): Likewise.
34687         * modules/unictype/category-of-tests (Files): Likewise.
34688         * modules/unictype/category-or-tests (Files): Likewise.
34689         * modules/unictype/category-test-withtable-tests (Files): Likewise.
34690         * modules/unictype/combining-class-tests (Files): Likewise.
34691         * modules/unictype/ctype-alnum-tests (Files): Likewise.
34692         * modules/unictype/ctype-alpha-tests (Files): Likewise.
34693         * modules/unictype/ctype-blank-tests (Files): Likewise.
34694         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
34695         * modules/unictype/ctype-digit-tests (Files): Likewise.
34696         * modules/unictype/ctype-graph-tests (Files): Likewise.
34697         * modules/unictype/ctype-lower-tests (Files): Likewise.
34698         * modules/unictype/ctype-print-tests (Files): Likewise.
34699         * modules/unictype/ctype-punct-tests (Files): Likewise.
34700         * modules/unictype/ctype-space-tests (Files): Likewise.
34701         * modules/unictype/ctype-upper-tests (Files): Likewise.
34702         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
34703         * modules/unictype/decimal-digit-tests (Files): Likewise.
34704         * modules/unictype/digit-tests (Files): Likewise.
34705         * modules/unictype/mirror-tests (Files): Likewise.
34706         * modules/unictype/numeric-tests (Files): Likewise.
34707         * modules/unictype/property-alphabetic-tests (Files): Likewise.
34708         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
34709         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
34710         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
34711         Likewise.
34712         * modules/unictype/property-bidi-block-separator-tests (Files):
34713         Likewise.
34714         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
34715         Likewise.
34716         * modules/unictype/property-bidi-common-separator-tests (Files):
34717         Likewise.
34718         * modules/unictype/property-bidi-control-tests (Files): Likewise.
34719         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
34720         Likewise.
34721         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
34722         Likewise.
34723         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
34724         Likewise.
34725         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
34726         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
34727         Likewise.
34728         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
34729         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
34730         Likewise.
34731         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
34732         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
34733         * modules/unictype/property-bidi-segment-separator-tests (Files):
34734         Likewise.
34735         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
34736         * modules/unictype/property-byname-tests (Files): Likewise.
34737         * modules/unictype/property-combining-tests (Files): Likewise.
34738         * modules/unictype/property-composite-tests (Files): Likewise.
34739         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
34740         * modules/unictype/property-dash-tests (Files): Likewise.
34741         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
34742         * modules/unictype/property-default-ignorable-code-point-tests (Files):
34743         Likewise.
34744         * modules/unictype/property-deprecated-tests (Files): Likewise.
34745         * modules/unictype/property-diacritic-tests (Files): Likewise.
34746         * modules/unictype/property-extender-tests (Files): Likewise.
34747         * modules/unictype/property-format-control-tests (Files): Likewise.
34748         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
34749         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
34750         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
34751         * modules/unictype/property-hex-digit-tests (Files): Likewise.
34752         * modules/unictype/property-hyphen-tests (Files): Likewise.
34753         * modules/unictype/property-id-continue-tests (Files): Likewise.
34754         * modules/unictype/property-id-start-tests (Files): Likewise.
34755         * modules/unictype/property-ideographic-tests (Files): Likewise.
34756         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
34757         * modules/unictype/property-ids-trinary-operator-tests (Files):
34758         Likewise.
34759         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
34760         * modules/unictype/property-iso-control-tests (Files): Likewise.
34761         * modules/unictype/property-join-control-tests (Files): Likewise.
34762         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
34763         * modules/unictype/property-line-separator-tests (Files): Likewise.
34764         * modules/unictype/property-logical-order-exception-tests (Files):
34765         Likewise.
34766         * modules/unictype/property-lowercase-tests (Files): Likewise.
34767         * modules/unictype/property-math-tests (Files): Likewise.
34768         * modules/unictype/property-non-break-tests (Files): Likewise.
34769         * modules/unictype/property-not-a-character-tests (Files): Likewise.
34770         * modules/unictype/property-numeric-tests (Files): Likewise.
34771         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
34772         * modules/unictype/property-other-default-ignorable-code-point-tests
34773         (Files): Likewise.
34774         * modules/unictype/property-other-grapheme-extend-tests (Files):
34775         Likewise.
34776         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
34777         * modules/unictype/property-other-id-start-tests (Files): Likewise.
34778         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
34779         * modules/unictype/property-other-math-tests (Files): Likewise.
34780         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
34781         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
34782         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
34783         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
34784         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
34785         * modules/unictype/property-private-use-tests (Files): Likewise.
34786         * modules/unictype/property-punctuation-tests (Files): Likewise.
34787         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
34788         * modules/unictype/property-radical-tests (Files): Likewise.
34789         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
34790         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
34791         * modules/unictype/property-space-tests (Files): Likewise.
34792         * modules/unictype/property-terminal-punctuation-tests (Files):
34793         Likewise.
34794         * modules/unictype/property-test-tests (Files): Likewise.
34795         * modules/unictype/property-titlecase-tests (Files): Likewise.
34796         * modules/unictype/property-unassigned-code-value-tests (Files):
34797         Likewise.
34798         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
34799         * modules/unictype/property-uppercase-tests (Files): Likewise.
34800         * modules/unictype/property-variation-selector-tests (Files): Likewise.
34801         * modules/unictype/property-white-space-tests (Files): Likewise.
34802         * modules/unictype/property-xid-continue-tests (Files): Likewise.
34803         * modules/unictype/property-xid-start-tests (Files): Likewise.
34804         * modules/unictype/property-zero-width-tests (Files): Likewise.
34805         * modules/unictype/scripts-tests (Files): Likewise.
34806         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
34807         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
34808         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
34809         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
34810         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
34811         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
34812         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
34813         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
34814         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
34815         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
34816         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
34817         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
34818         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
34819         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
34820         * modules/uninorm/composition-tests (Files): Likewise.
34821         * modules/uninorm/decomposing-form-tests (Files): Likewise.
34822         * modules/uninorm/decomposition-tests (Files): Likewise.
34823         * modules/uninorm/filter-tests (Files): Likewise.
34824         * modules/uninorm/nfc-tests (Files): Likewise.
34825         * modules/uninorm/nfd-tests (Files): Likewise.
34826         * modules/uninorm/nfkc-tests (Files): Likewise.
34827         * modules/uninorm/nfkd-tests (Files): Likewise.
34828         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
34829         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
34830         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
34831         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
34832         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
34833         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
34834         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
34835         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34836         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
34837         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
34838         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
34839         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
34840         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34841         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
34842         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
34843         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
34844         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
34845         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34846         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
34847         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
34848         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
34849         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
34850         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34851         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
34852         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
34853         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
34854         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
34855         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
34856         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
34857         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
34858         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
34859         * modules/uniwidth/u8-width-tests (Files): Likewise.
34860         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
34861         * modules/uniwidth/u16-width-tests (Files): Likewise.
34862         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
34863         * modules/uniwidth/u32-width-tests (Files): Likewise.
34864         * modules/uniwidth/width-tests (Files): Likewise.
34865         * modules/unlink-tests (Files): Likewise.
34866         * modules/unsetenv-tests (Files): Likewise.
34867         * modules/usleep-tests (Files): Likewise.
34868         * modules/utimens-tests (Files): Likewise.
34869         * modules/utimensat-tests (Files): Likewise.
34870         * modules/vasnprintf-posix-tests (Files): Likewise.
34871         * modules/vasnprintf-tests (Files): Likewise.
34872         * modules/vasprintf-posix-tests (Files): Likewise.
34873         * modules/vasprintf-tests (Files): Likewise.
34874         * modules/vdprintf-posix-tests (Files): Likewise.
34875         * modules/vfprintf-posix-tests (Files): Likewise.
34876         * modules/vprintf-posix-tests (Files): Likewise.
34877         * modules/vsnprintf-posix-tests (Files): Likewise.
34878         * modules/vsnprintf-tests (Files): Likewise.
34879         * modules/vsprintf-posix-tests (Files): Likewise.
34880         * modules/wcrtomb-tests (Files): Likewise.
34881         * modules/wcsnrtombs-tests (Files): Likewise.
34882         * modules/wcsrtombs-tests (Files): Likewise.
34883         * modules/wctype-tests (Files): Likewise.
34884         * modules/wcwidth-tests (Files): Likewise.
34885         * modules/xmemdup0-tests (Files): Likewise.
34886         * modules/xprintf-posix-tests (Files): Likewise.
34887         * modules/xvasprintf-tests (Files): Likewise.
34888
34889 2009-12-24  Eric Blake  <ebb9@byu.net>
34890
34891         test-nanosleep: fix typo
34892         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
34893         patch.
34894         Reported by Bruno Haible.
34895
34896 2009-12-24  Bruno Haible  <bruno@clisp.org>
34897
34898         Reduce namespace pollution on glibc systems.
34899         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
34900         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
34901         systems.
34902         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
34903         <getopt.h> on glibc systems.
34904         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
34905         systems.
34906         * lib/fcntl.c: Include <unistd.h> here instead.
34907
34908 2009-12-24  Bruno Haible  <bruno@clisp.org>
34909
34910         * lib/stdlib.in.h (includes): Fix typo in today's commit.
34911
34912 2009-12-24  Eric Blake  <ebb9@byu.net>
34913
34914         tests: add signature checks
34915         * tests/signature.h (SIGNATURE_CHECK): New file.
34916         * modules/atexit-tests (Files): Use it.
34917         * modules/btowc-tests (Files): Likewise.
34918         * modules/canonicalize-lgpl-tests (Files): Likewise.
34919         * modules/ceilf-tests (Files): Likewise.
34920         * modules/ceill-tests (Files): Likewise.
34921         * modules/chown-tests (Files): Likewise.
34922         * modules/dprintf-posix-tests (Files): Likewise.
34923         * modules/dup2-tests (Files): Likewise.
34924         * modules/dup3-tests (Files): Likewise.
34925         * modules/duplocale-tests (Files): Likewise.
34926         * modules/fchdir-tests (Files): Likewise.
34927         * modules/fcntl-tests (Files): Likewise.
34928         * modules/fdopendir-tests (Files): Likewise.
34929         * modules/fflush-tests (Files): Likewise.
34930         * modules/flock-tests (Files): Likewise.
34931         * modules/floorf-tests (Files): Likewise.
34932         * modules/floorl-tests (Files): Likewise.
34933         * modules/fnmatch-tests (Files): Likewise.
34934         * modules/fopen-tests (Files): Likewise.
34935         * modules/fprintf-posix-tests (Files): Likewise.
34936         * modules/freopen-tests (Files): Likewise.
34937         * modules/frexp-nolibm-tests (Files): Likewise.
34938         * modules/frexp-tests (Files): Likewise.
34939         * modules/frexpl-nolibm-tests (Files): Likewise.
34940         * modules/frexpl-tests (Files): Likewise.
34941         * modules/fseek-tests (Files): Likewise.
34942         * modules/fseeko-tests (Files): Likewise.
34943         * modules/fsync-tests (Files): Likewise.
34944         * modules/ftell-tests (Files): Likewise.
34945         * modules/ftello-tests (Files): Likewise.
34946         * modules/futimens-tests (Files): Likewise.
34947         * modules/getaddrinfo-tests (Files): Likewise.
34948         * modules/getcwd-tests (Files): Likewise.
34949         * modules/getdelim-tests (Files): Likewise.
34950         * modules/getdtablesize-tests (Files): Likewise.
34951         * modules/getgroups-tests (Files): Likewise.
34952         * modules/gethostname-tests (Files): Likewise.
34953         * modules/getline-tests (Files): Likewise.
34954         * modules/getopt-posix-tests (Files): Likewise.
34955         * modules/gettimeofday-tests (Files): Likewise.
34956         * modules/glob-tests (Files): Likewise.
34957         * modules/iconv-tests (Files): Likewise.
34958         * modules/inet_ntop-tests (Files): Likewise.
34959         * modules/inet_pton-tests (Files): Likewise.
34960         * modules/isblank-tests (Files): Likewise.
34961         * modules/lchown-tests (Files): Likewise.
34962         * modules/ldexpl-tests (Files): Likewise.
34963         * modules/link-tests (Files): Likewise.
34964         * modules/linkat-tests (Files): Likewise.
34965         * modules/lseek-tests (Files): Likewise.
34966         * modules/lstat-tests (Files): Likewise.
34967         * modules/mbrtowc-tests (Files): Likewise.
34968         * modules/mbsinit-tests (Files): Likewise.
34969         * modules/mbsnrtowcs-tests (Files): Likewise.
34970         * modules/mbsrtowcs-tests (Files): Likewise.
34971         * modules/memchr-tests (Files): Likewise.
34972         * modules/memcmp-tests (Files): Likewise.
34973         * modules/memmem-tests (Files): Likewise.
34974         * modules/memrchr-tests (Files): Likewise.
34975         * modules/mkdir-tests (Files): Likewise.
34976         * modules/mkfifo-tests (Files): Likewise.
34977         * modules/mkfifoat-tests (Files): Likewise.
34978         * modules/mknod-tests (Files): Likewise.
34979         * modules/nanosleep-tests (Files): Likewise.
34980         * modules/nl_langinfo-tests (Files): Likewise.
34981         * modules/obstack-printf-tests (Files): Likewise.
34982         * modules/open-tests (Files): Likewise.
34983         * modules/openat-tests (Files): Likewise.
34984         * modules/perror-tests (Files): Likewise.
34985         * modules/pipe2-tests (Files): Likewise.
34986         * modules/poll-tests (Files): Likewise.
34987         * modules/popen-tests (Files): Likewise.
34988         * modules/posix_spawn-tests (Files): Likewise.
34989         * modules/posix_spawnp-tests (Files): Likewise.
34990         * modules/pread-tests (Files): Likewise.
34991         * modules/printf-posix-tests (Files): Likewise.
34992         * modules/pty-tests (Files): Likewise.
34993         * modules/random_r-tests (Files): Likewise.
34994         * modules/rawmemchr-tests (Files): Likewise.
34995         * modules/readlink-tests (Files): Likewise.
34996         * modules/remove-tests (Files): Likewise.
34997         * modules/rename-tests (Files): Likewise.
34998         * modules/renameat-tests (Files): Likewise.
34999         * modules/rmdir-tests (Files): Likewise.
35000         * modules/round-tests (Files): Likewise.
35001         * modules/roundf-tests (Files): Likewise.
35002         * modules/roundl-tests (Files): Likewise.
35003         * modules/select-tests (Files): Likewise.
35004         * modules/setenv-tests (Files): Likewise.
35005         * modules/sigaction-tests (Files): Likewise.
35006         * modules/sleep-tests (Files): Likewise.
35007         * modules/snprintf-posix-tests (Files): Likewise.
35008         * modules/snprintf-tests (Files): Likewise.
35009         * modules/sprintf-posix-tests (Files): Likewise.
35010         * modules/stat-tests (Files): Likewise.
35011         * modules/strcasestr-tests (Files): Likewise.
35012         * modules/strchrnul-tests (Files): Likewise.
35013         * modules/strerror-tests (Files): Likewise.
35014         * modules/strsignal-tests (Files): Likewise.
35015         * modules/strstr-tests (Files): Likewise.
35016         * modules/strtod-tests (Files): Likewise.
35017         * modules/strverscmp-tests (Files): Likewise.
35018         * modules/symlink-tests (Files): Likewise.
35019         * modules/symlinkat-tests (Files): Likewise.
35020         * modules/times-tests (Files): Likewise.
35021         * modules/trunc-tests (Files): Likewise.
35022         * modules/truncf-tests (Files): Likewise.
35023         * modules/truncl-tests (Files): Likewise.
35024         * modules/tsearch-tests (Files): Likewise.
35025         * modules/uname-tests (Files): Likewise.
35026         * modules/unlink-tests (Files): Likewise.
35027         * modules/unsetenv-tests (Files): Likewise.
35028         * modules/usleep-tests (Files): Likewise.
35029         * modules/utimensat-tests (Files): Likewise.
35030         * modules/vasprintf-tests (Files): Likewise.
35031         * modules/vdprintf-posix-tests (Files): Likewise.
35032         * modules/vfprintf-posix-tests (Files): Likewise.
35033         * modules/vprintf-posix-tests (Files): Likewise.
35034         * modules/vsnprintf-posix-tests (Files): Likewise.
35035         * modules/vsnprintf-tests (Files): Likewise.
35036         * modules/vsprintf-posix-tests (Files): Likewise.
35037         * modules/wcrtomb-tests (Files): Likewise.
35038         * modules/wcsnrtombs-tests (Files): Likewise.
35039         * modules/wcsrtombs-tests (Files): Likewise.
35040         * modules/wcwidth-tests (Files): Likewise.
35041         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
35042         * tests/test-isinf.c (isinf): Likewise.
35043         * tests/test-isnan.c (isnan): Likewise.
35044         * tests/test-signbit.c (signbit): Likewise.
35045         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
35046         declaration, either as macro or with correct signature.
35047         (select): Ensure function under test is declared with correct
35048         signature in correct header.
35049         * tests/test-atexit.c (atexit): Likewise.
35050         * tests/test-btowc.c (btowc): Likewise.
35051         * tests/test-canonicalize-lgpl.c (realpath)
35052         (canonicalize_file_name): Likewise.
35053         * tests/test-ceilf1.c (ceilf): Likewise.
35054         * tests/test-ceill.c (ceill): Likewise.
35055         * tests/test-chown.c (chown): Likewise.
35056         * tests/test-dprintf-posix.c (dprintf): Likewise.
35057         * tests/test-dup2.c (dup2): Likewise.
35058         * tests/test-dup3.c (dup3): Likewise.
35059         * tests/test-duplocale.c (duplocale): Likewise.
35060         * tests/test-fchdir.c (fchdir): Likewise.
35061         * tests/test-fchownat.c (fchownat): Likewise.
35062         * tests/test-fcntl.c (fcntl): Likewise.
35063         * tests/test-fdopendir.c (fdopendir): Likewise.
35064         * tests/test-fflush.c (fflush): Likewise.
35065         * tests/test-flock.c (flock): Likewise.
35066         * tests/test-floorf1.c (floorf): Likewise.
35067         * tests/test-floorl.c (floorl): Likewise.
35068         * tests/test-fnmatch.c (fnmatch): Likewise.
35069         * tests/test-fopen.c (fopen): Likewise.
35070         * tests/test-fprintf-posix.c (fprintf): Likewise.
35071         * tests/test-freopen.c (freopen): Likewise.
35072         * tests/test-frexp.c (frexp): Likewise.
35073         * tests/test-frexpl.c (frexpl): Likewise.
35074         * tests/test-fseek.c (fseek): Likewise.
35075         * tests/test-fseeko.c (fseeko): Likewise.
35076         * tests/test-fstatat.c (fstatat): Likewise.
35077         * tests/test-fsync.c (fsync): Likewise.
35078         * tests/test-ftell.c (ftell): Likewise.
35079         * tests/test-ftello.c (ftello): Likewise.
35080         * tests/test-futimens.c (futimens): Likewise.
35081         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
35082         (gai_strerror): Likewise.
35083         * tests/test-getcwd.c (getcwd): Likewise.
35084         * tests/test-getdelim.c (getdelim): Likewise.
35085         * tests/test-getdtablesize.c (getdtablesize): Likewise.
35086         * tests/test-getgroups.c (getgroups): Likewise.
35087         * tests/test-gethostname.c (gethostname): Likewise.
35088         * tests/test-getline.c (getline): Likewise.
35089         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
35090         Likewise.
35091         * tests/test-gettimeofday.c (gettimeofday): Likewise.
35092         * tests/test-glob.c (glob, globfree): Likewise.
35093         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
35094         * tests/test-inet_ntop.c (inet_ntop): Likewise.
35095         * tests/test-inet_pton.c (inet_pton): Likewise.
35096         * tests/test-isblank.c (isblank): Likewise.
35097         * tests/test-lchown.c (lchown): Likewise.
35098         * tests/test-ldexpl.c (ldexpl): Likewise.
35099         * tests/test-link.c (link): Likewise.
35100         * tests/test-linkat.c (linkat): Likewise.
35101         * tests/test-lseek.c (lseek): Likewise.
35102         * tests/test-lstat.c (lstat): Likewise.
35103         * tests/test-mbrtowc.c (mbrtowc): Likewise.
35104         * tests/test-mbsinit.c (mbsinit): Likewise.
35105         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
35106         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
35107         * tests/test-memchr.c (memchr): Likewise.
35108         * tests/test-memcmp.c (memcmp): Likewise.
35109         * tests/test-memmem.c (memmem): Likewise.
35110         * tests/test-memrchr.c (memrchr): Likewise.
35111         * tests/test-mkdir.c (mkdir): Likewise.
35112         * tests/test-mkdirat.c (mkdirat): Likewise.
35113         * tests/test-mkfifo.c (mkfifo): Likewise.
35114         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
35115         * tests/test-mknod.c (mknod): Likewise.
35116         * tests/test-nanosleep.c (nanosleep): Likewise.
35117         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
35118         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
35119         Likewise.
35120         * tests/test-open.c (open): Likewise.
35121         * tests/test-openat.c (openat): Likewise.
35122         * tests/test-perror.c (perror): Likewise.
35123         * tests/test-pipe2.c (pipe2): Likewise.
35124         * tests/test-poll.c (poll): Likewise.
35125         * tests/test-popen.c (popen, pclose): Likewise.
35126         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
35127         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
35128         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
35129         (posix_spawn_file_actions_destroy)
35130         (posix_spawn_file_actions_addclose)
35131         (posix_spawn_file_actions_addopen)
35132         (posix_spawn_file_actions_adddup2): Likewise.
35133         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
35134         * tests/test-pread.c (pread): Likewise.
35135         * tests/test-printf-posix.c (printf): Likewise.
35136         * tests/test-pty.c (openpty, forkpty): Likewise.
35137         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
35138         (random_r): Likewise.
35139         * tests/test-rawmemchr.c (rawmemchr): Likewise.
35140         * tests/test-readlink.c (readlink): Likewise.
35141         * tests/test-remove.c (remove): Likewise.
35142         * tests/test-rename.c (rename): Likewise.
35143         * tests/test-renameat.c (renameat): Likewise.
35144         * tests/test-rmdir.c (rmdir): Likewise.
35145         * tests/test-round1.c (round): Likewise.
35146         * tests/test-roundf1.c (roundf): Likewise.
35147         * tests/test-roundl.c (roundl): Likewise.
35148         * tests/test-setenv.c (setenv): Likewise.
35149         * tests/test-sigaction.c (sigaction): Likewise.
35150         * tests/test-sleep.c (sleep): Likewise.
35151         * tests/test-snprintf.c (snprintf): Likewise.
35152         * tests/test-sprintf-posix.c (sprintf): Likewise.
35153         * tests/test-stat.c (stat): Likewise.
35154         * tests/test-stpncpy.c (stpncpy): Likewise.
35155         * tests/test-strcasestr.c (strcasestr): Likewise.
35156         * tests/test-strchrnul.c (strchrnul): Likewise.
35157         * tests/test-strerror.c (strerror): Likewise.
35158         * tests/test-strsignal.c (strsignal): Likewise.
35159         * tests/test-strstr.c (strstr): Likewise.
35160         * tests/test-strtod.c (strtod): Likewise.
35161         * tests/test-strverscmp.c (strverscmp): Likewise.
35162         * tests/test-symlink.c (symlink): Likewise.
35163         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
35164         * tests/test-times.c (times): Likewise.
35165         * tests/test-trunc1.c (trunc): Likewise.
35166         * tests/test-truncf1.c (truncf): Likewise.
35167         * tests/test-truncl.c (truncl): Likewise.
35168         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
35169         Likewise.
35170         * tests/test-uname.c (uname): Likewise.
35171         * tests/test-unlink.c (unlink): Likewise.
35172         * tests/test-unlinkat.c (unlinkat): Likewise.
35173         * tests/test-unsetenv.c (unsetenv): Likewise.
35174         * tests/test-usleep.c (usleep): Likewise.
35175         * tests/test-utimensat.c (utimensat): Likewise.
35176         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
35177         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
35178         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
35179         * tests/test-vprintf-posix.c (vprintf): Likewise.
35180         * tests/test-vsnprintf.c (vsnprintf): Likewise.
35181         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
35182         * tests/test-wcrtomb.c (wcrtomb): Likewise.
35183         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
35184         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
35185         * tests/test-wcwidth.c (wcwidth): Likewise.
35186
35187         build: pull in conditional headers during GNULIB_POSIXCHECK
35188         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
35189         definitions from any conditionally-included headers.
35190         * lib/stdlib.in.h (includes): Likewise.
35191         * lib/unistd.in.h (includes): Likewise.
35192
35193 2009-12-24  Bruno Haible  <bruno@clisp.org>
35194
35195         * tests/test-argv-iter.c: Include header file being tested immediately
35196         after config.h.
35197         * tests/test-base64.c: Likewise.
35198         * tests/test-flock.c: Likewise.
35199         * tests/test-fsync.c: Likewise.
35200         * tests/test-getdate.c: Likewise.
35201         * tests/test-getndelim2.c: Likewise.
35202         * tests/test-isfinite.c: Likewise.
35203         * tests/test-isinf.c: Likewise.
35204         * tests/test-strerror.c: Likewise.
35205         * tests/test-strsignal.c: Likewise.
35206
35207 2009-12-23  Eric Blake  <ebb9@byu.net>
35208
35209         unistd: work around cygwin bug
35210         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
35211         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
35212         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35213
35214 2009-12-23  Bruno Haible  <bruno@clisp.org>
35215
35216         localename: More tests.
35217         * tests/test-localename.c (SIZEOF): New macro.
35218         (categories): New variable.
35219         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
35220         test_locale_name_default): Add test w.r.t. thread locale.
35221         (test_locale_name_thread): New function.
35222         (main): Invoke it.
35223
35224         localename: Make aware of thread locale.
35225         * lib/localename.h (gl_locale_name_thread): New declaration.
35226         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
35227         behaviour with respect to thread locale.
35228         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
35229         <langinfo.h>, glthread/lock.h.
35230         (SIZE_BITS): New macro.
35231         (string_hash): New function.
35232         (struct hash_node): New type.
35233         (HASH_TABLE_SIZE): New macro.
35234         (struniq_hash_table, struniq_lock): New variables.
35235         (struniq): New function.
35236         (gl_locale_name_thread): New function.
35237         (gl_locale_name): Invoke it.
35238         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
35239         * modules/localename (Depends-on): Add lock.
35240         Reported by Mike Gran <spk121@yahoo.com>.
35241
35242 2009-12-23  Eric Blake  <ebb9@byu.net>
35243
35244         va-args: new module
35245         * modules/va-args: New file.
35246         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
35247         * MODULES.html.sh (Core language properties): Mention it.
35248
35249         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
35250         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
35251         named alias for __attribute__((__unused__)).
35252         * lib/chown.c: Update client.
35253         * lib/fchmodat.c: Likewise.
35254         * lib/fts.c: Likewise.
35255         * lib/getdate.y: Likewise.
35256         * lib/getgroups.c: Likewise.
35257         * lib/getopt.c: Likewise.
35258         * lib/getugroups.c: Likewise.
35259         * lib/mkdir.c: Likewise.
35260         * lib/mkfifo.c: Likewise.
35261         * lib/mkfifoat.c: Likewise.
35262         * lib/mknod.c: Likewise.
35263         * lib/mknodat.c: Likewise.
35264         * lib/readlink.c: Likewise.
35265         * lib/se-context.in.h: Likewise.
35266         * lib/se-selinux.in.h: Likewise.
35267         * lib/sockets.c: Likewise.
35268         * lib/symlink.c: Likewise.
35269         * lib/symlinkat.c: Likewise.
35270         * lib/unicodeio.c: Likewise.
35271         * lib/unistr.h: Likewise.
35272         * tests/test-areadlink.c: Likewise.
35273         * tests/test-areadlinkat.c: Likewise.
35274         * tests/test-filenamecat.c: Likewise.
35275         * tests/test-fseeko.c: Likewise.
35276         * tests/test-ftello.c: Likewise.
35277         * tests/test-getdate.c: Likewise.
35278         * tests/test-getgroups.c: Likewise.
35279         * tests/test-gethostname.c: Likewise.
35280         * tests/test-quotearg.c: Likewise.
35281         * tests/test-version-etc.c: Likewise.
35282         * tests/test-xalloc-die.c: Likewise.
35283         * tests/test-xfprintf-posix.c: Likewise.
35284         * tests/test-xprintf-posix.c: Likewise.
35285         * tests/test-xvasprintf.c: Likewise.
35286
35287         tests: avoid compiler warnings
35288         * tests/test-fcntl.c (main): Delete unused parameters.
35289         * tests/test-freopen-safer.c (main): Likewise.
35290         * tests/test-xalloc-die.c (main): Mark unused parameters.
35291         * tests/test-fseeko.c (main): Likewise.
35292         * tests/test-ftello.c (main): Likewise.
35293         * tests/test-nanosleep.c (main): Avoid declaration warning.
35294         * tests/test-sleep.c (main): Likewise.
35295         * tests/test-unsetenv.c (main): Silence warning about string
35296         literal.
35297         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
35298
35299 2009-12-23  Bruno Haible  <bruno@clisp.org>
35300
35301         * tests/test-localename.c (test_locale_name): New function, extracted
35302         from main. Also test mixed situations.
35303         (test_locale_name_posix, test_locale_name_environ,
35304         test_locale_name_default): New functions.
35305         (main): Invoke them all.
35306         * modules/localename-tests (configure.ac): Test for newlocale.
35307
35308 2009-12-23  Bruno Haible  <bruno@clisp.org>
35309
35310         unistd: Ensure getcwd gets declared before being overridden.
35311         * lib/unistd.in.h: Conditionally include <io.h>.
35312
35313 2009-12-22  Bruno Haible  <bruno@clisp.org>
35314
35315         wchar: Diagnose broken combination of glibc and gcc versions and flags.
35316         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
35317         (gl_WCHAR_H): Invoke it.
35318         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
35319         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
35320         Reported by Karl Berry <karl@freefriends.org>.
35321
35322 2009-12-22  Eric Blake  <ebb9@byu.net>
35323
35324         math, unistd: avoid redundant includes
35325         * lib/math.in.h (isnan): No need to re-include <math.h>.
35326         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
35327
35328         getsubopt: work around cygwin bug
35329         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
35330         avoid conflicting with system getsubopt.
35331         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
35332         bug.
35333
35334         getopt: synchronize from glibc
35335         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
35336         parameter order.  Adjust all callers.
35337         (_getopt_internal_r, main): Adjust quoting in error messages.
35338         Drop considerations for outdated POSIX 1003.2 error message.
35339         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
35340         callers.
35341         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
35342
35343         test-getopt: test stderr behavior
35344         * modules/getopt-posix-tests (Depends-on): Add dup2.
35345         * tests/test-getopt.c (ASSERT): Avoid stderr.
35346         (main): Move stderr to a temporary file.
35347         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
35348         Instead, add parameter to inform caller if output occurred.
35349         (test_getopt): Adjust all existing tests to expect silence, and
35350         add new tests of leading ":".
35351         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
35352         glibc shortcomings with leading "-:" or "+:" in optstring.
35353         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35354         Likewise.
35355         * doc/posix-functions/getopt.texi (getopt): Likewise.
35356
35357         test-getopt: enhance test
35358         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
35359         supports optind=0.
35360         * tests/test-getopt.c (OPTIND_MIN): Move...
35361         * tests/test-getopt.h (OPTIND_MIN): ...here.
35362         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
35363         Require that optind=0 works, since modern BSD supports it in
35364         addition to optreset, and since coreutils expects it.
35365         (test_getopt_long_only): New test.
35366         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
35367         glibc shortcomings with 'W;', and enforcement of optind=0.
35368         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35369         Likewise.
35370
35371 2009-12-21  Bruno Haible  <bruno@clisp.org>
35372
35373         localename: Improvements for MacOS X and Cygwin.
35374         * lib/localename.h (gl_locale_name_environ): New declaration.
35375         * lib/localename.c (gl_locale_name_environ): New function, extracted from
35376         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
35377         (gl_locale_name_posix): Invoke it.
35378         (gl_locale_name_default): Add comments. Use Windows native API also on
35379         Cygwin.
35380
35381 2009-12-21  Bruno Haible  <bruno@clisp.org>
35382
35383         Update list of Win32 locale ids.
35384         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
35385         (LANG_SAMI): Renamed from LANG_SAAMI.
35386         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
35387         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
35388         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
35389         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
35390         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
35391         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
35392         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
35393         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
35394         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
35395         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
35396         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
35397         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
35398         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
35399         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
35400         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
35401         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
35402         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
35403         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
35404         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
35405         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
35406         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
35407         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
35408         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
35409         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
35410         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
35411         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
35412         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
35413         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
35414         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
35415         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
35416         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
35417         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
35418         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
35419         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
35420         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
35421         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
35422         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
35423         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
35424         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
35425         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
35426         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
35427         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
35428         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
35429         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
35430         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
35431         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
35432         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
35433         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
35434         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
35435         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
35436         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
35437         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
35438         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
35439         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
35440         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
35441         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
35442         Add more languages and countries for Sami, Sorbian. Add more countries
35443         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
35444         for Pashto. Change country for Syriac, Tswana.
35445
35446 2009-12-21  Eric Blake  <ebb9@byu.net>
35447
35448         test-utimens: avoid spurious failure
35449         * tests/test-chown.h (nap): Factor...
35450         * tests/nap.h: ...into new file.
35451         * tests/test-lchown.h (nap): Avoid duplication.
35452         * tests/test-utimens-common.h (nap): Use shared implementation,
35453         necessary on file systems with 1-second resolution.
35454         * modules/chown-tests (Files): Include new file.
35455         * modules/fdutimensat-tests (Files): Likewise.
35456         * modules/futimens-tests (Files): Likewise.
35457         * modules/lchown-tests (Files): Likewise.
35458         * modules/openat-tests (Files): Likewise.
35459         * modules/utimens-tests (Files): Likewise.
35460         * modules/utimensat-tests (Files): Likewise.
35461
35462 2009-12-19  Eric Blake  <ebb9@byu.net>
35463
35464         futimens, utimensat: work around Linux bug
35465         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
35466         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35467         * lib/utimensat.c (rpl_utimensat): Work around it.
35468         * lib/futimens.c (rpl_futimens): Adjust comment.
35469
35470         utimens: work around Linux ctime bug
35471         * lib/utimens.c (detect_ctime_bug): New helper function.
35472         (update_timespec): Differentiate between workaround needed for
35473         this bug vs. what is needed for systems that lack utimensat.
35474         (fdutimens, lutimens): Work around bug.
35475
35476         utimens: check for ctime update
35477         * tests/test-utimens-common.h (check_ctime): Define.
35478         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
35479         * tests/test-futimens.h (test_futimens): Likewise.
35480         * tests/test-lutimens.h (test_lutimens): Likewise.
35481         * doc/posix-functions/futimens.texi (futimens): Document the bug.
35482         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35483
35484 2009-12-19  Bruno Haible  <bruno@clisp.org>
35485
35486         dprintf-posix: Check against memory leak fixed on 2009-12-15.
35487         * tests/test-dprintf-posix2.sh: New file.
35488         * tests/test-dprintf-posix2.c: New file.
35489         * modules/dprintf-posix-tests (Files): Add them.
35490         (configure.ac): Check for getrlimit and setrlimit.
35491         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
35492
35493 2009-12-19  Bruno Haible  <bruno@clisp.org>
35494
35495         fprintf-posix: Check against memory leak fixed on 2009-12-15.
35496         * tests/test-fprintf-posix3.sh: New file.
35497         * tests/test-fprintf-posix3.c: New file.
35498         * modules/fprintf-posix-tests (Files): Add them.
35499         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
35500
35501 2009-12-19  Eric Blake  <ebb9@byu.net>
35502
35503         dirfd: fix prototype
35504         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
35505         * lib/dirfd.c (dirfd): Likewise.
35506
35507         canonicalize: reduce memory usage
35508         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
35509         allocation to size.
35510         Reported by Solar Designer <solar@openwall.com>.
35511
35512 2009-12-19  Bruno Haible  <bruno@clisp.org>
35513
35514         New module attribute 'Applicability'.
35515         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
35516         * gnulib-tool: New option --extract-applicability.
35517         (func_usage): Document it.
35518         (sed_extract_prog): Recognize it.
35519         (func_get_applicability): New function.
35520         (func_import): Generalize handling of 'link-warning' module.
35521         * modules/link-warning (Applicability): New section.
35522         * modules/arg-nonnull (Applicability): New section.
35523         Repoted by Simon Josefsson <simon@josefsson.org>.
35524
35525 2009-12-19  Bruno Haible  <bruno@clisp.org>
35526
35527         fflush: tweak
35528         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
35529         * lib/fseeko.c (rpl_fseeko): Likewise.
35530
35531 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
35532
35533         * lib/gl_list.h: Fix typo in comment.
35534
35535 2009-12-16  Eric Blake  <ebb9@byu.net>
35536
35537         fcntl: use to simplify other modules
35538         * modules/cloexec (Depends-on): Add fcntl.
35539         * modules/fchdir (Depends-on): Likewise.
35540         * modules/fd-safer-flag (Depends-on): Likewise.
35541         * modules/unistd-safer (Depends-on): Likewise.
35542         * modules/dup3 (configure.ac): Set module indicator.
35543         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
35544         missing.
35545         * lib/fchdir.c (_gl_register_dup): Fix comment.
35546         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
35547         * lib/dup-safer.c (dup_safer): Likewise.
35548         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
35549         * lib/dup3.c (dup3): Likewise.
35550         * tests/test-fchdir.c (main): Enhance test.
35551         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
35552
35553         fcntl: port portions of fcntl to mingw
35554         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
35555         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
35556         replacement for mingw.
35557         * modules/fcntl (Description): Update.
35558         (Depends-on): Add dup2.
35559         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
35560         * modules/fcntl-h (Makefile.am): Substitute it.
35561         * lib/fcntl.in.h (fcntl): Update declaration.
35562         (F_DUPFD, F_GETFD): New macros, when needed.
35563         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35564         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
35565         * tests/test-fcntl.c (check_flags, main): Enhance test for items
35566         we now guarantee.
35567
35568         fcntl: work around cygwin bug in F_DUPFD
35569         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
35570         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
35571         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
35572         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
35573         * doc/posix-functions/fcntl.texi (fcntl): Document it.
35574
35575         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
35576         * modules/fcntl (Files): List new files.
35577         (configure.ac): Run a test.
35578         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
35579         * lib/fcntl.c (rpl_fcntl): Likewise.
35580         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
35581         (gl_FCNTL_H): Always replace fcntl.h.
35582         * modules/fcntl-h (Makefile.am): Substitute witnesses.
35583         * lib/fcntl.in.h (fcntl): Declare replacement.
35584         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
35585         needed, plus a witness.
35586         * doc/posix-functions/fcntl.texi (fcntl): Document this.
35587         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35588         * tests/test-fcntl.c: New file.
35589         * modules/fcntl-tests: Likewise.
35590
35591         binary-io: avoid potential compilation warning
35592         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
35593         directives.
35594
35595         fflush: avoid compilation error on NetBSD
35596         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
35597         between off_t and fpos_t, since the latter is sometimes a struct.
35598         * lib/fseeko.c (rpl_fseeko): Likewise.
35599         Reported by Alexander Nasonov <alnsn@yandex.ru>.
35600
35601 2009-12-15  Eric Blake  <ebb9@byu.net>
35602
35603         fcntl-h, stdio, sys_ioctl: fix declarations
35604         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
35605         function must not take arguments.
35606         * lib/sys_ioctl.in.h (ioctl): Likewise.
35607         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
35608         (open): Add a link warning.
35609
35610 2009-12-15  Jim Meyering  <meyering@redhat.com>
35611
35612         areadlink, areadlink-with-size: relax license to LGPLv2+
35613         * modules/areadlink (License): Relax to LGPLv2+.
35614         * modules/areadlink-with-size (License): Likewise.
35615
35616 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
35617             Bruno Haible  <bruno@clisp.org>
35618
35619         *printf: Fix memory leak.
35620         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
35621         * lib/vfprintf.c (vfprintf): Likewise.
35622         * lib/dprintf.c (dprintf): Likewise.
35623         * lib/vdprintf.c (vdprintf): Likewise.
35624
35625 2009-12-14  Eric Blake  <ebb9@byu.net>
35626
35627         accept4: adjust module dependencies
35628         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
35629
35630         utimens: one more try at avoiding compiler warning
35631         * lib/utimens.c (lutimens): Lower scope of result.
35632
35633 2009-12-13  Bruno Haible  <bruno@clisp.org>
35634
35635         Move the malloc checking from module 'list' to new module 'xlist'.
35636         * modules/xlist: New file.
35637         * lib/gl_xlist.h: New file.
35638         * lib/gl_xlist.c: New file.
35639         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
35640         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
35641         gl_list_add_last, gl_list_add_before, gl_list_add_after,
35642         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
35643         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
35644         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
35645         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
35646         gl_sortedlist_nx_add): New declarations.
35647         (struct gl_list_implementation): Rename and change methods accordingly.
35648         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
35649         (gl_list_nx_create): Renamed from gl_list_create.
35650         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
35651         (gl_list_nx_set_at): Renamed from gl_list_set_at.
35652         (gl_list_nx_add_first): Renamed from gl_list_add_first.
35653         (gl_list_nx_add_last): Renamed from gl_list_add_last.
35654         (gl_list_nx_add_before): Renamed from gl_list_add_before.
35655         (gl_list_nx_add_after): Renamed from gl_list_add_after.
35656         (gl_list_nx_add_at): Renamed from gl_list_add_at.
35657         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
35658         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
35659         gl_list_create_empty.
35660         (gl_list_nx_create): Renamed from gl_list_create.
35661         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
35662         (gl_list_nx_set_at): Renamed from gl_list_set_at.
35663         (gl_list_nx_add_first): Renamed from gl_list_add_first.
35664         (gl_list_nx_add_last): Renamed from gl_list_add_last.
35665         (gl_list_nx_add_before): Renamed from gl_list_add_before.
35666         (gl_list_nx_add_after): Renamed from gl_list_add_after.
35667         (gl_list_nx_add_at): Renamed from gl_list_add_at.
35668         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
35669         * lib/gl_array_list.c: Don't include xalloc.h.
35670         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
35671         NULL upon out-of-memory.
35672         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
35673         out-of-memory.
35674         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
35675         Change return type to 'int'.
35676         (gl_array_nx_set_at): Renamed from gl_array_set_at.
35677         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
35678         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
35679         upon out-of-memory.
35680         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
35681         upon out-of-memory.
35682         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
35683         upon out-of-memory.
35684         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
35685         upon out-of-memory.
35686         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
35687         out-of-memory.
35688         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
35689         Update.
35690         (gl_array_list_implementation): Update.
35691         * lib/gl_carray_list.c: Don't include xalloc.h.
35692         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
35693         Return NULL upon out-of-memory.
35694         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
35695         out-of-memory.
35696         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
35697         Change return type to 'int'.
35698         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
35699         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
35700         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
35701         upon out-of-memory.
35702         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
35703         upon out-of-memory.
35704         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
35705         out-of-memory.
35706         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
35707         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
35708         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
35709         Update.
35710         (gl_carray_list_implementation): Update.
35711         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
35712         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
35713         gl_linked_create_empty. Return NULL upon out-of-memory.
35714         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
35715         out-of-memory.
35716         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
35717         Change return type to 'int'. Return -1 upon out-of-memory.
35718         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
35719         out-of-memory.
35720         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
35721         upon out-of-memory.
35722         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
35723         upon out-of-memory.
35724         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
35725         NULL upon out-of-memory.
35726         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
35727         upon out-of-memory.
35728         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
35729         out-of-memory.
35730         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
35731         Update.
35732         * lib/gl_linked_list.c: Don't include xalloc.h.
35733         (gl_linked_list_implementation): Update.
35734         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
35735         (add_to_bucket): Change return type to 'int'.
35736         (gl_linkedhash_list_implementation): Update.
35737         * lib/gl_anytree_list1.h (free_subtree): New function.
35738         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
35739         gl_tree_create_empty. Return NULL upon out-of-memory.
35740         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
35741         Change return type to 'int'. Return -1 upon out-of-memory.
35742         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
35743         out-of-memory.
35744         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
35745         (gl_tree_remove_node): New function, moved here from
35746         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
35747         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
35748         Update.
35749         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
35750         malloc, not xmalloc. Return NULL upon out-of-memory.
35751         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
35752         out-of-memory.
35753         (gl_tree_remove_node_from_tree): New function, extracted from
35754         gl_tree_remove_node.
35755         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
35756         upon out-of-memory.
35757         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
35758         out-of-memory.
35759         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
35760         upon out-of-memory.
35761         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
35762         upon out-of-memory.
35763         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
35764         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
35765         not xmalloc. Return NULL upon out-of-memory.
35766         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
35767         out-of-memory.
35768         (gl_tree_remove_node_from_tree): New function, extracted from
35769         gl_tree_remove_node.
35770         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
35771         upon out-of-memory.
35772         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
35773         out-of-memory.
35774         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
35775         upon out-of-memory.
35776         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
35777         upon out-of-memory.
35778         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
35779         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
35780         gl_anytree_list1.h before gl_anyavltree_list2.h.
35781         (gl_avltree_list_implementation): Update.
35782         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
35783         gl_anytree_list1.h before gl_anyavltree_list2.h.
35784         (gl_rbtree_list_implementation): Update.
35785         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
35786         Change return type to 'int'. Return -1 upon out-of-memory. Use
35787         __builtin_expect.
35788         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
35789         (gl_avltreehash_list_implementation): Update.
35790         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
35791         (gl_rbtreehash_list_implementation): Update.
35792         * modules/array-list (Depends-on): Remove xalloc.
35793         * modules/carray-list (Depends-on): Likewise.
35794         * modules/linked-list (Depends-on): Likewise.
35795         * modules/linkedhash-list (Depends-on): Likewise.
35796         * modules/avltree-list (Depends-on): Likewise.
35797         * modules/rbtree-list (Depends-on): Likewise.
35798         * modules/avltreehash-list (Depends-on): Likewise.
35799         * modules/rbtreehash-list (Depends-on): Likewise.
35800
35801         * modules/xsublist: New file.
35802         * lib/gl_xsublist.h: New file.
35803         * lib/gl_xsublist.c: New file.
35804         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
35805         (gl_sublist_nx_create): New declaration.
35806         * lib/gl_sublist.c: Don't include xalloc.h.
35807         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
35808         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
35809         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
35810         Change return type to 'int'. Return -1 upon out-of-memory.
35811         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
35812         upon out-of-memory.
35813         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
35814         NULL upon out-of-memory.
35815         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
35816         upon out-of-memory.
35817         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
35818         NULL upon out-of-memory.
35819         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
35820         NULL upon out-of-memory.
35821         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
35822         upon out-of-memory.
35823         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
35824         (gl_sublist_list_implementation): Update.
35825         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
35826         upon out-of-memory.
35827         * modules/sublist (Depends-on): Remove xalloc.
35828
35829         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
35830         * tests/test-carray_list.c: Likewise.
35831         * tests/test-linked_list.c: Likewise.
35832         * tests/test-linkedhash_list.c: Likewise.
35833         * tests/test-avltree_list.c: Likewise.
35834         * tests/test-rbtree_list.c: Likewise.
35835         * tests/test-avltreehash_list.c: Likewise.
35836         * tests/test-rbtreehash_list.c: Likewise.
35837         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
35838         * modules/carray-list-tests (Makefile.am): Likewise.
35839         * modules/linked-list-tests (Makefile.am): Likewise.
35840         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35841         * modules/avltree-list-tests (Makefile.am): Likewise.
35842         * modules/rbtree-list-tests (Makefile.am): Likewise.
35843         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35844         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35845
35846         * NEWS: Mention the changes.
35847
35848         * lib/clean-temp.c: Include gl_xlist.h.
35849         * modules/clean-temp (Depends-on): Add xlist.
35850
35851         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
35852         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
35853
35854         * tests/test-array_oset.c: Include gl_xlist.h.
35855         * modules/array-oset-tests (Depends-on): Add xlist.
35856
35857         Reported by José E. Marchesi <jemarch@gnu.org>.
35858
35859 2009-12-13  Bruno Haible  <bruno@clisp.org>
35860
35861         Move the malloc checking from module 'oset' to new module 'xoset'.
35862         * modules/xoset: New file.
35863         * lib/gl_xoset.h: New file.
35864         * lib/gl_xoset.c: New file.
35865         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
35866         declarations.
35867         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
35868         (struct gl_oset_implementation): Rename and change methods accordingly.
35869         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
35870         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
35871         'int'. Mark as __warn_unused_result__.
35872         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
35873         gl_oset_create_empty.
35874         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
35875         'int'.
35876         * lib/gl_array_oset.c: Don't include xalloc.h.
35877         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
35878         malloc, not xmalloc.
35879         (grow): Change return type to 'int'. Don't call xalloc_die.
35880         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
35881         to 'int'.
35882         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
35883         'int'.
35884         (gl_array_oset_implementation): Update.
35885         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
35886         gl_tree_create_empty.
35887         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
35888         'int'.
35889         * lib/gl_avltree_oset.c: Don't include xalloc.h.
35890         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
35891         xmalloc.
35892         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
35893         not xmalloc.
35894         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
35895         xmalloc.
35896         (gl_avltree_oset_implementation): Update.
35897         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
35898         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
35899         xmalloc.
35900         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
35901         not xmalloc.
35902         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
35903         xmalloc.
35904         (gl_rbtree_oset_implementation): Update.
35905         * modules/array-oset (Depends-on): Remove xalloc.
35906         * modules/avltree-oset (Depends-on): Likewise.
35907         * modules/rbtree-oset (Depends-on): Likewise.
35908         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
35909         * tests/test-avltree_oset.c: Likewise.
35910         * tests/test-rbtree_oset.c: Likewise.
35911         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
35912         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
35913         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35914         * NEWS: Mention the change.
35915
35916 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
35917
35918         maint.mk: allow a project to override release-prep commands
35919         * top/maint.mk (alpha, beta, stable): Move release-preparatory
35920         commands into a new rule.
35921         (release-prep): New rule.
35922         (release-prep-hook): New overridable variable.
35923
35924 2009-12-13  Bruno Haible  <bruno@clisp.org>
35925
35926         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
35927
35928 2009-12-13  Jim Meyering  <meyering@redhat.com>
35929
35930         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
35931         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
35932
35933 2009-12-12  Bruno Haible  <bruno@clisp.org>
35934
35935         duplocale: Tweak.
35936         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
35937
35938 2009-12-12  Karl Berry  <karl@gnu.org>
35939
35940         * config/srclist.txt (strtoll.c): tab changes, no more sync.
35941
35942 2009-12-12  Bruno Haible  <bruno@clisp.org>
35943
35944         * m4/po.m4: Undo incorrect untabification.
35945
35946 2009-12-12  Bruno Haible  <bruno@clisp.org>
35947
35948         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
35949         * modules/c-strtod (Depends-on): Add locale.
35950         * modules/c-strtold (Depends-on): Likewise.
35951
35952 2009-12-12  Bruno Haible  <bruno@clisp.org>
35953
35954         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
35955
35956 2009-12-11  Eric Blake  <ebb9@byu.net>
35957
35958         setenv: relax requirement in light of POSIX ruling
35959         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
35960         not NULL.
35961         * tests/test-setenv.c (main): Relax test.
35962         * tests/test-unsetenv.c (main): Likewise.
35963         * doc/posix-functions/setenv.texi (setenv): Document this.
35964         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
35965
35966 2009-12-11  Bruno Haible  <bruno@clisp.org>
35967
35968         New module 'fd-safer-flag'.
35969         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
35970         * lib/dup-safer.c (dup_safer_flag): Remove function.
35971         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
35972         * lib/fd-safer.c (fd_safer_flag): Remove function.
35973         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
35974         * modules/cloexec (configure.ac): Drop indicator macro.
35975         * modules/fd-safer-flag: New file.
35976         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
35977         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
35978         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
35979
35980 2009-12-11  Bruno Haible  <bruno@clisp.org>
35981
35982         Tests for module 'nl_langinfo'.
35983         * modules/nl_langinfo-tests: New file.
35984         * tests/test-nl_langinfo.sh: New file.
35985         * tests/test-nl_langinfo.c: New file.
35986
35987         New module 'nl_langinfo'.
35988         * lib/nl_langinfo.c: New file.
35989         * m4/nl_langinfo.m4: New file.
35990         * modules/nl_langinfo: New file.
35991         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
35992
35993 2009-12-11  Bruno Haible  <bruno@clisp.org>
35994
35995         Tests for module 'langinfo'.
35996         * modules/langinfo-tests: New file.
35997         * tests/test-langinfo.c: New file.
35998
35999         New module 'langinfo'.
36000         * lib/langinfo.in.h: New file.
36001         * m4/langinfo_h.m4: New file.
36002         * modules/langinfo: New file.
36003         * doc/posix-headers/langinfo.texi: Mention the new module.
36004
36005 2009-12-11  Bruno Haible  <bruno@clisp.org>
36006
36007         * lib/config.charset: Untabify.
36008
36009 2009-12-11  Bruno Haible  <bruno@clisp.org>
36010
36011         * modules/unistd-safer (configure.ac): Drop indicator macro.
36012
36013 2009-12-11  Bruno Haible  <bruno@clisp.org>
36014
36015         Move pipe2-safer code to its own file.
36016         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
36017         * lib/pipe-safer.c (pipe2_safer): Remove function.
36018         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
36019         (Makefile.am): Add it to lib_SOURCES.
36020
36021 2009-12-10  Bruno Haible  <bruno@clisp.org>
36022
36023         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
36024
36025 2009-12-10  Bruno Haible  <bruno@clisp.org>
36026
36027         Declare which arguments expect non-NULL values, for GCC and clang.
36028         * build-aux/arg-nonnull.h: New file.
36029         * modules/arg-nonnull: New file.
36030         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
36031         (inet_ntop, inet_pton): Use it.
36032         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
36033         (closedir, dirfd, opendir, scandir, alphasort): Use it.
36034         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
36035         (open, openat): Use it.
36036         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
36037         (fnmatch): Use it.
36038         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
36039         (getopt, getopt_long, getopt_long_only): Use it.
36040         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
36041         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
36042         Use it.
36043         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
36044         (iconv_open): Use it.
36045         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
36046         (strtoimax, strtoumax): Use it.
36047         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
36048         (duplocale): Use it.
36049         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
36050         (frexp, frexpl): Use it.
36051         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
36052         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
36053         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
36054         (tsearch, tfind, tdelete, twalk): Use it.
36055         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
36056         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36057         sigpending): Use it.
36058         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
36059         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36060         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36061         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36062         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36063         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36064         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36065         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36066         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36067         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36068         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36069         Use it.
36070         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
36071         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
36072         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
36073         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
36074         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
36075         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
36076         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
36077         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
36078         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
36079         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
36080         strtoull, unsetenv): Use it.
36081         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
36082         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36083         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36084         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36085         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36086         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
36087         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
36088         (strcasecmp, strncasecmp): Use it.
36089         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
36090         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
36091         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
36092         rpl_setsockopt): Use it.
36093         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
36094         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
36095         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
36096         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
36097         (gettimeofday): Use it.
36098         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
36099         (times): Use it.
36100         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
36101         (uname): Use it.
36102         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
36103         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
36104         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
36105         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
36106         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
36107         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
36108         unlinkat, write): Use it.
36109         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
36110         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
36111         * lib/argv-iter.h: Include arg-nonnull.h.
36112         (_ATTRIBUTE_NONNULL_): Remove macro.
36113         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
36114         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
36115         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
36116         optimization.
36117         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
36118         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
36119         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
36120         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
36121         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
36122         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
36123         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
36124         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
36125         * modules/arpa_inet (Depends-on): Add arg-nonnull.
36126         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
36127         * modules/dirent (Depends-on): Add arg-nonnull.
36128         (Makefile.am): Insert arg-nonnull.h into dirent.h.
36129         * modules/fcntl-h (Depends-on): Add arg-nonnull.
36130         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
36131         * modules/fnmatch (Depends-on): Add arg-nonnull.
36132         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
36133         * modules/getopt-posix (Depends-on): Add arg-nonnull.
36134         (Makefile.am): Insert arg-nonnull.h into getopt.h.
36135         * modules/glob (Depends-on): Add arg-nonnull.
36136         (Makefile.am): Insert arg-nonnull.h into glob.h.
36137         * modules/iconv_open (Depends-on): Add arg-nonnull.
36138         (Makefile.am): Insert arg-nonnull.h into iconv.h.
36139         * modules/inttypes (Depends-on): Add arg-nonnull.
36140         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
36141         * modules/locale (Depends-on): Add arg-nonnull.
36142         (Makefile.am): Insert arg-nonnull.h into locale.h.
36143         * modules/math (Depends-on): Add arg-nonnull.
36144         (Makefile.am): Insert arg-nonnull.h into math.h.
36145         * modules/netdb (Depends-on): Add arg-nonnull.
36146         (Makefile.am): Insert arg-nonnull.h into netdb.h.
36147         * modules/search (Depends-on): Add arg-nonnull.
36148         (Makefile.am): Insert arg-nonnull.h into search.h.
36149         * modules/signal (Depends-on): Add arg-nonnull.
36150         (Makefile.am): Insert arg-nonnull.h into signal.h.
36151         * modules/spawn (Depends-on): Add arg-nonnull.
36152         (Makefile.am): Insert arg-nonnull.h into spawn.h.
36153         * modules/stdio (Depends-on): Add arg-nonnull.
36154         (Makefile.am): Insert arg-nonnull.h into stdio.h.
36155         * modules/stdlib (Depends-on): Add arg-nonnull.
36156         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
36157         * modules/string (Depends-on): Add arg-nonnull.
36158         (Makefile.am): Insert arg-nonnull.h into string.h.
36159         * modules/strings (Depends-on): Add arg-nonnull.
36160         (Makefile.am): Insert arg-nonnull.h into strings.h.
36161         * modules/sys_socket (Depends-on): Add arg-nonnull.
36162         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
36163         * modules/sys_stat (Depends-on): Add arg-nonnull.
36164         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
36165         * modules/sys_time (Depends-on): Add arg-nonnull.
36166         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
36167         * modules/sys_times (Depends-on): Add arg-nonnull.
36168         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
36169         * modules/sys_utsname (Depends-on): Add arg-nonnull.
36170         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
36171         * modules/time (Depends-on): Add arg-nonnull.
36172         (Makefile.am): Insert arg-nonnull.h into time.h.
36173         * modules/unistd (Depends-on): Add arg-nonnull.
36174         (Makefile.am): Insert arg-nonnull.h into unistd.h.
36175         * modules/wchar (Depends-on): Add arg-nonnull.
36176         (Makefile.am): Insert arg-nonnull.h into wchar.h.
36177         * modules/argv-iter (Depends-on): Add arg-nonnull.
36178         * tests/test-canonicalize.c (null_ptr): New function.
36179         (main): Use it.
36180         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
36181         (main): Use it.
36182         * tests/test-memmem.c (null_ptr): New function.
36183         (main): Use it.
36184         Reported by Jim Meyering.
36185
36186 2009-12-10  Bruno Haible  <bruno@clisp.org>
36187
36188         Use spaces for indentation, not tabs.
36189         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
36190         * m4/*.m4: Untabify.
36191         * build-aux/*.h: Untabify.
36192         * tests/**/*.[hc]: Untabify.
36193         * README: New section "Indent with spaces, not TABs", based on
36194         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
36195         * NEWS: Mention the change.
36196
36197 2009-12-10  Bruno Haible  <bruno@clisp.org>
36198
36199         pty test: Fix link error.
36200         * modules/pty-tests (Makefile.am): Add the default LDADD value to
36201         test_pty_LDADD.
36202
36203 2009-12-07  Simon Josefsson  <simon@josefsson.org>
36204
36205         * modules/pty: New file.
36206         * modules/pty-tests: New file.
36207         * m4/pty.m4: New file.
36208         * tests/test-pty.c: New file.
36209         * doc/glibc-headers/pty.texi: Modified.
36210         * doc/glibc-functions/forkpty.texi: Modified.
36211         * doc/glibc-functions/openpty.texi: Modified.
36212
36213 2009-12-10  Bruno Haible  <bruno@clisp.org>
36214
36215         Avoid syntax error in C++ mode.
36216         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
36217
36218 2009-12-10  Bruno Haible  <bruno@clisp.org>
36219
36220         Use sed with option -e.
36221         * gnulib-tool (func_version, func_emit_copyright_notice,
36222         func_emit_initmacro_end, func_import, func_create_testdir): Pass
36223         option -e to sed.
36224         * modules/link-warning (Makefile.am): Likewise.
36225
36226 2009-12-10  Jim Meyering  <meyering@redhat.com>
36227
36228         mgetgroups: do not write bytes beyond end of malloc'd buffer
36229         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
36230         username, we call getgroups with a one-element-shorter buffer,
36231         but still told it the length was original, max_n_groups.
36232
36233 2009-12-09  Eric Blake  <ebb9@byu.net>
36234
36235         cloexec: relax license
36236         * modules/cloexec (Maintainer): Add myself.
36237         (License): Use LGPL, not GPL.
36238
36239         link-warning: optimize generation
36240         * modules/link-warning (Makefile.am): Reduce process usage.
36241
36242 2009-12-09  Bruno Haible  <bruno@clisp.org>
36243
36244         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
36245         workaround was added on 2009-11-17.
36246
36247 2009-12-09  Jim Meyering  <meyering@redhat.com>
36248             Bruno Haible  <bruno@clisp.org>
36249
36250         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
36251         * modules/link-warning (Makefile.am): Make the comment-removing sed
36252         command more robust in the face of bootstrap-prepended comment lines.
36253
36254 2009-12-09  Bruno Haible  <bruno@clisp.org>
36255
36256         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
36257         most one group.
36258
36259 2009-12-09  Simon Josefsson <simon@josefsson.org>
36260             Bruno Haible  <bruno@clisp.org>
36261
36262         * build-aux/link-warning.h: Add copyright notice.
36263         * modules/link-warning (Makefile.am): Generate link-warning.h from
36264         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
36265         * NEWS: Mention change in link-warning module.
36266         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
36267         * modules/dirent (Makefile.am): Add dependency to dirent.h.
36268         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
36269         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
36270         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
36271         * modules/math (Makefile.am): Add dependency to math.h.
36272         * modules/search (Makefile.am): Add dependency to search.h.
36273         * modules/signal (Makefile.am): Add dependency to signal.h.
36274         * modules/spawn (Makefile.am): Add dependency to spawn.h.
36275         * modules/stdio (Makefile.am): Add dependency to stdio.h.
36276         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
36277         * modules/string (Makefile.am): Add dependency to string.h.
36278         * modules/strings (Makefile.am): Add dependency to strings.h.
36279         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
36280         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
36281         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
36282         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
36283         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
36284         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
36285         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
36286         * modules/unistd (Makefile.am): Add dependency to unistd.h.
36287         * modules/wchar (Makefile.am): Add dependency to wchar.h.
36288
36289 2009-12-09  Bruno Haible  <bruno@clisp.org>
36290
36291         fchdir: Optimize away rpl_fstat when possible.
36292         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
36293         REPLACE_OPEN_DIRECTORY.
36294         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
36295
36296 2009-12-09  Bruno Haible  <bruno@clisp.org>
36297
36298         * lib/fchdir.c: Update comment.
36299
36300 2009-12-09  Bruno Haible  <bruno@clisp.org>
36301
36302         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
36303
36304 2009-12-08  Eric Blake  <ebb9@byu.net>
36305
36306         fchdir: avoid memory leak on re-registration.
36307         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
36308
36309 2009-12-08  Jim Meyering  <meyering@redhat.com>
36310
36311         init.sh: avoid Solaris 10 /bin/sh portability problem
36312         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
36313         sourced script:
36314           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
36315           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
36316           bar
36317         tests/init.sh relied on that, accepting a --set-path=DIR argument,
36318         and two tests used that idiom.
36319         * tests/init.sh: Update suggested usage comments.
36320         (path_prepend_): New function, to be used in place
36321         of the --src-path=DIR option.
36322         (setup_): Move PATH-prepending code into path_prepend_.
36323         * tests/test-pread.sh: Adapt to new usage.
36324         * tests/test-xalloc-die.sh: Likewise.
36325
36326 2009-12-08  Simon Josefsson  <simon@josefsson.org>
36327
36328         * doc/gnulib.texi (Glibc pty.h): Add.
36329         * doc/glibc-functions/forkpty.texi: Add.
36330         * doc/glibc-functions/openpty.texi: Add.
36331         Suggested by Bruno Haible.
36332
36333 2009-12-08  Eric Blake  <ebb9@byu.net>
36334
36335         fchdir: fix logic bugs
36336         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
36337         * tests/test-fchdir.c (main): Enhance test.
36338         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
36339         is in use.
36340
36341         dup2: fix logic bugs
36342         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
36343         REPLACE_DUP2 to decide when rpl_dup2 is needed.
36344         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
36345         exists.
36346         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
36347
36348 2009-12-07  Eric Blake  <ebb9@byu.net>
36349
36350         unlink: fix m4 detection
36351         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
36352
36353         unistd-safer: add unit test
36354         * modules/unistd-safer-tests: New file.
36355         * tests/test-dup-safer.c: Likewise.
36356         * tests/test-cloexec.c (setmode): Avoid compiler warning.
36357         * tests/test-dup2.c (setmode): Likewise.
36358         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
36359
36360         cloexec: preserve text vs. binary across dup_cloexec
36361         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
36362         mode.
36363         * modules/dup2-tests (Depends-on): Add binary-io.
36364         * modules/cloexec-tests (Depends-on): Likewise.
36365         * tests/test-dup2.c (setmode, is_mode): New helpers.
36366         (main): Add tests that translation mode is preserved.
36367         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
36368         Reported by Bruno Haible.
36369
36370         mgetgroups: reduce duplicate listings
36371         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
36372         resulting array.
36373         * tests/test-chown.h (test_chown): Simplify client.
36374         * tests/test-lchown.h (test_lchown): Likewise.
36375
36376 2009-12-06  Bruno Haible  <bruno@clisp.org>
36377
36378         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
36379         value.
36380
36381 2009-12-06  Bruno Haible  <bruno@clisp.org>
36382
36383         * lib/progname.c: Include stdio.h, stdlib.h.
36384         (set_program_name): Reject a NULL argument.
36385
36386 2009-12-05  Eric Blake  <ebb9@byu.net>
36387
36388         pipe2-safer: new module
36389         * modules/pipe2-safer: New file.
36390         * lib/unistd-safer.h (pipe2_safer): New prototype.
36391         * lib/unistd--.h (pipe2): New wrapper.
36392         * lib/pipe-safer.c (pipe2_safer): New function.
36393         * modules/pipe (Depends-on): Add pipe2-safer.
36394         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
36395
36396         stdlib-safer: preserve cloexec flag for mkostemp[s]
36397         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
36398         fd_safer_flag.
36399
36400         unistd-safer: allow preservation of cloexec status via flag
36401         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
36402         prototypes.
36403         * lib/dup-safer.c (dup_safer_flag): New function.
36404         * lib/fd-safer.c (fd_safer_flag): Likewise.
36405         * modules/cloexec (configure.ac): Set witness.
36406
36407         test-dup2: enhance test
36408         * modules/dup2-tests (Depends-on): Add cloexec.
36409         * tests/test-dup2.c (main): Enhance test.
36410
36411         cloexec: add dup_cloexec
36412         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
36413         header and comments.
36414         * lib/cloexec.c (set_cloexec_flag): Add comments.
36415         (dup_cloexec): New function, with mingw implementation borrowed
36416         from...
36417         * lib/w32spawn.h (dup_noinherit): ...here.
36418         * modules/execute (Depends-on): Add cloexec.
36419         * modules/pipe (Depends-on): Likewise.
36420         * modules/cloexec (Depends-on): Add dup2.
36421         * modules/cloexec-tests (Files): New file.
36422         * tests/test-cloexec.c: Likewise.
36423
36424         test-xalloc-die: fix test for mingw
36425         * modules/xalloc-die-tests (Files): Add tests/init.sh.
36426         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
36427         directory and .exe suffix off argv[0] output.
36428
36429         test-fseeko: fix test for mingw
36430         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
36431         than undefining fseek, so test will pass on mingw.
36432
36433 2009-12-05  Bruno Haible  <bruno@clisp.org>
36434
36435         * lib/progname.h (set_program_name): Clarify specification.
36436         * lib/progname.c (set_program_name): Likewise.
36437         Reported by Jim Meyering.
36438
36439 2009-12-05  Jim Meyering  <meyering@redhat.com>
36440
36441         maint.mk: backslash-escape parens in default regexp
36442         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
36443         backslash-escape the literal parentheses.
36444
36445         maint.mk: news-date-check: use grep -E
36446         * top/maint.mk (today): Define a Make variable, not a...
36447         (news-date-check): ...shell variable.
36448         (news-date-regexp): Use the Make variable.
36449         Use grep's -E option.  Change the failing diagnostic to mention
36450         the variable, $(news-date-regexp).
36451
36452 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
36453
36454         maintainer-makefile: allow customization of NEWS entry format
36455         * top/maint.mk (news-date-regexp): New overridable variable.
36456         (news-date-check): Use it.
36457
36458 2009-12-04  Eric Blake  <ebb9@byu.net>
36459
36460         mgetgroups: add xgetgroups, and avoid ENOSYS failures
36461         * lib/mgetgroups.h (xgetgroups): New prototype.
36462         * lib/mgetgroups.c (xgetgroups): New wrapper.
36463         (mgetgroups): Handle ENOSYS.
36464         * modules/mgetgroups (Depends-on): Add realloc.
36465         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
36466
36467         mgetgroups: avoid argument promotion issues with -1
36468         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
36469         for invalid gid_t.
36470         * tests/test-chown.h (getegid, test_chown): Likewise.
36471         * tests/test-lchown.h (getegid, test_lchown): Likewise.
36472
36473 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
36474
36475         exclude: Fix header file problems.
36476         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
36477
36478 2009-12-01  Jim Meyering  <meyering@redhat.com>
36479
36480         fts: fts_open: do not let an empty string cause immediate failure
36481         This is required in support of GNU rm, for which the command
36482         "rm A '' B" must process and remove both A and B, in spite of
36483         the empty string argument.
36484         * lib/fts.c (fts_open): Do not let the presence of an empty string
36485         cause fts_open to fail immediately.  Most fts-using tools must be
36486         able to process all arguments, in order, and can be expected to
36487         diagnose such arguments themselves.
36488
36489 2009-11-30  Eric Blake  <ebb9@byu.net>
36490
36491         utimens: fix compilation error
36492         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
36493         Declare variable at right scope.
36494
36495 2009-11-29  Jim Meyering  <meyering@redhat.com>
36496
36497         bootstrap: handle perl-5.11's changed --version output
36498         * build-aux/bootstrap (get_version): Handle perl separately,
36499         since perl-5.11's --version output is different.
36500
36501 2009-11-28  Jim Meyering  <meyering@redhat.com>
36502
36503         userspec: depend on the inttostr module, too
36504         * modules/userspec (Depends-on): Add inttostr.
36505
36506         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
36507         * lib/userspec.c (parse_with_separator): Do not accept a user ID
36508         number of MAXUID when it evaluates to (uid_t) -1.
36509         Likewise for group ID.  Reported by Matt McCutchen in
36510         <http://savannah.gnu.org/bugs/?28113>
36511
36512         userspec: reformat to use spaces, not TABs
36513         * lib/userspec.c: Expand TABs to spaces.
36514         Add Emacs' "indent-tabs-mode: nil" hint.
36515
36516 2009-11-27  Eric Blake  <ebb9@byu.net>
36517
36518         getopt-gnu: flush out another BSD bug
36519         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
36520         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
36521         flush out BSD bug.
36522         * tests/test-getopt.h (test_getopt): End lists with NULL.
36523         * tests/test-getopt_long.h (test_getopt_long): Likewise.
36524         (test_getopt_long_posix): Enhance test.
36525         * modules/getopt-posix-tests (Depends-on): Add stdbool.
36526         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
36527         getopt-gnu.
36528         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36529         Likewise.
36530
36531 2009-11-27  Simon Josefsson  <simon@josefsson.org>
36532
36533         * modules/idpriv-droptemp-tests (Notice): Fix text.
36534
36535 2009-11-27  Jim Meyering  <meyering@redhat.com>
36536
36537         test-xalloc-die: avoid spurious failure due to libtool argv difference
36538         In a libtool-enabled project, this test would fail due to a difference
36539         in the emitted program name, e.g.,
36540         -test-xalloc-die: memory exhausted
36541         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
36542         Use program to avoid that.
36543         * modules/xalloc-die-tests (Depends-on): Add progname.
36544         * tests/test-xalloc-die.c: Include progname.h".
36545         (program_name): Remove decl.
36546         (main): Call set_program_name.
36547         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
36548
36549 2009-11-26  Richard Jones  <rjones@redhat.com>
36550
36551         w32sock: leave win32 error in place.
36552         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
36553
36554 2009-11-26  Eric Blake  <ebb9@byu.net>
36555
36556         init.sh: suggest to use skip_ and fail_ functions in comments
36557         * tests/init.sh: Add a sentence.
36558
36559 2009-11-25  Bruno Haible  <bruno@clisp.org>
36560
36561         init.sh: add documentation in comments
36562         * tests/init.sh: Add some developer and user documentation.
36563
36564 2009-11-26  Jim Meyering  <meyering@redhat.com>
36565
36566         init.sh: accommodate even those who specify bogus srcdir manually
36567         * tests/init.sh: Normally, srcdir is guaranteed by automake and
36568         configure-time tests to be sanitized, so that there is no need to
36569         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
36570         (with no double quotes) suffices.  However, since tests may be
36571         invoked manually, and since you may explicitly set srcdir to the
36572         name of a directory containing spaces, do quote its uses here.
36573         * tests/test-pread.sh: Likewise.
36574         Suggested by Bruno Haible.
36575
36576         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
36577         * tests/test-pread.sh: Write no data into the pipe, because
36578         test-pread actually reads none.  This avoids a diagnostic,
36579         "bash: echo: write error: Broken pipe", that arises in the unusual
36580         event something is ignoring SIGPIPE, and might be interpreted
36581         as some sort of failure.  Reported by Bruno Haible.
36582
36583 2009-11-25  Jim Meyering  <meyering@redhat.com>
36584
36585         test-pread: cover failure with ESPIPE and EINVAL
36586         * tests/test-pread.c (main): Test for failure, too.
36587         * tests/test-pread.sh: Invoke with stdin on a pipe.
36588         Suggested by Eric Blake.
36589
36590         pread: improvement and fix
36591         * modules/pread (Depends-on): Depend on lseek, for portability to
36592         e.g., mingw.  Suggested by Eric Blake.
36593         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
36594
36595         unistd.in.h: correct declaration of pread
36596         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
36597         Reported by Richard W.M. Jones.
36598
36599         test-pread.sh: distribute the test script
36600         * modules/pread-tests (Files): Include test-pread.sh.
36601
36602         test-pread.sh: clean up
36603         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
36604         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
36605         That is unnecessary, since it's always ".".
36606         Suggestion from Eric Blake.
36607
36608         test-pread.sh: make executable
36609         * tests/test-pread.sh: Set executable bit.
36610         Reported by Eric Blake.
36611
36612         correct typo in test-pread.sh
36613         * tests/test-pread.sh: Add #! line.
36614
36615         test pread
36616         * tests/test-pread.c: New file.
36617         * tests/test-pread.sh: Likewise.
36618         * modules/pread-tests: Likewise.
36619
36620         pread: new module
36621         * modules/pread: New file.
36622         * lib/unistd.in.h (pread): Define/declare.
36623         * lib/pread.c (pread): New file.
36624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
36625         * modules/unistd (Makefile.am): Substitute witnesses.
36626         * doc/posix-functions/pread.texi (pread): Update.
36627         * MODULES.html.sh: Add pread.
36628
36629 2009-11-25  Jim Meyering  <meyering@redhat.com>
36630
36631         tests/init.sh: new file to be used via most *.sh tests
36632         * tests/init.sh: New file.
36633
36634 2009-11-25  Eric Blake  <ebb9@byu.net>
36635
36636         utimens: work around older Linux failure with symlinks
36637         * lib/utimens.c (lutimensat_works_really): New variable.
36638         (fdutimens, lutimens): Use it to manage kernels that support
36639         nanosecond times on files, but not on symlinks.
36640         Reported by OndÅ™ej Vašík.
36641
36642         utimes: fix configure grammar
36643         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
36644
36645 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
36646
36647         regex: Fix fastmap for multibyte character ranges.
36648         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
36649         characters when a multibyte character range is included.
36650
36651 2009-11-22  Andy Wingo  <wingo@pobox.com>
36652
36653         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
36654         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
36655
36656 2009-11-24  Bruno Haible  <bruno@clisp.org>
36657
36658         doc: Most *_l functions exist in MacOS X 10.5.
36659         * doc/posix-functions/duplocale.texi: Update platforms list.
36660         * doc/posix-functions/freelocale.texi: Likewise.
36661         * doc/posix-functions/newlocale.texi: Likewise.
36662         * doc/posix-functions/uselocale.texi: Likewise.
36663         * doc/posix-functions/isalnum_l.texi: Likewise.
36664         * doc/posix-functions/isalpha_l.texi: Likewise.
36665         * doc/posix-functions/isblank_l.texi: Likewise.
36666         * doc/posix-functions/iscntrl_l.texi: Likewise.
36667         * doc/posix-functions/isdigit_l.texi: Likewise.
36668         * doc/posix-functions/isgraph_l.texi: Likewise.
36669         * doc/posix-functions/islower_l.texi: Likewise.
36670         * doc/posix-functions/isprint_l.texi: Likewise.
36671         * doc/posix-functions/ispunct_l.texi: Likewise.
36672         * doc/posix-functions/isspace_l.texi: Likewise.
36673         * doc/posix-functions/isupper_l.texi: Likewise.
36674         * doc/posix-functions/iswalnum_l.texi: Likewise.
36675         * doc/posix-functions/iswalpha_l.texi: Likewise.
36676         * doc/posix-functions/iswblank_l.texi: Likewise.
36677         * doc/posix-functions/iswcntrl_l.texi: Likewise.
36678         * doc/posix-functions/iswctype_l.texi: Likewise.
36679         * doc/posix-functions/iswdigit_l.texi: Likewise.
36680         * doc/posix-functions/iswgraph_l.texi: Likewise.
36681         * doc/posix-functions/iswlower_l.texi: Likewise.
36682         * doc/posix-functions/iswprint_l.texi: Likewise.
36683         * doc/posix-functions/iswpunct_l.texi: Likewise.
36684         * doc/posix-functions/iswspace_l.texi: Likewise.
36685         * doc/posix-functions/iswupper_l.texi: Likewise.
36686         * doc/posix-functions/iswxdigit_l.texi: Likewise.
36687         * doc/posix-functions/isxdigit_l.texi: Likewise.
36688         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
36689         * doc/posix-functions/strcasecmp_l.texi: Likewise.
36690         * doc/posix-functions/strcoll_l.texi: Likewise.
36691         * doc/posix-functions/strfmon_l.texi: Likewise.
36692         * doc/posix-functions/strftime_l.texi: Likewise.
36693         * doc/posix-functions/strncasecmp_l.texi: Likewise.
36694         * doc/posix-functions/strxfrm_l.texi: Likewise.
36695         * doc/posix-functions/tolower_l.texi: Likewise.
36696         * doc/posix-functions/toupper_l.texi: Likewise.
36697         * doc/posix-functions/towctrans_l.texi: Likewise.
36698         * doc/posix-functions/towlower_l.texi: Likewise.
36699         * doc/posix-functions/towupper_l.texi: Likewise.
36700         * doc/posix-functions/wcscoll_l.texi: Likewise.
36701         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
36702         * doc/posix-functions/wctrans_l.texi: Likewise.
36703         * doc/posix-functions/wctype_l.texi: Likewise.
36704         * doc/glibc-functions/strptime_l.texi: Likewise.
36705         * doc/glibc-functions/strtod_l.texi: Likewise.
36706         * doc/glibc-functions/strtof_l.texi: Likewise.
36707         * doc/glibc-functions/strtol_l.texi: Likewise.
36708         * doc/glibc-functions/strtold_l.texi: Likewise.
36709         * doc/glibc-functions/strtoll_l.texi: Likewise.
36710         * doc/glibc-functions/strtoul_l.texi: Likewise.
36711         * doc/glibc-functions/strtoull_l.texi: Likewise.
36712         * doc/glibc-functions/wcsftime_l.texi: Likewise.
36713         * doc/glibc-functions/wcstod_l.texi: Likewise.
36714         * doc/glibc-functions/wcstof_l.texi: Likewise.
36715         * doc/glibc-functions/wcstol_l.texi: Likewise.
36716         * doc/glibc-functions/wcstold_l.texi: Likewise.
36717         * doc/glibc-functions/wcstoll_l.texi: Likewise.
36718         * doc/glibc-functions/wcstoul_l.texi: Likewise.
36719         * doc/glibc-functions/wcstoull_l.texi: Likewise.
36720
36721 2009-11-24  Bruno Haible  <bruno@clisp.org>
36722
36723         duplocale: Fix logic bug.
36724         * lib/duplocale.c: Don't include <langinfo.h>.
36725         (_NL_LOCALE_NAME): Remove macro.
36726         (rpl_duplocale): Use setlocale instead of nl_langinfo.
36727         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
36728
36729 2009-11-23  Jim Meyering  <meyering@redhat.com>
36730
36731         test-update-copyright: don't hard-code /usr/bin/perl
36732         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
36733         perl to print the current year.  Gilles Espinasse reported that
36734         the replaced use of perl was hard-coded as /usr/bin/perl.
36735
36736 2009-11-23  Bruno Haible  <bruno@clisp.org>
36737
36738         duplocale: Add support for glibc 2.3.x.
36739         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
36740
36741 2009-11-22  Bruno Haible  <bruno@clisp.org>
36742
36743         vasnprintf: Tiny optimization.
36744         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
36745         MacOS X.
36746
36747 2009-11-22  Bruno Haible  <bruno@clisp.org>
36748
36749         Tests for module 'duplocale'.
36750         * modules/duplocale-tests: New file.
36751         * tests/test-duplocale.c: New file.
36752
36753         New module 'duplocale'.
36754         * m4/duplocale.m4: New file.
36755         * lib/locale.in.h (duplocale): New declaration.
36756         * lib/duplocale.c: New file.
36757         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
36758         gl_LOCALE_H_DEFAULTS): New macros.
36759         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
36760         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
36761         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
36762         REPLACE_DUPLOCALE.
36763         * modules/duplocale: New file.
36764         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
36765
36766 2009-11-22  Bruno Haible  <bruno@clisp.org>
36767
36768         * modules/locale-tests (configure.ac): Test for newlocale function.
36769         * tests/test-locale.c: When the system has extended locale functions,
36770         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
36771
36772         locale: Make locale_t available when possible.
36773         * lib/locale.in.h: Include <xlocale.h> when it exists.
36774         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
36775         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
36776         * modules/locale (Depends-on): Add extensions.
36777         (Makefile.am): Also substitute HAVE_XLOCALE_H.
36778         * doc/posix-headers/locale.texi: Document the problem with locale_t.
36779
36780 2009-11-22  Bruno Haible  <bruno@clisp.org>
36781
36782         Add comments.
36783         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
36784         invocation.
36785         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
36786         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36787         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36788
36789 2009-11-22  Bruno Haible  <bruno@clisp.org>
36790
36791         error: account for the possibility of freopen (stdout).
36792         * lib/error.c: Include <unistd.h>.
36793         (flush_stdout): New function, extracted from error and error_at_line.
36794         Determine stdout's fd dynamically.
36795         (error, error_at_line): Invoke flush_stdout.
36796         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
36797         * modules/error (Depends-on): Add unistd.
36798
36799 2009-11-22  Bruno Haible  <bruno@clisp.org>
36800
36801         diffseq: Add comment.
36802         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
36803
36804 2009-11-22  Jim Meyering  <meyering@redhat.com>
36805
36806         c-stack: avoid defining an unused static function
36807         * lib/c-stack.c (find_stack_direction): Do not define this function
36808         when it will not be used.
36809
36810         diffseq: avoid spurious gcc warnings
36811         * lib/diffseq.h (IF_LINT2): Define.
36812         (compareseq): Use it to initialize two members of "part".
36813         This avoids two used-uninitialized warnings.
36814
36815 2009-11-21  Jim Meyering  <meyering@redhat.com>
36816
36817         c-stack: avoid "ignoring return value of `write'" warning
36818         * lib/c-stack.c: Include "ignore-value.h".
36819         (die): Explicitly ignore each write return value.
36820         * modules/c-stack (Depends-on): Add ignore-value.
36821
36822 2009-11-21  Bruno Haible  <bruno@clisp.org>
36823
36824         diffseq: reduce scope of variable 'best'.
36825         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
36826         variable, earlier used for two different purposes.
36827
36828 2009-11-21  Jim Meyering  <meyering@redhat.com>
36829
36830         diffseq: remove useless assignment to "best"
36831         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
36832         assignment.  At that point "best" is already guaranteed to be zero.
36833
36834 2009-11-20  Eric Blake  <ebb9@byu.net>
36835
36836         build: mention ftp redirector in release announcements
36837         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
36838         values that used to come from cfg.mk; mention FTP redirect URL.
36839         * build-aux/announce-gen: Mention the mirror list.
36840         Suggested by Karl Berry.
36841
36842         nanosleep: improve port to mingw
36843         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
36844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
36845         LIB_NANOSLEEP, but only when needed.
36846         * modules/select (Link): Document LIBSOCKET.
36847         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
36848         enough.
36849
36850         nanosleep: work around cygwin bug
36851         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
36852         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
36853         bug.
36854         (getnow): Delete, not needed.
36855         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
36856         LIB_CLOCK_GETTIME.
36857         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
36858         clock-time, gettime.
36859         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
36860         bug.
36861         * modules/nanosleep-tests: New test.
36862         * tests/test-nanosleep.c: New file.
36863
36864         sleep: work around cygwin bug
36865         * lib/sleep.c (rpl_sleep): Work around the bug.
36866         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
36867         (gl_PREREQ_SLEEP): Delete unused macro.
36868         * modules/sleep (Depends-on): Add verify.
36869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
36870         * modules/unistd (Makefile.am): Substitute witness.
36871         * lib/unistd.in.h (sleep): Update prototype.
36872         * doc/posix-functions/sleep.texi (sleep): Document the bug.
36873         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
36874         * modules/sleep-tests (Depends-on): Check for alarm.
36875
36876 2009-11-20  Jim Meyering  <meyering@redhat.com>
36877
36878         maint.mk: improve sc_prohibit_magic_number_exit
36879         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
36880         so it does not match uses like System.exit(1).
36881         Add comments showing how to correct all offenders.
36882
36883 2009-11-19  Eric Blake  <ebb9@byu.net>
36884
36885         xalloc-die-tests: add missing library
36886         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
36887
36888         test-xvasprintf: silence compiler warnings
36889         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
36890         empty string from gcc.
36891
36892 2009-11-19  Jim Meyering  <meyering@redhat.com>
36893
36894         xfreopen: new module, from coreutils
36895         * modules/xfreopen: New module.
36896         * lib/xfreopen.c: New file.
36897         * lib/xfreopen.h: New file.
36898         * MODULES.html.sh (File stream based Input/Output"): Add it.
36899
36900 2009-11-19  Eric Blake  <ebb9@byu.net>
36901
36902         manywarnings: depend on warnings
36903         * modules/manywarnings (Depends-on): Add warnings.
36904
36905         build: avoid compiler warnings
36906         * lib/select.c (rpl_select): Delete unused variable.
36907         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
36908
36909 2009-11-18  Eric Blake  <ebb9@byu.net>
36910
36911         tests: avoid false negative with --with-packager
36912         * tests/test-version-etc.sh: Discard packager information.
36913         * tests/test-argp-version-etc-1.sh: Likewise.
36914         Reported by Mike Frysinger.
36915
36916         utimens: fix regression on Solaris
36917         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
36918         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
36919         can only change fd timestamps via futimesat.  Instead, use an
36920         additional witness macro to avoid BSD bug.
36921         Reported by Jim Meyering.
36922
36923 2009-11-17  Eric Blake  <ebb9@byu.net>
36924
36925         usleep: use it to simplify tests
36926         * modules/stat-time-tests (Depends-on): Add usleep.
36927         (configure.ac): Drop usleep check.
36928         * modules/chown-tests (Depends-on, configure.ac): Likewise.
36929         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
36930         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
36931         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
36932         * modules/openat-tests (Depends-on, configure.ac): Likewise.
36933         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
36934         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
36935         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
36936         Likewise.
36937         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
36938         * tests/test-lchown.h (nap): Likewise.
36939         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
36940         * tests/test-stat-time.c (nap): Likewise.
36941         * tests/test-utimens-common.h (nap): Update comments.
36942
36943         usleep: new module
36944         * modules/usleep: New file.
36945         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
36946         * lib/usleep.c (usleep): Likewise.
36947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36948         * modules/unistd (Makefile.am): Substitute witnesses.
36949         * lib/unistd.in.h (usleep): Add declaration.
36950         * doc/pastposix-functions/usleep.texi (usleep): Document this.
36951         * MODULES.html.sh (Date and time): Likewise.
36952         * modules/usleep-tests (Depends-on): New test.
36953         * tests/test-usleep.c: New file.
36954
36955         chown: work around OpenBSD bug
36956         * lib/chown.c (rpl_chown): Work around the bug.
36957         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
36958         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
36959         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
36960         * modules/chown (Depends-on): Add stdbool.
36961         * modules/lchown (Depends-on): Likewise.
36962         * doc/posix-functions/chown.texi (chown): Document the bug.
36963         * doc/posix-functions/lchown.texi (lchown): Likewise.
36964         * tests/test-lchown.h (test_chown): Relax test.
36965
36966         mkstemp: avoid conflict with C++ keyword template
36967         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
36968         * lib/mkostemp.c (mkostemp): Likewise.
36969         * lib/mkostemps.c (mkostemps): Likewise.
36970         * lib/mkstemp.c (mkstemp): Likewise.
36971         * lib/mkstemps.c (mkstemps): Likewise.
36972
36973         xalloc-die-tests: optimize
36974         * tests/test-xalloc-die.sh: Reduce number of processes.
36975
36976 2009-11-17  Simon Josefsson  <simon@josefsson.org>
36977
36978         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
36979         patch from ludo@gnu.org (Ludovic Courtès).
36980
36981 2009-11-17  Jim Meyering  <meyering@redhat.com>
36982
36983         version-etc: use proper license string
36984         * modules/version-etc (License): Use LGPL, not LGPLv3+.
36985         * modules/version-etc-fsf: Likewise.
36986
36987 2009-11-17  Simon Josefsson  <simon@josefsson.org>
36988
36989         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
36990         printed to stdout.  Deal with EOL differences.
36991
36992 2009-11-17  Eric Blake  <ebb9@byu.net>
36993
36994         unsetenv: work around Solaris bug
36995         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
36996         * lib/unsetenv.c (rpl_unsetenv): Work around it.
36997         Reported by Jim Meyering.
36998
36999         vasnprintf: avoid compiler warnings
37000         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
37001         variables.
37002         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
37003
37004 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37005
37006         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
37007         settings since xalloc-die is no longer the self test,
37008         xalloc-die.sh is.
37009
37010 2009-11-17  Jim Meyering  <meyering@redhat.com>
37011
37012         test-xalloc-die.sh: make the code agree with the commit log
37013         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
37014         at the end, just in case you happen to have a test-xalloc-die
37015         program in some other PATH directory.
37016
37017         test-xalloc-die.sh: fix a portability bug
37018         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
37019         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
37020         Otherwise, argv[0] (as often seen in diagnostics) would be too
37021         system-dependent, sometimes with, and sometimes without the leading "./".
37022
37023         version-etc-fsf: relax license to LGPLv3+
37024         * modules/version-etc-fsf (License): Relax license.
37025
37026 2009-11-16  Eric Blake  <ebb9@byu.net>
37027
37028         xalloc-die-tests: avoid printing null pointer
37029         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
37030         shell script.
37031         * tests/test-xalloc-die.c (program_name): Declare.
37032         * tests/test-xalloc-die.sh (tmpfiles): New file.
37033
37034         setenv, unsetenv: work around various bugs
37035         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
37036         (setenv) [HAVE_SETENV]: Work around bugs.
37037         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
37038         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
37039         for bugs.
37040         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
37041         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
37042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
37043         * modules/stdlib (Makefile.am): Update substitutions.
37044         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
37045         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
37046         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37047         * modules/setenv-tests: New test.
37048         * modules/unsetenv-tests: Likewise.
37049         * tests/test-setenv.c: New file.
37050         * tests/test-unsetenv.c: Likewise.
37051
37052 2009-11-16  Jim Meyering  <meyering@redhat.com>
37053
37054         version-etc: relax license to LGPLv3+
37055         * modules/version-etc (License): Relax license.
37056
37057         better AC_REQUIRE expanded-before-required-warning avoidance
37058         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
37059         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
37060         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
37061         which is no longer needed.
37062
37063 2009-11-16  Eric Blake  <ebb9@byu.net>
37064
37065         test-freading: clean up temporary file
37066         * tests/test-freading.c (main): Remove file on success, and use
37067         ASSERT more liberally.
37068         Reported by Jim Meyering.
37069
37070 2009-11-16  Jim Meyering  <meyering@redhat.com>
37071
37072         avoid new AC_REQUIRE expanded-before-required warnings
37073         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
37074         merely using it.
37075         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
37076         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
37077
37078 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37079
37080         * tests/test-xalloc-die.c: New file.
37081         * modules/xalloc-die-tests: New file.
37082         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
37083         XFAIL_TESTS so it can be appended by modules.
37084
37085 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37086
37087         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
37088         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
37089
37090 2009-11-14  Eric Blake  <ebb9@byu.net>
37091
37092         fnmatch: avoid compiler warning
37093         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
37094         to silence compiler warning about mismatch signedness in ?:.
37095         Reported by Robert Millan.
37096
37097         intprops: add double-inclusion guard
37098         * lib/intprops.h: Allow idempotent includes.
37099         Suggested by Bruce Korb.
37100
37101         openat: detect Solaris fchownat bug
37102         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
37103         penalizing glibc chownat when only lchownat is broken.
37104         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
37105         trailing slash bugs.
37106         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
37107         * modules/openat-tests (Files): Include more files.
37108         (Depends-on): Add mgetgroups, sleep, stat-time.
37109         (configure.ac): Add additional checks.
37110         (Makefile.am): Build new test.
37111         * tests/test-fchownat.c: New file.
37112
37113         lchown: detect Solaris and FreeBSD bug
37114         * lib/lchown.c (rpl_lchown): Work around bug.
37115         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
37116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37117         * modules/unistd (Makefile.am): Populate it.
37118         * lib/unistd.in.h (lchown): Update declaration.
37119         * doc/posix-functions/lchown.texi (lchown): Document the bug.
37120         * modules/lchown-tests: New file.
37121         * tests/test-lchown.h (test_lchown): Likewise.
37122         * tests/test-lchown.c (main): Likewise.
37123
37124         chown: detect Solaris and FreeBSD bug
37125         * lib/chown.c (rpl_chown): Work around bug.
37126         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
37127         (gl_PREREQ_CHOWN): Delete.
37128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37129         * modules/unistd (Makefile.am): Populate it.
37130         * lib/unistd.in.h (chown): Update declaration.
37131         * lib/lchown.c (chown): Update client.
37132         * modules/lchown (Depends-on): Add lstat.
37133         * doc/posix-functions/chown.texi (chown): Document the bug.
37134         * doc/posix-functions/getgroups.texi (getgroups): Document
37135         getgroups pitfall.
37136         * modules/chown-tests: New file.
37137         * tests/test-chown.h (test_chown): Likewise.
37138         * tests/test-chown.c (main): Likewise.
37139
37140 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
37141
37142         gnulib-tool: correctly detect absence of m4 directories
37143         * gnulib-tool: Avoid extra newline on data passed to wc -l.
37144
37145 2009-11-14  Jim Meyering  <meyering@redhat.com>
37146
37147         maint.mk: Prohibit inclusion of "xalloc.h" without use.
37148         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
37149
37150 2009-11-14  John W. Eaton  <jwe@gnu.org>
37151
37152         strftime.h: wrap funtion declaration in extern "C" block
37153         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
37154
37155 2009-11-13  Eric Blake  <ebb9@byu.net>
37156
37157         getgroups: avoid compiler warning
37158         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
37159
37160         getgroups: work around FreeBSD bug
37161         * lib/getgroups.c (rpl_getgroups): Work around the bug.
37162         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
37163         * doc/posix-functions/getgroups.texi (getgroups): Document it.
37164         * tests/test-getgroups.c (main): Fix buffer overrun.
37165
37166         getgroups: avoid compilation failure
37167         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
37168         * modules/getgroups (Depends-on): Add stdint.
37169
37170 2009-11-13  Jim Meyering  <meyering@redhat.com>
37171
37172         test-getgroups: avoid compilation failure
37173         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
37174
37175 2009-11-13  Eric Blake  <ebb9@byu.net>
37176
37177         mgetgroups: new module, taken from coreutils
37178         * modules/mgetgroups: New file.
37179         * lib/mgetgroups.h: Likewise.
37180         * lib/mgetgroups.c (mgetgroups): Likewise.
37181         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
37182         * MODULES.html.sh (Users and groups): Mention it.
37183
37184         getgroups: don't expose GETGROUPS_T to user
37185         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
37186         an element at a time if GETGROUPS_T is wrong size.
37187         * lib/getugroups.h (getugroups): Change signature.
37188         * lib/unistd.in.h (getgroups): Likewise.
37189         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
37190         signature needs fixing.
37191         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
37192         AC_TYPE_GETGROUPS.
37193         * modules/group-member (Depends-on): Add getgroups.
37194         * lib/group-member.c (group_info, get_group_info): Use gid_t.
37195         (group_member): Rely on getgroups replacement.
37196         * lib/getugroups.c (getugroups): Use gid_t.
37197         * tests/test-getgroups.c (main): Likewise.
37198         * NEWS: Mention the signature change.
37199         * doc/posix-functions/getgroups.texi (getgroups): Mention the
37200         problem with signature.
37201         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
37202         GETGROUPS_T is still useful for setgroups.
37203
37204         getgroups, getugroups: provide stubs for mingw
37205         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
37206         * lib/getugroups.c (getugroups): Likewise.
37207         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
37208         function.  Modernize replacement scheme.
37209         (gl_PREREQ_GETGROUPS): Delete.
37210         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
37211         * modules/getgroups (configure.ac): Declare witness.
37212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37213         * modules/unistd (Depends-on): Substitute witness.
37214         * lib/unistd.in.h (getgroups): Declare replacement.
37215
37216         getgroups: avoid calling exit
37217         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
37218         drop xalloc.
37219         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
37220         dependencies.
37221         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
37222         exiting, in the rare case of malloc failure.
37223
37224         getgroups: fix logic error
37225         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
37226         has more than 20 groups.
37227         * modules/getgroups-tests: New test.
37228         * tests/test-getgroups.c: New file.
37229
37230 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37231
37232         * tests/test-base64.c: Improve.
37233
37234 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37235
37236         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
37237         Blake <ebb9@byu.net>.
37238
37239 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37240
37241         * tests/test-xvasprintf.c: Add %s%s related checks.
37242
37243 2009-11-12  Eric Blake  <ebb9@byu.net>
37244
37245         version-etc: match standards.texi style
37246         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
37247         and use <> only for URLs.
37248
37249 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
37250
37251         fts: do not fail on a submount during traversal
37252         * lib/fts.c (fts_build): Read the stat info again after opening
37253         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
37254         Original report at http://bugzilla.redhat.com/501848.
37255
37256 2009-11-12  Jim Meyering  <meyering@redhat.com>
37257
37258         bootstrap: sync from coreutils
37259         * build-aux/bootstrap (bootstrap_epilogue): New function.
37260         Use git_modules_config in one more place.  This make bootstrap's
37261         --gnulib-srcdir option more useful for testing.
37262
37263         bootstrap: generalize autoheader check
37264         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
37265         AC_CONFIG_HEADERS.
37266
37267 2009-11-11  Eric Blake  <ebb9@byu.net>
37268
37269         mkfifoat: use new modules for Solaris and BSD bugs
37270         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
37271         * lib/mkfifoat.c (mknodat): Split...
37272         * lib/mknodat.c (mknodat): ...into new file.
37273         * modules/mkfifoat (Files): Ship new file.
37274         (Depends-on): Add mkfifo, mknod.
37275         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
37276         (Depends-on): Add symlink.
37277         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
37278         redundant with test_mkfifo.h.
37279         (do_mkfifoat, do_mknodat): New helpers.
37280
37281         mknod: new module
37282         * modules/mknod: New file.
37283         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
37284         * lib/mknod.c (mknod): Likewise.
37285         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
37286         defaults.
37287         * modules/sys_stat (Makefile.am): Substitute them.
37288         * lib/sys_stat.in.h (mknod): Declare replacement.
37289         * MODULES.html.sh (Support for systems lacking POSIX:2008):
37290         Document it.
37291         * doc/posix-functions/mknod.texi (mknod): Likewise.
37292         * modules/mknod-tests: New test.
37293         * tests/test-mknod.c: Likewise.
37294
37295         mkfifo: new module
37296         * modules/mkfifo: New file.
37297         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
37298         * lib/mkfifo.c (mkfifo): Likewise.
37299         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
37300         defaults.
37301         * modules/sys_stat (Makefile.am): Substitute them.
37302         * lib/sys_stat.in.h (mkfifo): Declare replacement.
37303         * MODULES.html.sh (Support for systems lacking POSIX:2008):
37304         Document it.
37305         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
37306         * modules/mkfifo-tests: New test.
37307         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
37308         from test-mkfifoat.c.
37309         * tests/test-mkfifo.c: New file.
37310
37311         readlink: detect FreeBSD bug
37312         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
37313         slash on symlink.
37314         * doc/posix-functions/readlink.texi (readlink): Document the bug.
37315         * tests/test-readlink.h (test_readlink): Enhance test.
37316
37317         symlink: detect FreeBSD bug
37318         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
37319         slash on symlink.
37320         * doc/posix-functions/symlink.texi (symlink): Document the bug.
37321         * tests/test-symlink.h (test_symlink): Enhance test.
37322
37323 2009-11-10  Eric Blake  <ebb9@byu.net>
37324
37325         link: detect FreeBSD bug
37326         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
37327         symlink.
37328         * doc/posix-functions/link.texi (link): Document the bug.
37329         * tests/test-link.h (test_link): Enhance test.
37330         * tests/test-linkat.c (main): Update caller.
37331
37332         unlink, remove: detect FreeBSD bug
37333         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
37334         slash on symlink.
37335         * doc/posix-functions/unlink.texi (unlink): Document the bug.
37336         * doc/posix-functions/remove.texi (remove): Likewise.
37337         * tests/test-unlink.h (test_unlink): Enhance test.
37338         * tests/test-remove.c (main): Likewise.
37339
37340 2009-11-09  Eric Blake  <ebb9@byu.net>
37341
37342         rename: detect FreeBSD bug
37343         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
37344         slash on symlink.
37345         * modules/renameat-tests (Depends-on): Add filenamecat.
37346         * tests/test-rename.h (test_rename): Allow one more errno.
37347         * tests/test-renameat.c (main): Likewise.
37348         * doc/posix-functions/rename.texi (rename): Document the bug.
37349
37350         open: detect FreeBSD bug
37351         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
37352         symlink.
37353         * doc/posix-functions/open.texi (open): Document the bug.
37354         * doc/posix-functions/utimes.texi (utimes): Likewise.
37355         * tests/test-open.h (test_open): Add parameters, and test symlink
37356         handling.
37357         * tests/test-open.c (main): Adjust caller.
37358         * tests/test-fcntl-safer.c (main): Likewise.
37359         * modules/open-tests (Depends-on): Add stdbool, symlink.
37360         * modules/fcntl-safer-tests (Depends-on): Likewise.
37361         * tests/test-openat.c (main): Add test-open tests.
37362
37363         stat: detect FreeBSD bug
37364         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
37365         symlink.
37366         * doc/posix-functions/stat.texi (stat): Document the bug.
37367         * tests/test-stat.h (test_stat_func): Add argument.
37368         * tests/test-stat.c (main): Adjust caller.
37369         * tests/test-fstatat.c (main): Likewise.
37370         * modules/stat-tests (Depends-on): Add stdbool, symlink.
37371         Reported by Jim Meyering.
37372
37373 2009-11-09  James Youngman  <jay@gnu.org>
37374
37375         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
37376         * lib/strftime.c: Correct placement of #include "ignore-value.h".
37377
37378 2009-11-08  Jim Meyering  <meyering@redhat.com>
37379
37380         utimens: remove invalid futimesat call
37381         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
37382         It used the file descriptor of the target file as the DIR_FD
37383         parameter and NULL as the file name.  That caused failure with
37384         errno == EFAULT on FreeBSD-8.0-rc2
37385
37386 2009-11-07  Eric Blake  <ebb9@byu.net>
37387
37388         fflush, freadseek: use fseeko, not fseek
37389         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
37390         (clear_ungetc_buffer): Avoid potential problems on large files.
37391         * lib/freadseek.c (freadseek): Likewise.
37392         * modules/freadseek (Depends-on): Add fseeko.
37393         * modules/fseek (configure.ac): Set a witness.
37394         * tests/test-fflush.c (main): Use fseeko.
37395         * tests/test-fpurge.c (fseek): Disable link warning.
37396         * tests/test-freadable.c (fseek): Likewise.
37397         * tests/test-freading.c (fseek): Likewise.
37398         * tests/test-fseeko.c (fseek): Likewise.
37399         * tests/test-ftell.c (fseek): Likewise.
37400         * tests/test-ftello.c (fseek): Likewise.
37401         * tests/test-fwritable.c (fseek): Likewise.
37402         * tests/test-fwriting.c (fseek): Likewise.
37403
37404 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37405
37406         * modules/memchr (Depends-on): Drop getpagesize dependency.
37407
37408 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37409
37410         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
37411         Reported by Ludovic Courtès.
37412         * build-aux/pmccabe2html: Improve example usage.
37413         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
37414
37415 2009-11-06  Jim Meyering  <meyering@redhat.com>
37416
37417         do-release-commit-and-tag: New module.
37418         Automate the release-commit and tag process.
37419         * build-aux/do-release-commit-and-tag: New script, from coreutils.
37420         * modules/do-release-commit-and-tag: New file.
37421         * MODULES.html.sh (Support for maintaining and releasing): Add it.
37422
37423 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37424
37425         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
37426         because test-select.c uses inet_pton.
37427
37428 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37429
37430         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
37431         GETADDRINFO_LIB.  Bump serial number.
37432         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
37433         Suggested by Eric Blake <ebb9@byu.net>.
37434
37435 2009-11-05  Eric Blake  <ebb9@byu.net>
37436
37437         strtod: detect darwin bug
37438         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
37439         Reported by Leo Davis.
37440
37441         freopen-safer: new module
37442         * modules/freopen-safer: New module.
37443         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
37444         * lib/freopen-safer.c (freopen_safer): New file.
37445         * lib/stdio-safer.h (freopen_safer): New declaration.
37446         * lib/stdio--.h (freopen): New override.
37447         * MODULES.html.sh (File stream based Input/Output): Mention it.
37448         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
37449         freopen-safer module.
37450         * doc/posix-functions/stderr.texi (stderr): Likewise.
37451         * doc/posix-functions/stdin.texi (stdin): Likewise.
37452         * doc/posix-functions/stdout.texi (stdout): Likewise.
37453         * modules/freopen-safer-tests: New test.
37454         * tests/test-reopen-safer.c: New file.
37455
37456 2009-11-05  Jim Meyering  <meyering@redhat.com>
37457
37458         maint.mk: Prohibit inclusion of "close-stream.h" without use.
37459         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
37460
37461 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37462
37463         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
37464
37465 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37466
37467         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
37468
37469 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37470
37471         Fix link error.
37472         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
37473         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37474
37475 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37476
37477         * tests/test-func.c: Also test value of __func__.
37478
37479 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37480
37481         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
37482         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
37483
37484 2009-11-05  Bruno Haible  <bruno@clisp.org>
37485
37486         Fix link error.
37487         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
37488         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37489         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
37490
37491 2009-11-05  Bruno Haible  <bruno@clisp.org>
37492
37493         Tests for module 'inet_pton'.
37494         * modules/inet_pton-tests: New file.
37495         * tests/test-inet_pton.c: New file.
37496
37497 2009-11-05  Bruno Haible  <bruno@clisp.org>
37498
37499         Tests for module 'inet_ntop'.
37500         * modules/inet_ntop-tests: New file.
37501         * tests/test-inet_ntop.c: New file.
37502
37503 2009-11-04  Eric Blake  <ebb9@byu.net>
37504
37505         stdlib-safer: wrap all mkstemp variants
37506         * modules/mkostemp (configure.ac): Set witness.
37507         * modules/mkostemps (configure.ac): Likewise.
37508         * modules/mkstemps (configure.ac): Likewise.
37509         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
37510         (mkstemps_safer): Wrap more functions.
37511         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
37512         wrapping.
37513         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
37514         (mkstemps_safer): Implement the wrappers.
37515
37516         mkstemps, mkostemps: new modules
37517         * modules/mkostemps: New module.
37518         * modules/mkstemps: Likewise.
37519         * lib/mkostemps.c (mkostemps): New file.
37520         * lib/mkstemps.c (mkstemps): Likewise.
37521         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
37522         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
37523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
37524         * modules/stdlib (Makefile.am): Substitute them.
37525         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
37526         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
37527         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
37528         * doc/gnulib.texi (Glibc stdlib.h): Include them.
37529         * MODULES.html.sh (File system functions): Mention them.
37530
37531         tempname: resync from glibc
37532         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
37533         same values for __GT_FILE as glibc.  Abort even when assertions
37534         are disabled.
37535         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
37536         match its value otherwise.  Allow idempotent inclusion.
37537         * lib/mkdtemp.c (mkdtemp): Adjust caller.
37538         * lib/mkostemp.c (mkostemp): Likewise.
37539         * lib/mkstemp.c (mkstemp): Likewise.
37540         * lib/tmpfile.c (tmpfile): Likewise.
37541         * NEWS: Document this.
37542
37543         utimens: fix use of futimens on older Linux
37544         * lib/utimens.c (fdutimens): Use updated, rather than original,
37545         timespec to avoid bug in older Linux kernel.
37546         Reported by Simon Josefsson.
37547
37548 2009-11-04  Bruno Haible  <bruno@clisp.org>
37549
37550         Make num_processors more flexible and consistent.
37551         * lib/nproc.h (enum nproc_query): New type.
37552         (num_processors): Add a 'query' argument.
37553         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
37554         (num_processors): Add a 'query' argument. Test the value of the
37555         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
37556         mingw, count the number of CPUs available for the current process.
37557         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
37558         Check for sched_getaffinity and sched_getaffinity_np.
37559         * modules/nproc (Depends-on): Add c-ctype, extensions.
37560         * NEWS: Mention the change.
37561
37562 2009-11-03  Bruno Haible  <bruno@clisp.org>
37563
37564         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
37565
37566 2009-11-03  Jim Meyering  <meyering@redhat.com>
37567
37568         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
37569         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
37570         if it is defined.
37571
37572 2009-11-02  Eric Blake  <ebb9@byu.net>
37573
37574         mktime, timegm: share common declaration
37575         * lib/mktime-internal.h: New file.
37576         * lib/mktime.c: Use it rather than open-coding a declaration.
37577         * lib/timegm.c: Likewise.
37578         * modules/mktime (Files): Ship it.
37579         * modules/timegm (Files): Likewise.
37580         Suggested by Bruno Haible.
37581
37582         test-update-copyright: update test to match script changes
37583         * tests/test-update-copyright.sh: Avoid hard-coding perl
37584         location.  Don't update *.bak created by earlier runs.
37585
37586 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
37587             Simon Josefsson  <simon@josefsson.org>
37588             Bruno Haible  <bruno@clisp.org>
37589
37590         Fix link error on Solaris 8.
37591         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
37592         also in libnsl. Define also INET_PTON_LIB.
37593         * modules/inet_pton (Link): New section.
37594
37595 2009-11-02  Simon Josefsson  <simon@josefsson.org>
37596             Bruno Haible  <bruno@clisp.org>
37597
37598         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
37599         * modules/inet_ntop (Link): New section.
37600         Reported by Boyan Kasarov <bkasarov@gmail.com>.
37601
37602 2009-11-02  Eric Blake  <ebb9@byu.net>
37603
37604         maint: avoid compiler warnings in m4 macros
37605         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
37606         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
37607
37608 2009-11-02  Simon Josefsson  <simon@josefsson.org>
37609
37610         * m4/pmccabe2html.m4: Remove file.
37611         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
37612         function.  Change maintainer.
37613         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
37614         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
37615         Courtès).
37616
37617 2009-10-31  Eric Blake  <ebb9@byu.net>
37618
37619         fseeko: fix m4 regression
37620         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
37621         regression from 2009-10-27.
37622         Reported by Ralf Wildenhues.
37623
37624 2009-10-31  Jim Meyering  <meyering@redhat.com>
37625
37626         inttostr: aesthetics and improved (compile-time) safety
37627         Define inttype_is_signed rather than inttype_is_unsigned,
37628         since the sole use is via "#if inttype_is_signed".
37629         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
37630         inttype_is_unsigned.
37631         * lib/offtostr.c (inttype_is_signed): Likewise.
37632         * lib/uinttostr.c (inttype_is_signed): Likewise.
37633         * lib/umaxtostr.c (inttype_is_signed): Likewise.
37634         * lib/inttostr.c (inttostr): Use verify to cross-check the
37635         inttype_is_signed value and the signedness of the actual type.
37636         * modules/inttostr (Depends-on): Add verify.
37637
37638 2009-10-30  Eric Blake  <ebb9@byu.net>
37639
37640         build: avoid compiler warnings
37641         * lib/fchmodat.c (lchmod): Mark unused variables.
37642         * lib/getopt.c (_getopt_initialize): Likewise.
37643         * lib/mktime.c (__mktime_internal): Provide prototype.
37644         * lib/inttostr.c (inttostr): Avoid compiler warning even with
37645         older gcc that do not understand #pragma GCC diagnostic.
37646         * lib/uinttostr.c (inttype_is_unsigned): Define.
37647         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
37648
37649 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
37650
37651         stat: fix compilation on AIX
37652         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
37653         only see struct stat64.
37654
37655 2009-10-30  Eric Blake  <ebb9@byu.net>
37656
37657         exclude: make more robust
37658         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
37659         rather than masking a coding bug.
37660         Suggested by Bruno Haible.
37661
37662 2009-10-30  Jim Meyering  <meyering@redhat.com>
37663
37664         perl scripts: remove #!/usr/bin/perl in favor of more portable...
37665         Rather than putting #!/usr/bin/perl on the first line,
37666         start with a variant of what's recommended by "man perlrun" that
37667         invokes the first "perl" program from your shell's search path.
37668         * build-aux/gitlog-to-changelog: Replace #!... as above.
37669         Add a "Local Variables" perl mode setting.
37670         Prompted by a patch from Ludovic Courtès.
37671         Improved by Eric Blake.
37672         * build-aux/useless-if-before-free: Likewise.
37673         * build-aux/announce-gen: Likewise.
37674         * build-aux/update-copyright: Likewise.
37675
37676 2009-10-29  Eric Blake  <ebb9@byu.net>
37677
37678         filenamecat-lgpl: adjust clients
37679         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
37680         filenamecat.
37681         * modules/renameat (Depends-on): Likewise.
37682
37683         filenamecat: split into filenamecat-lgpl
37684         * modules/filenamecat-lgpl: New module.
37685         * modules/filenamecat (Files): Move library-safe files into
37686         filenamecat-lgpl.
37687         (Depends-on): Add filenamecat-lgpl.
37688         (configure.ac): Declare witness.
37689         * lib/filenamecat.h (file_name_concat): Only declare when using
37690         GPL module.
37691         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
37692         Move...
37693         * lib/filenamecat-lgpl.c: ...into new file.
37694         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
37695         (gl_FILE_NAME_CONCAT): Use it.
37696         * MODULES.html.sh (File system functions): Mention new module.
37697
37698         argp: avoid memory leak
37699         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
37700         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
37701         base_name, since the latter malloc()s and can call exit().
37702         Leak introduced 2006-07-03.
37703
37704         dirname-lgpl: adjust clients that don't need full dirname
37705         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
37706         * modules/filenamecat (Depends-on): Likewise.
37707         * modules/linkat (Depends-on): Likewise.
37708         * modules/mkancesdirs (Depends-on): Likewise.
37709         * modules/mkdir (Depends-on): Likewise.
37710         * modules/openat (Depends-on): Likewise.
37711         * modules/savewd (Depends-on): Likewise.
37712         * modules/rename (Depends-on): Likewise.
37713         (License): Relax license.
37714         * modules/mkdir-tests (Depends-on): Drop progname.
37715         (Makefile.am): Delete unneeded LDADD.
37716         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
37717
37718         dirname: split into dirname-lgpl
37719         * modules/dirname-lgpl: New module.
37720         * modules/dirname (Files): Move library-safe files into
37721         dirname-lgpl.
37722         (Depends-on): Add dirname-lgpl.
37723         (configure.ac): Declare witness.
37724         * modules/double-slash-root (License): Relax license.
37725         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
37726         module.
37727         * lib/dirname.c (dir_len, mdir_name): Move...
37728         * lib/dirname-lgpl.c: ...into new file.
37729         * lib/basename.c (last_component, base_len): Move...
37730         * lib/basename-lgpl.c: ...into new file.
37731         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
37732         (gl_DIRNAME): Use it.
37733         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
37734         Mention new module.
37735         * modules/dirname-tests (Depends-on): Add progname.
37736         * tests/test-dirname.c (program_name): Delete.
37737
37738         mkdir: make safe for libraries
37739         * modules/mkdir (Depends-on): Drop xalloc.
37740         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
37741         exit.
37742
37743         tests: avoid some compiler warnings
37744         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
37745         literals.
37746         * tests/test-memchr.c (main): Avoid type mismatch.
37747         * tests/test-arpa_inet.c (main): Avoid unused parameters.
37748         * tests/test-base64.c (main): Likewise.
37749         * tests/test-getdelim.c (main): Likewise.
37750         * tests/test-gethostname.c (main): Likewise.
37751         * tests/test-getline.c (main): Likewise.
37752         * tests/test-netinet_in.c (main): Likewise.
37753         * tests/test-select.c (open_server_socket, main): Likewise.
37754         * tests/test-select-stdin.c (main): Likewise.
37755         * tests/test-sockets.c (main): Likewise.
37756         * tests/test-strsignal.c (main): Likewise.
37757         * tests/test-sys_select.c (main): Likewise.
37758         * tests/test-sys_socket.c (main): Likewise.
37759         * tests/test-u64.c (main): Likewise.
37760         * tests/test-xfprintf-posix.c (main): Likewise.
37761         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
37762
37763         sockets: avoid compiler warning
37764         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
37765
37766         maint: detect usage(1) and other suspicious exits
37767         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
37768
37769 2009-10-29  Jim Meyering  <meyering@redhat.com>
37770
37771         timespec: long-to-int truncation could make timespec_cmp malfunction
37772         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
37773         a multiple of 2^32 nanoseconds as no difference.
37774
37775 2009-10-28  Jim Meyering  <meyering@redhat.com>
37776
37777         fprintftime: wrap macro code argument in "do {...} while(0)"
37778         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
37779         cpy macro must be a statement that can be followed by a semicolon.
37780         Now that the else clause contains a comment and is hence longer
37781         than one line, I require curly braces.  That in turn requires
37782         that we wrap this code block in the standard do...while(0).
37783
37784         fprintftime: remove stray semicolon from previous change
37785         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
37786
37787         fprintftime: avoid a warning about ignored fwrite return value
37788         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
37789         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
37790         that is unsafe.
37791         * modules/fprintftime (Depends-on): Add ignore-value.
37792
37793         exclude: avoid an unwarranted warning
37794         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
37795
37796 2009-10-27  Eric Blake  <ebb9@byu.net>
37797
37798         fseek: avoid compilation failure when fflush is replaced
37799         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
37800         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
37801         module is in use.
37802         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
37803         module is not in use; since REPLACE_FSEEK worked otherwise.
37804         (GNULIB_FTELLO): Likewise for ftell.
37805         Reported by Ian Beckwith and others.
37806
37807 2009-10-27  Bruno Haible  <bruno@clisp.org>
37808
37809         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
37810         Reported by Jim Meyering.
37811
37812 2009-10-27  Jim Meyering  <jim@meyering.net>
37813             Bruno Haible  <bruno@clisp.org>
37814
37815         Avoid warning despite dropping the return value of fwrite.
37816         * lib/unicodeio.c: Include ignore-value.h.
37817         (fwrite_success_callback): Explicitly ignore fwrite's return value.
37818         * modules/unicodeio (Depends-on): Add ignore-value.
37819
37820 2009-10-26  Eric Blake  <ebb9@byu.net>
37821
37822         areadlinkat: fix fallback path
37823         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
37824         pointer and zero.
37825
37826 2009-10-22  Pádraig Brady  <P@draigBrady.com>
37827
37828         Use a better IO block size for modern systems
37829         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
37830         * lib/md2.c: Likewise.
37831         * lib/md4.c: Likewise.
37832         * lib/md5.c: Likewise.
37833         * lib/sha1.c: Likewise.
37834         * lib/sha256.c: Likewise.
37835         * lib/sha512.c: Likewise.
37836
37837 2009-10-22  Eric Blake  <ebb9@byu.net>
37838
37839         tests: avoid several compiler warnings
37840         * tests/test-getcwd.c (main): Avoid buffer underflow.
37841         * tests/test-getdate.c (main): String literals are not safe with
37842         putenv, so use setenv.  Declare unused argument.
37843         * modules/getdate-tests (Depends-on): Add setenv.
37844         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
37845         problems with string literals in char *.
37846         * tests/test-hash.c (main): Avoid shadowing declaration.
37847         (insert_new): Treat string literals as char const *.
37848         * tests/test-getopt.h (test_getopt): Likewise.
37849         (getopt_loop): Alter types to minimize casting elsewhere.
37850         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
37851         (test_getopt_long_posix): Likewise.
37852         (do_getopt_long): Add wrapper to minimize casting.
37853         * tests/test-atexit.c (clear_temp_file): Use void.
37854         * tests/test-areadlink-with-size.c (main): Declare unused
37855         arguments.
37856         * tests/test-areadlink.c (main): Likewise.
37857         * tests/test-areadlinkat-with-size.c (main): Likewise.
37858         * tests/test-areadlinkat.c (main): Likewise.
37859         * tests/test-canonicalize-lgpl.c (main): Likewise.
37860         * tests/test-canonicalize.c (main): Likewise.
37861         * tests/test-dirent-safer.c (main): Likewise.
37862         * tests/test-dirname.c (main): Likewise.
37863         * tests/test-dup2.c (main): Likewise.
37864         * tests/test-fchdir.c (main): Likewise.
37865         * tests/test-fcntl-h.c (main): Likewise.
37866         * tests/test-fcntl-safer.c (main): Likewise.
37867         * tests/test-fdopendir.c (main): Likewise.
37868         * tests/test-fdutimensat.c (main): Likewise.
37869         * tests/test-fflush.c (main): Likewise.
37870         * tests/test-filenamecat.c (main): Likewise.
37871         * tests/test-filevercmp.c (main): Likewise.
37872         * tests/test-fopen-safer.c (main): Likewise.
37873         * tests/test-fopen.c (main): Likewise.
37874         * tests/test-fpending.c (main): Likewise.
37875         * tests/test-fpurge.c (main): Likewise.
37876         * tests/test-freading.c (main): Likewise.
37877         * tests/test-fstatat.c (main): Likewise.
37878         * tests/test-fsync.c (main): Likewise.
37879         * tests/test-futimens.c (main): Likewise.
37880         * tests/test-getndelim2.c (main): Likewise.
37881         * tests/test-gettimeofday.c (main): Likewise.
37882         * tests/test-getopt.c (main): Likewise.
37883         * tests/test-i-ring.c (main): Likewise.
37884         * tests/test-inttypes.c (main): Likewise.
37885         * tests/test-link.c (main): Likewise.
37886         * tests/test-lstat.c (main): Likewise.
37887         * tests/test-math.c (main): Likewise.
37888         * tests/test-md5.c (main): Likewise.
37889         * tests/test-memchr2.c (main): Likewise.
37890         * tests/test-memrchr.c (main): Likewise.
37891         * tests/test-mkdir.c (main): Likewise.
37892         * tests/test-mkdirat.c (main): Likewise.
37893         * tests/test-mkfifoat.c (main): Likewise.
37894         * tests/test-open.c (main): Likewise.
37895         * tests/test-openat-safer.c (main): Likewise.
37896         * tests/test-openat.c (main): Likewise.
37897         * tests/test-quotearg.c (main): Likewise.
37898         * tests/test-rawmemchr.c (main): Likewise.
37899         * tests/test-readlink.c (main): Likewise.
37900         * tests/test-remove.c (main): Likewise.
37901         * tests/test-rename.c (main): Likewise.
37902         * tests/test-renameat.c (main): Likewise.
37903         * tests/test-rmdir.c (main): Likewise.
37904         * tests/test-sha1.c (main): Likewise.
37905         * tests/test-signal.c (main): Likewise.
37906         * tests/test-sigaction.c (main): Likewise.
37907         * tests/test-stat.c (main): Likewise.
37908         * tests/test-stat-time.c (main): Likewise.
37909         * tests/test-stddef.c (main): Likewise.
37910         * tests/test-stdint.c (main): Likewise.
37911         * tests/test-stdio.c (main): Likewise.
37912         * tests/test-stdlib.c (main): Likewise.
37913         * tests/test-strchrnul.c (main): Likewise.
37914         * tests/test-strerror.c (main): Likewise.
37915         * tests/test-string.c (main): Likewise.
37916         * tests/test-strtod.c (main): Likewise.
37917         * tests/test-strverscmp.c (main): Likewise.
37918         * tests/test-symlink.c (main): Likewise.
37919         * tests/test-symlinkat.c (main): Likewise.
37920         * tests/test-sys_stat.c (main): Likewise.
37921         * tests/test-sys_time.c (main): Likewise.
37922         * tests/test-time.c (main): Likewise.
37923         * tests/test-unistd.c (main): Likewise.
37924         * tests/test-unlink.c (main): Likewise.
37925         * tests/test-unlinkat.c (main): Likewise.
37926         * tests/test-utimens.c (main): Likewise.
37927         * tests/test-utimensat.c (main): Likewise.
37928         * tests/test-version-etc.c (main): Likewise.
37929         * tests/test-wchar.c (main): Likewise.
37930         * tests/test-wctype.c (main): Likewise.
37931         * tests/test-xprintf-posix.c (main): Likewise.
37932         * tests/test-posixtm.c (main): Likewise.
37933         (STREQ): Delete unused macro.
37934         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
37935         shadowed variables.
37936         * tests/test-memchr.c (main): Likewise.
37937
37938 2009-10-21  Eric Blake  <ebb9@byu.net>
37939
37940         areadlinkat: avoid failure on older glibc
37941         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
37942         rather than mis-comparing 0 against FUNC_RESULT of char*.
37943
37944 2009-10-21  Bruno Haible  <bruno@clisp.org>
37945
37946         * modules/stpncpy (License): Relicense under LGPLv2+.
37947         Reported by David Lutterkort <lutter@redhat.com>.
37948
37949 2009-10-20  Eric Blake  <ebb9@byu.net>
37950
37951         utimensat: work around Solaris 9 bug
37952         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
37953         has trailing slash bugs.
37954         * tests/test-lutimens.h (test_lutimens): Enhance test.
37955         * tests/test-utimens.h (test_utimens): Likewise.
37956         * doc/posix-functions/utime.texi (utime): Enhance documentation.
37957         * doc/posix-functions/utimes.texi (utimes): Likewise.
37958         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37959         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
37960         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
37961         * doc/posix-functions/futimens.texi (futimens): Likewise.
37962
37963         fdutimensat: new module
37964         * modules/fdutimensat: New file.
37965         * lib/fdutimensat.c (fdutimensat): Likewise.
37966         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
37967         * MODULES.html.sh (File system functions): Mention module.
37968         * modules/fdutimensat-tests: New test.
37969         * tests/test-fdutimensat.c: Likewise.
37970
37971         doc: regenerate INSTALL
37972         * doc/INSTALL: Reflect recent autoconf update.
37973         * doc/INSTALL.ISO: Likewise.
37974         * doc/INSTALL.UTF-8: Likewise.
37975
37976 2009-10-20  Pádraig Brady  <P@draigBrady.com>
37977
37978         acl: warn if ACL support is not detected
37979         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
37980
37981 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
37982
37983         * lib/nproc.h: Add extern "C" block for C++.
37984
37985 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
37986             Bruno Haible  <bruno@clisp.org>
37987
37988         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
37989         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
37990         * doc/posix-functions/isalpha.texi: Likewise.
37991         * doc/posix-functions/isblank.texi: Likewise.
37992         * doc/posix-functions/iscntrl.texi: Likewise.
37993         * doc/posix-functions/isdigit.texi: Likewise.
37994         * doc/posix-functions/isgraph.texi: Likewise.
37995         * doc/posix-functions/islower.texi: Likewise.
37996         * doc/posix-functions/isprint.texi: Likewise.
37997         * doc/posix-functions/ispunct.texi: Likewise.
37998         * doc/posix-functions/isspace.texi: Likewise.
37999         * doc/posix-functions/isupper.texi: Likewise.
38000         * doc/posix-functions/isxdigit.texi: Likewise.
38001
38002 2009-10-18  Bruno Haible  <bruno@clisp.org>
38003
38004         Tests for module 'isblank'.
38005         * modules/isblank-tests: New file.
38006         * tests/test-isblank.c: New file.
38007
38008         New module 'isblank'.
38009         * lib/isblank.c: New file.
38010         * m4/isblank.m4: New file.
38011         * modules/isblank: New file.
38012         * doc/posix-functions/isblank.texi: Mention the new module.
38013
38014 2009-10-18  Bruno Haible  <bruno@clisp.org>
38015
38016         New module 'ctype'.
38017         * lib/ctype.in.h: New file.
38018         * m4/ctype.m4: New file.
38019         * modules/ctype: New file.
38020         * doc/posix-headers/ctype.texi: Mention the new module.
38021
38022 2009-10-18  Jim Meyering  <meyering@redhat.com>
38023
38024         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
38025         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
38026         right after its initialization, rather than farther down.
38027         Keeping these in close proximity makes it easier to ensure
38028         that each such variable is initialized.  E.g.,
38029
38030             LIB_CLOCK_GETTIME=
38031             AC_SUBST([LIB_CLOCK_GETTIME])
38032
38033         This change also increments these serial numbers.
38034         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
38035         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38036         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38037
38038 2009-10-18  Bruno Haible  <bruno@clisp.org>
38039
38040         Don't let environment variables perturb build.
38041         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
38042         (gl_PREREQ_GETHRXTIME): ... not here.
38043
38044 2009-10-18  Bruno Haible  <bruno@clisp.org>
38045
38046         Avoid symlink attack in localcharset module.
38047         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
38048         (O_NOFOLLOW): Define fallback.
38049         (get_charset_aliases): Don't open the file if it is a symbolic link.
38050         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
38051         gl_FCNTL_H.
38052         (gl_FCNTL_H): Require it.
38053         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
38054         * modules/localcharset (Files): Add m4/fcntl_h.m4.
38055         Reported by Fergal Glynn <fglynn@veracode.com>.
38056
38057 2009-10-18  Bruno Haible  <bruno@clisp.org>
38058
38059         Implement nproc for mingw.
38060         * lib/nproc.c: Include <windows.h>
38061         (num_processors): On native Windows platforms, try GetSystemInfo.
38062
38063 2009-10-18  Bruno Haible  <bruno@clisp.org>
38064
38065         Implement nproc for IRIX.
38066         * lib/nproc.c: Include <sys/sysmp.h>.
38067         (num_processors): On IRIX systems, try sysmp.
38068         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
38069
38070 2009-10-18  Bruno Haible  <bruno@clisp.org>
38071
38072         Implement nproc for HP-UX.
38073         * lib/nproc.c: Include <sys/pstat.h>
38074         (num_processors): On HP-UX systems, try pstat_getdynamic.
38075         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
38076         pstat_getdynamic.
38077
38078 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
38079             Bruno Haible  <bruno@clisp.org>
38080
38081         Implement nproc for NetBSD, OpenBSD.
38082         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
38083         (ARRAY_SIZE): New macro.
38084         (num_processors): On BSD systems, try sysctl of HW_NCPU.
38085         * m4/nproc.m4: New file.
38086         * modules/nproc (Files): Add m4/nproc.m4.
38087         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
38088         (Makefile.am): Instead, augment lib_SOURCES.
38089
38090 2009-10-18  Bruno Haible  <bruno@clisp.org>
38091
38092         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
38093         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
38094         sys/param.h.
38095
38096 2009-10-16  Eric Blake  <ebb9@byu.net>
38097
38098         utimensat: new module
38099         * modules/utimensat: New file.
38100         * lib/utimensat.c (utimensat): Likewise.
38101         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38102         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
38103         so we can work around Linux bugs.
38104         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38105         * modules/sys_stat (Makefile.am): Substitute them.
38106         * lib/sys_stat.in.h (utimensat): Declare it.
38107         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38108         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38109         * modules/utimensat-tests: New test.
38110         * tests/test-utimensat.c: Likewise.
38111
38112         utimens: let lutimens work on non-symlinks
38113         * lib/utimens.c (lutimens): Fall back to utimens rather than
38114         failing with ENOSYS, when file is not a symlink.
38115         (utimens): Reduce redirection.
38116         * tests/test-lutimens.h (test_lutimens): Update test to cover
38117         non-symlinks.
38118         * tests/test-utimens.h (test_utimens): Update test to cover
38119         symlinks.
38120         * tests/test-utimens.c (main): Update caller.
38121
38122         utimens: cache whether utimensat syscall works
38123         * lib/utimens.c (utimensat_works_really): New cache variable.
38124         (fdutimens, lutimens): Use it to avoid failing syscall.
38125
38126         test-stat-time, test-utimens: improve portability
38127         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
38128         ext4 on alpha, and for cygwin.
38129         * tests/test-utimens-common.h: New file.
38130         (nap): Factor delays into single function.
38131         * tests/test-lutimens.h (test_lutimens): Use new header.
38132         * tests/test-futimens.h (test_futimens): Likewise.
38133         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
38134         timestamps to occur from same machine, as was done previously for
38135         test_utimens.
38136         * modules/utimens-tests (Files): Ship new file.
38137         * modules/futimens-tests (Files): Likewise.
38138         Reported in part by Jim Meyering.
38139
38140         sys_stat: sort replacement declarations
38141         * lib/sys_stat.in.h: Sort declarations.
38142         * lib/futimens.c (futimens): Fix typo.
38143
38144 2009-10-15  Jim Meyering  <meyering@redhat.com>
38145
38146         don't let environment settings perturb build
38147         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
38148         could cause a configure-time and/or build-time malfunction.
38149         Typically, a configure-time function-in-library test is performed
38150         via code like this:
38151
38152           LIB_VAR=
38153           AC_SUBST([LIB_VAR])
38154           prefix_saved_LIBS=$LIBS
38155             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
38156                        [test "$ac_cv_search_FUNC" = "none required" ||
38157                         LIB_VAR=$ac_cv_search_FUNC])
38158           LIBS=$prefix_saved_LIBS
38159
38160         However, in each of the files affected by this change, the LIB_VAR=
38161         initialization was omitted.  Thus, when set in the environment, its
38162         value would propagate into generated Makefiles when FUNC is not found
38163         in LIB_NAME.
38164         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
38165         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38166         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38167
38168 2009-10-14  Eric Blake  <ebb9@byu.net>
38169
38170         fchdir: avoid infinite recursion in mingw
38171         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
38172         recursing.
38173
38174         test-stat-time: port to mingw
38175         * tests/test-stat-time.c (force_unlink): Return a value.
38176         (test_ctime) [W32]: Fix compilation error.
38177         (nap): Don't call usleep with too large an argument.  Use
38178         force_unlink.
38179         * doc/pastposix-functions/usleep.texi (usleep): Document the
38180         portability issue.
38181
38182 2009-10-13  Jim Meyering  <meyering@redhat.com>
38183
38184         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
38185         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
38186         * modules/pipe-filter-ii: Likewise.
38187         * modules/sys_socket-tests: Likewise.
38188         * modules/tsearch-tests: Likewise.
38189         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
38190         (check): Depend on it.
38191
38192 2009-10-12  Eric Blake  <ebb9@byu.net>
38193
38194         utimens-tests: port to NFS file systems
38195         * tests/test-utimens.h (test_utimens): Refactor utimecmp
38196         comparisons to avoid spurious failures from timestamp drift
38197         between NFS machines.
38198
38199 2009-10-12  Eric Blake  <ebb9@byu.net>
38200
38201         stat-time-tests: minor cleanups
38202         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
38203         * tests/test-stat-time.c (nap): Separate assignment from call.
38204         Suggested by Paolo Bonzini and Bruno Haible.
38205
38206         sys_stat: guarantee struct timespec
38207         * lib/sys_stat.in.h (includes): Always include <time.h>
38208         * modules/sys_stat (Depends-on): Add time.
38209         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
38210         mode_t permission values.
38211         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
38212         get at subsecond timestamps.
38213
38214 2009-10-10  Eric Blake  <ebb9@byu.net>
38215
38216         futimens: new module
38217         * modules/futimens: New file.
38218         * lib/futimens.c (futimens): Likewise.
38219         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
38220         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
38221         we can work around Linux bugs.
38222         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38223         * modules/sys_stat (Makefile.am): Substitute them.
38224         * lib/sys_stat.in.h (futimens): Declare it.
38225         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38226         * doc/posix-functions/futimens.texi (futimens): Likewise.
38227         * modules/futimens-tests: New test.
38228         * tests/test-futimens.c: Likewise.
38229
38230         utimens: introduce fdutimens
38231         * lib/utimens.h (fdutimens): New prototype.
38232         * lib/utimens.c (gl_futimens): Move guts...
38233         (fdutimens): ...to new interface.
38234         * tests/test-utimens.c (do_fdutimens): Use it.
38235
38236         utimens: add UTIME_NOW and UTIME_OMIT support
38237         * lib/utimens.c (validate_timespec, update_timespec): New helper
38238         functions.
38239         (gl_futimens, lutimens): Use them.
38240         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
38241         stdbool, sys_stat.
38242         (Link): Mention resulting library dependency.
38243         * modules/utimecmp (Link): Likewise.
38244         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
38245         (Makefile.am): Pick up library dependency.
38246         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
38247         definition.
38248         * tests/test-sys_stat.c: Test the definitions.
38249         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
38250         * NEWS: Document library dependency.
38251
38252         utimecmp: support symlink timestamps
38253         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
38254         hashing when possible.  Use pathconf when available.
38255         (SYSCALL_RESOLUTION): Recognize tighter resolution.
38256         * modules/utimecmp (Depends-on): Add lstat.
38257
38258         utimens: add lutimens interface
38259         * lib/utimens.c (lutimens): New function.
38260         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
38261         * lib/utimens.h (lutimens): Declare new interface.
38262         * tests/test-utimens.c (main): Enhance test.
38263         * tests/test-lutimens.h (test_lutimens): New file.
38264         * modules/utimens-tests (Files): Distribute it.
38265         (Depends-on): Add symlink.
38266         (configure.ac): Check for usleep.
38267
38268         utimens: validate futimens usage
38269         * lib/utimens.c (gl_futimens): Require valid fd up front, using
38270         fewer syscalls on failure later on.  Avoid compiler warning on
38271         mingw.
38272         * modules/utimens (Depends-on): Add dup2.
38273
38274         utimens: add test
38275         * modules/utimens-tests: New test.
38276         * tests/test-utimens.h: New file.
38277         * tests/test-futimens.h: Likewise.
38278         * tests/test-utimens.c: Likewise.
38279
38280         doc: mention timestamp portability issues
38281         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
38282         instead.
38283         * doc/posix-functions/utime.texi (utime): Likewise.
38284         * doc/posix-functions/utimes.texi (utimes): Likewise.
38285         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
38286         instead.
38287         * doc/posix-functions/futimens.texi (futimens): Mention utimens
38288         module.
38289         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38290         Mention weakness with symlink timestamps.
38291         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
38292         to utimensat/futimens instead.
38293         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
38294
38295         test-dup2: enhance test
38296         * tests/test-dup2.c (main): Also check AT_FDCWD.
38297
38298         test-stat-time: avoid more spurious failures
38299         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
38300         xfs; and avoid race if the two timestamps cross quantization edge.
38301
38302         relocatable: prefer 'file system' over 'filesystem'
38303         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
38304         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
38305         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
38306         * doc/relocatable.texi (Enabling Relocatability): Likewise.
38307         * lib/relocatable.c (compute_curr_prefix): Likewise.
38308
38309 2009-10-10  Jim Meyering  <meyering@redhat.com>
38310
38311         stat-time-tests: check for the usleep function
38312         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
38313
38314 2009-10-10  Bruno Haible  <bruno@clisp.org>
38315
38316         * modules/xnanosleep: Put the Link section after the Include section.
38317
38318 2009-10-09  Eric Blake  <ebb9@byu.net>
38319
38320         dup2: work around FreeBSD 6.1 bug
38321         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
38322         * doc/posix-functions/dup2.texi (dup2): Document it.
38323         Reported by Nelson H. F. Beebe and Jim Meyering.
38324
38325         test-stat-time: port to buggy NFS clients
38326         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
38327         (test_ctime): Also skip test if mtime and ctime are skewed.
38328
38329         maint: prefer 'file system' over 'filesystem'
38330         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
38331         * doc/posix-functions/lstat.texi (lstat): Likewise.
38332         * lib/file-has-acl.c (file_has_acl): Likewise.
38333         * lib/fwriteerror.c [TEST]: Likewise.
38334         * tests/test-areadlink.h (test_areadlink): Likewise.
38335         * tests/test-areadlinkat-with-size.c (main): Likewise.
38336         * tests/test-areadlinkat.c (main): Likewise.
38337         * tests/test-canonicalize-lgpl.c (main): Likewise.
38338         * tests/test-canonicalize.c (main): Likewise.
38339         * tests/test-fstatat.c (main): Likewise.
38340         * tests/test-linkat.c (main): Likewise.
38341         * tests/test-lstat.h (test_lstat_func): Likewise.
38342         * tests/test-mkdir.h (test_mkdir): Likewise.
38343         * tests/test-readlink.h (test_readlink): Likewise.
38344         * tests/test-remove.c (main): Likewise.
38345         * tests/test-rename.h (test_rename): Likewise.
38346         * tests/test-renameat.c (main): Likewise.
38347         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38348         * tests/test-symlink.h (test_symlink): Likewise.
38349         * tests/test-symlinkat.c (main): Likewise.
38350         * tests/test-unlink.h (test_unlink_func): Likewise.
38351         * tests/test-unlinkat.c (main): Likewise.
38352
38353         maint: make realtime library usage explicit
38354         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
38355         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
38356         * modules/settime (Link): Likewise.
38357         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
38358
38359         test-stat-time: speed up execution
38360         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
38361         warning on mingw.
38362         (nap): New helper function.
38363         (prepare_test): Use it to reduce sleep time.
38364         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
38365         execution.
38366         * modules/stat-time-tests (configure.ac): Check for usleep.
38367
38368 2009-10-09  Jim Meyering  <meyering@redhat.com>
38369
38370         selinux-h: always use getfilecon wrappers
38371         * lib/getfilecon.c: New file.
38372         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
38373         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
38374         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
38375         (fgetfilecon): Provide a stub.
38376         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
38377         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
38378         file unconditionally.
38379         When <selinux/selinux.h> is found, arrange to use wrappers.
38380         * modules/selinux-h (Files): Add getfilecon.c.
38381         (Makefile.am): Substitute include-next-related bits
38382         into the now-always-generated selinux/selinux.h file.
38383         * doc/glibc-functions/lgetfilecon.texi: New file.
38384         * doc/glibc-functions/fgetfilecon.texi: New file.
38385         * doc/glibc-functions/getfilecon.texi: New file.
38386         * doc/glibc-functions/getfilecon-desc.texi: New file.
38387         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
38388         which to pull in the new files.
38389         * MODULES.html.sh (Misc): Add selinux-h.
38390
38391 2009-10-08  Jim Meyering  <meyering@redhat.com>
38392
38393         unistd: fix comment typo
38394         * lib/unistd.in.h (euidaccess): Fix a comment typo.
38395
38396 2009-10-08  Eric Blake  <ebb9@byu.net>
38397
38398         areadlink: use SIZE_MAX consistently
38399         * modules/areadlink (Depends-on): Add stdint.
38400         * modules/areadlink-with-size (Depends-on): Likewise.
38401         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
38402         gives NULL; drop sys/types, since unistd gives size_t; and add
38403         stdint for SIZE_MAX.
38404         (SIZE_MAX): Rely on headers.
38405         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
38406         and add stdint.
38407         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
38408         (SIZE_MAX): Likewise.
38409         (INITIAL_BUF_SIZE): Turn into enum.
38410         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
38411
38412 2009-10-08  Jim Meyering  <meyering@redhat.com>
38413
38414         areadlinkat: avoid compilation failure
38415         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
38416         Fix typo in comment.
38417
38418 2009-10-07  Eric Blake  <ebb9@byu.net>
38419
38420         areadlinkat-with-size: new module
38421         * modules/areadlinkat-with-size: New module.
38422         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
38423         * lib/areadlink.h (areadlinkat): Declare it.
38424         * MODULES.html.sh (File system functions): Mention it.
38425         * modules/areadlinkat-with-size-tests: New test.
38426         * tests/test-areadlinkat-with-size.c: New file.
38427
38428         xreadlinkat: new module
38429         * modules/xreadlinkat: New module.
38430         * lib/xreadlinkat.c (xreadlinkat): New file.
38431         * lib/xreadlink.h (xreadlinkat): Declare it.
38432         * MODULES.html.sh (File system functions): Mention it.
38433
38434         areadlinkat: new module
38435         * lib/at-func.c (FUNC_FAIL): New define.
38436         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
38437         * modules/areadlinkat: New module.
38438         * lib/linkat.c (areadlinkat): Move...
38439         * lib/areadlinkat.c (areadlinkat): ...to new file.
38440         * lib/areadlink.h (areadlinkat): Declare it.
38441         * modules/linkat (Depends-on): Add areadlinkat.
38442         * MODULES.html.sh (File system functions): Mention it.
38443         * modules/areadlinkat-tests: New test.
38444         * tests/test-areadlinkat.c: New file.
38445
38446         areadlink, areadlink-with-size: add tests
38447         * modules/areadlink-tests: New test.
38448         * modules/areadlink-with-size-tests: Likewise.
38449         * tests/test-areadlink.h: New file.
38450         * tests/test-areadlink.c: Likewise.
38451         * tests/test-areadlink-with-size.c: Likewise.
38452
38453         maint: minor cleanups
38454         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
38455         _UNUSED_PARAMETER_ instead.
38456         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
38457         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
38458         * modules/linkat-tests (Files): Distribute test-link.h.
38459
38460         openat, utimens: whitespace cleanup
38461         * lib/openat.c: Prefer space throughout, rather than mix of 8
38462         spaces vs. tabs.
38463         * lib/at-func.c: Likewise.
38464         * lib/utimens.c: Likewise.
38465
38466         openat: avoid using wrong fd
38467         * lib/openat.c (openat_permissive): Reject user's fd if saving the
38468         working directory chooses same fd.
38469         * lib/at-func.c (AT_FUNC_NAME): Likewise.
38470
38471         mkdir, mkdirat: fix cygwin 1.5.x bug
38472         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
38473         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
38474         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
38475         bug.
38476         (gl_PREREQ_MKDIR): Delete unused macro.
38477         * modules/mkdir (Files): Track file rename.
38478         (configure.ac): Update macro name.
38479         * modules/openat (Depends-on): Add mkdir.
38480         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
38481
38482         mkdir, mkdirat: add tests
38483         * modules/mkdir-tests: New test.
38484         * tests/test-mkdir.h: New file.
38485         * tests/test-mkdir.c: Likewise.
38486         * tests/test-mkdirat.c: Likewise.
38487         * modules/openat-tests (Files): Add new files.
38488         (Makefile.am): Run new test.
38489
38490 2009-10-06  Eric Blake  <ebb9@byu.net>
38491
38492         doc: tweak *at function documentation
38493         * doc/posix-functions/faccessat.texi (faccessat): Mention
38494         known issue with replacement.
38495         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
38496         * doc/posix-functions/linkat.texi (linkat): Likewise.
38497         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
38498         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
38499         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38500         * doc/posix-functions/renameat.texi (renameat): Likewise.
38501         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38502
38503         openat: fix GNU/Hurd bug in unlinkat
38504         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
38505         broken.
38506         * doc/posix-functions/unlink.texi (unlink): Document this.
38507         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
38508
38509         fdopendir: fix GNU/Hurd bug
38510         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
38511         allowing non-directory fds.
38512         * lib/fdopendir.c (rpl_fdopendir): Work around it.
38513         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
38514         * modules/dirent (Makefile.am): Substitute it.
38515         * lib/dirent.in.h (fdopendir): Declare replacement.
38516         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
38517         * tests/test-fdopendir.c (main): Test something other than
38518         /dev/null, since on Hurd that behaves like a directory.
38519
38520         test-symlink: port to GNU/Hurd
38521         * tests/test-symlink.h (test_symlink): Relax expected errno.
38522
38523         doc: tweak more cygwin information
38524         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
38525         now compatible with glibc.
38526         * doc/posix-functions/getopt.texi (getopt): Likewise.
38527
38528         getopt-gnu: add another test
38529         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
38530         guarantee behavior relied on by m4.
38531         * tests/test-getopt.c (main): Use it.
38532         * modules/getopt-posix-tests (Depends-on): Add setenv.
38533         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
38534
38535         getopt: fix compilation on darwin
38536         * lib/getopt.in.h (includes): Leave breadcrumbs during system
38537         include.
38538         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
38539         Reported by Ludovic Courtès.
38540
38541 2009-10-06  Bruno Haible  <bruno@clisp.org>
38542
38543         * modules/size_max (Description): Discourage its use.
38544         Reported by Simon Josefsson.
38545
38546 2009-10-06  Jim Meyering  <meyering@redhat.com>
38547
38548         linkat: avoid compilation failure
38549         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
38550
38551 2009-10-05  Eric Blake  <ebb9@byu.net>
38552
38553         linkat: support Linux 2.6.17
38554         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
38555         linkat on Linux, but allow cache variable override.
38556         * lib/linkat.c (rpl_linkat): Define override.
38557         * modules/linkat (Depends-on): Add symlinkat.
38558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
38559         * modules/unistd (Makefile.am): Substitute it.
38560         * lib/unistd.in.h (linkat): Declare replacement.
38561         Reported by Pádraig Brady.
38562
38563         quotearg: port test to systems with C.UTF-8 locale
38564         * tests/test-quotearg.c (struct result_strings): Add another
38565         member, differentiating between C.ASCII and C.UTF-8 handling.
38566         (compare_strings): Add parameter.
38567         (main): Adjust all callers.
38568
38569         getopt: avoid clash with FreeBSD _getopt_internal
38570         * lib/getopt.in.h (_getopt_internal): Override the name.
38571         * lib/getopt_int.h (includes): Pick up any overrides.
38572         Reported by Reuben Thomas.
38573
38574         hash: allow C89 compilation
38575         * lib/hash.c (check_tuning): Move declaration before statement.
38576         Reported by Reuben Thomas.
38577
38578 2009-10-05  Karl Berry  <karl@gnu.org>
38579
38580         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
38581
38582 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
38583             Bruno Haible  <bruno@clisp.org>
38584
38585         * lib/uname.c (uname): Use a table-driven algorithm to compute
38586         Windows NT versions.
38587
38588 2009-10-04  Bruno Haible  <bruno@clisp.org>
38589
38590         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
38591         program_invocation_short_name.
38592         * modules/progname (configure.ac): Test for presence of
38593         program_invocation_short_name.
38594         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38595
38596 2009-10-04  Bruno Haible  <bruno@clisp.org>
38597
38598         * lib/progname.c (set_program_name): Fix comment.
38599         Reported by Jim Meyering.
38600
38601 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
38602             Bruno Haible  <bruno@clisp.org>
38603
38604         * lib/uname.c: Include <string.h>.
38605         (uname): Do only one call to GetVersionEx in the common case.
38606
38607 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
38608             Bruno Haible  <bruno@clisp.org>
38609
38610         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
38611         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
38612         (uname): Add support for Windows CE and various non-x86 CPU types.
38613
38614 2009-10-03  Bruno Haible  <bruno@clisp.org>
38615
38616         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
38617         invocation to tests/configure.ac.
38618         Reported by Ian Beckwith <ianb@erislabs.net>.
38619
38620 2009-10-02  Eric Blake  <ebb9@byu.net>
38621
38622         fchdir: avoid compiler warning
38623         * lib/fchdir.c (canonicalize_file_name)
38624         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
38625
38626         test-open: support mingw errno values
38627         * tests/test-open.h (test_open): Relax test.
38628         * tests/test-fopen.h (test_fopen): Likewise.
38629         * tests/test-openat-safer.c (main): Likewise.
38630
38631         open: fix opening directory on mingw
38632         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
38633
38634         test-open: on GNU/Hurd, /dev/null is a directory
38635         * tests/test-fopen.h (main): Rename...
38636         (test_fopen): ...to this.  Use a guaranteed non-directory when
38637         confirming open behavior on trailing slash.
38638         * tests/test-openat-safer.c (main): Likewise.
38639         * tests/test-open.h (main): Likewise....
38640         (test_open): ...to this.
38641         * tests/test-fopen.c (main): Adjust caller.
38642         * tests/test-fopen-safer.c (main): Likewise.
38643         * tests/test-open.c (main): Likewise.
38644         * tests/test-fcntl-safer.c (main): Likewise.
38645         Reported by Samuel Thibault.
38646
38647         rename, fchdir: don't ignore chdir failure
38648         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
38649         * lib/rename.c (rpl_rename) [W32]: Likewise.
38650         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
38651         an empty destination directory if source cannot be renamed,
38652         although there is still possibility for failure.
38653         * doc/posix-functions/rename.texi (rename): Document the race.
38654         Reported by Jim Meyering.
38655
38656         maint: cleanup whitespace in recent commits
38657         * lib/rename.c (rpl_rename): Remove tabs.
38658         * tests/test-link.h (test_link): Likewise.
38659         * lib/fchdir.c (get_name): Likewise.
38660         Reported by Jim Meyering.
38661
38662 2009-10-02  Ben Pfaff  <blp@gnu.org>
38663
38664         relocatable-prog-wrapper: Add missing dependency on
38665         double-slash-root.
38666         * modules/relocatable-prog-wrapper: Add dependency.
38667         Reported by Ian Beckwith <ianb@erislabs.net>.
38668
38669 2009-10-02  Eric Blake  <ebb9@byu.net>
38670
38671         renameat: fix Solaris bugs
38672         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
38673         needed fixing.
38674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
38675         * modules/stdio (Makefile.am): Substitute it.
38676         * lib/stdio.in.h (renameat): Declare replacement.
38677         * lib/renameat.c (rpl_renameat): Implement fix.
38678
38679         renameat: new module
38680         * modules/renameat: New file.
38681         * lib/renameat.c (renameat): Likewise.
38682         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
38683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
38684         * modules/stdio (Makefile.am): Substitute them.
38685         * lib/stdio.in.h (renameat): Declare it.
38686         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38687         * doc/posix-functions/renameat.texi (renameat): Likewise.
38688         * modules/renameat-tests: New test.
38689         * tests/test-renameat.c: Likewise.
38690
38691         rename: fix mingw bugs
38692         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
38693         directory overwrite bugs.
38694
38695         rename: fix another cygwin 1.5 bug
38696         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
38697         checks.
38698         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
38699         unnecessary cygwin workarounds.  Also work around bug with moving
38700         full directory onto an empty one.
38701         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
38702
38703         rename-dest-slash: merge into rename module
38704         * modules/rename-dest-slash (Status): Mark obsolete.
38705         (Depends-on): Add rename.
38706         (Files): Let rename do it all.
38707         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
38708         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
38709         * m4/rename-dest-slash.m4: ...so this file can be deleted.
38710         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
38711         * lib/rename.c (rpl_rename): Update comments.
38712
38713         rename: fix cygwin 1.5.x bugs
38714         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
38715         * lib/rename.c (rpl_rename): Work around them.
38716         * modules/rename (Depends-on): Add same-inode.
38717
38718         rename: fix Solaris 10 bug
38719         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
38720         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
38721         was the only bug.
38722
38723         rename: fix Solaris 9 bug
38724         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
38725         on non-directory.  Avoid calling exit.
38726         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
38727         strdup.
38728         * modules/rename-tests (Depends-on): Drop lstat.
38729         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
38730         (gl_PREREQ_RENAME): Delete unused macro.
38731
38732         rename-dest-slash: fix NetBSD bug
38733         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
38734         links.
38735         * modules/rename-dest-slash (Depends-on): Add same-inode.
38736
38737         rename-tests: new test, exposes several platform bugs
38738         * modules/rename-tests: New file.
38739         * tests/test-rename.h: Likewise.
38740         * tests/test-rename.c: Likewise.
38741         * doc/posix-functions/rename.texi (rename): Improve documentation,
38742         including bugs that will eventually be fixed in gnulib.
38743
38744 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
38745
38746         * lib/uname.c: Include <stdlib.h>
38747         (uname): Assume version info is available.
38748
38749 2009-10-02  Jim Meyering  <meyering@redhat.com>
38750
38751         gnu-web-doc-update: correct --help output
38752         * build-aux/gnu-web-doc-update: Make --help output relevant.
38753
38754         gnu-web-doc-update: add standard options
38755         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
38756
38757         gnu-web-doc-update: New module.
38758         Use this script to automatically update the on-line web documentation
38759         for your GNU project at http://www.gnu.org/software/$pkg/manual/
38760         * modules/gnu-web-doc-update: New file, from coreutils.
38761         * build-aux/gnu-web-doc-update: New script.
38762
38763 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
38764
38765         link: LoadLibrary is not needed.
38766         * lib/link.c: Use GetModuleHandle.
38767
38768 2009-10-01  Eric Blake  <ebb9@byu.net>
38769
38770         getopt: bump serial number
38771         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
38772         change.
38773
38774         tests: tighten link, rmdir, and remove tests
38775         * tests/test-link.h (includes): No need to use <config.h> here.
38776         Clean up if directory hard link was created, otherwise test for
38777         trailing '.'.
38778         * tests/test-linkat.c (main): Simplify.
38779         * tests/test-remove.c (main): Enhance test for trailing '.'.
38780         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38781
38782 2009-10-01  Jim Meyering  <meyering@redhat.com>
38783
38784         maint.mk: requiring "make major" was annoying, for a "minor" release.
38785         What is intended is "stable", to contrast with alpha and beta,
38786         so require "make stable", not "make major".
38787         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
38788         (get_tool_versions): Likewise.
38789         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
38790
38791 2009-09-30  Ben Pfaff  <blp@gnu.org>
38792
38793         Fix broken build of replacement for Windows tmpfile().
38794         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
38795         flags argument added along with the 'mkostemp' module.
38796
38797 2009-09-28  Bruno Haible  <bruno@clisp.org>
38798
38799         Avoid identifier clash with POSIX function 'remove' defined as a macro.
38800         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
38801         to 'remove_elt'.
38802         (gl_list_remove): Update.
38803         * lib/gl_list.c (gl_list_remove): Update.
38804         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
38805         to 'remove_elt'.
38806         (gl_oset_remove): Update.
38807         * lib/gl_list.c (gl_oset_remove): Update.
38808         Reported by Eric Blake.
38809
38810 2009-09-28  Eric Blake  <ebb9@byu.net>
38811
38812         doc: mention yet more cygwin 1.7 status
38813         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
38814         cygwin.
38815         * doc/glibc-functions/execvpe.texi (execvpe): New file.
38816         * doc/gnulib.texi (Glibc unistd.h): Mention it.
38817
38818         argp: fix test failure
38819         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
38820         that are not upper-case.  Pass correct range to tolower.
38821
38822 2009-09-27  Jim Meyering  <meyering@redhat.com>
38823
38824         test-yesno: work around sparc-dash here-document infelicity
38825         Without this change, the literal \177 byte in a here document
38826         would make dash 0.5.5.1-3 access uninitialized memory.
38827         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
38828         Instead, use a marker, "@", and filter through tr to create the desired
38829         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
38830
38831 2009-09-27  Bruno Haible  <bruno@clisp.org>
38832
38833         Disable untested support for new flavours of ACLs on AIX.
38834         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
38835         progress.
38836         * lib/set-mode-acl.c (qset_acl): Likewise.
38837
38838 2008-12-07  Bruno Haible  <bruno@clisp.org>
38839
38840         Add support for new flavours of ACLs on AIX. (Untested.)
38841         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
38842         (file_has_acl): Add support for newer AIX.
38843         * lib/set-mode-acl.c (qset_acl): Likewise.
38844         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
38845         Rainer Tammer <tammer@tammer.net>.
38846
38847 2009-09-26  Eric Blake  <ebb9@byu.net>
38848
38849         argp: fix compilation of getopt
38850         * lib/getopt.in.h (includes): Use different guard than glibc.
38851         Reported by Sergey Poznyakoff.
38852
38853         doc: mention more cygwin 1.7 status
38854         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
38855         bug.
38856         * doc/posix-functions/execl.texi (execl): Likewise.
38857         * doc/posix-functions/execle.texi (execle): Likewise.
38858         * doc/posix-functions/execlp.texi (execlp): Likewise.
38859         * doc/posix-functions/execv.texi (execv): Likewise.
38860         * doc/posix-functions/execve.texi (execve): Likewise.
38861         * doc/posix-functions/execvp.texi (execvp): Likewise.
38862         * doc/glibc-functions/canonicalize_file_name.texi
38863         (canonicalize_file_name): Cygwin 1.7 now provides this.
38864         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
38865         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
38866         on AT_SYMLINK_NOFOLLOW.
38867
38868 2009-09-24  Eric Blake  <ebb9@byu.net>
38869
38870         test-linkat: make test more robust
38871         * tests/test-linkat.c (main): Avoid collision with EEXIST.
38872
38873         getopt: fix inclusion guards for cygwin
38874         * modules/getopt-posix (Depends-on): Add include-next.
38875         (Makefile.am): Substitute more items in replacement header.
38876         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
38877         <getopt.h>.
38878         * lib/getopt.in.h (includes): Use split inclusion guard, and
38879         prefer <getopt.h> over include <unistd.h> when one is present.
38880         (option): Also override name of 'struct option'.
38881
38882         same-inode: revert prior change; it is not yet ready
38883         * NEWS: Undo mention of this change.
38884         * lib/same-inode.h (same-inode.h): Undo tri-state change.
38885         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
38886         * lib/cycle-check.c (cycle_check): Likewise.
38887         * lib/same.c (same_name): Likewise.
38888         * lib/at-func2.c (at_func2): Likewise.
38889
38890 2009-09-23  Eric Blake  <ebb9@byu.net>
38891
38892         linkat: new module
38893         * modules/linkat: New file.
38894         * lib/at-func2.c (at_func2): Likewise.
38895         * lib/linkat.c (linkat): Likewise.
38896         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
38897         * lib/openat-priv.h (at_func2): Add declaration.
38898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38899         * modules/unistd (Makefile.am): Substitute them.
38900         * lib/unistd.in.h (linkat): Declare it.
38901         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38902         * doc/posix-functions/linkat.texi (linkat): Likewise.
38903         * doc/posix-functions/link.texi (link): Tweak wording.
38904         * tests/test-link.c (main): Move guts...
38905         * tests/test-link.h (test_link): ...into new file.
38906         * modules/linkat-tests: New test.
38907         * tests/test-linkat.c: Likewise.
38908         * modules/link-tests (Files): Ship new file.
38909         (Depends-on): Add stdbool.
38910
38911         dirname: add library-safe mdir_name
38912         * lib/dirname.h (mdir_name): New prototype.
38913         * lib/dirname.c (dir_name): Move guts...
38914         (mdir_name): ...to new function that avoids xalloc_die.
38915
38916         fchdir: another mingw fix
38917         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
38918         * lib/fchdir.c (get_name): New helper method; skips canonicalize
38919         on mingw (where it has not yet been ported), and make it optional
38920         elsewhere.
38921         (_gl_register_fd): Use it.
38922
38923         same-inode: make SAME_INODE tri-state, to port to mingw
38924         * NEWS: Mention this change.
38925         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
38926         st_ino always being 0.
38927         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
38928         * lib/cycle-check.c (cycle_check): Likewise.
38929         * lib/same.c (same_name): Likewise.
38930
38931         lstat: avoid mingw compilation error
38932         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
38933         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
38934         lstat ourselves.
38935         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
38936         was adequate.
38937         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
38938         the checks for lstat.
38939         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
38940
38941         link: fix test failure on Solaris 9
38942         * lib/link.c (rpl_link): Don't assume link will catch bogus
38943         trailing slash on source.
38944
38945         test-symlinkat: enhance test
38946         * tests/test-readlink.c (main): Move guts...
38947         * tests/test-readlink.h (test_readlink): ...into new file.
38948         * tests/test-symlink.c (main): Move guts...
38949         * tests/test-symlink.h (test_symlink): ...into new file.
38950         * tests/test-symlinkat.c (main): Use new files for further
38951         coverage.
38952         (do_symlink, do_readlink): New helper functions.
38953         * modules/symlink-tests (Files): Ship new file.
38954         (Depends-on): Add stdbool.
38955         * modules/readlink-tests (Files): Ship new file.
38956         (Depends-on): Add stdbool.
38957         * modules/symlinkat-tests (Files): Use new files.
38958
38959 2009-09-23  Eric Blake  <ebb9@byu.net>
38960
38961         readlink: document portability issue with symlink length
38962         * doc/posix-functions/lstat.texi (lstat): Mention that some file
38963         systems have bogus st_size on symlinks, and mention the
38964         areadlink-with-size module.
38965         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
38966         * doc/posix-functions/readlink.texi (readlink): Mention the
38967         areadlink module, and ERANGE failure.
38968         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38969         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
38970
38971         readlink: fix Solaris 9 bug with trailing slash
38972         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
38973         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
38974         * doc/posix-functions/readlink.texi (readlink): Document this.
38975         * modules/readlink-tests: New test.
38976         * tests/test-readlink.c: Likewise.
38977
38978         readlink: fix cygwin 1.5.x bug with return type
38979         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
38980         * lib/unistd.in.h (readlink): Use ssize_t.
38981         * lib/readlink.c (readlink): Likewise.
38982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38983         * modules/unistd (Makefile.am): Substitute it.
38984         * lib/unistd.in.h (readlink): Declare replacement.
38985         * doc/posix-functions/readlink.texi (readlink): Document this.
38986
38987         symlink: use throughout gnulib
38988         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
38989         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
38990         symlink is not used.
38991         * modules/symlinkat (Depends-on): Add symlink.
38992         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38993         * modules/canonicalize-tests (Depends-on): Likewise.
38994         * modules/lstat-tests (Depends-on): Likewise.
38995         * modules/openat-tests (Depends-on): Likewise.
38996         * modules/remove-tests (Depends-on): Likewise.
38997         * modules/rmdir-tests (Depends-on): Likewise.
38998         * modules/unlink-tests (Depends-on): Likewise.
38999         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
39000         * tests/test-canonicalize.c (symlink): Likewise.
39001         * tests/test-fstatat.c (symlink): Likewise.
39002         * tests/test-lstat.c (symlink): Likewise.
39003         * tests/test-remove.c (symlink): Likewise.
39004         * tests/test-rmdir.c (symlink): Likewise.
39005         * tests/test-unlink.c (symlink): Likewise.
39006         * tests/test-unlinkat.c (symlink): Likewise.
39007
39008         symlink: new module, for Solaris 9 bug
39009         * modules/symlink: New file.
39010         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
39011         * lib/symlink.c: Likewise.
39012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39013         * modules/unistd (Makefile.am): Substitute them.
39014         * lib/unistd.in.h (symlink): Declare replacement.
39015         * MODULES.html.sh (File system functions): Mention it.
39016         * doc/posix-functions/symlink.texi (symlink): Likewise.
39017         * modules/symlink-tests: New test.
39018         * tests/test-symlink.c: Likewise.
39019
39020 2009-09-23  Bruno Haible  <bruno@clisp.org>
39021
39022         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
39023         when needed.
39024         Test case: gnulib-tool --import --with-tests atexit inttypes.
39025         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
39026
39027 2009-09-23  Bruno Haible  <bruno@clisp.org>
39028
39029         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
39030         subcommand, not in a subshell.
39031
39032 2009-09-22  Eric Blake  <ebb9@byu.net>
39033
39034         unistd: sort replacement declarations
39035         * lib/unistd.in.h: Sort declarations.
39036
39037         open, openat: minor optimization
39038         * lib/open.c (open): If open succeeded, len is non-zero.
39039         * lib/openat.c (rpl_openat): Likewise.
39040
39041         link-follow: ensure correct result
39042         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
39043         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
39044         distinguish between possible failures.
39045
39046 2009-09-21  Eric Blake  <ebb9@byu.net>
39047
39048         fts: avoid compiler warning
39049         * lib/fts.c (dirent_inode_sort_may_be_useful)
39050         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
39051
39052 2009-09-19  Bruno Haible  <bruno@clisp.org>
39053
39054         * lib/progreloc.c (canonicalize_file_name): New declaration.
39055
39056 2009-09-19  Eric Blake  <ebb9@byu.net>
39057
39058         link: fix quoting
39059         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
39060
39061         openat: fix openat bugs on Solaris 9
39062         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
39063         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
39064         * modules/openat (Depends-on): Add open.
39065         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
39066         * modules/fcntl-h (Makefile.am): Substitute it.
39067         * lib/fcntl.in.h (openat): Declare replacement.
39068         * doc/posix-functions/openat.texi (openat): Document this.
39069
39070         openat: move fstatat and unlinkat into correct files
39071         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
39072         compiled.
39073         * lib/openat.c (fstatat, unlinkat): Move...
39074         * lib/fstatat.c (fstatat): ...into correct files.
39075         * lib/unlinkat.c (unlinkat): Likewise.
39076
39077         openat: fix unlinkat bugs on Solaris 9
39078         * lib/unlinkat.c (unlinkat): New file.
39079         * modules/openat (Depends-on): Add unlink.
39080         (Files): Distribute it.
39081         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
39082         trailing slash behavior is broken.
39083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39084         * modules/unistd (Makefile.am): Substitute it.
39085         * lib/unistd.in.h (unlinkat): Declare replacement.
39086         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
39087
39088         openat: fix fstatat bugs on Solaris 9
39089         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
39090         stat.
39091         * doc/posix-functions/fstatat.texi (fstatat): Document this.
39092
39093         test-unlinkat: enhance test, to expose Solaris 9 bug
39094         * tests/test-unlink.c (main): Factor guts...
39095         * tests/test-unlink.h (test_rmdir_func): ...into new file.
39096         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
39097         * tests/test-rmdir.c (main): Adjust caller.
39098         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
39099         (unlinker): New helper function.
39100         (rmdirat): Enhance check.
39101         * modules/rmdir-tests (Depends-on): Add stdbool.
39102         * modules/unlink-tests (Depends-on): Likewise.
39103         (Files): Add test-unlink.h.
39104         * modules/openat-tests (Files): Likewise.
39105         (Depends-on): Add unlinkdir.
39106
39107         test-fstatat: new test, to expose Solaris 9 bugs
39108         * tests/test-stat.c (main): Factor guts...
39109         * tests/test-stat.h (test_stat_func): ...into new file.
39110         * tests/test-lstat.c (main): Factor guts...
39111         * tests/test-lstat.h (test_lstat_func): ...into new file.
39112         * tests/test-fstatat.c: New file.
39113         * modules/stat-tests (Files): Add test-stat.h.
39114         * modules/lstat-tests (Files): Add test-lstat.h.
39115         (Depends-on): Add stdbool.
39116         * modules/openat-tests (Depends-on): Add pathmax.
39117         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
39118         (Makefile.am): Run new test.
39119
39120         remove: new module, for mingw and Solaris 9 bugs
39121         * modules/remove: New file.
39122         * lib/remove.c: Likewise.
39123         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
39124         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39125         * modules/stdio (Makefile.am): Use them.
39126         * lib/stdio.in.h (remove): Declare replacement.
39127         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39128         * doc/posix-functions/remove.texi (remove): Likewise.
39129         * modules/remove-tests: New test.
39130         * tests/test-remove.c: Likewise.
39131
39132         unlink: new module, for Solaris 9 bug
39133         * modules/unlink: New file.
39134         * lib/unlink.c: Likewise.
39135         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
39136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39137         * modules/unistd (Makefile.am): Use them.
39138         * lib/unistd.in.h (stat): Declare replacement.
39139         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39140         * doc/posix-functions/unlink.texi (unlink): Likewise.
39141         * modules/unlink-tests: New test.
39142         * tests/test-unlink.c: Likewise.
39143
39144         lstat: fix Solaris 9 bug
39145         * lib/lstat.c (lstat): Also check for trailing slash on
39146         non-symlink, non-directories.  Use stat module to simplify logic.
39147         * doc/posix-functions/lstat.texi (lstat): Document it.
39148         * modules/lstat-tests (Depends-on): Add errno, same-inode.
39149         (configure.ac): Check for symlink.
39150         * tests/test-lstat.c (main): Add more tests.
39151
39152         stat: add as dependency to other modules
39153         * modules/chown (Depends-on): Add stat.
39154         * modules/euidaccess (Depends-on): Likewise.
39155         * modules/fchdir (Depends-on): Likewise.
39156         * modules/isdir (Depends-on): Likewise.
39157         * modules/link (Depends-on): Likewise.
39158         * modules/lstat (Depends-on): Likewise.
39159         * modules/mkdir-p (Depends-on): Likewise.
39160         * modules/modechange (Depends-on): Likewise.
39161         * modules/open (Depends-on): Likewise.
39162         * modules/readlink (Depends-on): Likewise.
39163         * modules/same (Depends-on): Likewise.
39164
39165         stat: fix Solaris 9 bug
39166         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
39167         slash.
39168         * lib/stat.c (rpl_stat): Work around it.
39169         * doc/posix-functions/stat.texi (stat): Update documentation.
39170
39171         stat: new module, for mingw bug
39172         * modules/stat: New file.
39173         * lib/stat.c: Likewise.
39174         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39175         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39176         * modules/sys_stat (Makefile.am): Use them.
39177         * lib/sys_stat.in.h (stat): Declare replacement.
39178         * lib/openat.c (fstatat): Deal with lstat and stat being function
39179         macros.
39180         * modules/openat (Depends-on): Add inline.
39181         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39182         * doc/posix-functions/stat.texi (stat): Likewise.
39183         * modules/stat-tests: New test.
39184         * tests/test-stat.c: Likewise.
39185
39186 2009-09-19  Jim Meyering  <meyering@redhat.com>
39187
39188         syntax-check: detect unnecessary inclusion of canonicalize.h
39189         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
39190
39191 2009-09-19  Eric Blake  <ebb9@byu.net>
39192
39193         canonicalize-lgpl: adjust clients to use correct header
39194         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39195         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
39196         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
39197         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
39198         * lib/progreloc.c (includes): Likewise.
39199
39200 2009-09-19  Jim Meyering  <meyering@redhat.com>
39201
39202         test-posixtm.c: correct a comment
39203         * tests/test-posixtm.c: Correct first-line comment.
39204         Spotted by Eric Blake.
39205
39206 2009-09-16  Jim Meyering  <meyering@redhat.com>
39207
39208         posixtm-tests: make T const-correct; add a test case
39209         * tests/test-posixtm.c (T): Declare const.
39210         Add a test for -(2^31+1).
39211         Remove useless can-succeed-only-in-2002 test.
39212
39213         posixtm-tests: adjust the sole failing test
39214         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
39215         expected output matches what mktime now produces.  Cross-checked via
39216         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
39217
39218         posixtm: move #ifdef'd tests into a new module
39219         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
39220         * tests/test-posixtm.c: ... this new file.
39221         * modules/posixtm-tests: New module.
39222
39223 2009-09-19  Eric Blake  <ebb9@byu.net>
39224
39225         openat: simplify use of at-func.c
39226         * lib/at-func.c (includes): Include prerequisites here, to
39227         simplify requirements on client files.
39228         * lib/openat-priv.h: Add double-inclusion guard.
39229         * lib/faccessat.c (includes): Simplify.
39230         * lib/fchmodat.c (includes): Likewise.
39231         * lib/fchownat.c (includes): Likewise.
39232         * lib/mkdirat.c (includes): Likewise.
39233         * lib/mkfifoat.c (includes): Likewise.
39234         * lib/symlinkat.c (includes): Likewise.
39235
39236         openat: allow return of fd 0
39237         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
39238         * modules/save-cwd (Depends-on): Replace fcntl-safer with
39239         unistd-safer.
39240         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
39241         <fcntl.h>; this module does not leak fds.
39242         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
39243         must be allowed to return 0, leaving openat_safer to add the
39244         safety.
39245         (openat_permissive): Avoid writing to just-opened fd 2 if
39246         restoring the current directory fails.
39247         * lib/openat-die.c (openat_restore_fail): Add comment.
39248         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
39249         (save_cwd): Guarantee safe fd, but without use of open_safer.
39250         * tests/test-openat.c: New test.
39251         * modules/openat-tests (Files, Makefile.am): Distribute and build
39252         new file.
39253
39254         relocatable-prog-wrapper: fix build
39255         * modules/relocatable-prog-wrapper (Files): Update name of
39256         canonicalize m4 file, broken on 2009-09-17.
39257         Reported by emad hajjar <aleppos@hotmail.com>.
39258
39259 2009-09-19  Bruno Haible  <bruno@clisp.org>
39260
39261         * lib/safe-alloc.h: Use the standard header with GPL copyright.
39262         * lib/safe-alloc.c: Likewise.
39263         Reported by Ian Beckwith <ianb@erislabs.net>.
39264
39265 2009-09-18  Bruno Haible  <bruno@clisp.org>
39266
39267         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
39268         Reported by <erobles@sensacd.com.mx>.
39269
39270 2009-09-17  Eric Blake  <ebb9@byu.net>
39271
39272         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
39273         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
39274         slashes when checking if last component is missing.
39275         * tests/test-canonicalize.c (main): Test this.
39276
39277         canonicalize, canonicalize-lgpl: honor // if distinct from /
39278         * modules/canonicalize (Files): Add double-slash-root.m4.
39279         * modules/canonicalize-lgpl (Files): Likewise.
39280         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39281         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
39282         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
39283         fallback definition.
39284         (canonicalize_filename_mode): Use it to protect //.
39285         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
39286         (__realpath): Likewise.
39287         * tests/test-canonicalize.c (main): Test this.
39288         * tests/test-canonicalize-lgpl.c (main): Likewise.
39289         * modules/canonicalize-tests (Depends-on): Add same-inode.
39290         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39291
39292         canonicalize-lgpl: fix glibc bug with trailing slash
39293         * m4/canonicalize-lgpl.m4: Move contents...
39294         * m4/canonicalize.m4: ...here.
39295         (gl_CANONICALIZE_LGPL): Factor realpath check...
39296         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
39297         glibc 2.3.5 bug, fixed 2005-04-27.
39298         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
39299         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
39300         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
39301         * modules/canonicalize-lgpl (Files): Manage file rename.
39302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
39303         * modules/stdlib (Makefile.am): Substitute witness.
39304         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
39305         is needed.
39306         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
39307         replacement is required.
39308         * lib/canonicalize.c (canonicalize_file_name): Likewise.
39309         * doc/glibc-functions/canonicalize_file_name.texi
39310         (canonicalize_file_name): Document this.
39311         * doc/posix-functions/realpath.texi (realpath): Likewise.
39312
39313         canonicalize-lgpl: reject non-directory with trailing slash
39314         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
39315         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
39316         catches failures in glibc 2.3.5.
39317         * tests/test-canonicalize.c (main): Likewise.
39318
39319         canonicalize-lgpl: use native realpath if it works
39320         * lib/canonicalize-lgpl.c (realpath): Guard with
39321         FUNC_REALPATH_WORKS.
39322         * lib/stdlib.in.h (realpath): Make declaration optional based on
39323         HAVE_REALPATH.
39324         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
39325         native realpath works.
39326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
39327         * modules/stdlib (Makefile.am): Substitute witness.
39328
39329         canonicalize, canonicalize-lgpl: use <stdlib.h>
39330         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
39331         (Include): Mention <stdlib.h>.
39332         (configure.ac): Mention functions we provide.
39333         * modules/canonicalize (configure.ac): Likewise.
39334         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
39335         realpath if canonicalize_file_name is missing.
39336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
39337         * modules/stdlib (Makefile.am): Substitute witnesses.
39338         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
39339         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
39340         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
39341         * NEWS: Document this.
39342         * doc/glibc-functions/canonicalize_file_name.texi
39343         (canonicalize_file_name): Likewise.
39344         * doc/posix-functions/realpath.texi (realpath): Likewise.
39345         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
39346
39347         test-canonicalize: consolidate into single C program
39348         * tests/test-canonicalize.sh: Delete; move setup into...
39349         * tests/test-canonicalize.c (main): ...the program, making it
39350         easier to run in debugger.  Add some tests.
39351         * modules/canonicalize-tests (Files): Remove unused file.
39352         (Depends-on): Add progname.
39353         (configure.ac, Makefile.am): Simplify.
39354
39355         test-canonicalize-lgpl: consolidate into single C program
39356         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
39357         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
39358         easier to run in debugger.  Add some tests.
39359         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
39360         (configure.ac, Makefile.am): Simplify.
39361
39362         canonicalize: avoid resolvepath
39363         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
39364         unnecessary checks.
39365         * lib/canonicalize.c (includes): Simplify.
39366         (canonicalize_file_name): Drop resolvepath implementation.
39367         * modules/canonicalize (Depends-on): Drop filenamecat.
39368
39369         canonicalize: don't lose errno
39370         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
39371         over calls to free.
39372
39373         canonicalize: simplify errno handling
39374         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
39375         assignment.
39376
39377         canonicalize, canonicalize-lgpl: update module dependencies
39378         * modules/canonicalize (Depends-on): Add extensions, lstat,
39379         pathmax, stdlib.
39380         (Files): Drop pathmax.h.
39381         (configure.ac): Adjust macro name.
39382         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
39383         lstat, stdlib, sys_stat.
39384         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
39385         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
39386         extensions.
39387         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
39388         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
39389         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
39390         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
39391         declaration, if available.
39392         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
39393         we can rely on the readlink module.
39394         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
39395         (includes): Use <unistd.h> unconditionally.
39396
39397 2009-09-17  Eric Blake  <ebb9@byu.net>
39398
39399         maint: make Include sections of modules consistent
39400         * modules/alloca: Use only header name; no need to list #include.
39401         * modules/alloca-opt: Likewise.
39402         * modules/arpa_inet: Likewise.
39403         * modules/canon-host: Likewise.
39404         * modules/configmake: Likewise.
39405         * modules/dirent: Likewise.
39406         * modules/eealloc: Likewise.
39407         * modules/environ: Likewise.
39408         * modules/fchdir: Likewise.
39409         * modules/fcntl: Likewise.
39410         * modules/fcntl-h: Likewise.
39411         * modules/gethrxtime: Likewise.
39412         * modules/gettime: Likewise.
39413         * modules/ignore-value: Likewise.
39414         * modules/inet_ntop: Likewise.
39415         * modules/inet_pton: Likewise.
39416         * modules/inttypes: Likewise.
39417         * modules/isnand-nolibm: Likewise.
39418         * modules/isnanf-nolibm: Likewise.
39419         * modules/mbchar: Likewise.
39420         * modules/mbfile: Likewise.
39421         * modules/mbiter: Likewise.
39422         * modules/mbuiter: Likewise.
39423         * modules/netdb: Likewise.
39424         * modules/netinet_in: Likewise.
39425         * modules/nproc: Likewise.
39426         * modules/pagealign_alloc: Likewise.
39427         * modules/poll: Likewise.
39428         * modules/printf-frexp: Likewise.
39429         * modules/pthread: Likewise.
39430         * modules/putenv: Likewise.
39431         * modules/random_r: Likewise.
39432         * modules/relocatable-prog: Likewise.
39433         * modules/search: Likewise.
39434         * modules/select: Likewise.
39435         * modules/selinux-h: Likewise.
39436         * modules/settime: Likewise.
39437         * modules/signal: Likewise.
39438         * modules/size_max: Likewise.
39439         * modules/socklen: Likewise.
39440         * modules/ssize_t: Likewise.
39441         * modules/stdarg: Likewise.
39442         * modules/stdbool: Likewise.
39443         * modules/stddef: Likewise.
39444         * modules/stdint: Likewise.
39445         * modules/stdio: Likewise.
39446         * modules/stdlib: Likewise.
39447         * modules/string: Likewise.
39448         * modules/strings: Likewise.
39449         * modules/sys_file: Likewise.
39450         * modules/sys_ioctl: Likewise.
39451         * modules/sys_select: Likewise.
39452         * modules/sys_socket: Likewise.
39453         * modules/sys_stat: Likewise.
39454         * modules/sys_time: Likewise.
39455         * modules/sys_times: Likewise.
39456         * modules/sys_utsname: Likewise.
39457         * modules/sys_wait: Likewise.
39458         * modules/sysexits: Likewise.
39459         * modules/time: Likewise.
39460         * modules/times: Likewise.
39461         * modules/tmpfile: Likewise.
39462         * modules/trim: Likewise.
39463         * modules/unistd: Likewise.
39464         * modules/wchar: Likewise.
39465         * modules/wctype: Likewise.
39466
39467 2009-09-17  Bruno Haible  <bruno@clisp.org>
39468
39469         Make getdate.y compile on QNX and NetBSD 5 / i386.
39470         * m4/getdate.m4 (gl_GETDATE): Conditionally define
39471         TIME_T_FITS_IN_LONG_INT.
39472         * lib/getdate.y (long_time_t): New type.
39473         (relative_time): Change type of 'seconds' field to long_time_t.
39474         (get_date): Update types of local variables. Check against overflow
39475         during conversion from long_time_t to time_t.
39476         Reported by Matt Kraai <kraai@ftbfs.org>
39477         and Hasso Tepper <hasso@netbsd.org>.
39478
39479 2009-09-17  Bruno Haible  <bruno@clisp.org>
39480
39481         * modules/COPYING: Update copyright years.
39482         * modules/README: Likeiwse.
39483         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
39484         Reported by Ian Beckwith <ianb@erislabs.net>.
39485
39486 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
39487
39488         * users.txt: Update references for gnuit package.
39489
39490 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
39491
39492         * m4/getdelim.m4: Fix typo in copyright line.
39493
39494 2009-09-17  Bruno Haible  <bruno@clisp.org>
39495
39496         * lib/atoll.c: Use the standard header with GPL copyright.
39497         * lib/argz.in.h: Likewise.
39498         * lib/glob.c: Likewise.
39499         * lib/glob-libc.h: Likewise.
39500         * lib/random_r.c: Likewise.
39501         * lib/siglist.h: Likewise.
39502         * lib/strsignal.c: Likewise.
39503         Reported by Ian Beckwith <ianb@erislabs.net>.
39504
39505 2009-09-17  Eric Blake  <ebb9@byu.net>
39506
39507         rmdir: ensure correct dependency order
39508         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
39509
39510 2009-09-17  Bruno Haible  <bruno@clisp.org>
39511
39512         Disable assertion that fails on NetBSD 5 / i386.
39513         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
39514         Reported by Sam Steingold <sds@gnu.org>
39515         and Hasso Tepper <hasso@netbsd.org>.
39516
39517 2009-09-16  Eric Blake  <ebb9@byu.net>
39518
39519         unlinkdir: port to mingw
39520         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
39521         on which no one can unlink a directory.
39522
39523         stdlib: sort witness names
39524         * modules/stdlib (Makefile.am): Sort replacements.
39525         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
39526         * lib/stdlib.in.h: Likewise.
39527
39528         parse-duration-tests: avoid link failure
39529         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
39530         LIBINTL.
39531         Reported by Tom G. Christensen.
39532
39533         openat-tests: ensure unlinkat behaves like rmdir
39534         * tests/test-rmdir.c (main): Factor guts...
39535         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
39536         * modules/rmdir-tests (Files): Ship new file.
39537         * modules/openat-tests: New test.
39538         * tests/test-unlinkat.c: Likewise.
39539
39540         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
39541         * modules/rmdir-errno (Status, Notice): Now obsolete.
39542
39543         rmdir: work around cygwin 1.5.x and mingw bugs
39544         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
39545         * lib/rmdir.c (rmdir): Work around it.
39546         * modules/rmdir (Status, Notice): No longer obsolete.
39547         (Files): Add dos.m4.
39548         (Depends-on): Add unistd.
39549         (configure.ac): Set witnesses.
39550         (License): Relax to LGPLv2+.
39551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
39552         * modules/unistd (Makefile.am): Substitute witnesses.
39553         * lib/unistd.in.h (rmdir): Declare replacement.
39554         * doc/posix-functions/rmdir.texi (rmdir): Document this.
39555         * modules/rmdir-tests: New tests.
39556         * tests/test-rmdir.c: Likewise.
39557
39558 2009-09-15  Eric Blake  <ebb9@byu.net>
39559
39560         fchdir: improve use of replacement functions
39561         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
39562         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
39563         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
39564         REPLACE_CLOSEDIR.
39565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
39566         * modules/sys_stat (Makefile.am): Substitute correct witness.
39567         * modules/dirent (Makefile.am): Likewise.
39568         * modules/unistd (Makefile.am): Likewise.
39569         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
39570         * lib/unistd.in.h (dup): Likewise.
39571         * lib/sys_stat.in.h (fstat): Likewise.
39572
39573         maint: ignore gnulib-tool temp files
39574         * .gitignore: Ignore files created during gnulib-tool --test.
39575
39576 2009-09-13  Jim Meyering  <meyering@redhat.com>
39577
39578         posixtm: don't reject a time that specify "60" as the number of seconds
39579         * lib/posixtm.c (posixtime): The code to reject invalid dates
39580         would also reject a time specified with the .60 suffix.
39581         But POSIX allows that, in order to accommodate leap seconds.
39582         So don't reject it.
39583         (main): Adjust tests accordingly.
39584         * modules/posixtm (Depends-on): Add stpcpy.
39585
39586 2009-09-11  Jim Meyering  <meyering@redhat.com>
39587
39588         announce-gen: include [$release_type] in emitted Subject:
39589         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
39590         e.g., [stable] in the emitted Subject: line.
39591
39592 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39593
39594         Remove obsolete macros from several modules.
39595         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
39596         obsolete Autoconf macros with their modern counterparts.
39597         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
39598         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
39599         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
39600         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
39601         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
39602         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
39604         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
39605         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
39606         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
39607         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
39608         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
39609         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
39610         * m4/sockets.m4 (gl_SOCKETS): Likewise.
39611         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
39612         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
39613         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
39614         * m4/time_r.m4 (gl_TIME_R): Likewise.
39615         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
39616         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
39617         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39618
39619         Fix copyright header in build-aux scripts.
39620         * build-aux/git-version-gen: Fix copyright header to match GPLv3
39621         recommendation.
39622         * build-aux/ncftpput-ftp: Likewise.
39623         * build-aux/update-copyright: Likewise.
39624
39625 2009-09-09  Eric Blake  <ebb9@byu.net>
39626
39627         test-link: allow Linux choice of errno
39628         * tests/test-link.c (main): Relax test for alternate error.
39629
39630         strndup: fix improper m4 caching
39631         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
39632         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
39633         (gl_PREREQ_STRNDUP): Delete.
39634         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
39635         * modules/string (Makefile.am): Substitute it.
39636         * lib/string.in.h (strndup): Modernize prototype.
39637
39638         getcwd: port to mingw
39639         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
39640         different from the POSIX assumptions made throughout the getcwd
39641         module; fortunately, the mingw getcwd does not need replacement.
39642         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
39643         * modules/getcwd-tests: New test.
39644         * tests/test-getcwd.c: Likewise.
39645
39646         link: fix platform bugs
39647         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
39648         * lib/link.c (link): Work around them.  Fix related mingw bug.
39649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
39650         * modules/unistd (Makefile.am): Substitute it.
39651         * lib/unistd.in.h (link): Declare replacement.
39652         * doc/posix-functions/link.texi (link): Document this.
39653         * modules/link (Depends-on): Add strdup-posix, sys_stat.
39654
39655         test-link: consolidate into single C program, test more cases
39656         * tests/test-link.sh: Delete.
39657         * tests/test-link.c: Test more error conditions.  Exposes bugs on
39658         at least Cygwin and Solaris.
39659         * modules/link-tests (Files): Remove unused file.
39660         (Depends-on): Add errno, sys_stat.
39661         (Makefile.am): Simplify.
39662
39663 2009-09-08  Bruno Haible  <bruno@clisp.org>
39664
39665         Work around towlower, towupper bug on mingw.
39666         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
39667         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
39668         * doc/posix-functions/towlower.texi: Mention the mingw bug.
39669         * doc/posix-functions/towupper.texi: Likewise.
39670         Reported by Eric Blake.
39671
39672 2009-09-08  Jim Meyering  <meyering@redhat.com>
39673
39674         build: don't try to run autoheader if we don't use it
39675         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
39676         is not used in configure.ac.
39677
39678 2009-09-08  Eric Blake  <ebb9@byu.net>
39679
39680         euidaccess: fix compilation error
39681         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
39682
39683         rawmemchr: relax license
39684         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
39685         okay.
39686         Reported by Jim Meyering.
39687
39688         mkfifoat: new module
39689         * modules/mkfifoat: New file.
39690         * lib/mkfifoat.c: Likewise.
39691         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
39692         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39693         * modules/sys_stat (Makefile.am): Use them.
39694         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
39695         * MODULES.html.sh (File system functions): Mention module.
39696         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39697         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39698         * modules/mkfifoat-tests: New test.
39699         * tests/test-mkfifoat.c: Likewise.
39700
39701         strchrnul: relax license
39702         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
39703         okay.
39704         Reported by Jim Meyering.
39705
39706 2009-09-08  Eric Blake  <ebb9@byu.net>
39707
39708         fstatat: fix compilation on Solaris
39709         * lib/fstatat.c (includes): Add fcntl.h.
39710         Reported by Pádraig Brady.
39711
39712 2009-09-07  Eric Blake  <ebb9@byu.net>
39713
39714         rename: modernize replacement
39715         * modules/rename (Depends-on): Add stdio.
39716         (configure.ac): Declare witness.
39717         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
39718         stdio take care of replacement.
39719         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
39720         * modules/stdio (Makefile.am): Substitute them.
39721         * lib/stdio.in.h (rename): Declare replacement.
39722         * lib/rename.c (includes): Allow cross-compilation to non-windows
39723         machines.
39724         * doc/posix-functions/rename.texi (rename): Improve
39725         documentation.
39726
39727         stdio: sort witness names
39728         * modules/stdio (Makefile.am): Sort replacements.
39729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39730         * lib/stdio.in.h: Likewise.
39731
39732         getcwd: minor cleanups
39733         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
39734         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
39735
39736         openat: provide more convenience names
39737         * modules/faccessat (configure.ac): Add C witness.
39738         * lib/unistd.in.h (readlinkat): Fix typo.
39739         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
39740         convenience wrappers.
39741         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
39742         wrappers in syntax checks.
39743
39744 2009-09-06  Eric Blake  <ebb9@byu.net>
39745
39746         doc: fix comments in recent patches
39747         * lib/faccessat.c: Mention correct function.
39748         * lib/fchmodat.c: Likewise.
39749         * lib/fchownat.c: Likewise.
39750         * lib/symlinkat.c: Likewise.
39751         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
39752         constants.
39753
39754         faccessat, symlinkat: continue cleanup of previous patch
39755         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
39756         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
39757         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
39758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
39759         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
39760         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
39761         set.
39762
39763 2009-09-06  Bruno Haible  <bruno@clisp.org>
39764
39765         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
39766         (fstatat): Declare if GNULIB_FSTATAT is set.
39767         (mkdirat): Declare if GNULIB_MKDIRAT is set.
39768         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
39769         (unlinkat): Declare if GNULIB_UNLINKAT is set.
39770         * modules/fcntl-h (Files): Remove m4/openat.m4.
39771         * modules/sys_stat (Files): Remove m4/openat.m4.
39772         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
39773         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
39774         * modules/unistd (Files): Remove m4/openat.m4.
39775         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
39776         GNULIB_OPENAT.
39777         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
39778         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
39779         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
39780         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
39781         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
39782         gl_OPENAT_DEFAULTS.
39783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
39784         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
39785         Don't require gl_OPENAT_DEFAULTS.
39786         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
39787         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
39788         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
39789         (gl_OPENAT_DEFAULTS): Remove macro.
39790
39791 2009-09-06  Bruno Haible  <bruno@clisp.org>
39792
39793         * modules/openat (configure.ac): Remove unneeded witness.
39794
39795 2009-09-06  Bruno Haible  <bruno@clisp.org>
39796
39797         Set errno to ENOSYS when a function is entirely unsupported.
39798         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
39799         EOPNOTSUPP.
39800         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
39801         * modules/chown (Depends-on): Remove errno.
39802
39803 2009-09-06  Bruno Haible  <bruno@clisp.org>
39804
39805         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
39806
39807 2009-09-06  Bruno Haible  <bruno@clisp.org>
39808
39809         * lib/sys_stat.in.h: Fix preprocessor command indentation.
39810
39811 2009-09-06  Ben Pfaff  <blp@gnu.org>
39812             Bruno Haible  <bruno@clisp.org>
39813
39814         Work around a glibc bug in strtok_r.
39815         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
39816         Undefine if UNDEFINE_STRTOK_R is set.
39817         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
39818         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39819         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
39820         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
39821         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
39822         UNDEFINE_STRTOK_R.
39823         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
39824
39825 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
39826
39827         exclude: minor fix
39828         * lib/exclude.c: Include wctype.h
39829
39830 2009-09-06  Akim Demaille  <demaille@gostai.com>
39831
39832         bootstrap: improve error message
39833         * build-aux/bootstrap (find_tool): Upon failure, report the list
39834         of candidates.
39835         Honor the initial value of the envvar.
39836
39837 2009-09-05  Eric Blake  <ebb9@byu.net>
39838
39839         symlinkat: new module
39840         * modules/symlinkat: New file.
39841         * lib/symlinkat.c: Likewise.
39842         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
39843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39844         * modules/unistd (Makefile.am): Use them.
39845         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
39846         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
39847         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
39848         * MODULES.html.sh (File system functions): Mention module.
39849         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39850         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39851         * modules/symlinkat-tests: New test.
39852         * tests/test-symlinkat.c: Likewise.
39853
39854         test-openat-safer: add more checks
39855         * tests/test-openat-safer.c (main): Check more code paths.
39856
39857 2009-09-05  Jim Meyering  <meyering@redhat.com>
39858
39859         syntax-check: detect unnecessary inclusion of openat.h
39860         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
39861
39862 2009-09-05  Bruno Haible  <bruno@clisp.org>
39863
39864         Support towlower, towupper.
39865         * doc/posix-functions/towlower.texi: Mention module wctype.
39866         * doc/posix-functions/towupper.texi: Likewise.
39867         * lib/wctype.in.h (towlower, towupper): New functions.
39868         * tests/test-wctype.c: Include stdio.h, stdlib.h.
39869         (ASSERT): New macro.
39870         (e): New variable.
39871         (main): Test also towlower, towupper. Test WEOF argument.
39872         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39873
39874 2009-09-05  Bruno Haible  <bruno@clisp.org>
39875
39876         Fix conversion behaviour when the input is invalid.
39877         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
39878         mark occurring in first pass of indirect conversion.
39879         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
39880         input.
39881         Found by clang's static analyzer.
39882
39883 2009-09-05  Bruno Haible  <bruno@clisp.org>
39884
39885         * tests/test-striconveh.c (main): Test indirect conversion on platforms
39886         where direct conversion is possible.
39887
39888 2009-09-04  Eric Blake  <ebb9@byu.net>
39889
39890         openat: fail with ENOENT on empty name
39891         * lib/openat-proc.c (openat_proc_name): Special-case the empty
39892         buffer.
39893
39894         link-follow: fix logic bug in prior patch
39895         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
39896         reversed sense of yes and no in prior patch.  Avoid confusing
39897         compilation failure with desired semantics.
39898
39899         link-follow: accomodate mingw and cross-compilation
39900         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
39901         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
39902         cross-compilation results to -1, to make linkat easier to
39903         implement when cross-compiling.  Trivially support mingw.
39904         * modules/link-follow (configure.ac): Call new name.
39905         * NEWS: Mention this.
39906
39907 2009-09-03  Eric Blake  <ebb9@byu.net>
39908
39909         faccessat: compile replacement
39910         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
39911         needed.
39912
39913         fts: fix compilation error
39914         * lib/fts.c (includes): Re-add "openat.h", for
39915         openat_needs_fchdir.
39916
39917         faccessat: new module
39918         * modules/faccessat: New file.
39919         * lib/faccessat.c: Likewise.
39920         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
39921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39922         * modules/unistd (Makefile.am): Use it.
39923         * lib/unistd.in.h (faccessat): Declare it.
39924         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
39925         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
39926         * MODULES.html.sh (File system functions): Mention it.
39927         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
39928         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
39929
39930         euidaccess: prefer POSIX over non-standard implementation
39931         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
39932         * lib/euidaccess.c (euidaccess): Use it if available.
39933
39934         openat: make template easier to use
39935         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
39936         AT_FUNC_F2 to be undefined.
39937         (VALIDATE_FLAG): New macro; use it to reject bad flags.
39938         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
39939         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
39940         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
39941         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
39942         Likewise.
39943         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
39944         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
39945         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
39946         Likewise.
39947
39948         openat: declare in POSIX headers
39949         * NEWS: Mention this.
39950         * modules/openat (configure.ac): Declare witnesses.
39951         (Depends-on): Add fcntl-h, sys_stat, unistd.
39952         (Include): Mention correct headers.
39953         * modules/fcntl-h (Depends-on): Add link-warning.
39954         (Files): Add openat.m4.
39955         (Makefile.am): Substitute witnesses.
39956         * modules/sys_stat (Files, Makefile.am): Likewise.
39957         * modules/unistd (Files, Makefile.am): Likewise.
39958         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
39959         (gl_OPENAT_DEFAULTS): New macro.
39960         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
39961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
39962         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
39963         (SYS_STAT_H): Remove unused variable.
39964         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
39965         * lib/fcntl--.h (includes): Remove unneeded header.
39966         * lib/openat-safer.c (includes): Likewise.
39967         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
39968         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
39969         appropriate headers.
39970         (__OPENAT_PREFIX): Delete.
39971         * lib/fcntl.in.h (openat): Provide declaration.
39972         (AT_FDCWD): Fix Solaris bug.
39973         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
39974         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
39975         * lib/fchmodat.c (includes):  Adjust to find declaration.
39976         * lib/fchownat.c (includes): Likewise.
39977         * lib/mkdirat.c (includes): Likewise.
39978         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
39979         still visible.
39980
39981 2009-09-02  Eric Blake  <ebb9@byu.net>
39982
39983         errno: use consistently
39984         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
39985         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
39986         * lib/canonicalize.c (ELOOP): Likewise.
39987         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
39988         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
39989         * lib/lchown.c (EOPNOTSUPP): Likewise.
39990         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
39991         * lib/savewd.c (ESTALE): Likewise.
39992         * lib/settime.c (ENOSYS): Likewise.
39993         * lib/utimens.c (ENOSYS): Likewise.
39994         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
39995         * lib/chdir-safer.c (ELOOP): Likewise.
39996         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
39997         * modules/c-stack (Depends-on): Add errno.
39998         * modules/canonicalize (Depends-on): Likewise.
39999         * modules/chdir-safer (Depends-on): Likewise.
40000         * modules/fdopendir (Depends-on): Likewise.
40001         * modules/inet_ntop (Depends-on): Likewise.
40002         * modules/inet_pton (Depends-on): Likewise.
40003         * modules/lchown (Depends-on): Likewise.
40004         * modules/openat (Depends-on): Likewise.
40005         * modules/savewd (Depends-on): Likewise.
40006         * modules/settime (Depends-on): Likewise.
40007         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
40008
40009         fts: avoid leaking fds
40010         * modules/fts (Depends-on): Add cloexec.
40011         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
40012         flag.
40013
40014         fts: make directory fds more robust
40015         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
40016         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
40017
40018         backupfile, chdir-long, fts, savedir: make safer
40019         * lib/backupfile.c (includes): Use "dirent--.h", since
40020         numbered_backup can write to stderr during readdir.
40021         * lib/savedir.c (includes): Likewise.
40022         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
40023         emulation can write to stderr on failure.
40024         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
40025         * lib/getcwd.c: Document why opendir_safer is unused.
40026         * lib/glob.c: Likewise.
40027         * lib/scandir.c: Likewise.
40028         * lib/openat-proc.c: Likewise, for open_safer.
40029         * modules/backupfile (Depends-on): Add dirent-safer.
40030         * modules/savedir (Depends-on): Likewise.
40031         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
40032         * modules/chdir-long (Depends-on): Add openat-safer.
40033
40034         openat-safer: new module
40035         * modules/openat-safer: New file.
40036         * lib/openat-safer.c: Likewise.
40037         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
40038         * lib/fcntl-safer.h (openat_safer): Declare.
40039         * lib/fcntl--.h (openat): Override.
40040         * MODULES.html.sh (File descriptor based I/O): Mention it.
40041         * lib/openat.h: Add double-inclusion guards.
40042         * lib/openat.c (includes): Only include "fcntl-safer.h", not
40043         "fcntl--.h", so we can implement openat.
40044         * modules/openat-safer-tests: New test.
40045         * tests/test-openat-safer.c: New file.
40046
40047         dirent-safer: new module
40048         * modules/dirent-safer: New file.
40049         * lib/dirent--.h: Likewise.
40050         * lib/dirent-safer.h: Likewise.
40051         * lib/opendir-safer.c: Likewise.
40052         * m4/dirent-safer.m4: Likewise.
40053         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
40054         * modules/dirent-safer-tests: New test.
40055         * tests/test-dirent-safer.c: New file.
40056         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
40057
40058         fdopendir: optimize on mingw
40059         * lib/unistd.in.h (_gl_directory_name): New prototype.
40060         * lib/fchdir.c (_gl_directory_name): Implement it.
40061         (fchdir): Use it to simplify implementation.
40062         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
40063         fchdir, when available, to avoid calling [f]chdir().
40064
40065         fdopendir: split into its own module
40066         * lib/openat.c (fdopendir): Move...
40067         * lib/fdopendir.c: ...into new file.
40068         * modules/fdopendir: New module.
40069         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
40070         * modules/openat (Depends-on): Add fdopendir.
40071         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
40072         fdopendir here.
40073         * modules/savedir (Depends-on): Only need fdopendir, not full
40074         openat.
40075         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
40076         * lib/openat.h (fdopendir): Drop prototype.
40077         * lib/dirent.in.h (fdopendir): Provide prototype.
40078         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
40079         * modules/dirent (Makefile.am): Substitute them.
40080         * MODULES.html.sh (File system functions): Mention it.
40081         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
40082         * modules/fdopendir-tests: New file.
40083         * tests/test-fdopendir.c: Likewise.
40084
40085         fchdir: use more consistent macro convention
40086         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
40087         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
40088         REPLACE_FCHDIR, rather than relying on config.h macros.
40089         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
40090         inside a single make-time REPLACE_FCHDIR block, rather than using
40091         the config.h FCHDIR_REPLACEMENT.
40092         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
40093         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
40094         Manage fstat replacement.
40095         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
40096         REPLACE_FCHDIR.
40097         * modules/sys_stat (Files): Add m4/unistd_h.m4.
40098         (Makefile.am): Substitute REPLACE_FCHDIR.
40099         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
40100         FCHDIR_REPLACEMENT.
40101         * lib/dup-safer.c (dup_safer): Likewise.
40102         * lib/dup2.c (rpl_dup2): Likewise.
40103         * lib/dup3.c (rpl_dup3): Likewise.
40104         * lib/open.c (rpl_open): Likewise.
40105
40106         fchdir: simplify error handling, and support dup3
40107         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
40108         stdbool, malloc-posix, realloc-posix.
40109         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
40110         (ensure_dirs_slot): Return false on allocation failure.
40111         (rpl_dup2): Delete.
40112         (_gl_register_dup): New function.
40113         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
40114         (_gl_register_fd): Close fd on allocation failure.
40115         * lib/fcntl.in.h (_gl_register_fd): Update signature.
40116         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
40117         prototype.
40118         (rpl_dup2_fchdir): Delete prototype.
40119         * lib/open.c (open): Update caller.
40120         * lib/dup2.c (dup2): Track fchdir metadata.
40121         * lib/dup3.c (dup3): Likewise.
40122         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
40123         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
40124
40125 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40126
40127         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
40128         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
40129         don't pass arguments to AC_OUTPUT.
40130
40131 2009-09-02  Bruno Haible  <bruno@clisp.org>
40132
40133         * modules/mkdtemp (License): Relicense under LGPLv2+.
40134         Reported by Paolo Bonzini.
40135
40136 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40137
40138         Replace uses of obsolete autoconf macros in Jim's modules.
40139         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
40140         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
40141         can evoke a warning from autoconf when run with -Wobsolete
40142         enabled.  They were declared obsolete for good reasons (see
40143         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
40144         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
40145         should not continue using the deprecated macros.
40146         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
40147         obsolete Autoconf macros with modern counterparts.
40148         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40149         * m4/dos.m4 (gl_AC_DOS): Likewise.
40150         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
40151         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
40152         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
40153         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
40154         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
40155         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
40156         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
40157         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
40158         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40159         Likewise.
40160         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
40161         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
40162         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
40163         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
40164         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40165         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
40166
40167 2009-09-01  Eric Blake  <ebb9@byu.net>
40168
40169         fchdir: fix off-by-one bug in previous patch
40170         * lib/fchdir.c (rpl_fstat): Use correct bounds.
40171         (_gl_unregister_fd): Delete useless if.
40172
40173 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
40174
40175         maint.mk: sort the list of syntax-check rules
40176         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
40177         easier to get a sense of progress when the rules are run sequentially
40178         and take a long time.
40179
40180 2009-09-01  Simon Josefsson  <simon@josefsson.org>
40181
40182         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
40183         * modules/netinet_in: Likewise.
40184         * modules/sys_file: Likewise.
40185         * modules/sys_ioctl: Likewise.
40186         * modules/sys_select: Likewise.
40187         * modules/sys_socket: Likewise.
40188         * modules/sys_stat: Likewise.
40189         * modules/sys_time: Likewise.
40190         * modules/sys_times: Likewise.
40191         * modules/sys_utsname: Likewise.
40192         * modules/sys_wait: Likewise.
40193
40194 2009-09-01  Jim Meyering  <meyering@redhat.com>
40195
40196         fts: help ensure that return values are not ignored
40197         * lib/fts_.h (__GNUC_PREREQ): Define.
40198         (__attribute_warn_unused_result__): Define.
40199         (fts_children, fts_close, fts_open, fts_read): Declare with
40200         __attribute_warn_unused_result__.
40201
40202         fts: fts_close now fails also when closing a dir file descriptor fails
40203         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
40204         and propagate to caller, along with errno.
40205
40206         announce-gen: correct formatting in --help output
40207         * build-aux/announce-gen (usage): Move the one-line description in
40208         --help output "up", to where it belongs, just after Usage:.
40209
40210 2009-08-31  Eric Blake  <ebb9@byu.net>
40211
40212         fchdir: port to mingw
40213         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
40214         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
40215         opened, then use a substitute.
40216         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
40217         replacement.
40218         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
40219         (_gl_register_fd): No need to check stat if open already filters
40220         all directories.
40221         (fchdir): Fix error condition to match POSIX.
40222         * modules/fchdir (Depends-on): Add sys_stat.
40223         * doc/posix-functions/open.texi (open): Document the limitation.
40224         * modules/fchdir-tests: New file.
40225         * tests/test-fchdir.c: Likewise.
40226
40227         canonicalize: allow cross-testing from cygwin to mingw
40228         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
40229         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
40230         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
40231         Likewise.
40232         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
40233         target does not support symlinks.
40234         * tests/test-canonicalize-lgpl.sh: Likewise.
40235
40236         chown: avoid compilation warning on mingw
40237         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
40238         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
40239         mingw.
40240         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40241         * modules/chown (Depends-on): Add errno.
40242
40243 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
40244
40245         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
40246         command.
40247
40248 2009-08-31  Jim Meyering  <meyering@redhat.com>
40249
40250         canonicalize: remove useless initialization
40251         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
40252         initialization of local, "end".
40253
40254 2009-08-30  Bruno Haible  <bruno@clisp.org>
40255
40256         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
40257         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
40258         ENOSYS.
40259
40260 2009-08-30  Bruno Haible  <bruno@clisp.org>
40261
40262         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
40263         /usr/xpg4/bin/tr when it exists.
40264         * tests/test-pipe-filter-gi1.sh: Likewise.
40265
40266 2009-08-30  Bruno Haible  <bruno@clisp.org>
40267
40268         Work around deficient /usr/bin/id program on Solaris.
40269         * tests/test-file-has-acl.sh (ID): New variable.
40270         * tests/test-set-mode-acl.sh (ID): Likewise.
40271         * tests/test-copy-acl.sh (ID): Likewise.
40272         * tests/test-copy-file.sh (ID): Likewise.
40273
40274 2009-08-30  Bruno Haible  <bruno@clisp.org>
40275
40276         New module 'xstriconveh'.
40277         * lib/xstriconveh.h: New file.
40278         * lib/xstriconveh.c: New file.
40279         * modules/xstriconveh: New file.
40280
40281 2009-08-30  Bruno Haible  <bruno@clisp.org>
40282
40283         Make it easier to use mem_cd_iconveh.
40284         * lib/striconveh.h (iconveh_t): New type.
40285         (iconveh_open, iconveh_close): New declarations.
40286         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
40287         with a single 'const iconveh_t *' argument.
40288         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
40289         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
40290         with a single 'const iconveh_t *' argument.
40291         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
40292         * tests/test-striconveh.c (main): Update.
40293         * NEWS: Mention the change.
40294
40295 2009-08-30  Bruno Haible  <bruno@clisp.org>
40296
40297         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
40298         problem.
40299
40300 2009-08-30  Bruno Haible  <bruno@clisp.org>
40301
40302         Work around iconv_open problem on Solaris.
40303         * lib/iconv_open-solaris.gperf: New file.
40304         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
40305         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
40306         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
40307         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
40308         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
40309         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
40310
40311 2009-08-29  Jim Meyering  <meyering@redhat.com>
40312
40313         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
40314         * top/maint.mk (cvs-check): Remove target; it was just an alias
40315         to the better-named vc-diff-check.
40316         (maintainer-distcheck): Remove rule.  It was used only from
40317         the (alpha/beta/major) target, and all of its commands but one
40318         were coreutils-specific.
40319         (vc-dist): Remove rule.
40320         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
40321         Run vc-diff-check, not vc-dist.
40322         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
40323
40324 2009-08-27  Bruno Haible  <bruno@clisp.org>
40325
40326         * tests/test-bitrotate.c (main): Remove test that uses a shift count
40327         of 0.
40328
40329 2009-08-27  Bruno Haible  <bruno@clisp.org>
40330
40331         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
40332         compilers.
40333         * doc/func.texi: Document the SunPRO C bug.
40334
40335 2009-08-27  Bruno Haible  <bruno@clisp.org>
40336
40337         Fix link error on Solaris.
40338         * tests/test-parse-duration.c (xstrdup): Remove function.
40339
40340 2009-08-26  Pádraig Brady  <P@draigbrady.com>
40341
40342         ignore-value: handle pointer types, too
40343         * lib/ignore-value.h (__attribute__): Remove definition.
40344         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
40345         of a more concise and more-often effective "(void) i" statement.
40346         (ignore_ptr): New function to suppress warnings from functions that
40347         return pointers, and to make it explicit that one function doesn't
40348         handle all cases.
40349
40350 2009-08-25  Bruno Haible  <bruno@clisp.org>
40351
40352         dup2: work around a Linux bug.
40353         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
40354         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
40355         * doc/posix-functions/dup2.texi: Mention the Linux bug.
40356         Reported by Simon Josefsson.
40357
40358 2009-08-25  Jim Meyering  <meyering@redhat.com>
40359
40360         libguestfs uses gnulib
40361         * users.txt: Add libguestfs.
40362
40363 2009-08-24  Eric Blake  <ebb9@byu.net>
40364
40365         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
40366         * lib/pipe2.c (includes): Add binary-io.h.
40367         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
40368
40369 2009-08-24  Bruno Haible  <bruno@clisp.org>
40370
40371         Tolerate declared but missing accept4 syscall.
40372         * lib/accept4.c (accept4): Invoke original accept4 function first, if
40373         available.
40374         * lib/sys_socket.in.h (accept4): If the function is already present,
40375         override it.
40376         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
40377         * modules/accept4 (Makefile.am): Compile accept4.c always.
40378         Reported by Paolo Bonzini and Eric Blake.
40379
40380 2009-08-23  Bruno Haible  <bruno@clisp.org>
40381
40382         New module 'accept4'.
40383         * lib/sys_socket.in.h (accept4): New declaration.
40384         * lib/accept4.c: New file.
40385         * m4/accept4.m4: New file.
40386         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40387         GNULIB_ACCEPT4, HAVE_ACCEPT4.
40388         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
40389         HAVE_ACCEPT4.
40390         * modules/accept4: New file.
40391         * doc/glibc-functions/accept4.texi: Mention the new module.
40392
40393 2009-08-24  Jim Meyering  <meyering@redhat.com>
40394
40395         progname: also set global program_invocation_name, when possible
40396         Before this change, a libtool-enabled program that calls glibc's
40397         error function would report the program name as
40398         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
40399         * modules/progname (configure.ac): Check for a declaration of
40400         program_invocation_name.
40401         * lib/progname.c:  Include <errno.h>.
40402         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
40403         Set program_invocation_name.
40404
40405 2009-08-23  Bruno Haible  <bruno@clisp.org>
40406
40407         * lib/dup3.c: Include <string.h>.
40408
40409 2009-08-23  Bruno Haible  <bruno@clisp.org>
40410
40411         * lib/dup3.c (dup3): Test only once whether the system actually exists.
40412         * lib/pipe2.c (pipe2): Likewise.
40413         Suggested by Eric Blake.
40414
40415 2009-08-23  Bruno Haible  <bruno@clisp.org>
40416
40417         Tolerate declared but missing dup3 syscall.
40418         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
40419         * lib/unistd.in.h (dup3): If the function is already present,
40420         override it.
40421         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
40422         * modules/dup3 (Makefile.am): Compile dup3.c always.
40423         Reported by Paolo Bonzini.
40424
40425 2009-08-23  Bruno Haible  <bruno@clisp.org>
40426
40427         Tolerate declared but missing pipe2 syscall.
40428         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
40429         available.
40430         * lib/unistd.in.h (pipe2): If the function is already present,
40431         override it.
40432         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
40433         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
40434         Reported by Paolo Bonzini.
40435
40436 2009-08-23  Bruno Haible  <bruno@clisp.org>
40437
40438         * lib/pipe2.c (pipe2): Move #ifs inside function.
40439
40440 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
40441
40442         quotearg: document limitations of quote_these_too
40443         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
40444         those limitations are created.
40445         * lib/quotearg.h (set_char_quoting): Document that digits and
40446         letters that are special after backslash are not permitted.
40447         (quotearg_char): Cross-reference set_char_quoting documentation.
40448
40449 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
40450
40451         quotearg: implement custom_quoting_style
40452         * lib/quotearg.c: (struct quoting_options): Add left_quote and
40453         right_quote fields.
40454         (set_custom_quoting): New public function.
40455         (quotearg_buffer_restyled): Add left_quote and right_quote
40456         arguments, handle them very much like locale quoting, and update
40457         all uses.
40458         (quotearg_n_custom): New public function.
40459         (quotearg_n_custom_mem): New public function.
40460         (quotearg_custom): New public function.
40461         (quotearg_custom_mem): New public function.
40462         * lib/quotearg.h: Prototype and document new public functions.
40463         (enum quoting_style): For escape_quoting_style and
40464         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
40465         ignored even though they're otherwise like c_quoting_style.
40466         Add custom_quoting_style member and document with comparison to
40467         clocale_quoting_style.
40468         * tests/test-quotearg.c (custom_quotes): New array.
40469         (custom_results): New array.
40470         (main): Extend to test custom quoting.
40471
40472 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
40473
40474         quotearg: fix right quote escaping when it's in quote_these_too
40475         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
40476         quote, be sure to prepend only one backslash.
40477         * tests/test-quotearg.c (use_quote_double_quotes): New function.
40478         (main): Test it.
40479
40480 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
40481
40482         quotearg-tests: test escaping of embedded locale quotes
40483         * tests/test-quotearg.c (struct result_strings): Add member for
40484         new input.
40485         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
40486         (inputs): Add new input.
40487         (results_g): Add expected results.
40488         (flag_results): Likewise.
40489         (locale_results): Likewise.
40490         (compare_strings): Check those.
40491
40492 2009-08-23  Bruno Haible  <bruno@clisp.org>
40493
40494         Tests for module 'dup3'.
40495         * modules/dup3-tests: New file.
40496         * tests/test-dup3.c: New file.
40497
40498         New module 'dup3'.
40499         * lib/unistd.in.h (dup3): New declaration.
40500         * lib/dup3.c: New file.
40501         * m4/dup3.m4: New file.
40502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
40503         HAVE_DUP3.
40504         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
40505         * modules/dup3: New file.
40506         * doc/glibc-functions/dup3.texi: Mention the new module.
40507
40508 2009-08-23  Bruno Haible  <bruno@clisp.org>
40509
40510         Tweak the dup2 test.
40511         * tests/test-dup2.c (main): Create the test file empty. Verify that an
40512         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
40513         the test file is still empty. Fix argument order of lseek.
40514
40515 2009-08-23  Bruno Haible  <bruno@clisp.org>
40516
40517         Avoid test link errors when the modules getopt-gnu, gettext are used.
40518         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
40519         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40520
40521 2009-08-23  Bruno Haible  <bruno@clisp.org>
40522
40523         Fix getdtablesize() on mingw.
40524         * lib/getdtablesize.c (getdtablesize): Implement differently.
40525         * lib/unistd.in.h (getdtablesize): Improve comment.
40526
40527 2009-08-23  Bruno Haible  <bruno@clisp.org>
40528
40529         New module 'mkostemp'.
40530         Based on Ulrich Drepper's 2007-08-10 change in glibc.
40531         * lib/stdlib.in.h (mksotemp): New declaration.
40532         * lib/mkostemp.c: New file, from glibc with modifications.
40533         * lib/tempname.h (GT_FILE): Remove outdated comment.
40534         (gen_tempname): Add flags argument.
40535         * lib/tempname.c (__GT_BIGFILE): Remove macro.
40536         (__GT_FILE): Map to 1.
40537         (small_open, large_open): Remove macros.
40538         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
40539         * lib/mkstemp.c (mkstemp): Update.
40540         * lib/mkdtemp.c (mkdtemp): Likewise.
40541         * m4/mkostemp.m4: New file.
40542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
40543         HAVE_MKOSTEMP.
40544         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
40545         HAVE_MKOSTEMP.
40546         * modules/mkostemp: New file, based on modules/mkstemp.
40547         * doc/glibc-functions/mkostemp.texi: Mention the new module.
40548         * NEWS: Mention the change.
40549
40550 2009-08-23  Bruno Haible  <bruno@clisp.org>
40551
40552         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
40553         Reported by Eric Blake.
40554
40555 2009-08-23  Bruno Haible  <bruno@clisp.org>
40556
40557         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
40558         Reported by Eric Blake.
40559
40560 2009-08-23  Bruno Haible  <bruno@clisp.org>
40561
40562         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
40563         * modules/pipe2 (Depends-on): Likewise.
40564
40565 2009-08-23  Eric Blake  <ebb9@byu.net>
40566
40567         fcntl-h: add O_TTY_INIT support
40568         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
40569         * tests/test-fcntl-h.c (o): Test it.
40570         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40571
40572         fcntl-h: rename from fcntl, in preparation for fcntl(2)
40573         * modules/fcntl: Move <fcntl.h> header replacement...
40574         * modules/fcntl-h: ...to new name, so as not to collide with
40575         like-named function.
40576         * tests/test-fcntl.c: Rename...
40577         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
40578         * modules/fcntl-tests: Rename...
40579         * modules/fcntl-h-tests: ...to this.  Update test file name.
40580         * modules/chdir-long (Depends-on): Update clients.
40581         * modules/chdir-safer (Depends-on): Likewise.
40582         * modules/fcntl-safer (Depends-on): Likewise.
40583         * modules/fts (Depends-on): Likewise.
40584         * modules/mkancesdirs (Depends-on): Likewise.
40585         * modules/mkdir-p (Depends-on): Likewise.
40586         * modules/open (Depends-on): Likewise.
40587         * modules/savewd (Depends-on): Likewise.
40588         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
40589         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40590
40591 2009-08-22  Bruno Haible  <bruno@clisp.org>
40592
40593         * modules/binary-io (License): Relicense under LGPL.
40594         * modules/pipe2 (License): Likewise.
40595
40596 2009-08-22  Bruno Haible  <bruno@clisp.org>
40597
40598         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
40599         return value.
40600         * lib/pipe-filter-gi.c (filter_init): Likewise.
40601         Reported by Eric Blake.
40602
40603 2009-08-22  Bruno Haible  <bruno@clisp.org>
40604
40605         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
40606         * modules/pipe (Depends-on): Add pipe2.
40607
40608 2009-08-22  Bruno Haible  <bruno@clisp.org>
40609
40610         Tests for module 'pipe2'.
40611         * modules/pipe2-tests: New file.
40612         * tests/test-pipe2.c: New file.
40613
40614         New module 'pipe2'.
40615         * lib/unistd.in.h (pipe2): New declaration.
40616         * lib/pipe2.c: New file.
40617         * m4/pipe2.m4: New file.
40618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
40619         HAVE_PIPE2.
40620         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
40621         * modules/pipe2: New file.
40622         * doc/glibc-functions/pipe2.texi: Mention the new module.
40623
40624 2009-08-22  Bruno Haible  <bruno@clisp.org>
40625
40626         Reference some new glibc functions.
40627         * doc/glibc-functions/accept4.texi: New file.
40628         * doc/glibc-functions/dup3.texi: New file.
40629         * doc/glibc-functions/mkostemp.texi: New file.
40630         * doc/glibc-functions/pipe2.texi: New file.
40631         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
40632         (Glibc sys/socket.h): Refer to accept4.
40633         (Glibc unistd.h): Refer to dup3, pipe2.
40634         Reported by Eric Blake.
40635
40636 2009-08-22  Jim Meyering  <meyering@redhat.com>
40637             Bruno Haible  <bruno@clisp.org>
40638
40639         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
40640         This makes it so packages using automake-1.11's silent-rules option
40641         can print e.g., a single "GEN    configmake.h" line, rather than
40642         the 30+ statements that perform the job.  If you want to see the
40643         actual commands, you can still run "make V=1".
40644         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
40645         so that make output is abbreviated when those variables are defined
40646         appropriately.
40647         * modules/argz: Likewise.
40648         * modules/arpa_inet: Likewise.
40649         * modules/byteswap: Likewise.
40650         * modules/configmake: Likewise.
40651         * modules/dirent: Likewise.
40652         * modules/errno: Likewise.
40653         * modules/fcntl: Likewise.
40654         * modules/float: Likewise.
40655         * modules/fnmatch: Likewise.
40656         * modules/getopt-posix: Likewise.
40657         * modules/glob: Likewise.
40658         * modules/iconv_open: Likewise.
40659         * modules/inttypes: Likewise.
40660         * modules/localcharset: Likewise.
40661         * modules/locale: Likewise.
40662         * modules/math: Likewise.
40663         * modules/netdb: Likewise.
40664         * modules/netinet_in: Likewise.
40665         * modules/poll: Likewise.
40666         * modules/posix_spawnp-tests: Likewise.
40667         * modules/sched: Likewise.
40668         * modules/search: Likewise.
40669         * modules/selinux-h: Likewise.
40670         * modules/signal: Likewise.
40671         * modules/spawn: Likewise.
40672         * modules/stdarg: Likewise.
40673         * modules/stdbool: Likewise.
40674         * modules/stddef: Likewise.
40675         * modules/stdint: Likewise.
40676         * modules/stdio: Likewise.
40677         * modules/stdlib: Likewise.
40678         * modules/string: Likewise.
40679         * modules/strings: Likewise.
40680         * modules/sys_file: Likewise.
40681         * modules/sys_ioctl: Likewise.
40682         * modules/sys_select: Likewise.
40683         * modules/sys_socket: Likewise.
40684         * modules/sys_stat: Likewise.
40685         * modules/sys_time: Likewise.
40686         * modules/sys_times: Likewise.
40687         * modules/sys_utsname: Likewise.
40688         * modules/sys_wait: Likewise.
40689         * modules/sysexits: Likewise.
40690         * modules/time: Likewise.
40691         * modules/unistd: Likewise.
40692         * modules/wchar: Likewise.
40693         * modules/wctype: Likewise.
40694
40695 2009-08-22  Jim Meyering  <meyering@redhat.com>
40696
40697         announce-gen: detect write failure
40698         * build-aux/announce-gen: Add Coda at end.
40699         Remove equivalent-but-more-verbose block at top.
40700
40701 2009-08-19  Akim Demaille  <demaille@gostai.com>
40702
40703         bootstrap: --help to stdout.
40704         * bootstrap (usage): Don't send --help to stderr.
40705         Use a here doc instead of a long string.
40706
40707 2009-08-21  Eric Blake  <ebb9@byu.net>
40708
40709         test-popen-safer: split from test-popen
40710         * tests/test-popen.c (main): Move...
40711         * tests/test-popen.h: ...into new file.
40712         * tests/test-popen-safer2.c: New file.
40713         * modules/popen-tests (Files): Add test-popen.h.
40714         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
40715         Suggested by Bruno Haible.
40716
40717         test-fcntl-safer: split from test-open
40718         * tests/test-open.c (main): Move...
40719         * tests/test-open.h: ...into new file.
40720         * tests/test-fcntl-safer.c: New file.
40721         * modules/open-tests (Files): Add test-open.h.
40722         * modules/fcntl-safer-tests: New file.
40723         Suggested by Bruno Haible.
40724
40725         test-fopen-safer: split from test-fopen
40726         * tests/test-fopen.c (main): Move...
40727         * tests/test-fopen.h: ...into new file.
40728         * tests/test-fopen-safer.c: New file.
40729         * modules/fopen-tests (Files): Add test-fopen.h.
40730         * modules/fopen-safer-tests: New file.
40731         Suggested by Bruno Haible.
40732
40733 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
40734
40735         popen-safer: test O_CLOEXEC at run-time.
40736         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
40737
40738 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
40739
40740         fcntl: move more flags to the header
40741         * lib/cloexec.c: Do not define FD_CLOEXEC here.
40742         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
40743         * lib/fcntl.in.h: Do both things here.
40744
40745 2009-08-21  Jim Meyering  <meyering@redhat.com>
40746
40747         consistently remove $@-t before redirecting to it
40748         * modules/argz: Remove $@-t and $@ before redirecting to the former.
40749         * modules/alloca-opt: Likewise.
40750         * modules/byteswap: Likewise.
40751         * modules/fnmatch: Likewise.
40752         * modules/getopt-posix: Likewise.
40753         * modules/glob: Likewise.
40754         * modules/poll: Likewise.
40755         * modules/posix_spawnp-tests: Likewise.
40756         * modules/sys_socket: Likewise.
40757         * modules/sysexits: Likewise.
40758
40759 2009-08-21  Eric Blake  <ebb9@byu.net>
40760
40761         popen: simplify access to original popen
40762         * lib/popen.c (rpl_popen): No need to worry about popen being a
40763         macro.
40764         Reported by Bruno Haible.
40765
40766 2009-08-20  Eric Blake  <ebb9@byu.net>
40767
40768         build: avoid some compiler warnings
40769         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
40770         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
40771         type.
40772         (new_exclude_segment, excluded_file_pattern_p)
40773         (excluded_file_name_p): Reduce scope.
40774         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
40775         old-style declaration.
40776
40777 2009-08-20  Simon Josefsson  <simon@josefsson.org>
40778
40779         * tests/test-exclude1.sh: Handle Windows EOL.
40780         * tests/test-exclude2.sh: Likewise.
40781         * tests/test-exclude3.sh: Likewise.
40782         * tests/test-exclude4.sh: Likewise.
40783         * tests/test-exclude5.sh: Likewise.
40784         * tests/test-exclude6.sh: Likewise.
40785         * tests/test-exclude7.sh: Likewise.
40786
40787 2009-08-19  Akim Demaille  <demaille@gostai.com>
40788
40789         bootstrap: find sha1sum when named gsha1sum.
40790         * bootstrap (find_tool): New.
40791         ($SHA1SUM): New.
40792         Use it.
40793
40794 2009-08-20  Jim Meyering  <meyering@redhat.com>
40795
40796         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
40797         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
40798         expression that converts "." in a file name to "\." in the resulting
40799         regexp.  Start with a dummy statement, so that prior shell variable
40800         definitions are expanded portably.  Reported by Simon Josefsson.
40801
40802 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
40803
40804         Fix polling for writeability of a screen buffer.
40805         * lib/poll.c: Distinguish input and screen buffers for the
40806         Win32 implementation.
40807         * lib/select.c: Likewise.
40808
40809 2009-08-19  Eric Blake  <ebb9@byu.net>
40810
40811         popen-safer: prevent popen from clobbering std descriptors
40812         * modules/popen-safer: New file.
40813         * lib/popen-safer.c: Likewise.
40814         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
40815         * lib/stdio--.h (popen): Provide override.
40816         * lib/stdio-safer.h (popen_safer): Provide declaration.
40817         * tests/test-popen.c (includes): Partially test this.
40818         * modules/popen-safer-tests: New file, for more tests.
40819         * tests/test-popen-safer.c: Likewise.
40820         * MODULES.html.sh (file stream based Input/Output): Mention it.
40821
40822         tests: test some of the *-safer modules
40823         * modules/fopen-safer (Depends-on): Add fopen.
40824         * modules/fcntl-safer (Depends-on): Add fcntl.
40825         * modules/stdlib-safer (Depends-on): Add stdlib.
40826         (configure.ac): Set indicator.
40827         * modules/unistd-safer (configure.ac): Likewise.
40828         * modules/tmpfile-safer (configure.ac): Likewise.
40829         (Depends-on): Add tmpfile.
40830         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
40831         active.
40832         * tests/test-fopen.c (includes): Test safer versions when they are
40833         in use.
40834         * tests/test-open.c (includes): Likewise.
40835
40836         popen: fix cygwin 1.5 bug when stdin closed
40837         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
40838         * modules/popen: New file.
40839         * modules/popen-tests: Likewise.
40840         * tests/test-popen.c: Likewise.
40841         * m4/popen.m4: Likewise.
40842         * lib/popen.c: Likewise.
40843         * lib/stdio.in.h (popen): New declaration.
40844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
40845         * modules/stdio (Makefile.am): Likewise.
40846         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
40847
40848 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
40849
40850         maint.mk: give full control over update-copyright exclusions
40851         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
40852         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
40853         (update-copyright): Don't force inclusion of top-level
40854         ChangeLog.  Don't force exclusion of all COPYING files, but make
40855         them the default exclusion instead.
40856
40857 2009-08-16  Bruno Haible  <bruno@clisp.org>
40858
40859         Fix test failures on Solaris 10.
40860         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
40861         tests when Solaris iconv() is used.
40862         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
40863         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
40864         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
40865         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
40866         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
40867
40868 2009-08-16  Bruno Haible  <bruno@clisp.org>
40869
40870         Fix test failures on Solaris 10.
40871         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
40872         'tr' program and pass it as first argument.
40873         * tests/test-pipe-filter-gi1.sh: Likewise.
40874         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
40875         program as first argument.
40876         * tests/test-pipe-filter-gi1.c (main): Likewise.
40877
40878 2009-08-16  Eric Blake  <ebb9@byu.net>
40879
40880         fpurge: fix previous commits
40881         * modules/fpurge (Makefile.am): Make replacement conditional,
40882         partially reverting 2007-04-29 change; missed in previous
40883         attempt.
40884         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
40885         is missing.
40886
40887 2009-08-16  Bruno Haible  <bruno@clisp.org>
40888
40889         Clarify fpurge's effect on the file position.
40890         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
40891         * tests/test-fpurge.c (main): Make a second pass for checking the file
40892         position.
40893
40894 2009-08-16  Bruno Haible  <bruno@clisp.org>
40895
40896         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
40897         declaration of fpurge is missing.
40898         * tests/test-fpurge.c (main): Check that the file has not more contents
40899         than expected. Close the file before removing it.
40900
40901 2009-08-15  Eric Blake  <ebb9@byu.net>
40902
40903         fpurge: don't wrap working cygwin implementation
40904         * lib/fpurge.c (fpurge): Fix comment typo.
40905         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
40906         1.7 to avoid replacement.
40907         * tests/test-fpurge.c (main): Enhance test.
40908
40909 2009-08-15  Eric Blake  <ebb9@byu.net>
40910         and Jim Meyering  <meyering@redhat.com>
40911
40912         test-update-copyright: skip if perl is insufficient
40913         * tests/test-update-copyright.sh: Failure to run maintainer tool
40914         should not cause testsuite failure on cygwin 1.5.
40915
40916 2009-08-14  Eric Blake  <ebb9@byu.net>
40917
40918         doc: mention more functions added in cygwin 1.7.0
40919         * doc/posix-headers/limits.texi (limits.h): Update for recent
40920         cygwin additions.
40921         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
40922         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
40923         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
40924         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
40925         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
40926
40927 2009-08-14  Eric Blake  <ebb9@byu.net>
40928
40929         maint.mk: simplify update-copyright rule
40930         * top/maint.mk (update-copyright-local): Delete, and document how
40931         to do it in cfg.mk instead.
40932         (update-copyright-exclude-regexp): Delete, and document how to do
40933         it in .x-update-copyright instead.
40934         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
40935         exclude ChangeLog.
40936
40937 2009-08-14  Bruno Haible  <bruno@clisp.org>
40938
40939         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
40940
40941 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
40942
40943         maint.mk: support update-copyright-env
40944         * top/maint.mk (update-copyright-env): Define place-holder.
40945         (update-copyright): Expand $(update-copyright-env) before
40946         invoking update-copyright.
40947
40948 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
40949
40950         update-copyright: implement forced reformatting
40951         * build-aux/update-copyright: Implement and document
40952         UPDATE_COPYRIGHT_FORCE.
40953         * tests/test-update-copyright.sh: Test it.
40954
40955 2009-08-14  Eric Blake  <ebb9@byu.net>
40956         and Bruno Haible  <bruno@clisp.org>
40957
40958         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
40959         * tests/test-locale.c: Revert previous patch related to NULL.
40960         * tests/test-stdio.c: Likewise.
40961         * tests/test-stdlib.c: Likewise.
40962         * tests/test-string.c: Likewise.
40963         * tests/test-unistd.c: Likewise.
40964         * modules/time-tests (Depends-on): Add verify.
40965         * modules/wchar-tests (Depends-on): Likewise.
40966         * tests/test-time.c: Test for NULL compliance.
40967         * tests/test-wchar.c: Likewise.
40968         * modules/locale (Depends-on): Add stddef.
40969         * modules/stdio (Depends-on): Likewise.
40970         * modules/stdlib (Depends-on): Likewise.
40971         * modules/string (Depends-on): Likewise.
40972         * modules/time (Depends-on): Likewise.
40973         * modules/unistd (Depends-on): Likewise.
40974         * modules/wchar (Depends-on): Likewise.
40975         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
40976         * lib/stdlib.in.h (includes): Likewise.
40977         * lib/string.in.h (includes): Likewise.
40978         * lib/time.in.h (includes): Likewise.
40979         * lib/unistd.in.h (includes): Likewise.
40980         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
40981         replaced.
40982         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40983         * m4/stddef_h.m4: New file.
40984         * modules/stddef: Likewise.
40985         * lib/stddef.in.h: Likewise.
40986         * modules/stddef-tests: Likewise.
40987         * tests/test-stddef.c: Likewise.
40988         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
40989         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
40990         * doc/posix-headers/locale.texi (locale.h): Likewise.
40991         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
40992         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
40993         * doc/posix-headers/string.texi (string.h): Likewise.
40994         * doc/posix-headers/time.texi (time.h): Likewise.
40995         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
40996         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
40997
40998 2009-08-14  Eric Blake  <ebb9@byu.net>
40999
41000         doc: improve git diff of texinfo files
41001         * .gitattributes: Add rule for *.texi files, with hint on how to
41002         use it.
41003         Copied from m4, and based on a report by Bruno Haible.
41004
41005 2009-08-14  Bruno Haible  <bruno@clisp.org>
41006
41007         Disable multithread support by default on Cygwin 1.5.x for real.
41008         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
41009
41010 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41011
41012         update-copyright: much ado about intervals
41013         * build-aux/update-copyright: Implement and document
41014         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
41015         of copyright year intervals.
41016         Also, document UPDATE_COPYRIGHT_YEAR.
41017         * tests/test-update-copyright.sh: Test it.
41018
41019         update-copyright: convert 2-digit to 4-digit years
41020         * build-aux/update-copyright: Implement and document.
41021         * tests/test-update-copyright.sh: Update.
41022
41023 2009-08-14  Jim Meyering  <meyering@redhat.com>
41024
41025         test-exclude: avoid coreutils "make check" failure
41026         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
41027         just as in test-argmatch.c.
41028
41029 2009-08-13  Eric Blake  <ebb9@byu.net>
41030
41031         test-dup2: fix bad assumption
41032         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
41033         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
41034
41035         test-version-etc: fix CRLF portability issue
41036         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
41037         recognize \r.
41038         * tests/test-argp-version-etc-1.sh: Likewise.
41039
41040         getopt: update client modules
41041         * modules/argp (Depends-on): Use getopt-gnu.
41042         * modules/git-merge-changelog (Depends-on): Likewise.
41043         * modules/long-options (Depends-on): Likewise.
41044         * modules/xstrtol (Depends-on): Likewise.
41045
41046 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41047
41048         * tests/test-version-etc.sh: Don't fail on different
41049         project/version.  Don't fail on CRLF differences.  Rewrite to use
41050         multiple -e instead of multiple sed forks, suggested by Eric Blake
41051         <ebb9@byu.net>.
41052         * tests/test-argp-version-etc-1.sh: Likewise.
41053
41054 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41055
41056         * tests/test-version-etc.sh: Don't fail on different
41057         project/version.
41058
41059 2009-08-12  Bruno Haible  <bruno@clisp.org>
41060
41061         Tests for modules 'getopt-posix', 'getopt-gnu'.
41062         * modules/getopt-posix-tests: New file.
41063         * tests/test-getopt.c: New file.
41064         * tests/test-getopt.h: New file.
41065         * tests/test-getopt_long.h: New file.
41066
41067         New modules 'getopt-posix', 'getopt-gnu'.
41068         * modules/getopt-gnu: New file, renamed from modules/getopt.
41069         * modules/getopt-posix: New file.
41070         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
41071         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
41072         (gl_GETOPT): Remove macro.
41073         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
41074         Disable the test against BSD systems that declare optreset. Test
41075         against mingw bug. Test against lack of support of optional arguments
41076         on many platforms.
41077         * doc/glibc-headers/getopt.texi: Update module name and list of
41078         relevant platforms.
41079         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
41080         'getopt-gnu' and more portability problems.
41081         * NEWS: Mention the changes.
41082
41083 2009-08-12  Bruno Haible  <bruno@clisp.org>
41084
41085         Ensure that optarg etc. get declared by <unistd.h>.
41086         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
41087         AC_USE_SYSTEM_EXTENSIONS.
41088         * modules/getopt (Depends-on): Add 'extensions'.
41089
41090 2009-08-12  Bruno Haible  <bruno@clisp.org>
41091
41092         Avoid test link errors.
41093         * modules/pipe-filter-ii-tests (Makefile.am): Define
41094         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
41095         * modules/pipe-filter-gi-tests (Makefile.am): Define
41096         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
41097         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41098
41099 2009-08-12  Bruno Haible  <bruno@clisp.org>
41100
41101         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
41102         gl_GETOPT_SUBSTITUTE before.
41103         (gl_GETOPT): Use it.
41104         * m4/argp.m4 (gl_ARGP): Update.
41105         Reported by Sergey Poznyakoff.
41106
41107         * m4/getopt.m4: Reorder macros.
41108         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
41109         (gl_GETOPT_SUBSTITUTE): Remove macro.
41110
41111 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41112
41113         Minor improvement in gitlog-to-changelog
41114
41115         * build-aux/gitlog-to-changelog: New option `--format' makes
41116         output format string configurable.
41117
41118 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41119
41120         Optimize exclude: use hash tables for non-wildcard patterns.
41121
41122         * lib/exclude.c: Include hash.h and mbuiter.h
41123         (struct exclude_pattern, exclude_segment): New data types.
41124         (struct exclude): Rewrite.
41125         (fnmatch_pattern_has_wildcards): New function.
41126         (new_exclude_segment, free_exclude_segment): New functions.
41127         (excluded_file_pattern_p, excluded_file_name_p): New functions.
41128         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
41129         * lib/exclude.h (is_fnmatch_pattern): New prototype.
41130         * modules/exclude: Depend on hash and mbuiter.
41131
41132         * modules/exclude-tests: New file.
41133         * tests/test-exclude.c: New file.
41134         * tests/test-exclude1.sh: New file.
41135         * tests/test-exclude2.sh: New file.
41136         * tests/test-exclude3.sh: New file.
41137         * tests/test-exclude4.sh: New file.
41138         * tests/test-exclude5.sh: New file.
41139         * tests/test-exclude6.sh: New file.
41140         * tests/test-exclude7.sh: New file.
41141
41142 2009-08-12  Bruno Haible  <bruno@clisp.org>
41143
41144         Ensure that getopt() gets declared by <unistd.h>.
41145         * lib/unistd.in.h: Conditionally include getopt.h.
41146         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
41147         Set GNULIB_UNISTD_H_GETOPT.
41148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41149         GNULIB_UNISTD_H_GETOPT.
41150         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
41151
41152 2009-08-12  Bruno Haible  <bruno@clisp.org>
41153
41154         Clarify logic.
41155         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
41156         gl_replace_getopt instead of GETOPT_H.
41157
41158 2009-08-12  Bruno Haible  <bruno@clisp.org>
41159
41160         * m4/getopt.m4: Add comments.
41161
41162 2009-08-12  Bruno Haible  <bruno@clisp.org>
41163
41164         Disable multithread support by default on Cygwin 1.5.x.
41165         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
41166         set gl_use_threads=no if not specified otherwise.
41167
41168 2009-08-11  Bruno Haible  <bruno@clisp.org>
41169
41170         Avoid compilation error on NetBSD 5.0.
41171         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
41172         * tests/test-stdio.c: Likewise.
41173         * tests/test-stdlib.c: Likewise.
41174         * tests/test-string.c: Likewise.
41175         * tests/test-unistd.c: Likewise.
41176         Reported by Greg Troxel <gdt@ir.bbn.com>
41177         at <https://savannah.gnu.org/support/?106973>.
41178
41179 2009-08-11  Bruno Haible  <bruno@clisp.org>
41180
41181         * modules/dup2-tests (Depends-on): Remove close.
41182
41183         Undo 2009-07-19 commit.
41184         * modules/acl-tests (Depends-on): Remove close.
41185         * modules/binary-io-tests (Depends-on): Likewise.
41186         * modules/closein-tests (Depends-on): Likewise.
41187         * modules/flock-tests (Depends-on): Likewise.
41188         * modules/fsync-tests (Depends-on): Likewise.
41189         * modules/lseek-tests (Depends-on): Likewise.
41190         * modules/pipe-tests (Depends-on): Likewise.
41191         * modules/posix_spawn-tests (Depends-on): Likewise.
41192         * modules/posix_spawnp-tests (Depends-on): Likewise.
41193         * modules/stat-time-tests (Depends-on): Likewise.
41194         * modules/yesno-tests (Depends-on): Likewise.
41195
41196 2009-08-10  Bruno Haible  <bruno@clisp.org>
41197
41198         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
41199
41200 2009-08-10  Bruno Haible  <bruno@clisp.org>
41201
41202         Fix a gcc warning.
41203         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
41204
41205 2009-08-10  Bruno Haible  <bruno@clisp.org>
41206
41207         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
41208         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
41209         not only the first time.
41210         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
41211         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
41212         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
41213         is 1, not only the the first time.
41214
41215 2009-08-10  Bruno Haible  <bruno@clisp.org>
41216
41217         Make it possible to use module 'gethostname' without module 'close'.
41218         * lib/unistd.in.h (close): Evoke a link error only if
41219         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41221         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41222         * modules/unistd (Makefile.am): Substitute
41223         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41224         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
41225         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41226         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
41227         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41228         * modules/sys_ioctl (Makefile.am): Substitute
41229         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41230         * modules/socket (configure.ac): On native Windows, set
41231         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
41232         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41233         Reported by Sam Steingold <sds@gnu.org>.
41234
41235 2009-08-10  Bruno Haible  <bruno@clisp.org>
41236
41237         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
41238         * modules/ioctl (configure.ac): Likewise.
41239
41240 2009-08-10  Bruno Haible  <bruno@clisp.org>
41241
41242         Avoid collision between gnulib wrapper and libintl wrapper.
41243         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
41244         already defined in intl/printf.c.
41245         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
41246         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
41247
41248 2009-08-09  Bruno Haible  <bruno@clisp.org>
41249
41250         Make <sys/select.h> really self-contained, also on Solaris 10.
41251         * lib/sys_select.in.h: Include <string.h>.
41252         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
41253         Solaris 10 problem.
41254         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
41255         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
41256         Reported by Jim Meyering.
41257
41258 2009-08-09  Bruno Haible  <bruno@clisp.org>
41259
41260         Avoid warnings from 'aclocal' that are due to a use of macro name
41261         AM_XGETTEXT_OPTION that is not defined in automake.
41262         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
41263         automake.
41264         * modules/error (configure.ac): Likewise.
41265         * modules/propername (configure.ac): Likewise.
41266         * modules/vasprintf (configure.ac): Likewise.
41267         * modules/verror (configure.ac): Likewise.
41268         * modules/xprintf (configure.ac): Likewise.
41269         * modules/xvasprintf (configure.ac): Likewise.
41270
41271 2009-08-08  Bruno Haible  <bruno@clisp.org>
41272
41273         Avoid compilation error in C++ mode.
41274         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
41275         Reported by Sam Steingold <sds@gnu.org>.
41276
41277 2009-08-08  Bruno Haible  <bruno@clisp.org>
41278
41279         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
41280         for the various Unix platforms.
41281         * doc/posix-headers/limits.texi: Update platforms list regarding
41282         HOST_NAME_MAX.
41283         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41284
41285 2009-08-07  Jim Meyering  <meyering@redhat.com>
41286
41287         selinux-at: fix typo in a comment
41288         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
41289         Spotted by Paolo Bonzini.
41290
41291         selinux-at: remove redundant m4 code, add documentation
41292         * modules/selinux-at (configure.ac): Remove redundant code.
41293         LIB_SELINUX is already set via the dependent module, selinux-h.
41294         (Include): Add quotes around selinux-at.h.
41295         * lib/selinux-at.h: Add documentation.
41296         Reported by Bruno Haible in
41297         http://marc.info/?l=gnulib-bug&m=124958988300749
41298
41299 2009-08-07  Bruno Haible  <bruno@clisp.org>
41300
41301         Avoid link error on MacOS X 10.3 and 10.4.
41302         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
41303         on non-ELF systems.
41304         * lib/argp-pv.c (argp_program_version): Likewise.
41305         Reported by Simon Josefsson.
41306
41307 2009-08-07  Simon Josefsson  <simon@josefsson.org>
41308
41309         * tests/test-version-etc.sh: Use $EXEEXT.
41310
41311 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
41312
41313         update-copyright: update documentation to point to maint.mk
41314         * build-aux/update-copyright: Here.
41315
41316 2009-08-06  Jim Meyering  <meyering@redhat.com>
41317
41318         maint.mk: support update-copyright-local
41319         * top/maint.mk (update-copyright-local): Define place-holder.
41320         (update-copyright): Depend on $(update-copyright-local).
41321
41322 2009-08-06  Jim Meyering  <meyering@redhat.com>
41323
41324         selinux-at: new module
41325         Initially written for coreutils, this module will soon be
41326         used by findutils, too.
41327         * MODULES.html.sh [Misc]: Add selinux-at.
41328         * lib/selinux-at.h: New file, from coreutils.
41329         * lib/selinux-at.c: Likewise.
41330         * modules/selinux-at: Likewise.
41331         (License): Change from LGPL to GPL, since it depends
41332         on the GPL'd openat module.
41333
41334         doc: update README
41335         * README: Remove references to cogito.
41336         Remove cvs-repo-updating instructions from 2007.
41337         Don't imply that CVS is better if you have limited disk space.
41338
41339 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41340
41341         update-copyright: support C-style comments
41342         * build-aux/update-copyright: Implement and document.
41343         * tests/test-update-copyright.sh: Test.
41344
41345 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41346
41347         update-copyright: support omitted "(C)"
41348         * build-aux/update-copyright: Implement and document.  Also,
41349         allow variable whitespace before "(C)".
41350         * tests/test-update-copyright.sh: Test.
41351
41352 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41353
41354         update-copyright: don't trip on non-FSF copyright statements
41355         * build-aux/update-copyright: Fix so that the first correctly
41356         formatted FSF copyright statement is recognized no matter what
41357         appears before it.  Update documentation.
41358         * tests/test-update-copyright.sh: Test that.
41359
41360 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41361
41362         update-copyright: clean up code a little
41363         * build-aux/update-copyright: Append "_re" to the name of any
41364         variable holding a regular expression.
41365         Replace "old" and "new" with "stmt" in variable names.
41366         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
41367         handled correctly.
41368         Format code more consistently.
41369
41370 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41371
41372         update-copyright-tests: improve portability
41373         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
41374         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
41375
41376 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
41377
41378         update-copyright: support @copyright{} and &copy;
41379         * build-aux/update-copyright: Implement and document.
41380         * tests/test-update-copyright.sh: Test.
41381
41382 2009-08-04  Jim Meyering  <meyering@redhat.com>
41383
41384         update-copyright-tests: correctly test EOL=\r\n handling
41385         * tests/test-update-copyright.sh: Put \r at the end of some lines
41386         for the dos-eol tests.  Based on a patch by Joel E. Denny.
41387
41388         maint.mk: make update-copyright exclusion list more configurable
41389         * top/maint.mk (update-copyright): Default to excluding COPYING,
41390         but allow an override, in case someone does want to update that file.
41391
41392         maint.mk: don't update copyright date in COPYING
41393         * top/maint.mk (update-copyright): Exclude COPYING.
41394
41395         maint.mk: add a copyright-updating rule
41396         * top/maint.mk (update-copyright): New rule.
41397         Derived from coreutils/Makefile.am.
41398
41399         update-copyright: rename some variables
41400         * build-aux/update-copyright: Rename a few variables for clarity.
41401         Tweak syntax.  List Joel E. Denny as coauthor.
41402
41403 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
41404
41405         update-copyright: fix bug for 2-digit last year and add tests
41406         * build-aux/update-copyright: Fix bug.
41407         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
41408         specified.
41409         * modules/update-copyright-tests: New
41410         * tests/test-update-copyright.sh: New.
41411
41412 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
41413
41414         update-copyright: handle leading tabs in line prefix
41415         * build-aux/update-copyright: Count leading tabs as 8 spaces
41416         when computing margin.  This helps with the formatting of
41417         ChangeLogs, for example.
41418         Fix documentation a little.
41419
41420 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
41421
41422         update-copyright: support EOL=\r\n
41423         * build-aux/update-copyright: Implement that.
41424
41425 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
41426
41427         update-copyright: automatically format copyright statements
41428         * build-aux/update-copyright: Implement that.
41429         Also, be a little more predictable and safer by always failing
41430         when the full copyright format is not perfectly recognized as an
41431         unbroken whole.  Discussed at
41432         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
41433         Rewrite documentation.
41434
41435 2009-08-03  Bruno Haible  <bruno@clisp.org>
41436
41437         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
41438
41439 2009-08-02  Bruno Haible  <bruno@clisp.org>
41440
41441         Tests for module 'uname'.
41442         * modules/uname-tests: New file.
41443         * tests/test-uname.c: New file.
41444
41445         New module 'uname'.
41446         * lib/uname.c: New file.
41447         * m4/uname.m4: New file.
41448         * modules/uname: New file.
41449         * doc/posix-functions/uname.texi: Mention the new module.
41450
41451 2009-08-02  Bruno Haible  <bruno@clisp.org>
41452
41453         Tests for module 'sys_utsname'.
41454         * modules/sys_utsname-tests: New file.
41455         * tests/test-sys_utsname.c: New file.
41456
41457         New module 'sys_utsname'.
41458         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
41459         * m4/sys_utsname_h.m4: New file.
41460         * modules/sys_utsname: New file.
41461         * doc/posix-headers/sys_utsname.texi: Mention the new module.
41462
41463 2009-08-02  Bruno Haible  <bruno@clisp.org>
41464
41465         Implicitly initialize the sockets library.
41466         * lib/gethostname.c: Include sockets.h.
41467         (rpl_gethostname): Invoke gl_sockets_startup.
41468         * lib/socket.c: Include sockets.h.
41469         (rpl_socket): Invoke gl_sockets_startup.
41470         * modules/gethostname (Depends-on): Add sockets.
41471         * modules/socket (Depends-on): Likewise.
41472         * tests/test-poll.c: Don't include sockets.h.
41473         (main): Don't invoke gl_sockets_startup.
41474         * tests/test-select.c: Don't include sockets.h.
41475         (main): Don't invoke gl_sockets_startup.
41476
41477 2009-08-02  Bruno Haible  <bruno@clisp.org>
41478
41479         Allow multiple calls to gl_sockets_startup.
41480         * lib/sockets.c (initialized_sockets_version): New variable.
41481         (gl_sockets_startup): Do nothing if already called for this or a higher
41482         version.
41483         (gl_sockets_cleanup): Reset initialized_sockets_version.
41484
41485 2009-08-03  Simon Josefsson  <simon@josefsson.org>
41486
41487         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
41488         different project/version.
41489
41490 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
41491             Bruno Haible  <bruno@clisp.org>
41492
41493         Tests for module 'pipe-filter-gi'.
41494         * modules/pipe-filter-gi-tests: New file.
41495         * tests/test-pipe-filter-gi1.sh: New file.
41496         * tests/test-pipe-filter-gi1.c: New file.
41497         * tests/test-pipe-filter-gi2.sh: New file.
41498         * tests/test-pipe-filter-gi2-main.c: New file.
41499         * tests/test-pipe-filter-gi2-child.c: New file.
41500
41501         New module 'pipe-filter-gi'.
41502         * lib/pipe-filter-gi.c: New file.
41503         * modules/pipe-filter-gi: New file.
41504
41505 2009-08-02  Bruno Haible  <bruno@clisp.org>
41506             Paolo Bonzini  <bonzini@gnu.org>
41507
41508         Tests for module 'pipe-filter-ii'.
41509         * modules/pipe-filter-ii-tests: New file.
41510         * tests/test-pipe-filter-ii1.sh: New file.
41511         * tests/test-pipe-filter-ii1.c: New file.
41512         * tests/test-pipe-filter-ii2.sh: New file.
41513         * tests/test-pipe-filter-ii2-main.c: New file.
41514         * tests/test-pipe-filter-ii2-child.c: New file.
41515
41516         New module 'pipe-filter-ii'.
41517         * lib/pipe-filter.h: New file.
41518         * lib/pipe-filter-ii.c: New file.
41519         * lib/pipe-filter-aux.h: New file.
41520         * modules/pipe-filter-ii: New file.
41521
41522 2009-08-02  Simon Josefsson  <simon@josefsson.org>
41523
41524         * lib/gc-libgcrypt.c: Change copyright to FSF.
41525         * lib/gc-gnulib.c: Likewise.
41526
41527 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
41528
41529         * lib/gethostname.c: Include limits.h.
41530
41531 2009-08-02  Simon Josefsson  <simon@josefsson.org>
41532             Bruno Haible  <bruno@clisp.org>
41533
41534         Ensure HOST_NAME_MAX as part of the gethostname module.
41535         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
41536         define also HOST_NAME_MAX.
41537         * tests/test-gethostname.c: Include <limits.h>.
41538         (main): Check also HOST_NAME_MAX.
41539         * doc/posix-headers/limits.texi: Document the mingw problem.
41540
41541 2009-08-02  Bruno Haible  <bruno@clisp.org>
41542
41543         * lib/gethostname.c (gethostname): Fix handling of large len argument.
41544         Add comments.
41545
41546 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41547
41548         * lib/gethostname.c: Add Windows wrapper.
41549         * m4/gethostname.m4: Look for gethostname in -lws2_32.
41550         * modules/gethostname: Depend on sys_socket & errno, for also
41551         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
41552         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
41553
41554 2009-07-31  Jim Meyering  <meyering@redhat.com>
41555
41556         getloadavg: fix symbol name in comment
41557         * lib/getloadavg.c: Correct a typo I introduced when adding
41558         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
41559         Matt Kraai spotted the problem.
41560
41561 2009-07-29  Matt Kraai  <mkraai@beckman.com>
41562
41563         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
41564         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
41565         code also if ! defined N_NAME_POINTER.
41566         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
41567         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
41568         but the n_name member is a 12-byte array.
41569
41570 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
41571
41572         update-copyright: generalize comment handling
41573         * build-aux/update-copyright: Handle copyright statements
41574         within more comment styles.
41575         Document usage.
41576         Report any file with an external copyright holder or parse failure.
41577
41578 2009-07-29  Jim Meyering  <meyering@redhat.com>
41579
41580         mktime: correct setting of REPLACE_MKTIME
41581         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
41582
41583         update-copyright: new module
41584         * modules/update-copyright: New file.
41585         * build-aux/update-copyright: New file.
41586         * MODULES.html.sh (maint+release support): Add update-copyright.
41587
41588 2009-07-27  Bruno Haible  <bruno@clisp.org>
41589
41590         Fix compilation error when <ctime> is used and mktime is replaced.
41591         * lib/time.in.h (mktime): New declaration.
41592         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
41593         REPLACE_MKTIME instead of defining mktime in config.h.
41594         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
41595         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
41596         Reported by Ross McFarland <rwmcfa1@neces.com>.
41597
41598 2009-07-27  Bruno Haible  <bruno@clisp.org>
41599
41600         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
41601         Reported by Matt Kraai <mkraai@beckman.com>.
41602
41603 2009-07-25  Jim Meyering  <meyering@redhat.com>
41604
41605         maint.mk: avoid warnings about missing files
41606         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
41607         diagnostic when .prev-version does not exist.
41608         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
41609         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
41610         nonexistent cfg.mk.
41611         Suggestions from Simon Josefsson.
41612
41613 2009-07-25  Bruno Haible  <bruno@clisp.org>
41614
41615         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
41616         defined as macros. Needed on QNX 6.4.1.
41617         Reported by Matt Kraai <mkraai@beckman.com>.
41618
41619 2009-07-23  Jim Meyering  <meyering@redhat.com>
41620
41621         maint.mk: invoke "make dist" with a working value of XZ_OPT
41622         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
41623
41624 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
41625
41626         Make fseeko.c compile on QNX.
41627         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
41628
41629 2009-07-22  Peter Simons  <simons@cryp.to>
41630
41631         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
41632         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
41633         * lib/md4.h: Likewise.
41634         * lib/md5.h: Likewise.
41635         * lib/sha1.h: Likewise.
41636         * lib/sha256.h: Likewise.
41637         * lib/sha512.h: Likewise.
41638
41639         tests-sha1: don't assign literal string to 'char *' variable
41640         * tests/test-sha1.c (main): Declare locals with "const" to match
41641         attributes of the right hand side.
41642
41643 2009-07-21  Eric Blake  <ebb9@byu.net>
41644
41645         dup2: fix more mingw problems
41646         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
41647         fd to itself.
41648         * doc/posix-functions/dup2.texi (dup2): Document the bug.
41649         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
41650         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
41651         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
41652         care of mingw bugs.
41653
41654 2009-07-21  Jim Meyering  <meyering@redhat.com>
41655
41656         vc-list-files: avoid failure when /bin/sh is dash
41657         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
41658         On some Debian based systems, /bin/sh is a symlink to dash, and running
41659         this command would omit the "/" following each 'tests' prefix:
41660           dash -x build-aux/vc-list-files -C . tests
41661         That is because bash and dash work differently:
41662           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
41663           bash ok
41664           dash odd
41665
41666 2009-07-21  Eric Blake  <ebb9@byu.net>
41667
41668         dup2-tests: test previous patch
41669         * modules/dup2-tests: New file.
41670         * tests/test-dup2.c: Likewise.
41671         * tests/test-open.c (main): Avoid unspecified behavior.
41672         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
41673         test.
41674
41675         dup2: work around mingw and cygwin 1.5 bug
41676         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
41677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41678         * modules/unistd (Makefile.am): Substitute it.
41679         * lib/unistd.in.h (dup2): Declare the replacement.
41680         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
41681         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
41682         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
41683         * modules/execute (Depends-on): Add dup2.
41684         * modules/fseterr (Depends-on): Likewise.
41685         * modules/pipe (Depends-on): Likewise.
41686         * modules/posix_spawn-internal (Depends-on): Likewise.
41687
41688 2009-07-21  Bruno Haible  <bruno@clisp.org>
41689
41690         * modules/.gitattributes: New file.
41691
41692 2009-07-20  Bruno Haible  <bruno@clisp.org>
41693
41694         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
41695         (main): Use it.
41696
41697 2009-07-20  Eric Blake  <ebb9@byu.net>
41698
41699         test-pipe: make a bit more robust.
41700         * tests/test-pipe.c (myerr): Allow error messages regardless of
41701         what we do to stderr.
41702         (test_pipe): Rearrange to avoid deadlock.
41703         (child_main): Try a larger read, to ensure we avoided deadlock.
41704         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
41705         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
41706         if misused.
41707
41708 2009-07-19  Jim Meyering  <meyering@redhat.com>
41709
41710         fts: avoid false-positive cycle-detection
41711         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
41712         for each new command line argument.
41713
41714 2009-07-19  Bruno Haible  <bruno@clisp.org>
41715
41716         Fix build error on mingw with the modules sys_select and unistd.
41717         * modules/acl-tests (Depends-on): Add close.
41718         * modules/binary-io-tests (Depends-on): Likewise.
41719         * modules/closein-tests (Depends-on): Likewise.
41720         * modules/flock-tests (Depends-on): Likewise.
41721         * modules/fsync-tests (Depends-on): Likewise.
41722         * modules/lseek-tests (Depends-on): Likewise.
41723         * modules/pipe-tests (Depends-on): Likewise.
41724         * modules/posix_spawn-tests (Depends-on): Likewise.
41725         * modules/posix_spawnp-tests (Depends-on): Likewise.
41726         * modules/stat-time-tests (Depends-on): Likewise.
41727         * modules/yesno-tests (Depends-on): Likewise.
41728
41729 2009-07-19  Bruno Haible  <bruno@clisp.org>
41730
41731         Unify conditionals.
41732         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
41733         macros, not at the compiler macros.
41734         * lib/pipe.c: Likewise.
41735         * lib/execute.c: Likewise.
41736         * lib/spawni.c: Likewise.
41737
41738 2009-07-19  Bruno Haible  <bruno@clisp.org>
41739
41740         Fix handling of closed stdin/stdout/stderr on mingw.
41741         * lib/w32spawn.h: Include unistd.h.
41742         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
41743         file descriptor with O_NOINHERIT flag.
41744         (fd_safer_noinherit): New function, based on fd-safer.c.
41745         (dup_safer_noinherit): New function, based on dup-safer.c.
41746         (undup_safer_noinherit): New function.
41747         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
41748         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
41749         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
41750         instead of fd_safer.
41751         * tests/test-pipe.c: Include <windows.h>.
41752         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
41753         result.
41754
41755         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
41756         from main.
41757         (test_pipe): Pass an extra argument for disambiguation.
41758         (main): Invoke parent_main or child_main.
41759
41760         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
41761         consistently.
41762
41763 2009-07-18  Eric Blake  <ebb9@byu.net>
41764
41765         test-pipe: fix mingw build
41766         * tests/test-pipe.c (main): Avoid fcntl on mingw.
41767
41768 2009-07-18  Bruno Haible  <bruno@clisp.org>
41769
41770         * modules/pipe-tests (Makefile.am): Fix typo.
41771
41772 2009-07-18  Eric Blake  <ebb9@byu.net>
41773
41774         error: fix mingw build
41775         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
41776         Reported by Bruno Haible.
41777
41778         error: avoid undefined use of stdout
41779         * lib/error.c (error, error_at_line): Check that fd 1 is open
41780         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
41781         is handling faults and the close_stdout module wants to report the
41782         detection of closed stdout as an error.
41783
41784 2009-07-17  Eric Blake  <ebb9@byu.net>
41785
41786         pipe: be robust in face of closed fds
41787         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
41788         should cause child to misbehave.
41789         * modules/pipe-tests: New module.
41790         * tests/test-pipe.c: New file.
41791         * tests/test-pipe.sh: New file.
41792         Reported by Akim Demaille.
41793
41794 2009-07-14  Bruno Haible  <bruno@clisp.org>
41795
41796         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
41797         Reported by anonymous kc.
41798
41799 2009-07-07  Jim Meyering  <meyering@redhat.com>
41800
41801         maint.mk: don't look for translatable strings in *.m4 or *.mk
41802         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
41803         when searching for translatable strings.
41804
41805 2009-07-05  Jim Meyering  <meyering@redhat.com>
41806
41807         remove superfluous parentheses in STREQ definition
41808         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
41809         * lib/getugroups.c (STREQ): Likewise.
41810         * lib/fnmatch.c (STREQ): Likewise.
41811         Spotted by Bruno Haible.
41812
41813 2009-07-04  Jim Meyering  <meyering@redhat.com>
41814
41815         argv-iter: new module
41816         * MODULES.html.sh: Add argv-iter.
41817         * lib/argv-iter.c, lib/argv-iter.h: New files.
41818         * modules/argv-iter: New file.
41819         * modules/argv-iter-tests: New file.
41820         * tests/test-argv-iter.c: Test it.
41821
41822 2009-07-04  Bruno Haible  <bruno@clisp.org>
41823
41824         Fix assertion.
41825         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
41826         contains more exact copies of a given entry than file2, leave the extra
41827         copies unpaired rather than aborting.
41828         Reported by Eric Blake.
41829
41830 2009-07-02  Bruno Haible  <bruno@clisp.org>
41831
41832         Speedup git-merge-changelog for git cherry-pick.
41833         * lib/git-merge-changelog.c (struct entries_mapping): New type.
41834         (entries_mapping_get): New function, extracted from compute_mapping.
41835         (entries_mapping_reverse_get): New function.
41836         (compute_mapping): Add a 'full' argument. Return the result in a
41837         'struct entries_mapping'.
41838         (main): Update. Access the mappings through entries_mapping_get.
41839         Reported by Eric Blake.
41840
41841 2009-07-02  Bruno Haible  <bruno@clisp.org>
41842
41843         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
41844         best_i.
41845
41846 2009-07-02  Bruno Haible  <bruno@clisp.org>
41847
41848         Speed up approximate search for matching ChangeLog entries.
41849         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
41850         argument. Call fstrcmp_bounded instead of fstrcmp.
41851         (compute_mapping, try_split_merged_entry, main): Update callers.
41852
41853 2009-07-02  Bruno Haible  <bruno@clisp.org>
41854
41855         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
41856
41857 2009-06-30  Bruno Haible  <bruno@clisp.org>
41858
41859         Reduce the number of uc_is_cased calls.
41860         * lib/unicase.h (casing_suffix_context_t): Add
41861         'first_char_except_ignorable' field.
41862         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
41863         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
41864         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
41865         Update initializer.
41866         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
41867         case-ignorable characters.
41868         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
41869         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
41870         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
41871         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
41872         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
41873
41874 2009-06-30  Bruno Haible  <bruno@clisp.org>
41875
41876         Tests for module 'unicase/ignorable'.
41877         * modules/unicase/ignorable-tests: New file.
41878         * tests/unicase/test-ignorable.c: New file, generated by
41879         gen-uni-tables.
41880
41881         Tests for module 'unicase/cased'.
41882         * modules/unicase/cased-tests: New file.
41883         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
41884         * tests/unicase/test-predicate-part1.h: New file, derived from
41885         tests/unictype/test-predicate-part1.h.
41886         * tests/unicase/test-predicate-part2.h: New file, same as
41887         tests/unictype/test-predicate-part2.h.
41888
41889         Fix evaluation of "Before C" condition of FINAL_SIGMA.
41890         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
41891         (output_casing_properties): New function.
41892         (main): Call it.
41893         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
41894         * lib/unicase/cased.c: Include unictype/bitmap.h.
41895         (uc_is_cased): Define through a bitmap lookup.
41896         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
41897         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
41898         (uc_is_case_ignorable): Define through a bitmap lookup.
41899         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
41900         lib/unictype/bitmap.h.
41901         (Depends-on): Add inline. Clean up.
41902         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
41903         lib/unictype/bitmap.h.
41904         (Depends-on): Add inline. Clean up.
41905         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
41906         recognition.
41907         * tests/unicase/test-u16-tolower.c (main): Likewise.
41908         * tests/unicase/test-u32-tolower.c (main): Likewise.
41909
41910 2009-06-30  Bruno Haible  <bruno@clisp.org>
41911
41912         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
41913         * lib/unicase/u16-casemap.c: Likewise.
41914         * lib/unicase/u32-casemap.c: Likewise.
41915
41916 2009-06-29  Bruno Haible  <bruno@clisp.org>
41917
41918         Define u32_casefold as a wrapper around u32_ct_casefold.
41919         * lib/unicase/u32-casefold.c: Update.
41920         * modules/unicase/u32-casefold (Depends-on): Add
41921         unicase/u32-ct-casefold, unicase/empty-prefix-context,
41922         unicase/empty-suffix-context. Clean up.
41923
41924         Define u16_casefold as a wrapper around u16_ct_casefold.
41925         * lib/unicase/u16-casefold.c: Update.
41926         * modules/unicase/u16-casefold (Depends-on): Add
41927         unicase/u16-ct-casefold, unicase/empty-prefix-context,
41928         unicase/empty-suffix-context. Clean up.
41929
41930         Define u8_casefold as a wrapper around u8_ct_casefold.
41931         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
41932         * lib/unicase/u8-casefold.c: Update.
41933         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
41934         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
41935
41936         Define u32_totitle as a wrapper around u32_ct_totitle.
41937         * lib/unicase/u32-totitle.c: Update.
41938         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
41939         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
41940
41941         Define u16_totitle as a wrapper around u16_ct_totitle.
41942         * lib/unicase/u16-totitle.c: Update.
41943         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
41944         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
41945
41946         Define u8_totitle as a wrapper around u8_ct_totitle.
41947         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
41948         functions.
41949         (FUNC): Delegate to U_CT_TOTITLE.
41950         * lib/unicase/u8-totitle.c: Update.
41951         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
41952         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
41953
41954         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
41955         invocation.
41956         * modules/unicase/u32-tolower (Depends-on): Add
41957         unicase/empty-prefix-context, unicase/empty-suffix-context.
41958
41959         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
41960         invocation.
41961         * modules/unicase/u16-tolower (Depends-on): Add
41962         unicase/empty-prefix-context, unicase/empty-suffix-context.
41963
41964         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
41965         * modules/unicase/u8-tolower (Depends-on): Add
41966         unicase/empty-prefix-context, unicase/empty-suffix-context.
41967
41968         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
41969         invocation.
41970         * modules/unicase/u32-toupper (Depends-on): Add
41971         unicase/empty-prefix-context, unicase/empty-suffix-context.
41972
41973         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
41974         invocation.
41975         * modules/unicase/u16-toupper (Depends-on): Add
41976         unicase/empty-prefix-context, unicase/empty-suffix-context.
41977
41978         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
41979         * modules/unicase/u8-toupper (Depends-on): Add
41980         unicase/empty-prefix-context, unicase/empty-suffix-context.
41981
41982         New module 'unicase/u32-ct-casefold'.
41983         * lib/unicase/u32-ct-casefold.c: New file.
41984         * modules/unicase/u32-ct-casefold: New file.
41985
41986         New module 'unicase/u16-ct-casefold'.
41987         * lib/unicase/u16-ct-casefold.c: New file.
41988         * modules/unicase/u16-ct-casefold: New file.
41989
41990         New module 'unicase/u8-ct-casefold'.
41991         * lib/unicase/u8-ct-casefold.c: New file.
41992         * lib/unicase/u-ct-casefold.h: New file, derived from
41993         lib/unicase/u-casefold.h.
41994         * modules/unicase/u8-ct-casefold: New file.
41995
41996         New module 'unicase/u32-ct-totitle'.
41997         * lib/unicase/u32-ct-totitle.c: New file.
41998         * modules/unicase/u32-ct-totitle: New file.
41999
42000         New module 'unicase/u16-ct-totitle'.
42001         * lib/unicase/u16-ct-totitle.c: New file.
42002         * modules/unicase/u16-ct-totitle: New file.
42003
42004         New module 'unicase/u8-ct-totitle'.
42005         * lib/unicase/u8-ct-totitle.c: New file.
42006         * lib/unicase/u-ct-totitle.h: New file, derived from
42007         lib/unicase/u-totitle.h.
42008         * modules/unicase/u8-ct-totitle: New file.
42009
42010         New module 'unicase/u32-ct-tolower'.
42011         * lib/unicase/u32-ct-tolower.c: New file.
42012         * modules/unicase/u32-ct-tolower: New file.
42013
42014         New module 'unicase/u16-ct-tolower'.
42015         * lib/unicase/u16-ct-tolower.c: New file.
42016         * modules/unicase/u16-ct-tolower: New file.
42017
42018         New module 'unicase/u8-ct-tolower'.
42019         * lib/unicase/u8-ct-tolower.c: New file.
42020         * modules/unicase/u8-ct-tolower: New file.
42021
42022         New module 'unicase/u32-ct-toupper'.
42023         * lib/unicase/u32-ct-toupper.c: New file.
42024         * modules/unicase/u32-ct-toupper: New file.
42025
42026         New module 'unicase/u16-ct-toupper'.
42027         * lib/unicase/u16-ct-toupper.c: New file.
42028         * modules/unicase/u16-ct-toupper: New file.
42029
42030         New module 'unicase/u8-ct-toupper'.
42031         * lib/unicase/u8-ct-toupper.c: New file.
42032         * modules/unicase/u8-ct-toupper: New file.
42033
42034         Add context arguments to u*_casemap functions.
42035         * lib/unicase/unicasemap.h: Include unicase.h.
42036         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
42037         suffix_context arguments.
42038         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
42039         functions.
42040         (FUNC): Add prefix_context and suffix_context arguments. Use
42041         uc_is_cased and uc_is_case_ignorable.
42042         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
42043         * lib/unicase/u16-casemap.c: Likewise.
42044         * lib/unicase/u32-casemap.c: Likewise.
42045         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
42046         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42047         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
42048         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42049         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
42050         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42051
42052         New module 'unicase/u32-suffix-context'.
42053         * lib/unicase/u32-suffix-context.c: New file.
42054         * modules/unicase/u32-suffix-context: New file.
42055
42056         New module 'unicase/u16-suffix-context'.
42057         * lib/unicase/u16-suffix-context.c: New file.
42058         * modules/unicase/u16-suffix-context: New file.
42059
42060         New module 'unicase/u8-suffix-context'.
42061         * lib/unicase/u8-suffix-context.c: New file.
42062         * lib/unicase/u-suffix-context.h: New file.
42063         * modules/unicase/u8-suffix-context: New file.
42064
42065         New module 'unicase/empty-suffix-context'.
42066         * lib/unicase/empty-suffix-context.c: New file.
42067         * modules/unicase/empty-suffix-context: New file.
42068
42069         New module 'unicase/u32-prefix-context'.
42070         * lib/unicase/u32-prefix-context.c: New file.
42071         * modules/unicase/u32-prefix-context: New file.
42072
42073         New module 'unicase/u16-prefix-context'.
42074         * lib/unicase/u16-prefix-context.c: New file.
42075         * modules/unicase/u16-prefix-context: New file.
42076
42077         New module 'unicase/u8-prefix-context'.
42078         * lib/unicase/u8-prefix-context.c: New file.
42079         * lib/unicase/u-prefix-context.h: New file.
42080         * lib/unicase/context.h: New file.
42081         * modules/unicase/u8-prefix-context: New file.
42082
42083         New module 'unicase/empty-prefix-context'.
42084         * lib/unicase/empty-prefix-context.c: New file.
42085         * modules/unicase/empty-prefix-context: New file.
42086
42087         New module 'unicase/ignorable'.
42088         * lib/unicase/ignorable.c: New file.
42089         * modules/unicase/ignorable: New file.
42090
42091         New module 'unicase/cased'.
42092         * lib/unicase/caseprop.h: New file.
42093         * lib/unicase/cased.c: New file.
42094         * modules/unicase/cased: New file.
42095
42096         New functions for case mapping of substrings.
42097         * lib/unicase.h (casing_prefix_context_t): New type.
42098         (unicase_empty_prefix_context): New variable.
42099         (u8_casing_prefix_context, u16_casing_prefix_context,
42100         u32_casing_prefix_context, u8_casing_prefixes_context,
42101         u16_casing_prefixes_context, u32_casing_prefixes_context): New
42102         declarations.
42103         (casing_suffix_context_t): New type.
42104         (unicase_empty_suffix_context): New variable.
42105         (u8_casing_suffix_context, u16_casing_suffix_context,
42106         u32_casing_suffix_context, u8_casing_suffixes_context,
42107         u16_casing_suffixes_context, u32_casing_suffixes_context,
42108         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
42109         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
42110         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
42111         declarations.
42112
42113 2009-06-28  Jim Meyering  <meyering@redhat.com>
42114
42115         boostrap: indent only with spaces
42116         * build-aux/bootstrap: Indent only with spaces, never TABs.
42117
42118         bootstrap: split long lines
42119         * build-aux/bootstrap: Keep line length < 80.
42120
42121         bootstrap: sync from coreutils
42122         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
42123         just as autoreconf does.  Verify a list of prerequisite
42124         package-name,version-number pairs if defined in bootstrap.conf.
42125         Refer to README-prereq, if prerequisites are not satisfied.
42126
42127 2009-06-27  Eric Blake  <ebb9@byu.net>
42128
42129         tests: add test for bogus NULL definition
42130         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
42131         * tests/test-stdlib.c: Likewise.
42132         * tests/test-string.c: Likewise.
42133         * tests/test-locale.c: Likewise.
42134         * tests/test-unistd.c: Likewise.
42135         * modules/stdio-tests (Depends-on): Add verify.
42136         * modules/stdlib-tests (Depends-on): Likewise.
42137         * modules/string-tests (Depends-on): Likewise.
42138         * modules/locale-tests (Depends-on): Likewise.
42139         * modules/unistd-tests (Depends-on): Likewise.
42140
42141 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
42142
42143         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
42144         self-explaining comment.
42145         * m4/selinux-selinux-h: Update serial.
42146         (gl_LIBSELINUX): New macro, adding a warning for missing development
42147         packages to code extracted from...
42148         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
42149         Add warning for missing development packages here, too.
42150
42151 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
42152
42153         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
42154
42155 2009-06-25  Eric Blake  <ebb9@byu.net>
42156
42157         version-etc: fix regression
42158         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
42159         gcc.
42160         (version_etc): Use it, to catch bugs with trailing NULL.
42161         * lib/version-etc.c (version_etc_arn): Delete unused argument.
42162         (version_etc_va): Fix logic bug.
42163         * modules/version-etc-tests: Add test.
42164         * tests/test-version-etc.c: New file.
42165         * tests/test-version-etc.sh: Likewise.
42166
42167 2009-06-25  Sam Steingold  <sds@gnu.org>
42168
42169         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
42170         mbtowc declaration.
42171
42172 2009-06-25  Eric Blake  <ebb9@byu.net>
42173
42174         fpurge: migrate into <stdio.h>
42175         * lib/fpurge.h: Delete...
42176         * lib/stdio.in.h (fpurge): ...and declare here, instead.
42177         * lib/fpurge.c (fpurge): Change declaring header.
42178         * modules/fpurge (Files): Drop deleted file.
42179         (Depends-on): Add stdio.
42180         (configure.ac): Set witness.
42181         * modules/stdio (Makefile.am): Support fpurge macros.
42182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42183         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
42184         * lib/fflush.c: Update client.
42185         * tests/test-fpurge.c: Likewise.
42186         * NEWS: Mention the change.
42187
42188 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42189
42190         * lib/argp-version-etc.c (program_authors): Add const
42191         qualifier.
42192         * lib/version-etc.c: Fix typos in the comments.
42193         * modules/argp-version-etc: Depends on version-etc.
42194
42195 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42196
42197         argp-version-etc: new module.
42198
42199         * lib/argp-version-etc.c: New file.
42200         * lib/argp-version-etc.h: New file.
42201         * modules/argp-version-etc: New file.
42202         * modules/argp-version-etc-tests: New file.
42203         * tests/test-argp-version-etc.c: New test.
42204         * tests/test-argp-version-etc-1.sh: New test.
42205
42206 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42207
42208         Provide additional interfaces and documentation for version-etc
42209         module.
42210
42211         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
42212         interfaces.
42213         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
42214         prototypes.
42215
42216 2009-06-24  Bruno Haible  <bruno@clisp.org>
42217
42218         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
42219         HAVE_LIB${NAME} macro.
42220         Reported by Sam Steingold <sds@gnu.org>.
42221
42222 2009-06-23  Simon Josefsson  <simon@josefsson.org>
42223
42224         * modules/hash-tests (test_hash_LDADD): Link to libintl when
42225         needed.
42226
42227 2009-06-21  Bruno Haible  <bruno@clisp.org>
42228
42229         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
42230         work.
42231         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
42232         together with LIB${NAME}, LTLIB${NAME}.
42233         Reported by Sam Steingold <sds@gnu.org>.
42234
42235 2009-06-20  Jim Meyering  <meyering@redhat.com>
42236
42237         tests: make sc_require_test_exit_idiom more generic
42238         * top/maint.mk (Exit_witness_file): New overridable variable.
42239         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
42240         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
42241
42242 2009-06-19  Jim Meyering  <meyering@redhat.com>
42243
42244         hash: reverse order of src/dst parameters in an internal interface
42245         * lib/hash.c (transfer_entries): Reverse order of parameters to
42246         put DST before SRC.  Adjust callers.
42247
42248         tests: test-hash: avoid wholesale duplication
42249         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
42250         Instead, use a loop and add a single conditional.
42251
42252         tests: test-hash: allow seed selection via a command line argument
42253         * tests/test-hash.c (get_seed): New function.
42254         (main): Use it.
42255
42256 2009-06-19  Eric Blake  <ebb9@byu.net>
42257
42258         hash: avoid memory leak on allocation failure
42259         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
42260         failure.  Factor repeated algorithm...
42261         (transfer_entries): ...into new helper routine.
42262         (hash_delete): React to hash_rehash return value.
42263
42264         hash: reduce memory pressure in hash_rehash no-op case
42265         * lib/hash.c (next_prime): Avoid overflow.
42266         (hash_initialize): Factor bucket size computation...
42267         (compute_bucket_size): ...into new helper function.
42268         (hash_rehash): Use new function and open coding to reduce memory
42269         pressure, and avoid a memory leak in USE_OBSTACK code.
42270         Reported by Jim Meyering.
42271
42272 2009-06-18  Eric Blake  <ebb9@byu.net>
42273
42274         hash: make rotation more obvious
42275         * modules/hash (Depends-on): Add bitrotate and stdint.
42276         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
42277         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
42278         (SIZE_MAX): Rely on headers for definition.
42279         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
42280         (raw_hasher): Use rotr_sz.
42281         Suggested by Jim Meyering.
42282
42283         hash: fix memory leak in last patch
42284         * lib/hash.c (hash_rehash): Avoid memory leak.
42285
42286         hash: avoid no-op rehashing
42287         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
42288
42289         hash: provide default callback functions
42290         * lib/hash.c (raw_hasher, raw_comparator): New functions.
42291         (hash_initialize): Use them as defaults.
42292         * tests/test-hash.c (main): Test this.
42293
42294         hash: minor optimization
42295         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
42296         when possible.
42297         (hash_initialize): Document this promise.
42298         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
42299         * tests/test-hash.c (hash_compare_strings): Test this.
42300
42301 2009-06-18  Bruno Haible  <bruno@clisp.org>
42302
42303         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
42304         going to be replaced anyway.
42305
42306 2009-06-18  Bruno Haible  <bruno@clisp.org>
42307
42308         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
42309         in one place.
42310         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
42311         be replaced anyway.
42312
42313 2009-06-18  Eric Blake  <ebb9@byu.net>
42314
42315         hash: check for resize before insertion
42316         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
42317         threshold before insertion, so that a pathological hash_rehash
42318         that fills every bucket can still trigger another rehash.
42319
42320 2009-06-18  Jim Meyering  <meyering@redhat.com>
42321
42322         hash-tests: add a loop around the small tests
42323         * tests/test-hash.c (main): Repeat small tests with selected
42324         small initial table sizes.
42325
42326 2009-06-17  Eric Blake  <ebb9@byu.net>
42327
42328         hash: minor cleanups
42329         * lib/hash.h (hash_entry): Make opaque, by moving...
42330         * lib/hash.c (hash_entry): ...here.
42331         (hash_insert): Clarify restrictions on what can be inserted.
42332         (hash_get_next): Clarify when it is safe to remove an element
42333         during traversal.
42334         (check_tuning): Skip verification when tuning is known safe.
42335         (hash_initialize): Clarify restrictions on tuning.
42336
42337 2009-06-17  Jim Meyering  <jim@meyering.net>
42338         and Eric Blake  <ebb9@byu.net>
42339
42340         hash-tests: new module
42341         * modules/hash-tests: New file.
42342         * tests/test-hash.c: New file.
42343
42344 2009-06-17  Eric Blake  <ebb9@byu.net>
42345
42346         strstr-simple: document new module
42347         * MODULES.html.sh: Document new module.
42348
42349         strstr, strcasestr: replace on platforms with broken memchr
42350         * modules/strstr: Split into...
42351         * modules/strstr-simple: ...new module that does not care about
42352         performance, but does care about glibc bug.
42353         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
42354         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
42355         if platform memchr is broken, per Debian bug 521737.
42356         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
42357         memchr.
42358         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
42359         * doc/posix-functions/strstr.texi (strstr): Document the fix.
42360         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42361         * modules/mountlist (Depends-on): Add strstr-simple.
42362         * modules/gen-uni-tables (Depends-on): Likewise.
42363         * modules/argz (Depends-on): Add strstr.
42364
42365 2009-06-17  Bruno Haible  <bruno@clisp.org>
42366
42367         * modules/posix_spawn-internal (Depends-on): Add errno.
42368
42369 2009-06-17  Bruno Haible  <bruno@clisp.org>
42370
42371         Define missing ESTALE on Interix 3.5.
42372         * lib/errno.in.h (ESTALE): Assign a value if missing.
42373         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
42374         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
42375         missing.
42376         * doc/posix-headers/errno.texi: Mention the Interix bug.
42377         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
42378
42379 2009-06-15  Eric Blake  <ebb9@byu.net>
42380
42381         memchr, memchr2: add valgrind exception
42382         * lib/memchr.valgrind: New file.
42383         * lib/memchr2.valgrind: New file.
42384         * modules/memchr (Files): Distribute valgrind file.
42385         * modules/memchr2 (Files): Likewise.
42386
42387         docs: memchr is no longer obsolete
42388         * MODULES.html.sh: Move memchr from obsolete to string.h section.
42389         * lib/string.in.h (memchr): Simplify logic.
42390
42391 2009-06-14  Jim Meyering  <meyering@redhat.com>
42392
42393         link-follow: fix the "checking..." message to not mention trailing slash
42394         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
42395         never considered trailing slashes.
42396
42397 2009-06-14  Bruno Haible  <bruno@clisp.org>
42398
42399         * m4/memchr.m4: Mention also the bug on IA-64.
42400         * doc/posix-functions/memchr.texi: Likewise.
42401
42402 2009-06-12  Eric Blake  <ebb9@byu.net>
42403
42404         memchr: detect broken x86_64 and alpha implementations
42405         * modules/memchr-tests (Depends-on): Move mmap detection...
42406         * modules/memchr (Depends-on): ...here.
42407         (configure.ac): Set indicator.
42408         * lib/string.in.h (memchr): Declare replacement.
42409         * modules/string (Makefile.am): Trigger replacement.
42410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42411         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
42412         bugs.
42413         * doc/posix-functions/memchr.texi (memchr): Document the bug.
42414         * modules/getpagesize (License): Relax license.
42415
42416 2009-06-11  Bruno Haible  <bruno@clisp.org>
42417
42418         * lib/idpriv.h: Add more references.
42419
42420 2009-06-08  Bruno Haible  <bruno@clisp.org>
42421
42422         Tests for module 'idpriv-droptemp'.
42423         * modules/idpriv-droptemp-tests: New file.
42424         * tests/test-idpriv-droptemp.sh: New file.
42425         * tests/test-idpriv-droptemp.su.sh: New file.
42426         * tests/test-idpriv-droptemp.c: New file.
42427
42428         New module 'idpriv-droptemp'.
42429         * lib/idpriv-droptemp.c: New file.
42430         * modules/idpriv-droptemp: New file.
42431
42432 2009-06-08  Bruno Haible  <bruno@clisp.org>
42433
42434         Tests for module 'idpriv-drop'.
42435         * modules/idpriv-drop-tests: New file.
42436         * tests/test-idpriv-drop.sh: New file.
42437         * tests/test-idpriv-drop.su.sh: New file.
42438         * tests/test-idpriv-drop.c: New file.
42439
42440         New module 'idpriv-drop'.
42441         * lib/idpriv.h: New file.
42442         * lib-idpriv-drop.c: New file.
42443         * m4/idpriv.m4: New file.
42444         * modules/idpriv-drop: New file.
42445
42446 2009-06-08  Bruno Haible  <bruno@clisp.org>
42447
42448         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
42449         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42450         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42451         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42452         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42453         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42454         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42455
42456 2009-06-08  Eric Blake  <ebb9@byu.net>
42457
42458         test-strstr: use memory fence, when possible
42459         * tests/test-strstr.c (main): Use memory fence, in order to be
42460         more likely to trigger Debian bug 521737.
42461         * modules/strstr-tests (Files): Pull in additional files.
42462
42463         memchr: no longer obsolete, for wider field testing
42464         * modules/memchr (Status, Notice): Delete, this module is no
42465         longer obsolete.
42466         * modules/vasnprintf (Depends-on): Add memchr.
42467
42468 2009-06-07  Jim Meyering  <meyering@redhat.com>
42469
42470         hash: declare some functions with the warn_unused_result attribute
42471         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
42472
42473 2009-06-07  Bruno Haible  <bruno@clisp.org>
42474
42475         * tests/test-alignof.c: Don't test int64_t if it does not exist.
42476         Reported by Eric Blake.
42477
42478 2009-06-06  Eric Blake  <ebb9@byu.net>
42479
42480         test-alignof: fix typo with long double
42481         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
42482         compiler error.
42483
42484 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
42485
42486         Escape non-texinfo { and }s.
42487         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
42488         markup error.
42489
42490 2009-06-04  Jim Meyering  <meyering@redhat.com>
42491
42492         gitlog-to-changelog: don't infloop on an empty commit log
42493         * build-aux/gitlog-to-changelog: Warn about an empty log message.
42494         Reported by Boris Petersen <transacid@centerim.org>.
42495
42496 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
42497
42498         version-etc: extend for packagers
42499         Add three new configure options, intended for packagers:
42500           --with-packager="packager name"
42501           --with-packager-version="packager-specific version"
42502           --with-packager-bug-reports="packager bug reporting"
42503         An example with coreutils:
42504           $ ./configure \
42505             --with-packager=Gentoo \
42506             --with-packager-bug-report=http://bugs.gentoo.org/ \
42507             --with-packager-version="patchset 1.6"
42508           $ ./src/ls --version | head -n2
42509           ls (GNU coreutils) 7.1-dirty
42510           Packaged by Gentoo (patchset 1.6)
42511         Note that the bug reporting info via --help doesn't show up because
42512         coreutils uses its own custom emit_bug_reporting_address() implementation
42513         in src/system.h.  If it didn't, it'd look like:
42514           $ ./src/ls --help | tail -n4
42515           Report bugs to <bug-coreutils@gnu.org>.
42516           Report Gentoo bugs to <http://bugs.gentoo.org/>.
42517           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
42518           General help using GNU software: <http://www.gnu.org/gethelp/>.
42519         * lib/version-etc.c: Print new information, if provided.
42520         * m4/version-etc.m4: New file.
42521         * modules/version-etc (Files): Add m4/version-etc.m4.
42522         (configure.ac): Add gl_VERSION_ETC.
42523
42524 2009-05-31  Bruno Haible  <bruno@clisp.org>
42525
42526         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
42527         and 'int64_t'.
42528         * modules/alignof-tests (Dependencies): Add stdint.
42529         Reported by Eric Blake.
42530
42531 2009-05-31  Bruno Haible  <bruno@clisp.org>
42532
42533         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
42534         restriction due to compiler bugs.
42535         Reported by Eric Blake.
42536
42537 2009-05-31  Simon Josefsson  <simon@josefsson.org>
42538             Bruno Haible  <bruno@clisp.org>
42539
42540         Fix test-alignof failure.
42541         * lib/alignof.h (alignof_slot): New macro.
42542         (alignof_type): New macro, with the same semantics as the previous
42543         'alignof'.
42544         (alignof): Alias to alignof_slot.
42545         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
42546         check that the results are usable as constant expressions.
42547
42548 2009-05-31  Bruno Haible  <bruno@clisp.org>
42549
42550         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
42551         * tests/test-memchr.c (main): Check that memchr does not read past the
42552         first occurrence of the byte.
42553         * tests/test-strstr.c (main): Update comment.
42554         Suggested by Eric Blake.
42555
42556 2009-05-30  Bruno Haible  <bruno@clisp.org>
42557
42558         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
42559         detail how to use dumpbin.
42560         Reported by David Byron <dbyron@dbyron.com>.
42561
42562 2009-06-02  Simon Josefsson  <simon@josefsson.org>
42563
42564         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
42565
42566 2009-06-02  Simon Josefsson  <simon@josefsson.org>
42567
42568         * m4/manywarnings.m4: Add GCC 4.4 warnings.
42569
42570 2009-05-28  Bruno Haible  <bruno@clisp.org>
42571
42572         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
42573         build-aux/ files.
42574
42575 2009-05-28  Simon Josefsson  <simon@josefsson.org>
42576
42577         * gnulib-tool (func_import): Transform license on build-aux/ files too.
42578
42579 2009-05-27  Simon Josefsson  <simon@josefsson.org>
42580
42581         * gnulib-tool (sed_transform_main_lib_file)
42582         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
42583         regexps.
42584
42585 2009-05-26  Simon Josefsson  <simon@josefsson.org>
42586
42587         * tests/test-strstr.c: Add another self-test.
42588         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
42589         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
42590
42591 2009-05-23  Bruno Haible  <bruno@clisp.org>
42592
42593         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
42594         change.
42595
42596 2009-05-21  Bruno Haible  <bruno@clisp.org>
42597
42598         Simplify use of mode_t varargs.
42599         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
42600         uses 'mode_t' or 'int'.
42601         * lib/openat.c (openat): Likewise.
42602         * lib/open-safer.c (open_safer): Likewise.
42603         * m4/mode_t.m4: New file.
42604         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
42605         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
42606         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
42607         * modules/open (Files): Add m4/mode_t.m4.
42608         * modules/openat (Files): Likewise.
42609         * modules/fcntl-safer (Files): Likewise.
42610         Suggested by Eric Blake.
42611
42612 2009-05-21  Pádraig Brady  <P@draigbrady.com>
42613
42614         * doc/glibc-functions/fallocate.texi: New file.
42615         * doc/gnulib.texi: Include it.
42616
42617 2009-05-21  Eric Blake  <ebb9@byu.net>
42618             Bruno Haible  <bruno@clisp.org>
42619
42620         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
42621         invocations.
42622         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42623
42624 2009-05-21  Eric Blake  <ebb9@byu.net>
42625             Bruno Haible  <bruno@clisp.org>
42626
42627         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
42628         include_next. Fix of 2008-11-20 commit.
42629         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
42630         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
42631         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
42632         NEXT_MATH_H.
42633         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
42634         instead of NEXT_MATH_H.
42635
42636 2009-05-21  Bruno Haible  <bruno@clisp.org>
42637
42638         Avoid redefinition warnings for SIZE_MAX.
42639         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
42640         Reported by Simon Josefsson.
42641
42642 2009-05-21  Bruno Haible  <bruno@clisp.org>
42643
42644         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
42645         AC_CACHE_VAL.
42646
42647 2009-05-20  Bruno Haible  <bruno@clisp.org>
42648
42649         Make zeroptr.h work on mingw.
42650         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
42651         mprotect.
42652         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
42653         * modules/memchr2-tests (configure.ac): Likewise.
42654         * modules/memcmp-tests (configure.ac): Likewise.
42655         * modules/memmem-tests (configure.ac): Likewise.
42656         * modules/memrchr-tests (configure.ac): Likewise.
42657         Reported by Simon Josefsson.
42658
42659 2009-05-20  Simon Josefsson  <simon@josefsson.org>
42660
42661         * tests/test-glob.c: Include string.h for strcmp prototype.
42662
42663 2009-05-20  Simon Josefsson  <simon@josefsson.org>
42664
42665         * modules/getdelim (Depends-on): Add explicit stdint, although it
42666         was implicitly already pulled in via realloc-posix.
42667         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
42668
42669 2009-05-20  Simon Josefsson  <simon@josefsson.org>
42670
42671         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
42672         G. Christensen" <tgc@jupiterrise.com>.
42673         * m4/sys_socket_h.m4: Check for sa_family_t.
42674         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
42675         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
42676         * tests/test-sys_socket.c: Check that sa_family_t works.
42677
42678 2009-05-18  Eric Blake  <ebb9@byu.net>
42679
42680         maint.mk: allow gnulib_dir in VPATH build
42681         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
42682
42683 2009-05-15  Jim Meyering  <meyering@redhat.com>
42684
42685         maint.mk: Give gnulib_dir a default definition.
42686         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
42687         Thus, most packages no longer need to specify this variable in cfg.mk
42688
42689 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
42690
42691         rename.m4: fix typos that would make non-mingw cross-configure fail
42692         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
42693
42694 2009-05-13  Eric Blake  <ebb9@byu.net>
42695
42696         mmap-anon: avoid out-of-order autoconf expansion
42697         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
42698         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
42699         * modules/memchr-tests (Depends-on): Add extensions.
42700         * modules/memchr2-tests (Depends-on): Add extensions.
42701         * modules/memcmp-tests (Depends-on): Add extensions.
42702         * modules/memmem-tests (Depends-on): Add extensions.
42703         * modules/memrchr-tests (Depends-on): Add extensions.
42704
42705 2009-05-13  Bruno Haible  <bruno@clisp.org>
42706
42707         Make some tests ISO C 99 compliant.
42708         * tests/zerosize-ptr.h: New file.
42709         * tests/test-memchr.c: Include zerosize-ptr.h.
42710         (main): Use a zero-size object pointer instead of NULL.
42711         * tests/test-memchr2.c: Include zerosize-ptr.h.
42712         (main): Use a zero-size object pointer instead of NULL.
42713         * tests/test-memcmp.c: Include zerosize-ptr.h.
42714         (main): Use a zero-size object pointer instead of NULL.
42715         * tests/test-memmem.c: Include zerosize-ptr.h.
42716         (main): Use a zero-size object pointer instead of NULL.
42717         * tests/test-memrchr.c: Include zerosize-ptr.h.
42718         (main): Use a zero-size object pointer instead of NULL.
42719         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
42720         m4/mmap-anon.m4.
42721         (Depends-on): Add getpagesize.
42722         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42723         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
42724         m4/mmap-anon.m4.
42725         (Depends-on): Add getpagesize.
42726         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42727         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
42728         m4/mmap-anon.m4.
42729         (Depends-on): Add getpagesize.
42730         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42731         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
42732         m4/mmap-anon.m4.
42733         (Depends-on): Add getpagesize.
42734         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42735         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
42736         m4/mmap-anon.m4.
42737         (Depends-on): Add getpagesize.
42738         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42739
42740 2009-05-12  Bruno Haible  <bruno@clisp.org>
42741
42742         Tests for module 'alignof'.
42743         * modules/alignof-tests: New file.
42744         * tests/test-alignof.c: New file.
42745
42746 2009-05-12  Bruno Haible  <bruno@clisp.org>
42747
42748         Fix alignof macro.
42749         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
42750         vendor compilers that are always correct.
42751
42752 2009-05-12  Bruno Haible  <bruno@clisp.org>
42753
42754         Make the MAP_ANONYMOUS detection work on HP-UX 11.
42755         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
42756         not whether its fully works.
42757
42758 2009-05-12  Bruno Haible  <bruno@clisp.org>
42759
42760         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
42761
42762 2009-05-12  Jim Meyering  <meyering@redhat.com>
42763
42764         * top/maint.mk: Adjust backslash alignment.
42765
42766 2009-05-11  Simon Josefsson  <simon@josefsson.org>
42767
42768         * top/maint.mk: Make $(srcdir)/build-aux configurable.
42769
42770 2009-05-11  Eric Blake  <ebb9@byu.net>
42771
42772         argp: avoid undefined behavior
42773         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
42774         macros.
42775
42776 2009-05-08  Simon Josefsson  <simon@josefsson.org>
42777
42778         * tests/test-vc-list-files-git.sh: Do git config of user.email and
42779         user.name to prevent git commit from complaining.
42780
42781 2009-05-10  Bruno Haible  <bruno@clisp.org>
42782
42783         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
42784         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
42785         it rewrites every file name only once.
42786         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
42787
42788 2009-05-08  Bruno Haible  <bruno@clisp.org>
42789
42790         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
42791         instead of 'max'.
42792
42793 2009-05-08  Simon Josefsson  <simon@josefsson.org>
42794
42795         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
42796         sockaddr_storage test.
42797
42798 2009-05-07  Simon Josefsson  <simon@josefsson.org>
42799
42800         * modules/sys_socket (Makefile.am): Substitute
42801         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
42802         * m4/sys_socket_h.m4: Check for sockaddr_storage.
42803         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
42804         * tests/test-sys_socket.c: Check sockaddr_storage.
42805
42806 2009-05-08  Bruno Haible  <bruno@clisp.org>
42807
42808         New module 'alignof'.
42809         * lib/alignof.h: New file.
42810         * modules/alignof: New file.
42811
42812 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42813             Bruno Haible  <bruno@clisp.org>
42814
42815         Fix test-file-has-acl on FreeBSD.
42816         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
42817         mask is implicitly added.
42818         * tests/test-file-has-acl.c: Include <signal.h>.
42819         (main): Terminate the test after 5 seconds.
42820         * modules/acl-tests (configure.ac): Check for alarm function.
42821
42822 2009-05-04  Bruno Haible  <bruno@clisp.org>
42823
42824         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
42825         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
42826         * modules/errno (configure.ac): Drop AC_REQUIRE.
42827         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
42828         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
42829
42830 2009-05-04  Simon Josefsson  <simon@josefsson.org>
42831
42832         * modules/glob-tests: New module.
42833         * tests/test-glob.c: Add.
42834
42835 2009-05-04  Simon Josefsson  <simon@josefsson.org>
42836
42837         * modules/fnmatch-tests: New module.
42838         * tests/test-fnmatch.c: Add.
42839
42840 2009-05-04  Eric Blake  <ebb9@byu.net>
42841
42842         maint: make the new no-submodule-changes rule VPATH-safe
42843         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
42844
42845 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42846             Bruno Haible  <bruno@clisp.org>
42847
42848         acl: Fix infinite loop on FreeBSD.
42849         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
42850         of return value from acl_get_entry.
42851         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
42852         Likewise.
42853
42854 2009-05-03  Bruno Haible  <bruno@clisp.org>
42855
42856         * lib/acl-internal.h (acl_entries): Clarify return value.
42857         * lib/acl_entries.c (acl_entries): Likewise.
42858
42859 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42860
42861         Bug fix in acl module.
42862         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
42863
42864 2009-05-03  Bruno Haible  <bruno@clisp.org>
42865
42866         Create gperf-generated file in the source dir, not in the build dir.
42867         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
42868         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
42869         * modules/unicase/locale-language (unicase/locale-languages.h):
42870         Likewise.
42871         * modules/unicase/special-casing (unicase/special-casing-table.h):
42872         Likewise.
42873         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
42874         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
42875         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
42876         Reported by Ralf Wildenhues.
42877
42878 2009-05-03  Bruno Haible  <bruno@clisp.org>
42879
42880         * modules/fnmatch (Description, configure.ac): Taken from
42881         fnmatch-posix.
42882         * modules/fnmatch-posix: Turn into a symbolic reference to the
42883         'fnmatch' module, and deprecate.
42884         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
42885
42886 2009-05-03  Bruno Haible  <bruno@clisp.org>
42887
42888         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
42889         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
42890         Reported by Ralf Wildenhues.
42891
42892 2009-05-04  Simon Josefsson  <simon@josefsson.org>
42893
42894         * m4/fnmatch.m4: Fix fnmatch re-define.
42895
42896 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42897
42898         priv-set: new module and tests; adapt write-any-file
42899         * lib/priv-set.c: New file.
42900         * lib/priv-set.h: New file.
42901         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
42902         * lib/write-any-file.c: Simplify by using priv-set module.
42903         * m4/priv-set.m4: New file.
42904         * modules/priv-set: New file.
42905         * modules/unlinkdir: Add dependency on priv-set module.
42906         * modules/write-any-file: Likewise.
42907
42908         Tests for module 'priv-set'.
42909         * modules/priv-set-tests: New file.
42910         * tests/test-priv-set.c: New file.
42911
42912 2009-05-03  Jim Meyering  <meyering@redhat.com>
42913             Bruno Haible  <bruno@clisp.org>
42914
42915         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
42916         use the converted UTF-8 variant of the name instead.
42917
42918 2009-05-03  Jim Meyering  <meyering@redhat.com>
42919
42920         tests: tighten some getdate tests
42921         * tests/test-getdate.c (main): Tighten tests: require equality,
42922         not just greater than.  Set TZ envvar to UTC0.
42923
42924 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
42925
42926         getdate: correctly interpret "next monday" when run on a Monday
42927         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
42928         that e.g., "next tues" (when run on a tuesday) results in a date
42929         that is one week in the future, and not today's date.
42930         I.e., add a week when the wday is the same as the current one.
42931         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
42932         and earlier by Martin Bernreuther and Jan Minář.
42933         * tests/test-getdate.c (main): Check that "next DAY" is always in
42934         the future and that "last DAY" is always in the past.
42935
42936 2009-05-02  Jim Meyering  <meyering@redhat.com>
42937
42938         build: ensure that a release build fails when a submodule is unclean
42939         * top/maint.mk (no-submodule-changes): New rule.
42940         (alpha beta major): Depend on it.
42941
42942 2009-05-02  Bruno Haible  <bruno@clisp.org>
42943
42944         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
42945         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
42946         shell variable gl_fnmatch_required to detect which variant is
42947         requested.
42948         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
42949         gl_FUNC_FNMATCH_POSIX.
42950         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
42951         exclude fnmatch-posix.
42952
42953 2009-05-02  Bruno Haible  <bruno@clisp.org>
42954
42955         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
42956         * modules/mbsrtowcs (License): Change to LGPLv2+.
42957         * modules/strnlen1 (License): Likewise.
42958         Reported by Simon Josefsson.
42959
42960 2009-05-02  Bruno Haible  <bruno@clisp.org>
42961
42962         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
42963         "cross".
42964         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
42965         gnulib-tool was called with option --source-base=lib.
42966
42967 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42968
42969         Use automake *-local hooks without commands, for extensibility.
42970         * modules/localcharset (Makefile.am): Rename install-exec-local
42971         rule to install-exec-localcharset, and make it a prerequisite of
42972         install-exec-local.  Likewise, rename the uninstall-local rule to
42973         uninstall-localcharset, and make it a prerequisite of the former.
42974
42975 2009-05-01  Bruno Haible  <bruno@clisp.org>
42976
42977         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
42978         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
42979         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
42980         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
42981         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
42982         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
42983         m4/locale-zh.m4, m4/codeset.m4.
42984
42985         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
42986         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
42987         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
42988         m4/locale-zh.m4.
42989
42990         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
42991         REPLACE_WCRTOMB if mbstate_t must be replaced.
42992         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
42993         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
42994
42995 2009-05-01  Bruno Haible  <bruno@clisp.org>
42996
42997         Avoid compiler warnings when redefining macros defined by <libintl.h>.
42998         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
42999         dngettext, dcngettext, textdomain, bindtextdomain,
43000         bind_textdomain_codeset): Undefine before redefining.
43001
43002 2009-04-30  Bruno Haible  <bruno@clisp.org>
43003
43004         Fix bug introduced on 2009-04-25.
43005         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
43006         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
43007         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
43008         is defined.
43009         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
43010         is defined.
43011         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
43012         is defined.
43013         Reported by Elbert_Pol <elbert.pol@gmail.com>.
43014
43015 2009-04-28  Bruno Haible  <bruno@clisp.org>
43016
43017         Comment tweaks.
43018         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
43019         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
43020         * lib/unicase.h (u*_casexfrm): Likewise.
43021         Reported by Paolo Bonzini.
43022
43023 2009-04-28  Bruno Haible  <bruno@clisp.org>
43024
43025         Fix a compilation error.
43026         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
43027         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43028         Reported by Jim Meyering.
43029
43030 2009-04-27  Bruno Haible  <bruno@clisp.org>
43031
43032         New module 'libunistring'.
43033         * modules/libunistring: New file.
43034         * m4/libunistring.m4: New file.
43035         * MODULES.html.sh (Unicode string functions): Add it.
43036
43037 2009-04-27  Eric Blake  <ebb9@byu.net>
43038
43039         maint.mk: allow package-specific header to provide <config.h>
43040         * top/maint.mk (sc_require_config_h): New variable.
43041         (sc_require_config_h, sc_require_config_h_first): Use it.
43042
43043 2009-04-27  Simon Josefsson  <simon@josefsson.org>
43044
43045         * top/maint.mk (sc_avoid_if_before_free): Except
43046         useless-if-before-free script.
43047
43048 2009-04-27  Eric Blake  <ebb9@byu.net>
43049
43050         maintainer-makefile: depend on all required helper scripts
43051         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
43052         useless-if-before-free.
43053         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
43054         version, rather than assuming gnulib checkout is available.
43055         Reported by Simen Josefsson.
43056
43057 2009-04-26  Bruno Haible  <bruno@clisp.org>
43058
43059         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
43060         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
43061         "../" or "..".
43062
43063 2009-04-26  Bruno Haible  <bruno@clisp.org>
43064
43065         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
43066         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
43067         AC_LIB_HAVE_LINKFLAGS.
43068
43069 2009-04-26  Bruno Haible  <bruno@clisp.org>
43070
43071         Simplify calling convention of u*_conv_from_encoding.
43072         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
43073         u32_conv_from_encoding): Expect a resultbuf argument and return the
43074         result directly as a pointer.
43075         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
43076         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
43077         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
43078         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
43079         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
43080         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43081         Update.
43082         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
43083         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
43084         * lib/vasnprintf.c (VASNPRINTF): Update.
43085         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
43086         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
43087         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
43088         * NEWS: Mention the change.
43089
43090 2009-04-26  Bruno Haible  <bruno@clisp.org>
43091
43092         Simplify calling convention of u*_conv_to_encoding.
43093         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43094         u32_conv_to_encoding): Expect a resultbuf argument and return the
43095         result directly as a pointer.
43096         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43097         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
43098         freeing scaled_offsets if mem_iconveha failed.
43099         * lib/unicase/u-casexfrm.h (FUNC): Update.
43100         * lib/uninorm/u-normxfrm.h (FUNC): Update.
43101         * lib/vasnprintf.c (VASNPRINTF): Update.
43102         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
43103         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
43104         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
43105         * NEWS: Mention the change.
43106
43107 2009-04-26  Bruno Haible  <bruno@clisp.org>
43108
43109         Avoid test failures on AIX and OSF/1.
43110         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
43111         malloc(0).
43112         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43113         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43114         Likewise.
43115         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
43116         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
43117         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
43118         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
43119         * doc/posix-functions/malloc.texi: Document the portability problem
43120         related to malloc(0).
43121
43122 2009-04-26  Bruno Haible  <bruno@clisp.org>
43123
43124         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
43125         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
43126         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
43127
43128 2009-04-25  Bruno Haible  <bruno@clisp.org>
43129
43130         Avoid link error when creating a namespace clean library.
43131         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
43132         as macro with arguments if already defined as an alias.
43133         * lib/signbitf.c (gl_signbitf): Don't undefine.
43134         * lib/signbitd.c (gl_signbitd): Don't undefine.
43135         * lib/signbitl.c (gl_signbitl): Don't undefine.
43136
43137 2009-04-25  Jim Meyering  <meyering@redhat.com>
43138
43139         vc-list-files: fix another quoting bug
43140         * build-aux/vc-list-files: Avoid sed backslash expansion
43141         of pathological directory names.
43142
43143 2009-04-25  Eric Blake  <ebb9@byu.net>
43144
43145         vc-list-files: fix shell quoting error
43146         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
43147         timestamp.
43148
43149 2009-04-25  Jim Meyering  <meyering@redhat.com>
43150
43151         vc-list-files: restore lost functionality with subdir argument
43152         * build-aux/vc-list-files: When given a non-"." sub-directory
43153         argument, substitute the $dir/ prefix back onto each resulting name.
43154         Otherwise, coreutils' root_tests check would fail.
43155
43156 2009-04-24  Eric Blake  <ebb9@byu.net>
43157
43158         vc-list-files: ignore git symlinks
43159         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
43160         than ls-files, to ignore git symlinks.
43161
43162         maint.mk: import improvements from m4
43163         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
43164         (move_if_change): Delete unused macro.
43165         (news-date-check, vc-diff-check): Support VPATH builds.
43166         (announcement): Likewise.  Split --bootstrap-tools list...
43167         (boostrap-tools): ...into separate list, which can be overridden
43168         in cfg.mk.
43169         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
43170         requiring dependency on useless-if-before-free module.
43171         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
43172         Support VPATH builds.
43173
43174 2009-04-24  Jim Meyering  <meyering@redhat.com>
43175
43176         maint.mk: remove coreutils-specific rules and variables
43177         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
43178         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
43179         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
43180
43181         maint.mk: remove obsolete rule
43182         * top/maint.mk (rel-check): Remove rule.
43183         (WGET, WGETFLAGS): Remove now-unused variables.
43184
43185 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43186
43187         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
43188         consistency.
43189
43190         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
43191         '$(PATH_SEPARATOR)' instead of ':'.
43192
43193 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43194
43195         * lib/getopt1.c (main): Use 'const' for static array.
43196
43197 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43198
43199         * top/maint.mk: Sync with coreutils.
43200         * NEWS: Explain incompatibilities.
43201
43202 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43203             Bruno Haible  <bruno@clisp.org>
43204
43205         Fix cross-compilation results.
43206         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
43207         statement, as third argument of AC_TRY_RUN.
43208         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
43209         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
43210         Likewise.
43211         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43212         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
43213         Likewise.
43214         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
43215         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
43216         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
43217
43218 2009-04-20  Bruno Haible  <bruno@clisp.org>
43219
43220         Avoid test failure on mingw.
43221         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
43222
43223 2009-04-20  Bruno Haible  <bruno@clisp.org>
43224
43225         Avoid compilation error on mingw.
43226         * modules/localename-tests (Depends-on): Add locale.
43227
43228 2009-04-19  Bruno Haible  <bruno@clisp.org>
43229
43230         Support for building a shared library on Windows platforms.
43231         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
43232         (main): Test the presence of UNINORM_NFC here.
43233         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
43234         (main): Test the presence of UNINORM_NFD here.
43235         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
43236         (main): Test the presence of UNINORM_NFKC here.
43237         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
43238         (main): Test the presence of UNINORM_NFKD here.
43239
43240 2009-04-19  Bruno Haible  <bruno@clisp.org>
43241
43242         Avoid a compiler warning.
43243         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
43244         Change type of variable 'sequence'.
43245
43246 2009-04-19  Bruno Haible  <bruno@clisp.org>
43247
43248         * modules/configmake (Makefile.am): When the contents of configmake.h
43249         does not change, arrange to preserve its modification time.
43250
43251 2009-04-17  Simon Josefsson  <simon@josefsson.org>
43252
43253         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
43254         gettext domain.
43255
43256 2009-04-16  Jim Meyering  <meyering@redhat.com>
43257
43258         useless-if-before-free: improve conversion code
43259         * build-aux/useless-if-before-free: Adjust code-in-comment to match
43260         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
43261
43262 2009-04-14  Bruno Haible  <bruno@clisp.org>
43263
43264         * modules/fcntl (Depends-on): Add extensions.
43265         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
43266
43267 2009-04-12  Ben Pfaff  <blp@gnu.org>
43268
43269         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
43270         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
43271
43272 2009-03-20  Ben Pfaff  <blp@gnu.org>
43273
43274         Make rename replace existing destinations on Windows.
43275         * m4/rename.m4: Add test for Mingw.
43276         * lib/rename.c: Add rename replacement that uses MoveFileEx with
43277         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
43278         * doc/posix-functions/rename.texi: Document.
43279
43280 2009-04-10  Bruno Haible  <bruno@clisp.org>
43281
43282         New include file "iconveh.h".
43283         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
43284         * lib/striconveh.h: Include it.
43285         (enum iconv_ilseq_handler): Remove definition.
43286         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
43287         striconveh.h.
43288         * lib/striconveha.c: Include striconveh.h.
43289         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
43290         * modules/striconveh (Files): Add lib/iconveh.h.
43291         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
43292         lib/striconveh.h.
43293
43294 2009-04-10  Bruno Haible  <bruno@clisp.org>
43295
43296         * lib/uniconv.h: Update comment.
43297
43298 2009-04-10  Bruno Haible  <bruno@clisp.org>
43299
43300         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
43301         always.
43302         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
43303         * lib/unistr/u16-mbtouc-aux.c: Likewise.
43304         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
43305         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
43306         "unistring-notinline.h", so that the function gets defined always.
43307         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
43308         * lib/unistr/u8-uctomb.c: Likewise.
43309         * lib/unistr/u16-mbtouc.c: Likewise.
43310         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
43311         * lib/unistr/u16-uctomb.c: Likewise.
43312         * lib/unistr/u32-mbtouc.c: Likewise.
43313         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
43314         * lib/unistr/u32-uctomb.c: Likewise.
43315
43316 2009-04-10  Bruno Haible  <bruno@clisp.org>
43317
43318         Mark 'utime' obsolete.
43319         * modules/utime (Status, Notice): New sections.
43320         Suggested by Jim Meyering.
43321
43322         Fix cross-compile guess for utime test.
43323         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
43324         autoconf.
43325         * doc/posix-functions/utime.texi: Give more precisions.
43326         Reported by Jan <ipif@ymail.com>.
43327
43328 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
43329
43330         filevercmp: correct today's change
43331         * lib/filevercmp.c: Also handle coreutils' test inputs.
43332         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
43333
43334         Fix regression in 'filevercmp' module. Thanks Sven Joachim
43335         for reporting it.
43336         * lib/filevercmp.c: Special handle for "", "." and "..".
43337         * tests/test-filevercmp.c: Enlarge the set suite.
43338
43339 2009-04-07  Jim Meyering  <meyering@redhat.com>
43340
43341         useless-if-before-free: show how to remove braced useless free, too
43342         * build-aux/useless-if-before-free: still only in a comment, though.
43343
43344 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
43345
43346         maint.mk: import changes to syntax-check macros from coreutils
43347         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
43348         Use them in the relevant macros.
43349
43350 2009-04-06  Bruno Haible  <bruno@clisp.org>
43351
43352         Fix unportable use of bit-fields.
43353         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
43354         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
43355         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
43356
43357 2009-04-06  Bruno Haible  <bruno@clisp.org>
43358
43359         Avoid test failures on AIX and OSF/1.
43360         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
43361         that malloc(0) = NULL.
43362         * tests/unicase/test-u8-tolower.c (check): Likewise.
43363         * tests/unicase/test-u8-totitle.c (check): Likewise.
43364         * tests/unicase/test-u8-toupper.c (check): Likewise.
43365         * tests/unicase/test-u16-casefold.c (check): Likewise.
43366         * tests/unicase/test-u16-tolower.c (check): Likewise.
43367         * tests/unicase/test-u16-totitle.c (check): Likewise.
43368         * tests/unicase/test-u16-toupper.c (check): Likewise.
43369         * tests/unicase/test-u32-casefold.c (check): Likewise.
43370         * tests/unicase/test-u32-tolower.c (check): Likewise.
43371         * tests/unicase/test-u32-totitle.c (check): Likewise.
43372         * tests/unicase/test-u32-toupper.c (check): Likewise.
43373         * tests/uninorm/test-u8-nfc.c (check): Likewise.
43374         * tests/uninorm/test-u8-nfd.c (check): Likewise.
43375         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
43376         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
43377         * tests/uninorm/test-u16-nfc.c (check): Likewise.
43378         * tests/uninorm/test-u16-nfd.c (check): Likewise.
43379         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
43380         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
43381         * tests/uninorm/test-u32-nfc.c (check): Likewise.
43382         * tests/uninorm/test-u32-nfd.c (check): Likewise.
43383         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
43384         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
43385
43386 2009-04-05  Bruno Haible  <bruno@clisp.org>
43387
43388         Work around an autoconf limitation.
43389         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
43390         comment line if it would be longer than 3 KB.
43391
43392 2009-04-05  Bruno Haible  <bruno@clisp.org>
43393
43394         Avoid test failure with libiconv-1.13.
43395         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
43396         of the expected test results.
43397
43398 2009-04-05  Bruno Haible  <bruno@clisp.org>
43399
43400         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
43401         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
43402         that it should be installed.
43403
43404 2009-04-05  Bruno Haible  <bruno@clisp.org>
43405
43406         * gnulib-tool: New option --copy-file.
43407         (func_usage): Document it.
43408         (func_dest_tmpfilename): Moved out of func_import.
43409         (func_add_file, func_update_file): New functions, extracted from
43410         func_import.
43411         (func_import): Update.
43412
43413 2009-04-05  Karl Berry  <karl@gnu.org>
43414
43415         * README: prominently mention gnulib-tool.
43416         Rearrange sections so getting the code is near the top.
43417
43418 2009-04-05  Bruno Haible  <bruno@clisp.org>
43419
43420         * lib/unicase.h: Mention u*_cmp2.
43421         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
43422         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
43423         * lib/unicase/ulc-casecmp.c: Likewise.
43424         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
43425         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
43426         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
43427         unistr/u8-cmp.
43428         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
43429         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
43430         unistr/u16-cmp.
43431         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
43432         unistr/u32-cmp.
43433
43434         * lib/uninorm.h: Mention u*_cmp2.
43435         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
43436         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
43437         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
43438         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
43439         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
43440         unistr/u8-cmp.
43441         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
43442         unistr/u16-cmp.
43443         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
43444         unistr/u32-cmp.
43445
43446         New module 'unistr/u32-cmp2'.
43447         * lib/unistr/u32-cmp2.c: New file.
43448         * modules/unistr/u32-cmp2: New file.
43449
43450         New module 'unistr/u16-cmp2'.
43451         * lib/unistr/u16-cmp2.c: New file.
43452         * modules/unistr/u16-cmp2: New file.
43453
43454         New module 'unistr/u8-cmp2'.
43455         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
43456         * lib/unistr/u8-cmp2.c: New file.
43457         * lib/unistr/u-cmp2.h: New file.
43458         * modules/unistr/u8-cmp2: New file.
43459
43460 2009-04-05  Bruno Haible  <bruno@clisp.org>
43461
43462         * lib/unictype.h (uc_property_is_valid): New macro.
43463         * tests/unictype/test-pr_byname.c (main): Use it.
43464
43465         * lib/unistr.h: Doc fixes.
43466         * lib/uniconv.h: Doc fixes.
43467         * lib/unictype.h: Doc fixes.
43468
43469 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
43470
43471         Port coreutils 7.2 to Solaris 8.
43472
43473         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
43474         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
43475         for Solaris 8.  This is a bit of a hack, as it means it's the
43476         caller's responsibility to add -lnsl if needed, but most likely it
43477         won't be needed since only getaddrinfo uses this and getaddrinfo
43478         isn't needed on Solaris 8.
43479
43480         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
43481         problem to Solaris 8 encountered with coreutils 7.2, which
43482         resulted in a message "fnmatch.c:292: warning: passing argument 4
43483         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
43484         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
43485
43486 2009-04-03  Simon Josefsson  <simon@josefsson.org>
43487
43488         * m4/ld-version-script.m4: Add FIXME comment.
43489
43490 2009-04-02  Simon Josefsson  <simon@josefsson.org>
43491
43492         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
43493         SOVERSION variable.
43494
43495 2009-04-02  Bruno Haible  <bruno@clisp.org>
43496
43497         * Makefile (info, html, dvi, pdf): Combine the rules.
43498         Suggested by Jim Meyering.
43499
43500 2009-04-01  Bruno Haible  <bruno@clisp.org>
43501
43502         * Makefile (info, html, dvi, pdf): New targets.
43503         Reported by Reuben Thomas <rrt@sc3d.org>.
43504
43505 2009-04-01  Bruno Haible  <bruno@clisp.org>
43506
43507         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
43508         can be put into PATH.
43509         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
43510
43511 2009-04-01  Bruno Haible  <bruno@clisp.org>
43512
43513         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
43514
43515 2009-04-01  Bruno Haible  <bruno@clisp.org>
43516
43517         Rename module 'visibility'.
43518         * modules/lib-symbol-visibility: Renamed from modules/visibility.
43519         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
43520         * doc/gnulib.texi: Update.
43521         * MODULES.html.sh (Misc): Update.
43522         * NEWS: Mention the change.
43523
43524 2009-04-01  Simon Josefsson  <simon@josefsson.org>
43525
43526         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
43527         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
43528         Eric Blake <ebb9@byu.net> for review.
43529         * MODULES.html.sh: Add lib-msvc-compat.
43530         * doc/gnulib.texi: Link to new section.
43531         * m4/ld-output-def.m4: New file.
43532         * doc/ld-output-def.texi: New file.
43533
43534 2009-04-01  Simon Josefsson  <simon@josefsson.org>
43535
43536         Rename ld-version-script to lib-symbol-versions.  Suggested by
43537         Bruno Haible <bruno@clisp.org>.
43538         * modules/ld-version-script: Renamed to lib-symbol-versions.
43539         * doc/ld-version-script.texi: Fix module name.
43540         * MODULES.html.sh: Add lib-symbol-versions.
43541
43542 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43543
43544         * modules/u64-tests: New file.
43545         * tests/test-u64.c: New file.
43546
43547 2009-03-04  Simon Josefsson  <simon@josefsson.org>
43548
43549         * MODULES.html.sh: Mention u64.
43550         * modules/u64: New module.
43551         * modules/crypto/sha512: Depend on u64 module instead of providing
43552         u64.h.
43553
43554 2009-03-27  Eric Blake  <ebb9@byu.net>
43555
43556         test-strerror: make debugging EAI_SYSTEM easier
43557         * modules/getaddrinfo-tests (Depends-on): Add strerror.
43558         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
43559         failure was EAI_SYSTEM.
43560
43561 2009-03-25  Bruno Haible  <bruno@clisp.org>
43562
43563         Fix a problem with --enable-relocatable on Solaris 7.
43564         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
43565         since 2008-02-24.
43566
43567 2009-03-25  Eric Blake  <ebb9@byu.net>
43568
43569         test-sockets: avoid gcc warning
43570         * tests/test-sockets.c (main): Silence compiler warning.
43571
43572 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
43573
43574         New modules nproc, pthread, contributed by Glen Lenker.
43575
43576         * MODULES.html.sh: Add pthread, nproc.
43577         * lib/nproc.c: New file.
43578         * lib/nproc.h: New file.
43579         * lib/pthread.in.h: New file.
43580         * m4/pthread.m4: New file.
43581         * modules/nproc: New file.
43582         * modules/pthread: New file.
43583
43584 2009-03-24  Simon Josefsson  <simon@josefsson.org>
43585
43586         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
43587         New variable.
43588
43589 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
43590
43591         filevercmp: handle simple~ and numbered.~3~ backup suffixes
43592         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
43593         * tests/test-filevercmp.c: Add tests for backup suffixes.
43594
43595 2009-03-24  Simon Josefsson  <simon@josefsson.org>
43596
43597         * modules/stdlib (Depends-on): Add stdint, needed when defining
43598         struct random_data on, for example, HP-UX 10.20.  Reported by
43599         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43600
43601 2009-03-24  Simon Josefsson  <simon@josefsson.org>
43602
43603         * lib/readline.c (readline): Call fflush on stdout after printing
43604         prompt.
43605
43606 2009-03-20  Bruno Haible  <bruno@clisp.org>
43607
43608         Remove dependency from 'close' module to -lws2_32 on native Windows.
43609         * lib/close-hook.h: New file.
43610         * lib/close-hook.c: New file.
43611         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
43612         w32sock.h.
43613         (_gl_close_fd_maybe_socket): Remove function.
43614         (rpl_close): Invoke execute_all_close_hooks instead of
43615         _gl_close_fd_maybe_socket.
43616         * lib/sockets.c: Include close-hook.h, w32sock.h.
43617         (close_fd_maybe_socket): New function, essentially from lib/close.c.
43618         (close_sockets_hook): New variable.
43619         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
43620         (gl_sockets_cleanup): Unregister it.
43621         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
43622         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
43623         * modules/close-hook: New file.
43624         * modules/close (Files): Remove lib/w32sock.h.
43625         (Depends-on): Add close-hook.
43626         (Link): Remove section.
43627         * modules/sockets (Files): Add lib/w32sock.h.
43628         (Depends-on): Add close-hook.
43629         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
43630         invocation.
43631         * NEWS: Mention that LIB_CLOSE is gone.
43632
43633 2009-03-23  Eric Blake  <ebb9@byu.net>
43634
43635         signal-tests: test previous patch
43636         * tests/test-signal.c: New file.
43637         * modules/signal-tests: Likewise.
43638
43639         signal.h: always support 'volatile sig_atomic_t'
43640         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
43641         (gl_SIGNAL_H_DEFAULTS): Add a default.
43642         * modules/signal (Makefile.am): Substitute if needed.
43643         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
43644         users can blindly add volatile.
43645         * doc/posix-headers/signal.texi (signal.h): Document it.
43646         Reported by Matthew Woehlke.
43647
43648 2009-03-23  Jim Meyering  <meyering@redhat.com>
43649
43650         pathmax: PATH_MAX: use pathconf only when available
43651         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
43652         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
43653         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
43654         This avoids a link failure in a PSP cross-compilation environment
43655         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
43656
43657         * lib/vasnprintf.c (divide): Fix typo in comment.
43658
43659 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43660
43661         * gnulib-tool (func_filter_filelist): Fix comment.
43662
43663 2009-03-20  Bruno Haible  <bruno@clisp.org>
43664
43665         Make sockets.h self-contained.
43666         * lib/sockets.c: Include sockets.h first.
43667         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
43668
43669 2009-03-19  Eric Blake  <ebb9@byu.net>
43670
43671         doc: mention more functions added in cygwin 1.7.0
43672         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
43673         addition.
43674         * doc/posix-functions/log2f.texi: Likewise.
43675
43676 2009-03-19  Jim Meyering  <meyering@redhat.com>
43677
43678         fsusage: avoid syntax error due to statement-before-declaration
43679         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
43680         after all declarations.  Reported by Matthew Woehlke in
43681         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
43682
43683 2009-03-18  Eric Blake  <ebb9@byu.net>
43684
43685         build-aux/compile: sync from automake
43686         * build-aux/compile: New file, from automake.
43687         * config/srclist.txt: Mention build-aux/compile.
43688
43689 2009-03-17  Bruno Haible  <bruno@clisp.org>
43690
43691         * lib/git-merge-changelog.c: Fix typo in comment.
43692         Reported by Reuben Thomas <rrt@sc3d.org>.
43693
43694 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
43695
43696         * m4/regex.m4: update and improve help for
43697         --without-included-regex.
43698
43699 2009-03-17  Simon Josefsson  <simon@josefsson.org>
43700
43701         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
43702         failure on missing include files.
43703
43704 2009-03-17  Eric Blake  <ebb9@byu.net>
43705
43706         doc: mention more functions added in cygwin 1.7.0
43707         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
43708         addition.
43709         * doc/posix-functions/fwscanf.texi: Likewise.
43710         * doc/posix-functions/swprintf.texi: Likewise.
43711         * doc/posix-functions/swscanf.texi: Likewise.
43712         * doc/posix-functions/vfwprintf.texi: Likewise.
43713         * doc/posix-functions/vfwscanf.texi: Likewise.
43714         * doc/posix-functions/vswprintf.texi: Likewise.
43715         * doc/posix-functions/vswscanf.texi: Likewise.
43716         * doc/posix-functions/vwprintf.texi: Likewise.
43717         * doc/posix-functions/vwscanf.texi: Likewise.
43718         * doc/posix-functions/wcscasecmp.texi: Likewise.
43719         * doc/posix-functions/wcsdup.texi: Likewise.
43720         * doc/posix-functions/wcsftime.texi: Likewise.
43721         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43722         * doc/posix-functions/wprintf.texi: Likewise.
43723         * doc/posix-functions/wscanf.texi: Likewise.
43724         * doc/glibc-functions/gethostbyname2.texi: Likewise.
43725
43726 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43727
43728         maint.mk: really add $(AM_MAKEFLAGS)
43729         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
43730         was inadvertently omitted in the last commit.
43731         Spotted by Bruno Haible.
43732
43733         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
43734         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
43735         $(AM_MAKEFLAGS)' rather than plain `make'.
43736
43737         gnulib-tool: execute $MAKE not make
43738         * gnulib-tool: Default $MAKE to 'make'.
43739         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
43740         than make.  Initialize $MAKE in the do-autobuild script.
43741
43742         gnulib-tool: use $MAKE not make in generated files
43743         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
43744         make, in generated files.  Initialize $MAKE in the do-autobuild
43745         script.
43746
43747         * top/GNUmakefile (_have-git-version-gen): Fix typo.
43748
43749         GNUmakefile: disable parallelism only for multiple, recursive targets
43750         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
43751         additions in the Makefile.
43752         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
43753         by Automake.
43754         (.NOTPARALLEL): Only disable parallel builds if multiple targets
43755         are listed on the command line and at least one of them is
43756         listed in $(ALL_RECURSIVE_TARGETS).
43757
43758 2009-03-14  Bruno Haible  <bruno@clisp.org>
43759
43760         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
43761         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
43762         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
43763         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
43764         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
43765         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
43766         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
43767         unistr/u8-uctomb.
43768         * modules/unistr/u8-strchr (Depends-on): Likewise.
43769         * modules/unistr/u8-strrchr (Depends-on): Likewise.
43770         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
43771         unistr/u16-uctomb.
43772         * modules/unistr/u16-strchr (Depends-on): Likewise.
43773         * modules/unistr/u16-strrchr (Depends-on): Likewise.
43774
43775 2009-03-12  Bruno Haible  <bruno@clisp.org>
43776
43777         Work around select() bug on Interix 3.5.
43778         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
43779         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
43780         * m4/select.m4: New file.
43781         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
43782         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
43783         * modules/select (Files): Add m4/select.m4.
43784         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
43785         * modules/nanosleep (Depends-on): Add select.
43786         * modules/poll (Depends-on): Likewise.
43787         * doc/posix-functions/select.texi: Mention the Interix bug.
43788         Reported by Markus Duft <mduft@gentoo.org>.
43789
43790         * lib/select.c: Renamed from lib/winsock-select.c.
43791         * modules/select (Files): Add lib/select.c, remove
43792         lib/winsock-select.c.
43793         (configure.ac): Update.
43794
43795 2009-03-12  Jim Meyering  <meyering@redhat.com>
43796
43797         avoid gcc warnings about unused macro definitions
43798         * lib/readtokens.c (STREQ): Remove unused definition.
43799         * lib/xmalloc.c (SIZE_MAX): Likewise.
43800         * lib/openat-die.c (N_): Likewise.
43801         * lib/mountlist.c (SIZE_MAX): Remove definition.
43802         Instead, include <stdint.h>.
43803         * lib/readutmp.c: Likewise.
43804         * modules/readutmp (Depends-on): Add stdint.
43805         * modules/mountlist (Depends-on): Add stdint.
43806         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
43807
43808 2009-03-10  Bruno Haible  <bruno@clisp.org>
43809
43810         Tests for module 'mbmemcasecoll'.
43811         * modules/mbmemcasecoll-tests: New file.
43812         * tests/test-mbmemcasecoll1.sh: New file.
43813         * tests/test-mbmemcasecoll2.sh: New file.
43814         * tests/test-mbmemcasecoll3.sh: New file.
43815         * tests/test-mbmemcasecoll.c: New file.
43816
43817         New module 'mbmemcasecoll'.
43818         * lib/mbmemcasecoll.h: New file.
43819         * lib/mbmemcasecoll.c: New file.
43820         * modules/mbmemcasecoll: New file.
43821
43822         * tests/test-mbmemcasecmp.h: New file, extracted from
43823         tests/test-mbmemcasecmp.c.
43824         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
43825         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
43826         (main): Update.
43827         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
43828
43829 2009-03-09  Bruno Haible  <bruno@clisp.org>
43830
43831         Tests for module 'mbmemcasecmp'.
43832         * modules/mbmemcasecmp-tests: New file.
43833         * tests/test-mbmemcasecmp1.sh: New file.
43834         * tests/test-mbmemcasecmp2.sh: New file.
43835         * tests/test-mbmemcasecmp3.sh: New file.
43836         * tests/test-mbmemcasecmp.c: New file.
43837
43838         New module 'mbmemcasecmp'.
43839         * lib/mbmemcasecmp.h: New file.
43840         * lib/mbmemcasecmp.c: New file.
43841         * modules/mbmemcasecmp: New file.
43842
43843 2009-03-09  Bruno Haible  <bruno@clisp.org>
43844
43845         Tests for module 'unicase/ulc-casecoll'.
43846         * modules/unicase/ulc-casecoll-tests: New file.
43847         * tests/unicase/test-ulc-casecoll1.sh: New file.
43848         * tests/unicase/test-ulc-casecoll2.sh: New file.
43849         * tests/unicase/test-ulc-casecoll.c: New file.
43850
43851         New module 'unicase/ulc-casecoll'.
43852         * lib/unicase.h (ulc_casecoll): New declaration.
43853         * lib/unicase/ulc-casecoll.c: New file.
43854         * modules/unicase/ulc-casecoll: New file.
43855
43856         New module 'unicase/ulc-casexfrm'.
43857         * lib/unicase.h (ulc_casexfrm): New declaration.
43858         * lib/unicase/ulc-casexfrm.c: New file.
43859         * modules/unicase/ulc-casexfrm: New file.
43860
43861 2009-03-09  Bruno Haible  <bruno@clisp.org>
43862
43863         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
43864         invocations.
43865
43866         * m4/mbscasecmp.m4: Remove file.
43867         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
43868         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
43869
43870         * m4/mbscasestr.m4: Remove file.
43871         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
43872         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
43873
43874         * m4/mbschr.m4: Remove file.
43875         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
43876         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
43877
43878         * m4/mbscspn.m4: Remove file.
43879         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
43880         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
43881
43882         * m4/mbslen.m4: Remove file.
43883         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
43884         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
43885
43886         * m4/mbsncasecmp.m4: Remove file.
43887         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
43888         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
43889
43890         * m4/mbsnlen.m4: Remove file.
43891         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
43892         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
43893
43894         * m4/mbspbrk.m4: Remove file.
43895         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
43896         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
43897
43898         * m4/mbspcasecmp.m4: Remove file.
43899         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
43900         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
43901
43902         * m4/mbsrchr.m4: Remove file.
43903         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
43904         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
43905
43906         * m4/mbssep.m4: Remove file.
43907         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
43908         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
43909
43910         * m4/mbsspn.m4: Remove file.
43911         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
43912         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
43913
43914         * m4/mbsstr.m4: Remove file.
43915         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
43916         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
43917
43918         * m4/mbstok_r.m4: Remove file.
43919         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
43920         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
43921
43922         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
43923
43924         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
43925         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
43926
43927         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
43928
43929 2009-03-08  Bruno Haible  <bruno@clisp.org>
43930
43931         Tests for module 'unicase/ulc-casecmp'.
43932         * modules/unicase/ulc-casecmp-tests: New file.
43933         * tests/unicase/test-ulc-casecmp1.sh: New file.
43934         * tests/unicase/test-ulc-casecmp2.sh: New file.
43935         * tests/unicase/test-ulc-casecmp.c: New file.
43936
43937         New module 'unicase/ulc-casecmp'.
43938         * lib/unicase.h (ulc_casecmp): New declaration.
43939         * lib/unicase/ulc-casecmp.c: New file.
43940         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
43941         'const SRC_UNIT *'.
43942         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
43943         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
43944         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
43945         * modules/unicase/ulc-casecmp: New file.
43946
43947         Tests for module 'unicase/u32-is-cased'.
43948         * modules/unicase/u32-is-cased-tests: New file.
43949         * tests/unicase/test-u32-is-cased.c: New file.
43950
43951         Tests for module 'unicase/u16-is-cased'.
43952         * modules/unicase/u16-is-cased-tests: New file.
43953         * tests/unicase/test-u16-is-cased.c: New file.
43954
43955         Tests for module 'unicase/u8-is-cased'.
43956         * modules/unicase/u8-is-cased-tests: New file.
43957         * tests/unicase/test-u8-is-cased.c: New file.
43958         * tests/unicase/test-is-cased.h: New file.
43959
43960         New module 'unicase/u32-is-cased'.
43961         * lib/unicase/u32-is-cased.c: New file.
43962         * modules/unicase/u32-is-cased: New file.
43963
43964         New module 'unicase/u16-is-cased'.
43965         * lib/unicase/u16-is-cased.c: New file.
43966         * modules/unicase/u16-is-cased: New file.
43967
43968         New module 'unicase/u8-is-cased'.
43969         * lib/unicase/u8-is-cased.c: New file.
43970         * lib/unicase/u-is-cased.h: New file.
43971         * modules/unicase/u8-is-cased: New file.
43972
43973         Tests for module 'unicase/u32-is-casefolded'.
43974         * modules/unicase/u32-is-casefolded-tests: New file.
43975         * tests/unicase/test-u32-is-casefolded.c: New file.
43976
43977         Tests for module 'unicase/u16-is-casefolded'.
43978         * modules/unicase/u16-is-casefolded-tests: New file.
43979         * tests/unicase/test-u16-is-casefolded.c: New file.
43980
43981         Tests for module 'unicase/u8-is-casefolded'.
43982         * modules/unicase/u8-is-casefolded-tests: New file.
43983         * tests/unicase/test-u8-is-casefolded.c: New file.
43984         * tests/unicase/test-is-casefolded.h: New file.
43985
43986         New module 'unicase/u32-is-casefolded'.
43987         * lib/unicase/u32-is-casefolded.c: New file.
43988         * modules/unicase/u32-is-casefolded: New file.
43989
43990         New module 'unicase/u16-is-casefolded'.
43991         * lib/unicase/u16-is-casefolded.c: New file.
43992         * modules/unicase/u16-is-casefolded: New file.
43993
43994         New module 'unicase/u8-is-casefolded'.
43995         * lib/unicase/u8-is-casefolded.c: New file.
43996         * modules/unicase/u8-is-casefolded: New file.
43997
43998         Tests for module 'unicase/u32-is-titlecase'.
43999         * modules/unicase/u32-is-titlecase-tests: New file.
44000         * tests/unicase/test-u32-is-titlecase.c: New file.
44001
44002         Tests for module 'unicase/u16-is-titlecase'.
44003         * modules/unicase/u16-is-titlecase-tests: New file.
44004         * tests/unicase/test-u16-is-titlecase.c: New file.
44005
44006         Tests for module 'unicase/u8-is-titlecase'.
44007         * modules/unicase/u8-is-titlecase-tests: New file.
44008         * tests/unicase/test-u8-is-titlecase.c: New file.
44009         * tests/unicase/test-is-titlecase.h: New file.
44010
44011         New module 'unicase/u32-is-titlecase'.
44012         * lib/unicase/u32-is-titlecase.c: New file.
44013         * modules/unicase/u32-is-titlecase: New file.
44014
44015         New module 'unicase/u16-is-titlecase'.
44016         * lib/unicase/u16-is-titlecase.c: New file.
44017         * modules/unicase/u16-is-titlecase: New file.
44018
44019         New module 'unicase/u8-is-titlecase'.
44020         * lib/unicase/u8-is-titlecase.c: New file.
44021         * modules/unicase/u8-is-titlecase: New file.
44022
44023         Tests for module 'unicase/u32-is-lowercase'.
44024         * modules/unicase/u32-is-lowercase-tests: New file.
44025         * tests/unicase/test-u32-is-lowercase.c: New file.
44026
44027         Tests for module 'unicase/u16-is-lowercase'.
44028         * modules/unicase/u16-is-lowercase-tests: New file.
44029         * tests/unicase/test-u16-is-lowercase.c: New file.
44030
44031         Tests for module 'unicase/u8-is-lowercase'.
44032         * modules/unicase/u8-is-lowercase-tests: New file.
44033         * tests/unicase/test-u8-is-lowercase.c: New file.
44034         * tests/unicase/test-is-lowercase.h: New file.
44035
44036         New module 'unicase/u32-is-lowercase'.
44037         * lib/unicase/u32-is-lowercase.c: New file.
44038         * modules/unicase/u32-is-lowercase: New file.
44039
44040         New module 'unicase/u16-is-lowercase'.
44041         * lib/unicase/u16-is-lowercase.c: New file.
44042         * modules/unicase/u16-is-lowercase: New file.
44043
44044         New module 'unicase/u8-is-lowercase'.
44045         * lib/unicase/u8-is-lowercase.c: New file.
44046         * modules/unicase/u8-is-lowercase: New file.
44047
44048         Tests for module 'unicase/u32-is-uppercase'.
44049         * modules/unicase/u32-is-uppercase-tests: New file.
44050         * tests/unicase/test-u32-is-uppercase.c: New file.
44051
44052         Tests for module 'unicase/u16-is-uppercase'.
44053         * modules/unicase/u16-is-uppercase-tests: New file.
44054         * tests/unicase/test-u16-is-uppercase.c: New file.
44055
44056         Tests for module 'unicase/u8-is-uppercase'.
44057         * modules/unicase/u8-is-uppercase-tests: New file.
44058         * tests/unicase/test-u8-is-uppercase.c: New file.
44059         * tests/unicase/test-is-uppercase.h: New file.
44060
44061         New module 'unicase/u32-is-uppercase'.
44062         * lib/unicase/u32-is-uppercase.c: New file.
44063         * modules/unicase/u32-is-uppercase: New file.
44064
44065         New module 'unicase/u16-is-uppercase'.
44066         * lib/unicase/u16-is-uppercase.c: New file.
44067         * modules/unicase/u16-is-uppercase: New file.
44068
44069         New module 'unicase/u8-is-uppercase'.
44070         * lib/unicase/u8-is-uppercase.c: New file.
44071         * modules/unicase/u8-is-uppercase: New file.
44072
44073         New module 'unicase/u32-is-invariant'.
44074         * lib/unicase/u32-is-invariant.c: New file.
44075         * modules/unicase/u32-is-invariant: New file.
44076
44077         New module 'unicase/u16-is-invariant'.
44078         * lib/unicase/u16-is-invariant.c: New file.
44079         * modules/unicase/u16-is-invariant: New file.
44080
44081         New module 'unicase/u8-is-invariant'.
44082         * lib/unicase/u8-is-invariant.c: New file.
44083         * lib/unicase/invariant.h: New file.
44084         * lib/unicase/u-is-invariant.h: New file.
44085         * modules/unicase/u8-is-invariant: New file.
44086
44087         Tests for module 'unicase/u32-casecoll'.
44088         * modules/unicase/u32-casecoll-tests: New file.
44089         * tests/unicase/test-u32-casecoll.c: New file.
44090
44091         Tests for module 'unicase/u16-casecoll'.
44092         * modules/unicase/u16-casecoll-tests: New file.
44093         * tests/unicase/test-u16-casecoll.c: New file.
44094
44095         Tests for module 'unicase/u8-casecoll'.
44096         * modules/unicase/u8-casecoll-tests: New file.
44097         * tests/unicase/test-u8-casecoll.c: New file.
44098
44099         New module 'unicase/u32-casecoll'.
44100         * lib/unicase/u32-casecoll.c: New file.
44101         * modules/unicase/u32-casecoll: New file.
44102
44103         New module 'unicase/u16-casecoll'.
44104         * lib/unicase/u16-casecoll.c: New file.
44105         * modules/unicase/u16-casecoll: New file.
44106
44107         New module 'unicase/u8-casecoll'.
44108         * lib/unicase/u8-casecoll.c: New file.
44109         * lib/unicase/u-casecoll.h: New file.
44110         * modules/unicase/u8-casecoll: New file.
44111
44112         New module 'unicase/u32-casexfrm'.
44113         * lib/unicase/u32-casexfrm.c: New file.
44114         * modules/unicase/u32-casexfrm: New file.
44115
44116         New module 'unicase/u16-casexfrm'.
44117         * lib/unicase/u16-casexfrm.c: New file.
44118         * modules/unicase/u16-casexfrm: New file.
44119
44120         New module 'unicase/u8-casexfrm'.
44121         * lib/unicase/u8-casexfrm.c: New file.
44122         * lib/unicase/u-casexfrm.h: New file.
44123         * modules/unicase/u8-casexfrm: New file.
44124
44125         Tests for module 'unicase/u32-casecmp'.
44126         * modules/unicase/u32-casecmp-tests: New file.
44127         * tests/unicase/test-u32-casecmp.c: New file.
44128
44129         Tests for module 'unicase/u16-casecmp'.
44130         * modules/unicase/u16-casecmp-tests: New file.
44131         * tests/unicase/test-u16-casecmp.c: New file.
44132
44133         Tests for module 'unicase/u8-casecmp'.
44134         * modules/unicase/u8-casecmp-tests: New file.
44135         * tests/unicase/test-u8-casecmp.c: New file.
44136         * tests/unicase/test-casecmp.h: New file.
44137
44138         New module 'unicase/u32-casecmp'.
44139         * lib/unicase/u32-casecmp.c: New file.
44140         * modules/unicase/u32-casecmp: New file.
44141
44142         New module 'unicase/u16-casecmp'.
44143         * lib/unicase/u16-casecmp.c: New file.
44144         * modules/unicase/u16-casecmp: New file.
44145
44146         New module 'unicase/u8-casecmp'.
44147         * lib/unicase/u8-casecmp.c: New file.
44148         * lib/unicase/u-casecmp.h: New file.
44149         * modules/unicase/u8-casecmp: New file.
44150
44151         Tests for module 'unicase/u32-casefold'.
44152         * modules/unicase/u32-casefold-tests: New file.
44153         * tests/unicase/test-u32-casefold.c: New file.
44154
44155         Tests for module 'unicase/u16-casefold'.
44156         * modules/unicase/u16-casefold-tests: New file.
44157         * tests/unicase/test-u16-casefold.c: New file.
44158
44159         Tests for module 'unicase/u8-casefold'.
44160         * modules/unicase/u8-casefold-tests: New file.
44161         * tests/unicase/test-u8-casefold.c: New file.
44162
44163         New module 'unicase/u32-casefold'.
44164         * lib/unicase/u32-casefold.c: New file.
44165         * modules/unicase/u32-casefold: New file.
44166
44167         New module 'unicase/u16-casefold'.
44168         * lib/unicase/u16-casefold.c: New file.
44169         * modules/unicase/u16-casefold: New file.
44170
44171         New module 'unicase/u8-casefold'.
44172         * lib/unicase/u8-casefold.c: New file.
44173         * lib/unicase/u-casefold.h: New file.
44174         * modules/unicase/u8-casefold: New file.
44175
44176         New module 'unicase/tocasefold'.
44177         * lib/unicase/casefold.h: New file.
44178         * lib/unicase/tocasefold.c: New file.
44179         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
44180         * modules/unicase/tocasefold: New file.
44181
44182         Tests for module 'unicase/u32-totitle'.
44183         * modules/unicase/u32-totitle-tests: New file.
44184         * tests/unicase/test-u32-totitle.c: New file.
44185
44186         Tests for module 'unicase/u16-totitle'.
44187         * modules/unicase/u16-totitle-tests: New file.
44188         * tests/unicase/test-u16-totitle.c: New file.
44189
44190         Tests for module 'unicase/u8-totitle'.
44191         * modules/unicase/u8-totitle-tests: New file.
44192         * tests/unicase/test-u8-totitle.c: New file.
44193
44194         New module 'unicase/u32-totitle'.
44195         * lib/unicase/u32-totitle.c: New file.
44196         * modules/unicase/u32-totitle: New file.
44197
44198         New module 'unicase/u16-totitle'.
44199         * lib/unicase/u16-totitle.c: New file.
44200         * modules/unicase/u16-totitle: New file.
44201
44202         New module 'unicase/u8-totitle'.
44203         * lib/unicase/u8-totitle.c: New file.
44204         * lib/unicase/u-totitle.h: New file.
44205         * modules/unicase/u8-totitle: New file.
44206
44207         Tests for module 'unicase/u32-tolower'.
44208         * modules/unicase/u32-tolower-tests: New file.
44209         * tests/unicase/test-u32-tolower.c: New file.
44210
44211         Tests for module 'unicase/u16-tolower'.
44212         * modules/unicase/u16-tolower-tests: New file.
44213         * tests/unicase/test-u16-tolower.c: New file.
44214
44215         Tests for module 'unicase/u8-tolower'.
44216         * modules/unicase/u8-tolower-tests: New file.
44217         * tests/unicase/test-u8-tolower.c: New file.
44218
44219         New module 'unicase/u32-tolower'.
44220         * lib/unicase/u32-tolower.c: New file.
44221         * modules/unicase/u32-tolower: New file.
44222
44223         New module 'unicase/u16-tolower'.
44224         * lib/unicase/u16-tolower.c: New file.
44225         * modules/unicase/u16-tolower: New file.
44226
44227         New module 'unicase/u8-tolower'.
44228         * lib/unicase/u8-tolower.c: New file.
44229         * modules/unicase/u8-tolower: New file.
44230
44231         Tests for module 'unicase/u32-toupper'.
44232         * modules/unicase/u32-toupper-tests: New file.
44233         * tests/unicase/test-u32-toupper.c: New file.
44234
44235         Tests for module 'unicase/u16-toupper'.
44236         * modules/unicase/u16-toupper-tests: New file.
44237         * tests/unicase/test-u16-toupper.c: New file.
44238
44239         Tests for module 'unicase/u8-toupper'.
44240         * modules/unicase/u8-toupper-tests: New file.
44241         * tests/unicase/test-u8-toupper.c: New file.
44242
44243         New module 'unicase/u32-toupper'.
44244         * lib/unicase/u32-toupper.c: New file.
44245         * modules/unicase/u32-toupper: New file.
44246
44247         New module 'unicase/u16-toupper'.
44248         * lib/unicase/u16-toupper.c: New file.
44249         * modules/unicase/u16-toupper: New file.
44250
44251         New module 'unicase/u8-toupper'.
44252         * lib/unicase/u8-toupper.c: New file.
44253         * modules/unicase/u8-toupper: New file.
44254
44255         New module 'unicase/u32-casemap'.
44256         * lib/unicase/u32-casemap.c: New file.
44257         * modules/unicase/u32-casemap: New file.
44258
44259         New module 'unicase/u16-casemap'.
44260         * lib/unicase/u16-casemap.c: New file.
44261         * modules/unicase/u16-casemap: New file.
44262
44263         New module 'unicase/u8-casemap'.
44264         * lib/unicase/unicasemap.h: New file.
44265         * lib/unicase/u8-casemap.c: New file.
44266         * lib/unicase/u-casemap.h: New file.
44267         * modules/unicase/u8-casemap: New file.
44268
44269         New module 'unicase/special-casing'.
44270         * lib/unicase/special-casing.h: New file.
44271         * lib/unicase/special-casing.c: New file.
44272         * lib/unicase/special-casing-table.gperf: New file, generated by
44273         gen-uni-tables.c.
44274         * modules/unicase/special-casing: New file.
44275
44276         Tests for module 'unicase/locale-language'.
44277         * modules/unicase/locale-language-tests: New file.
44278         * tests/unicase/test-locale-language.sh: New file.
44279         * tests/unicase/test-locale-language.c: New file.
44280
44281         New module 'unicase/locale-language'.
44282         * lib/unicase/locale-language.c: New file.
44283         * lib/unicase/locale-languages.gperf: New file.
44284         * modules/unicase/locale-language: New file.
44285
44286         Generate more tables for case conversion and case folding.
44287         * lib/gen-uni-tables.c (SCC_*): New enum items.
44288         (struct special_casing_rule): New type.
44289         (casing_rules, num_casing_rules, allocated_casing_rules): New
44290         variables.
44291         (add_casing_rule, fill_casing_rules): New functions.
44292         (struct casefold_rule): New type.
44293         (casefolding_rules, num_casefolding_rules,
44294         allocated_casefolding_rules): New variables.
44295         (fill_casefolding_rules): New function.
44296         (unicode_casefold): New variable.
44297         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
44298         sort_casing_rules, output_casing_rules): New functions.
44299         (main): Accept to more arguments: SpecialCasing.txt and
44300         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
44301         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
44302         Output mapping for casefolding.
44303
44304         * lib/unicase.h: Include stdbool.h, uninorm.h.
44305         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
44306         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
44307         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
44308         arguments.
44309         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
44310         resultp arguments.
44311         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
44312         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
44313         resultp arguments.
44314         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
44315         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
44316         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
44317         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
44318         declarations.
44319         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
44320
44321 2009-03-08  Bruno Haible  <bruno@clisp.org>
44322
44323         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
44324         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
44325         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
44326         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
44327
44328 2009-03-07  Bruno Haible  <bruno@clisp.org>
44329
44330         Adjust u*_normcmp, u*_normcoll API.
44331         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
44332         u16_normcoll, u32_normcoll): Change failure conventions.
44333         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
44334         errno and return -1.
44335         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
44336
44337 2009-03-07  Bruno Haible  <bruno@clisp.org>
44338
44339         Tests for module 'uninorm/u32-normcoll'.
44340         * modules/uninorm/u32-normcoll-tests: New file.
44341         * tests/uninorm/test-u32-normcoll.c: New file.
44342
44343         Tests for module 'uninorm/u16-normcoll'.
44344         * modules/uninorm/u16-normcoll-tests: New file.
44345         * tests/uninorm/test-u16-normcoll.c: New file.
44346
44347         Tests for module 'uninorm/u8-normcoll'.
44348         * modules/uninorm/u8-normcoll-tests: New file.
44349         * tests/uninorm/test-u8-normcoll.c: New file.
44350
44351 2009-03-07  Bruno Haible  <bruno@clisp.org>
44352
44353         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
44354         tests/uninorm/test-u32-normcmp.c.
44355         * tests/uninorm/test-u32-normcmp.c: Include it.
44356         (test_nonascii): New function, extracted from main. Add some more
44357         tests.
44358         (main): Invoke test_ascii and test_nonascii.
44359         * modules/uninorm/u32-normcmp-tests (Files): Add
44360         tests/uninorm/test-u32-normcmp.h.
44361         (Depends-on): Remove uninorm/u32-normcmp.
44362
44363         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
44364         tests/uninorm/test-u16-normcmp.c.
44365         * tests/uninorm/test-u16-normcmp.c: Include it.
44366         (test_nonascii): New function, extracted from main. Add some more
44367         tests.
44368         (main): Invoke test_ascii and test_nonascii.
44369         * modules/uninorm/u16-normcmp-tests (Files): Add
44370         tests/uninorm/test-u16-normcmp.h.
44371         (Depends-on): Remove uninorm/u16-normcmp.
44372
44373         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
44374         tests/uninorm/test-u8-normcmp.c.
44375         * tests/uninorm/test-u8-normcmp.c: Include it.
44376         (test_nonascii): New function, extracted from main. Add some more
44377         tests.
44378         (main): Invoke test_ascii and test_nonascii.
44379         * modules/uninorm/u8-normcmp-tests (Files): Add
44380         tests/uninorm/test-u8-normcmp.h.
44381         (Depends-on): Remove uninorm/u8-normcmp.
44382
44383 2009-03-07  Bruno Haible  <bruno@clisp.org>
44384
44385         New module 'uninorm/u32-normcoll'.
44386         * lib/uninorm/u32-normcoll.c: New file.
44387         * modules/uninorm/u32-normcoll: New file.
44388
44389         New module 'uninorm/u16-normcoll'.
44390         * lib/uninorm/u16-normcoll.c: New file.
44391         * modules/uninorm/u16-normcoll: New file.
44392
44393         New module 'uninorm/u8-normcoll'.
44394         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
44395         declarations.
44396         * lib/uninorm/u8-normcoll.c: New file.
44397         * lib/uninorm/u-normcoll.h: New file.
44398         * modules/uninorm/u8-normcoll: New file.
44399
44400         New module 'uninorm/u32-normxfrm'.
44401         * lib/uninorm/u32-normxfrm.c: New file.
44402         * modules/uninorm/u32-normxfrm: New file.
44403
44404         New module 'uninorm/u16-normxfrm'.
44405         * lib/uninorm/u16-normxfrm.c: New file.
44406         * modules/uninorm/u16-normxfrm: New file.
44407
44408         New module 'uninorm/u8-normxfrm'.
44409         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
44410         declarations.
44411         * lib/uninorm/u8-normxfrm.c: New file.
44412         * lib/uninorm/u-normxfrm.h: New file.
44413         * modules/uninorm/u8-normxfrm: New file.
44414
44415 2009-03-07  Bruno Haible  <bruno@clisp.org>
44416
44417         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
44418         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
44419         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
44420
44421 2009-03-07  Bruno Haible  <bruno@clisp.org>
44422
44423         New module 'memxfrm'.
44424         * lib/memxfrm.h: New file.
44425         * lib/memxfrm.c: New file.
44426         * modules/memxfrm: New file.
44427
44428 2009-03-07  Bruno Haible  <bruno@clisp.org>
44429
44430         New module 'memcmp2'.
44431         * lib/memcmp2.h: New file.
44432         * lib/memcmp2.c: New file.
44433         * modules/memcmp2: New file.
44434
44435 2009-03-07  Bruno Haible  <bruno@clisp.org>
44436
44437         Tests for module 'uninorm/decomposing-form'.
44438         * modules/uninorm/decomposing-form-tests: New file.
44439         * tests/uninorm/test-decomposing-form.c: New file.
44440
44441         New module 'uninorm/decomposing-form'.
44442         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
44443         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
44444         Add 'decomposing_variant' field.
44445         * lib/uninorm/decomposing-form.c: New file.
44446         * lib/uninorm/nfc.c (uninorm_nfc): Update.
44447         * lib/uninorm/nfd.c (uninorm_nfd): Update.
44448         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
44449         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
44450         * modules/uninorm/decomposing-form: New file.
44451         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
44452         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
44453
44454 2009-03-07  Bruno Haible  <bruno@clisp.org>
44455
44456         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
44457         strings.
44458
44459 2009-03-06  Bruno Haible  <bruno@clisp.org>
44460
44461         Tests for module 'uninorm/u32-normcmp'.
44462         * tests/uninorm/test-u32-normcmp.c: New file.
44463         * modules/uninorm/u32-normcmp-tests: New file.
44464
44465         Tests for module 'uninorm/u16-normcmp'.
44466         * tests/uninorm/test-u16-normcmp.c: New file.
44467         * modules/uninorm/u16-normcmp-tests: New file.
44468
44469         Tests for module 'uninorm/u8-normcmp'.
44470         * tests/uninorm/test-u8-normcmp.c: New file.
44471         * modules/uninorm/u8-normcmp-tests: New file.
44472
44473         New module 'uninorm/u32-normcmp'.
44474         * lib/uninorm/u32-normcmp.c: New file.
44475         * modules/uninorm/u32-normcmp: New file.
44476
44477         New module 'uninorm/u16-normcmp'.
44478         * lib/uninorm/u16-normcmp.c: New file.
44479         * modules/uninorm/u16-normcmp: New file.
44480
44481         New module 'uninorm/u8-normcmp'.
44482         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
44483         declarations.
44484         * lib/uninorm/u8-normcmp.c: New file.
44485         * lib/uninorm/u-normcmp.h: New file.
44486         * modules/uninorm/u8-normcmp: New file.
44487
44488 2009-03-06  Bruno Haible  <bruno@clisp.org>
44489
44490         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
44491         Reported by Eric Blake.
44492
44493 2009-03-06  Eric Blake  <ebb9@byu.net>
44494             Bruno Haible  <bruno@clisp.org>
44495
44496         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
44497         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
44498         condition.
44499         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
44500         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
44501         condition.
44502         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
44503
44504 2009-03-06  Eric Blake  <ebb9@byu.net>
44505
44506         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
44507         to avoid compiler warnings.
44508         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
44509
44510 2009-03-05  Bruno Haible  <bruno@clisp.org>
44511
44512         * tests/test-ftell.c (main): Disable test beyond end of file on
44513         FreeMiNT.
44514         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
44515
44516 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
44517
44518         * lib/filevercmp.c: Move hidden files up in ordering.
44519         * tests/test-filevercmp.c: Add tests for hidden files.
44520
44521 2009-03-04  Bruno Haible  <bruno@clisp.org>
44522
44523         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
44524         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
44525         AM_CFLAGS.
44526         Reported by Simon Josefsson.
44527
44528 2009-03-03  Bruno Haible  <bruno@clisp.org>
44529
44530         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
44531         Reported by Simon Josefsson.
44532
44533         * doc/ld-version-script.texi: Update node reference.
44534
44535 2009-03-03  Bruno Haible  <bruno@clisp.org>
44536
44537         * modules/visibility (License): Change to 'unlimited'.
44538         Suggested by Simon Josefsson.
44539
44540 2009-03-03  Jim Meyering  <meyering@redhat.com>
44541
44542         unlinkdir: cannot_unlink_dir may modify process state
44543         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
44544         it's neither thread-safe nor appropriate for use in a library.
44545
44546 2009-03-03  Eric Blake  <ebb9@byu.net>
44547
44548         test-closein: silence test under Darwin
44549         * tests/test-closein.sh: Ignore stderr from cat, since we don't
44550         care if it dies from EPIPE or EBADF.
44551
44552 2009-03-03  Bruno Haible  <bruno@clisp.org>
44553
44554         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
44555         earlier.
44556         * doc/visibility.texi: Fix @node and @section.
44557
44558 2009-03-03  Simon Josefsson  <simon@josefsson.org>
44559
44560         * doc/gnulib.texi: Link to sections for ld version script and
44561         visibility.
44562         * doc/visibility.texi: Add @node and @section.
44563         * modules/ld-version-script: New module.
44564         * m4/ld-version-script.m4: New file.
44565         * doc/ld-version-script.texi: New file.
44566
44567 2009-03-02  David Lutterkort  <lutter@redhat.com>
44568
44569         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
44570         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44571
44572 2009-03-02  Bruno Haible  <bruno@clisp.org>
44573
44574         * doc/visibility.texi: Mention libtool's -export-symbols option.
44575
44576 2009-03-02  Jim Meyering  <meyering@redhat.com>
44577
44578         announce-gen: new option: --no-print-checksums
44579         * build-aux/announce-gen (usage): Describe it.
44580         (print_checksums): Print a newline here, not in the [*] footnote.
44581         (main): Honor it.
44582
44583 2009-03-01  Bruno Haible  <bruno@clisp.org>
44584
44585         Use socklen_t in the native Windows replacements prototypes.
44586         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
44587         instead of 'int'.
44588         * lib/getsockopt.c (rpl_getsockopt): Likewise.
44589         * lib/setsockopt.c (rpl_setsockopt): Likewise.
44590         * modules/getsockopt (Depends-on): Add socklen.
44591         * modules/setsockopt (Depends-on): Add socklen.
44592
44593 2009-03-01  Bruno Haible  <bruno@clisp.org>
44594
44595         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
44596         least 4.2.
44597
44598 2009-03-01  Eric Blake  <ebb9@byu.net>
44599             Bruno Haible  <bruno@clisp.org>
44600
44601         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
44602         error messages.
44603         * lib/wait-process.c (wait_subprocess): Omit error message about
44604         deadly signal sent to the child of termsigp != NULL.
44605
44606 2009-03-01  Eric Blake  <ebb9@byu.net>
44607
44608         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
44609
44610 2009-03-01  Bruno Haible  <bruno@clisp.org>
44611
44612         Avoid a gcc warning.
44613         * tests/test-sched.c (b): Make global.
44614         Reported by Eric Blake.
44615
44616 2009-01-19  Martin Lambers  <marlam@marlam.de>
44617
44618         Provide POSIX semantics for socket timeout options on W32.
44619         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
44620         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
44621         * modules/setsockopt: Depend on sys_time module for struct timeval.
44622         * modules/getsockopt: Depend on sys_time module for struct timeval.
44623
44624 2009-03-01  Simon Josefsson  <simon@josefsson.org>
44625
44626         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
44627         __USE_GNU, for consistency with netdb.in.h.
44628         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44629
44630 2009-03-01  Bruno Haible  <bruno@clisp.org>
44631
44632         More support for FreeMiNT.
44633         * lib/fseeko.c (rpl_fseeko): Complete last commit.
44634         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44635
44636 2009-03-01  Bruno Haible  <bruno@clisp.org>
44637
44638         More support for FreeMiNT.
44639         * lib/fpurge.c (fpurge): Correct last commit.
44640         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44641
44642 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44643
44644         Fix unportable awk script in vc-list-files.
44645         * build-aux/vc-list-files: In the replacement awk script, use
44646         substr with a second argument of 1, not zero.
44647         Report by Simon Josefsson.
44648
44649 2009-02-28  Bruno Haible  <bruno@clisp.org>
44650
44651         More support for FreeMiNT.
44652         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
44653         to FreeMiNT today.
44654         * lib/fwriting.c (fwriting): Likewise.
44655         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
44656
44657 2009-02-28  Bruno Haible  <bruno@clisp.org>
44658
44659         * tests/test-freadseek.c (main): Disable test beyond end of file on
44660         FreeMiNT.
44661         * tests/test-ftello.c (main): Likewise.
44662         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
44663
44664 2009-02-28  Bruno Haible  <bruno@clisp.org>
44665
44666         Add tentative support for FreeMiNT.
44667         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
44668         * lib/fpurge.c (fpurge): Likewise.
44669         * lib/freadable.c (freadable): Likewise.
44670         * lib/freading.c (freading): Likewise.
44671         * lib/freadptr.c (freadptr): Likewise.
44672         * lib/freadseek.c (freadptrinc): Likewise.
44673         * lib/fseeko.c (rpl_fseeko): Likewise.
44674         * lib/fseterr.c (fseterr): Likewise.
44675         * lib/fwritable.c (fwritable): Likewise.
44676         * lib/fwriting.c (fwriting): Likewise.
44677         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
44678         Hourihane.
44679         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44680
44681 2009-02-28  Bruno Haible  <bruno@clisp.org>
44682
44683         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
44684         SIGCHLD.
44685         Reported by Jim Meyering.
44686
44687 2009-02-28  Bruno Haible  <bruno@clisp.org>
44688
44689         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
44690         Mention the results of these tests on various platforms.
44691         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
44692         order.
44693         * doc/posix-functions/printf.texi: Likewise.
44694         * doc/posix-functions/snprintf.texi: Likewise.
44695         * doc/posix-functions/sprintf.texi: Likewise.
44696         * doc/posix-functions/vfprintf.texi: Likewise.
44697         * doc/posix-functions/vprintf.texi: Likewise.
44698         * doc/posix-functions/vsnprintf.texi: Likewise.
44699         * doc/posix-functions/vsprintf.texi: Likewise.
44700         * doc/glibc-functions/obstack_printf.texi: Likewise.
44701         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
44702
44703 2009-02-28  Bruno Haible  <bruno@clisp.org>
44704
44705         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
44706         Reported by Loïc Minier <lool@dooz.org>.
44707
44708 2009-02-27  Bruno Haible  <bruno@clisp.org>
44709
44710         * gnulib-tool (func_import): Make the sed expression used to create the
44711         sed script for updating the .gitignore file POSIX compliant.
44712         Reported by Eric Blake.
44713
44714 2009-02-27  Bruno Haible  <bruno@clisp.org>
44715
44716         * gnulib-tool (sed): Don't alias as "sed --posix".
44717         Reported by Eric Blake.
44718
44719 2009-02-27  Bruno Haible  <bruno@clisp.org>
44720
44721         Avoid test link errors.
44722         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
44723         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
44724         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
44725         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
44726         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44727
44728 2009-02-27  Bruno Haible  <bruno@clisp.org>
44729
44730         Avoid spurious "(cached)" in configure output.
44731         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
44732         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
44733         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44734         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44735         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44736         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
44737         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44738         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
44739         Reported by Eric Blake.
44740
44741 2009-02-27  Eric Blake  <ebb9@byu.net>
44742
44743         printf: fix regression in previous patch
44744         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
44745
44746 2009-02-27  Bruno Haible  <bruno@clisp.org>
44747
44748         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
44749         value.
44750         * lib/stdint.in.h: Likewise.
44751         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
44752
44753 2009-02-27  Eric Blake  <ebb9@byu.net>
44754
44755         doc: mention more functions added in cygwin 1.7.0
44756         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
44757         addition.
44758         * doc/posix-functions/open_wmemstream.texi: Likewise.
44759         * doc/posix-functions/wcsnlen.texi: Likewise.
44760         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44761         * doc/posix-functions/wcstod.texi: Likewise.
44762         * doc/posix-functions/wcstof.texi: Likewise.
44763         * doc/posix-functions/wcstoimax.texi: Likewise.
44764         * doc/posix-functions/wcstok.texi: Likewise.
44765         * doc/posix-functions/wcstoumax.texi: Likewise.
44766
44767         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
44768         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
44769         * doc/posix-functions/fprintf.texi: Update.
44770         * doc/posix-functions/printf.texi: Update.
44771         * doc/posix-functions/snprintf.texi: Update.
44772         * doc/posix-functions/sprintf.texi: Update.
44773         * doc/posix-functions/vfprintf.texi: Update.
44774         * doc/posix-functions/vprintf.texi: Update.
44775         * doc/posix-functions/vsnprintf.texi: Update.
44776         * doc/posix-functions/vsprintf.texi: Update.
44777         * doc/glibc-functions/obstack_printf.texi: Update.
44778         * doc/glibc-functions/obstack_vprintf.texi: Update.
44779
44780 2009-02-26  Eric Blake  <ebb9@byu.net>
44781
44782         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
44783         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
44784         compilation bug by using runtime conversion.
44785         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
44786         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
44787         * modules/ceill-tests (Files): Use nan.h.
44788         * modules/floorl-tests (Files): Likewise.
44789         * modules/frexpl-tests (Files): Likewise.
44790         * modules/isnanl-tests (Files): Likewise.
44791         * modules/ldexpl-tests (Files): Likewise.
44792         * modules/roundl-tests (Files): Likewise.
44793         * modules/truncl-tests (Files): Likewise.
44794         * tests/test-ceill.c (main): Use a working NaN.
44795         * tests/test-floorl.c (main): Likewise.
44796         * tests/test-frexpl.c (main): Likewise.
44797         * tests/test-isnan.c (test_long_double): Likewise.
44798         * tests/test-isnanl.h (main): Likewise.
44799         * tests/test-ldexpl.h (main): Likewise.
44800         * tests/test-roundl.h (main): Likewise.
44801         * tests/test-truncl.h (main): Likewise.
44802         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
44803
44804 2009-02-26  Eric Blake  <ebb9@byu.net>
44805             Bruno Haible  <bruno@clisp.org>
44806
44807         Work around a *printf bug with %ls on Solaris.
44808         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
44809         precision is specified, sprintf stops converting the wide string
44810         argument when the number of bytes that have been produced by this
44811         conversion equals or exceeds the precision.
44812         * doc/posix-functions/fprintf.texi: Update.
44813         * doc/posix-functions/printf.texi: Update.
44814         * doc/posix-functions/snprintf.texi: Update.
44815         * doc/posix-functions/sprintf.texi: Update.
44816         * doc/posix-functions/vfprintf.texi: Update.
44817         * doc/posix-functions/vprintf.texi: Update.
44818         * doc/posix-functions/vsnprintf.texi: Update.
44819         * doc/posix-functions/vsprintf.texi: Update.
44820         * doc/glibc-functions/obstack_printf.texi: Update.
44821         * doc/glibc-functions/obstack_vprintf.texi: Update.
44822
44823 2009-02-26  Eric Blake  <ebb9@byu.net>
44824
44825         stdlib: favor compiler check of random.h
44826         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
44827         to avoid an ObjC random.h installed by Swarm.
44828
44829 2009-02-26  Bruno Haible  <bruno@clisp.org>
44830
44831         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
44832         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
44833         Reported by Gary V. Vaughan <gary@gnu.org>.
44834
44835 2009-02-26  Bruno Haible  <bruno@clisp.org>
44836
44837         Fix *printf behaviour regarding the %ls directive.
44838         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
44839         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
44840         NEED_PRINTF_DIRECTIVE_LS.
44841         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
44842         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44843         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44844         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
44845         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
44846         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
44847         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44848         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44849         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44850         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44851         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44852         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
44853         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44854         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44855         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44856         * doc/posix-functions/fprintf.texi: Update.
44857         * doc/posix-functions/printf.texi: Update.
44858         * doc/posix-functions/snprintf.texi: Update.
44859         * doc/posix-functions/sprintf.texi: Update.
44860         * doc/posix-functions/vfprintf.texi: Update.
44861         * doc/posix-functions/vprintf.texi: Update.
44862         * doc/posix-functions/vsnprintf.texi: Update.
44863         * doc/posix-functions/vsprintf.texi: Update.
44864         * doc/glibc-functions/obstack_printf.texi: Update.
44865         * doc/glibc-functions/obstack_vprintf.texi: Update.
44866         Reported by Eric Blake.
44867
44868 2009-02-25  Bruno Haible  <bruno@clisp.org>
44869
44870         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
44871         with known value.
44872         Reported by Gary V. Vaughan <gary@gnu.org>.
44873
44874 2009-02-25  Bruno Haible  <bruno@clisp.org>
44875
44876         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
44877         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
44878         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
44879         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
44880         Reported by Gary V. Vaughan <gary@gnu.org>.
44881
44882 2009-02-25  Bruno Haible  <bruno@clisp.org>
44883
44884         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
44885         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
44886         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
44887         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
44888         Reported by Gary V. Vaughan <gary@gnu.org>.
44889
44890 2009-02-25  Eric Blake  <ebb9@byu.net>
44891
44892         tests: skip fseek/ftell tests if ungetc is broken
44893         * m4/ungetc.m4: New file.
44894         * modules/fseek-tests: Split test, so ungetc dependency is
44895         separate from rest of test.
44896         * modules/fseeko-tests: Likewise.
44897         * modules/ftell-tests: Likewise.
44898         * modules/ftello-tests: Likewise.
44899         * tests/test-fseek.c (main): Isolate ungetc dependency.
44900         * tests/test-fseeko.c (main): Likewise.
44901         * tests/test-ftell.c (main): Likewise.
44902         * tests/test-ftello.c (main): Likewise.
44903         * tests/test-fseek2.sh: New file.
44904         * tests/test-fseeko2.sh: Likewise.
44905         * tests/test-ftell2.sh: Likewise.
44906         * tests/test-ftello2.sh: Likewise.
44907
44908 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
44909
44910         test-getaddrinfo: fix usage of skip return code 77
44911         * tests/test-gettaddrinfo.c: Return skip code 77 only
44912         for first occurance of skip (4x77 is not 77)
44913
44914 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
44915
44916         strtod: avoid C99 decl-after-statement
44917         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
44918
44919 2009-02-24  Eric Blake  <ebb9@byu.net>
44920
44921         strtod: detect HP-UX 11.31 bug
44922         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
44923         Reported by Gary V. Vaughan.
44924
44925 2009-02-23  Bruno Haible  <bruno@clisp.org>
44926
44927         Fix invalid read past end of memory block.
44928         * lib/vasnprintf.c (DCHAR_SET): Define.
44929         (local_wcslen): Define only when needed.
44930         (local_strnlen, local_wcsnlen): New functions.
44931         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
44932         directives that involve a conversion ourselves.
44933         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
44934         wcsnlen, mbrtowc, wcrtomb.
44935         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
44936         * tests/test-vasprintf-posix.c (test_function): Likewise.
44937         * tests/test-snprintf-posix.h (test_function): Likewise.
44938         * tests/test-sprintf-posix.h (test_function): Likewise.
44939         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44940
44941 2009-02-22  Bruno Haible  <bruno@clisp.org>
44942
44943         Implement new clarified decomposition of Hangul syllables.
44944         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
44945         of type LTV, return only a pairwise decomposition.
44946         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
44947         Likewise.
44948         * tests/uninorm/test-decomposition.c (main): Updated expected result.
44949         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
44950         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
44951
44952 2009-02-22  Bruno Haible  <bruno@clisp.org>
44953
44954         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
44955         zero-length results and shrink excess allocated memory.
44956         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
44957         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
44958         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
44959         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
44960         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
44961         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
44962         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
44963         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
44964         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
44965         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
44966         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
44967         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
44968
44969 2009-02-21  Bruno Haible  <bruno@clisp.org>
44970
44971         * doc/gnulib.texi: Include safe-alloc.texi earlier.
44972         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
44973         spaces after a period. Put a space between a macro name and its
44974         argument list. Trivial rewordings.
44975         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
44976         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
44977         (main): Return 0 explicitly.
44978
44979 2009-02-21  Bruno Haible  <bruno@clisp.org>
44980
44981         Tests for module 'uninorm/filter'.
44982         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
44983         * modules/uninorm/filter-tests: New file.
44984
44985         New module 'uninorm/filter'.
44986         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
44987         uninorm_filter_flush, uninorm_filter_free): New declarations.
44988         * lib/uninorm/uninorm-filter.c: New file.
44989         * modules/uninorm/filter: New file.
44990
44991 2009-02-21  Bruno Haible  <bruno@clisp.org>
44992
44993         Tests for module 'uninorm/nfkc'.
44994         * tests/uninorm/test-nfkc.c: New file.
44995         * tests/uninorm/test-u8-nfkc.c: New file.
44996         * tests/uninorm/test-u16-nfkc.c: New file.
44997         * tests/uninorm/test-u32-nfkc.c: New file.
44998         * tests/uninorm/test-u32-nfkc-big.sh: New file.
44999         * tests/uninorm/test-u32-nfkc-big.c: New file.
45000         * modules/uninorm/nfkc-tests: New file.
45001
45002         New module 'uninorm/nfkc'.
45003         * lib/uninorm/nfkc.c: New file.
45004         * modules/uninorm/nfkc: New file.
45005
45006         Tests for module 'uninorm/nfkd'.
45007         * tests/uninorm/test-nfkd.c: New file.
45008         * tests/uninorm/test-u8-nfkd.c: New file.
45009         * tests/uninorm/test-u16-nfkd.c: New file.
45010         * tests/uninorm/test-u32-nfkd.c: New file.
45011         * tests/uninorm/test-u32-nfkd-big.sh: New file.
45012         * tests/uninorm/test-u32-nfkd-big.c: New file.
45013         * modules/uninorm/nfkd-tests: New file.
45014
45015         New module 'uninorm/nfkd'.
45016         * lib/uninorm/nfkd.c: New file.
45017         * modules/uninorm/nfkd: New file.
45018
45019         Tests for module 'uninorm/nfc'.
45020         * tests/uninorm/test-nfc.c: New file.
45021         * tests/uninorm/test-u8-nfc.c: New file.
45022         * tests/uninorm/test-u16-nfc.c: New file.
45023         * tests/uninorm/test-u32-nfc.c: New file.
45024         * tests/uninorm/test-u32-nfc-big.sh: New file.
45025         * tests/uninorm/test-u32-nfc-big.c: New file.
45026         * modules/uninorm/nfc-tests: New file.
45027
45028         New module 'uninorm/nfc'.
45029         * lib/uninorm/nfc.c: New file.
45030         * modules/uninorm/nfc: New file.
45031
45032         Tests for module 'uninorm/nfd'.
45033         * tests/uninorm/test-nfd.c: New file.
45034         * tests/uninorm/test-u8-nfd.c: New file.
45035         * tests/uninorm/test-u16-nfd.c: New file.
45036         * tests/uninorm/test-u32-nfd.c: New file.
45037         * tests/uninorm/test-u32-nfd-big.sh: New file.
45038         * tests/uninorm/test-u32-nfd-big.c: New file.
45039         * tests/uninorm/test-u32-normalize-big.h: New file.
45040         * tests/uninorm/test-u32-normalize-big.c: New file.
45041         * tests/uninorm/NormalizationTest.txt: New file, created from
45042         Unicode 5.1.0 NormalizationTest.txt.
45043         * modules/uninorm/nfd-tests: New file.
45044
45045         New module 'uninorm/nfd'.
45046         * lib/uninorm/nfd.c: New file.
45047         * modules/uninorm/nfd: New file.
45048
45049         New module 'uninorm/u32-normalize'.
45050         * lib/uninorm/u32-normalize.c: New file.
45051         * modules/uninorm/u32-normalize: New file.
45052
45053         New module 'uninorm/u16-normalize'.
45054         * lib/uninorm/u16-normalize.c: New file.
45055         * modules/uninorm/u16-normalize: New file.
45056
45057         New module 'uninorm/u8-normalize'.
45058         * lib/uninorm/u8-normalize.c: New file.
45059         * lib/uninorm/normalize-internal.h: New file.
45060         * lib/uninorm/u-normalize-internal.h: New file.
45061         * modules/uninorm/u8-normalize: New file.
45062
45063         New module 'uninorm/decompose-internal'.
45064         * lib/uninorm/decompose-internal.c: New file.
45065         * modules/uninorm/decompose-internal: New file.
45066
45067         Tests for module 'uninorm/composition'.
45068         * tests/uninorm/test-composition.c: New file.
45069         * modules/uninorm/composition-tests: New file.
45070
45071         New module 'uninorm/composition'.
45072         * lib/uninorm/composition.c: New file.
45073         * lib/uninorm/composition-table.gperf: New file, generated by
45074         gen-uni-tables.
45075         * modules/uninorm/composition: New file.
45076
45077         Tests for module 'uninorm/compat-decomposition'.
45078         * tests/uninorm/test-compat-decomposition.c: New file.
45079         * modules/uninorm/compat-decomposition-tests: New file.
45080
45081         New module 'uninorm/compat-decomposition'.
45082         * lib/uninorm/decompose-internal.h: New file.
45083         * lib/uninorm/compat-decomposition.c: New file.
45084         * modules/uninorm/compat-decomposition: New file.
45085
45086         Tests for module 'uninorm/canonical-decomposition'.
45087         * tests/uninorm/test-canonical-decomposition.c: New file.
45088         * modules/uninorm/canonical-decomposition-tests: New file.
45089
45090         New module 'uninorm/canonical-decomposition'.
45091         * lib/uninorm/canonical-decomposition.c: New file.
45092         * modules/uninorm/canonical-decomposition: New file.
45093
45094         Tests for module 'uninorm/decomposition'.
45095         * tests/uninorm/test-decomposition.c: New file.
45096         * modules/uninorm/decomposition-tests: New file.
45097
45098         New module 'uninorm/decomposition'.
45099         * lib/uninorm/decomposition.c: New file.
45100         * modules/uninorm/decomposition: New file.
45101
45102         New module 'uninorm/decomposition-table'.
45103         * lib/uninorm/decomposition-table.h: New file.
45104         * lib/uninorm/decomposition-table.c: New file.
45105         * lib/uninorm/decomposition-table1.h: New file, generated by
45106         gen-uni-tables.
45107         * lib/uninorm/decomposition-table2.h: New file, generated by
45108         gen-uni-tables.
45109         * modules/uninorm/decomposition-table: New file.
45110
45111         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
45112         (UC_DECOMP_*): New enumeration items.
45113         (get_decomposition): New function.
45114         (struct decomp_table): New type.
45115         (output_decomposition, output_decomposition_tables): New functions.
45116         (unicode_composition_exclusions): New variable.
45117         (fill_composition_exclusions, debug_output_composition_tables): New
45118         functions.
45119         (main): Accept one more argument. Invoke fill_composition_exclusions.
45120         Output decomposition and composition tables.
45121
45122         New module 'uninorm/base'.
45123         * lib/uninorm.h: New file.
45124         * lib/unictype.h: Update comment.
45125         * modules/uninorm/base: New file.
45126
45127 2009-02-21  David Lutterkort  <lutter@redhat.com>
45128
45129         Tests for module 'safe-alloc'.
45130         * tests/test-safe-alloc.c: New file.
45131         * modules/safe-alloc-tests: New file.
45132
45133         New module 'safe-alloc'.
45134         * lib/safe-alloc.h: New file.
45135         * lib/safe-alloc.c: New file.
45136         * m4/safe-alloc.m4: New file.
45137         * modules/safe-alloc: New file.
45138         * doc/safe-alloc.texi: New file.
45139         * doc/gnulib.texi: Include it.
45140         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
45141         safe-alloc.
45142
45143 2009-02-18  Bruno Haible  <bruno@clisp.org>
45144
45145         Fix link error on non-glibc systems.
45146         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
45147         variable.
45148         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45149
45150 2009-02-18  Jim Meyering  <meyering@redhat.com>
45151
45152         fts: avoid used-uninitialized error due to recent change
45153         * lib/fts.c (fts_read): Guard uses of the new member,
45154         parent->fts_n_dirs_remaining, since it's not relevant for
45155         the parent of a directory specified on the command-line.
45156
45157 2009-02-17  James Youngman  <jay@gnu.org>
45158             Bruno Haible  <bruno@clisp.org>
45159
45160         * m4/include_next.m4: Reformulate comment.
45161
45162 2009-02-16  Jim Meyering  <meyering@redhat.com>
45163
45164         fts: add #if guards so that the fts_lgpl module still builds
45165         * lib/fts.c: Guard just-added hash-table-using parts with
45166         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
45167         Reported by Simon Josefsson.
45168
45169 2009-02-15  Bruno Haible  <bruno@clisp.org>
45170
45171         * modules/array-mergesort-tests: New file.
45172         * tests/test-array-mergesort.c: New file.
45173
45174         New module 'array-mergesort'.
45175         * modules/array-mergesort: New file.
45176         * lib/array-mergesort.h: New file.
45177
45178 2009-02-15  Bruno Haible  <bruno@clisp.org>
45179
45180         Fix 2009-02-07 commit.
45181         * lib/gen-uni-tables.c (output_predicate, output_category,
45182         output_combclass, output_bidi_category, output_decimal_digit,
45183         output_digit, output_numeric, output_mirror, output_scripts,
45184         output_ident_category, output_simple_mapping): Fix format directives.
45185         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
45186
45187 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
45188
45189         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
45190         fixes are available from IBM.
45191
45192 2009-02-13  Jim Meyering  <meyering@redhat.com>
45193
45194         fts: arrange not to stat non-directories in more cases
45195         This makes GNU find (when it doesn't need to stat each file)
45196         *much* more efficient at traversing reiserfs file systems.
45197         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
45198         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
45199         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
45200         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
45201         (leaf_optimization_applies): New function.
45202         (LCO_hash, LCO_compare): New helper functions.
45203         (link_count_optimize_ok): New function.
45204         (fts_stat): Initialize new member (if dir).
45205         (fts_read): Decrement parent's fts_n_dirs_remaining count if
45206         we've just stat'ed a directory.  Skip the stat call when possible.
45207         ---
45208         Note this AFS-related exchange:
45209         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
45210         and note find's pioctl call in find/fstype.c.
45211         But that is necessary only if you want to enable the
45212         optimization for AFS, and for now, I don't.
45213
45214         fts: move a function definition "up" (no semantic change)
45215         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
45216         "up" to precede upcoming use of a related function.
45217
45218 2009-02-11  Jim Meyering  <meyering@redhat.com>
45219
45220         fts: correct internal computation of nlinks (optimization-related)
45221         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
45222         whether the current entry is a directory, so don't test it.
45223
45224 2009-02-10  Bruno Haible  <bruno@clisp.org>
45225
45226         Tests for module 'uniwbrk/ulc-wordbreaks'.
45227         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
45228         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
45229         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
45230
45231         Tests for module 'uniwbrk/u32-wordbreaks'.
45232         * modules/uniwbrk/u32-wordbreaks-tests: New file.
45233         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
45234
45235         Tests for module 'uniwbrk/u16-wordbreaks'.
45236         * modules/uniwbrk/u16-wordbreaks-tests: New file.
45237         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
45238
45239         Tests for module 'uniwbrk/u8-wordbreaks'.
45240         * modules/uniwbrk/u8-wordbreaks-tests: New file.
45241         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
45242
45243 2009-02-10  Bruno Haible  <bruno@clisp.org>
45244
45245         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
45246         property.
45247         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
45248         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
45249         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
45250
45251 2009-02-10  Simon Josefsson  <simon@josefsson.org>
45252
45253         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
45254         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
45255
45256 2009-02-10  Bruno Haible  <bruno@clisp.org>
45257
45258         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
45259         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
45260         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
45261         * lib/unilbrk/u8-possible-linebreaks.c: Update.
45262         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
45263         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
45264
45265 2009-02-09  Simon Josefsson  <simon@josefsson.org>
45266
45267         * lib/sockets.h (gl_fd_to_handle): New function.
45268
45269         * tests/test-sockets.c: Call gl_fd_to_handle.
45270
45271 2009-02-09  Bruno Haible  <bruno@clisp.org>
45272
45273         * doc/havelib.texi: Document the conventions on bi-arch systems.
45274
45275 2009-02-08  Bruno Haible  <bruno@clisp.org>
45276
45277         Document the AC_LIB_LINKFLAGS macro.
45278         * doc/havelib.texi: New file, mostly written on 2005-05-24.
45279         * doc/gnulib.texi: Include it.
45280
45281 2009-02-08  Bruno Haible  <bruno@clisp.org>
45282
45283         Fix wrong order of sections, compared to TOC.
45284         * doc/gnulib.texi: Include relocatable-maint.texi after the
45285         "Regular expressions" node, not before.
45286
45287 2009-02-08  Bruno Haible  <bruno@clisp.org>
45288
45289         Tests for module 'unicase/totitle'.
45290         * modules/unicase/totitle-tests: New file.
45291
45292         Tests for module 'unicase/tolower'.
45293         * modules/unicase/tolower-tests: New file.
45294
45295         Tests for module 'unicase/toupper'.
45296         * modules/unicase/toupper-tests: New file.
45297         * tests/unicase/test-mapping-part1.h: New file.
45298         * tests/unicase/test-mapping-part2.h: New file.
45299
45300         New module 'unicase/totitle'.
45301         * modules/unicase/totitle: New file.
45302         * lib/unicase/totitle.c: New file.
45303
45304         New module 'unicase/tolower'.
45305         * modules/unicase/tolower: New file.
45306         * lib/unicase/tolower.c: New file.
45307
45308         New module 'unicase/toupper'.
45309         * modules/unicase/toupper: New file.
45310         * lib/unicase/toupper.c: New file.
45311         * lib/unicase/simple-mapping.h: New file.
45312
45313         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
45314         (mapping_table): New structure.
45315         (output_simple_mapping): New function.
45316         (main): Invoke output_simple_mapping_test and output_simple_mapping.
45317         * modules/gen-uni-tables (Description): Update.
45318         * lib/unicase/toupper.h: New file, automatically generated by
45319         gen-uni-tables.
45320         * lib/unicase/tolower.h: New file, automatically generated by
45321         gen-uni-tables.
45322         * lib/unicase/totitle.h: New file, automatically generated by
45323         gen-uni-tables.
45324         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
45325         gen-uni-tables.
45326         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
45327         gen-uni-tables.
45328         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
45329         gen-uni-tables.
45330
45331         New module 'unicase/base'.
45332         * modules/unicase/base: New file.
45333         * lib/unicase.h: New file.
45334
45335 2009-02-08  Bruno Haible  <bruno@clisp.org>
45336
45337         New module 'uniwbrk/ulc-wordbreaks'.
45338         * modules/uniwbrk/ulc-wordbreaks: New file.
45339         * lib/uniwbrk/ulc-wordbreaks.c: New file.
45340
45341         New module 'uniwbrk/u32-wordbreaks'.
45342         * modules/uniwbrk/u32-wordbreaks: New file.
45343         * lib/uniwbrk/u32-wordbreaks.c: New file.
45344
45345         New module 'uniwbrk/u16-wordbreaks'.
45346         * modules/uniwbrk/u16-wordbreaks: New file.
45347         * lib/uniwbrk/u16-wordbreaks.c: New file.
45348
45349         New module 'uniwbrk/u8-wordbreaks'.
45350         * modules/uniwbrk/u8-wordbreaks: New file.
45351         * lib/uniwbrk/u8-wordbreaks.c: New file.
45352         * lib/uniwbrk/u-wordbreaks.h: New file.
45353
45354         New module 'uniwbrk/table'.
45355         * modules/uniwbrk/table: New file.
45356         * lib/uniwbrk/wbrktable.h: New file.
45357         * lib/uniwbrk/wbrktable.c: New file.
45358
45359         New module 'uniwbrk/wordbreak-property'.
45360         * modules/uniwbrk/wordbreak-property: New file.
45361         * lib/uniwbrk/wordbreak-property.c: New file.
45362
45363         * lib/gen-uni-tables.c (WBP_*): New enum items.
45364         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
45365         (unicode_org_wbp): New variable.
45366         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
45367         New functions.
45368         (wbp_table): New structure.
45369         (output_wbp, output_wbrk_tables): New functions.
45370         (main): Accept additional argument. Invoke fill_org_wbp,
45371         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
45372         output_wbrk_tables.
45373         * modules/gen-uni-tables (Description): Update.
45374         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
45375         gen-uni-tables.
45376
45377         New module 'uniwbrk/base'.
45378         * modules/uniwbrk/base: New file.
45379         * lib/uniwbrk.h: New file.
45380
45381 2009-02-08  Bruno Haible  <bruno@clisp.org>
45382
45383         Update to Unicode 5.1.0.
45384         * lib/gen-uni-tables.c (is_property_alphabetic): Include
45385         U+2185..U+2188.
45386         (is_property_default_ignorable_code_point): Don't include characters
45387         of category Cc or Cs and not-a-characters.
45388         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
45389         U+0D79, U+109E, U+109F, U+A60C.
45390         * lib/unictype/bidi_of.h: Regenerated.
45391         * lib/unictype/blocks.h: Regenerated.
45392         * lib/unictype/categ_C.h: Regenerated.
45393         * lib/unictype/categ_Cf.h: Regenerated.
45394         * lib/unictype/categ_Cn.h: Regenerated.
45395         * lib/unictype/categ_L.h: Regenerated.
45396         * lib/unictype/categ_Ll.h: Regenerated.
45397         * lib/unictype/categ_Lm.h: Regenerated.
45398         * lib/unictype/categ_Lo.h: Regenerated.
45399         * lib/unictype/categ_Lu.h: Regenerated.
45400         * lib/unictype/categ_M.h: Regenerated.
45401         * lib/unictype/categ_Mc.h: Regenerated.
45402         * lib/unictype/categ_Me.h: Regenerated.
45403         * lib/unictype/categ_Mn.h: Regenerated.
45404         * lib/unictype/categ_N.h: Regenerated.
45405         * lib/unictype/categ_Nd.h: Regenerated.
45406         * lib/unictype/categ_Nl.h: Regenerated.
45407         * lib/unictype/categ_No.h: Regenerated.
45408         * lib/unictype/categ_P.h: Regenerated.
45409         * lib/unictype/categ_Pd.h: Regenerated.
45410         * lib/unictype/categ_Pe.h: Regenerated.
45411         * lib/unictype/categ_Pf.h: Regenerated.
45412         * lib/unictype/categ_Pi.h: Regenerated.
45413         * lib/unictype/categ_Po.h: Regenerated.
45414         * lib/unictype/categ_Ps.h: Regenerated.
45415         * lib/unictype/categ_S.h: Regenerated.
45416         * lib/unictype/categ_Sk.h: Regenerated.
45417         * lib/unictype/categ_Sm.h: Regenerated.
45418         * lib/unictype/categ_So.h: Regenerated.
45419         * lib/unictype/categ_of.h: Regenerated.
45420         * lib/unictype/combining.h: Regenerated.
45421         * lib/unictype/ctype_alnum.h: Regenerated.
45422         * lib/unictype/ctype_alpha.h: Regenerated.
45423         * lib/unictype/ctype_graph.h: Regenerated.
45424         * lib/unictype/ctype_lower.h: Regenerated.
45425         * lib/unictype/ctype_print.h: Regenerated.
45426         * lib/unictype/ctype_punct.h: Regenerated.
45427         * lib/unictype/ctype_upper.h: Regenerated.
45428         * lib/unictype/decdigit.h: Regenerated.
45429         * lib/unictype/digit.h: Regenerated.
45430         * lib/unictype/mirror.h: Regenerated.
45431         * lib/unictype/numeric.h: Regenerated.
45432         * lib/unictype/pr_alphabetic.h: Regenerated.
45433         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
45434         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
45435         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
45436         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
45437         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
45438         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
45439         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
45440         * lib/unictype/pr_combining.h: Regenerated.
45441         * lib/unictype/pr_dash.h: Regenerated.
45442         * lib/unictype/pr_decimal_digit.h: Regenerated.
45443         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
45444         * lib/unictype/pr_deprecated.h: Regenerated.
45445         * lib/unictype/pr_diacritic.h: Regenerated.
45446         * lib/unictype/pr_extender.h: Regenerated.
45447         * lib/unictype/pr_format_control.h: Regenerated.
45448         * lib/unictype/pr_grapheme_base.h: Regenerated.
45449         * lib/unictype/pr_grapheme_extend.h: Regenerated.
45450         * lib/unictype/pr_grapheme_link.h: Regenerated.
45451         * lib/unictype/pr_id_continue.h: Regenerated.
45452         * lib/unictype/pr_id_start.h: Regenerated.
45453         * lib/unictype/pr_ideographic.h: Regenerated.
45454         * lib/unictype/pr_ignorable_control.h: Regenerated.
45455         * lib/unictype/pr_lowercase.h: Regenerated.
45456         * lib/unictype/pr_math.h: Regenerated.
45457         * lib/unictype/pr_numeric.h: Regenerated.
45458         * lib/unictype/pr_other_alphabetic.h: Regenerated.
45459         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
45460         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
45461         * lib/unictype/pr_other_id_continue.h: Regenerated.
45462         * lib/unictype/pr_other_lowercase.h: Regenerated.
45463         * lib/unictype/pr_other_math.h: Regenerated.
45464         * lib/unictype/pr_punctuation.h: Regenerated.
45465         * lib/unictype/pr_sentence_terminal.h: Regenerated.
45466         * lib/unictype/pr_soft_dotted.h: Regenerated.
45467         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
45468         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
45469         * lib/unictype/pr_unified_ideograph.h: Regenerated.
45470         * lib/unictype/pr_uppercase.h: Regenerated.
45471         * lib/unictype/pr_xid_continue.h: Regenerated.
45472         * lib/unictype/pr_xid_start.h: Regenerated.
45473         * lib/unictype/pr_zero_width.h: Regenerated.
45474         * lib/unictype/scripts.h: Regenerated.
45475         * lib/unictype/scripts_byname.gperf: Regenerated.
45476         * lib/unictype/sy_java_ident.h: Regenerated.
45477         * lib/unilbrk/lbrkprop1.h: Regenerated.
45478         * lib/unilbrk/lbrkprop2.h: Regenerated.
45479         * tests/unictype/test-categ_C.c: Regenerated.
45480         * tests/unictype/test-categ_Cf.c: Regenerated.
45481         * tests/unictype/test-categ_Cn.c: Regenerated.
45482         * tests/unictype/test-categ_L.c: Regenerated.
45483         * tests/unictype/test-categ_Ll.c: Regenerated.
45484         * tests/unictype/test-categ_Lm.c: Regenerated.
45485         * tests/unictype/test-categ_Lo.c: Regenerated.
45486         * tests/unictype/test-categ_Lu.c: Regenerated.
45487         * tests/unictype/test-categ_M.c: Regenerated.
45488         * tests/unictype/test-categ_Mc.c: Regenerated.
45489         * tests/unictype/test-categ_Me.c: Regenerated.
45490         * tests/unictype/test-categ_Mn.c: Regenerated.
45491         * tests/unictype/test-categ_N.c: Regenerated.
45492         * tests/unictype/test-categ_Nd.c: Regenerated.
45493         * tests/unictype/test-categ_Nl.c: Regenerated.
45494         * tests/unictype/test-categ_No.c: Regenerated.
45495         * tests/unictype/test-categ_P.c: Regenerated.
45496         * tests/unictype/test-categ_Pd.c: Regenerated.
45497         * tests/unictype/test-categ_Pe.c: Regenerated.
45498         * tests/unictype/test-categ_Pf.c: Regenerated.
45499         * tests/unictype/test-categ_Pi.c: Regenerated.
45500         * tests/unictype/test-categ_Po.c: Regenerated.
45501         * tests/unictype/test-categ_Ps.c: Regenerated.
45502         * tests/unictype/test-categ_S.c: Regenerated.
45503         * tests/unictype/test-categ_Sk.c: Regenerated.
45504         * tests/unictype/test-categ_Sm.c: Regenerated.
45505         * tests/unictype/test-categ_So.c: Regenerated.
45506         * tests/unictype/test-ctype_alnum.c: Regenerated.
45507         * tests/unictype/test-ctype_alpha.c: Regenerated.
45508         * tests/unictype/test-ctype_graph.c: Regenerated.
45509         * tests/unictype/test-ctype_lower.c: Regenerated.
45510         * tests/unictype/test-ctype_print.c: Regenerated.
45511         * tests/unictype/test-ctype_punct.c: Regenerated.
45512         * tests/unictype/test-ctype_upper.c: Regenerated.
45513         * tests/unictype/test-decdigit.h: Regenerated.
45514         * tests/unictype/test-digit.h: Regenerated.
45515         * tests/unictype/test-numeric.h: Regenerated.
45516         * tests/unictype/test-pr_alphabetic.c: Regenerated.
45517         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
45518         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
45519         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
45520         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
45521         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
45522         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
45523         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
45524         * tests/unictype/test-pr_combining.c: Regenerated.
45525         * tests/unictype/test-pr_dash.c: Regenerated.
45526         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
45527         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
45528         * tests/unictype/test-pr_deprecated.c: Regenerated.
45529         * tests/unictype/test-pr_diacritic.c: Regenerated.
45530         * tests/unictype/test-pr_extender.c: Regenerated.
45531         * tests/unictype/test-pr_format_control.c: Regenerated.
45532         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
45533         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
45534         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
45535         * tests/unictype/test-pr_id_continue.c: Regenerated.
45536         * tests/unictype/test-pr_id_start.c: Regenerated.
45537         * tests/unictype/test-pr_ideographic.c: Regenerated.
45538         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
45539         * tests/unictype/test-pr_lowercase.c: Regenerated.
45540         * tests/unictype/test-pr_math.c: Regenerated.
45541         * tests/unictype/test-pr_numeric.c: Regenerated.
45542         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
45543         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
45544         Regenerated.
45545         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
45546         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
45547         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
45548         * tests/unictype/test-pr_other_math.c: Regenerated.
45549         * tests/unictype/test-pr_punctuation.c: Regenerated.
45550         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
45551         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
45552         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
45553         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
45554         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
45555         * tests/unictype/test-pr_uppercase.c: Regenerated.
45556         * tests/unictype/test-pr_xid_continue.c: Regenerated.
45557         * tests/unictype/test-pr_xid_start.c: Regenerated.
45558         * tests/unictype/test-pr_zero_width.c: Regenerated.
45559
45560         Update to Unicode 5.1.0.
45561         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
45562         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
45563         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
45564         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
45565         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
45566         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
45567         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
45568         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
45569         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
45570         (nonspacing_table_ind): Update.
45571         * tests/uniwidth/test-uc_width2.sh: Update expected result.
45572
45573         Update to Unicode 5.1.0.
45574         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
45575         code transform.
45576         * lib/uniname/uniname.c (unicode_character_name,
45577         unicode_name_character): Add the range 0x1Fxxx to the code transform.
45578         * lib/uniname/uninames.h: Regenerated.
45579         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
45580
45581 2009-02-07  Bruno Haible  <bruno@clisp.org>
45582
45583         Merge gen-ctype and gen-lbrk into a single program.
45584         * lib/gen-uni-tables.c: New file, incorporating
45585         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
45586         Add directory prefixes to the names of the generated files.
45587         * lib/unictype/gen-ctype.c: Remove file.
45588         * lib/unilbrk/gen-lbrk.c: Remove file.
45589         * modules/gen-uni-tables: New file.
45590         * modules/unictype/gen-ctype: Remove file.
45591         * modules/unilbrk/gen-lbrk: Remove file.
45592
45593 2009-02-07  Bruno Haible  <bruno@clisp.org>
45594
45595         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
45596
45597         New module 'unistr/u32-strcoll'.
45598         * modules/unistr/u32-strcoll: New file.
45599         * lib/unistr/u32-strcoll.c: New file.
45600
45601         New module 'unistr/u16-strcoll'.
45602         * modules/unistr/u16-strcoll: New file.
45603         * lib/unistr/u16-strcoll.c: New file.
45604
45605         New module 'unistr/u8-strcoll'.
45606         * modules/unistr/u8-strcoll: New file.
45607         * lib/unistr/u8-strcoll.c: New file.
45608         * lib/unistr/u-strcoll.h: New file.
45609
45610 2009-02-07  Bruno Haible  <bruno@clisp.org>
45611
45612         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
45613         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
45614         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
45615         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
45616         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
45617         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
45618
45619 2009-02-07  Bruno Haible  <bruno@clisp.org>
45620
45621         Make 64-bit clean.
45622         * lib/unictype/gen-ctype.c (output_predicate, output_category,
45623         output_combclass, output_bidi_category, output_decimal_digit,
45624         output_digit, output_numeric, output_mirror, output_scripts,
45625         output_ident_category): Use proper width specifier in format strings.
45626
45627 2009-02-07  Bruno Haible  <bruno@clisp.org>
45628
45629         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
45630         failure behaviour.
45631
45632 2009-02-07  Jim Meyering  <meyering@redhat.com>
45633
45634         regex: avoid compilation failure with upcoming gcc-4.4
45635         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
45636         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
45637         "... error: integer overflow in preprocessor expression".
45638
45639 2009-02-05  Ben Pfaff  <blp@gnu.org>
45640
45641         Fix link errors on Windows when close module is used.
45642         * modules/close: Add $(LIB_CLOSE) to Link section.
45643         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
45644         $(LIB_CLOSE) on Windows.
45645
45646 2009-02-05  Jim Meyering  <meyering@redhat.com>
45647
45648         still avoid unused-parameter warnings, but do it cleanly
45649         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
45650         (get_fs_usage): Cast to void instead.
45651         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
45652         (dev_from_mount_options, read_file_system_list): Cast to void.
45653         Prompted by Bruno Haible.
45654
45655 2009-02-04  Jim Meyering  <meyering@redhat.com>
45656
45657         fsusage.c: correct copyright year
45658         * lib/fsusage.c: Reflect year in which the change is pushed into
45659
45660         avoid misc. warnings
45661         * lib/fsusage.c (UNUSED_PARAM): Define.
45662         (get_fs_usage): Mark parameter "disk" as unused.
45663         * lib/getugroups.c (getgrent): Use "void" in prototype.
45664         * lib/mountlist.c: Mark unused parameters.
45665         (read_file_system_list): Declare a local with "const".
45666         * lib/nanosleep.c (getnow): Declare static.
45667         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
45668
45669         dirfd: set errno upon failure
45670         * lib/dirfd.c: Include <errno.h>.
45671         Set errno to ENOTSUP when returning -1.
45672         * modules/dirfd (Depends-on): Add errno.
45673         Suggested by John Kodis <kodis@comcast.net>.
45674
45675 2009-02-01  Bruno Haible  <bruno@clisp.org>
45676
45677         Don't assume sizeof (long) >= sizeof (void *).
45678         * lib/memcmp.c: Include stdint.h.
45679         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
45680         srcp2 to 'const byte *'.
45681         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
45682         types to uintptr_t.
45683         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
45684         * modules/memcmp (Depends-on): Add stdint.
45685         Reported by Ozkan Sezer <sezeroz@gmail.com>.
45686
45687 2009-01-30  Eric Blake  <ebb9@byu.net>
45688
45689         fix more require-before-expand issues
45690         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
45691         expand, AC_PROG_AWK.
45692         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
45693
45694 2009-01-28  Eric Blake  <ebb9@byu.net>
45695
45696         version-etc: use consistent URL formatting
45697         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
45698         Improve formatting.  Use fputs for string without %.
45699
45700 2009-01-28  Jim Meyering  <meyering@redhat.com>
45701
45702         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
45703         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
45704         "underquoted definition of NAME" from autoconf-2.59.
45705
45706 2009-01-28  Bruno Haible  <bruno@clisp.org>
45707
45708         * doc/gnulib.texi: Add "Obsolete modules" to index.
45709
45710 2009-01-28  Jim Meyering  <meyering@redhat.com>
45711
45712         useless-if-before-free: recognize more variants
45713         * build-aux/useless-if-before-free: Also recognize e.g.,
45714         if (NULL != p) free (p);
45715
45716 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
45717
45718         test-getaddrinfo: skip (don't fail) this test when there's no network
45719         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
45720         on the presumption that it means you lack network access.
45721
45722 2009-01-26  Jim Meyering  <meyering@redhat.com>
45723
45724         fflush: avoid warnings on modern systems
45725         * lib/fflush.c (rpl_fflush): Move declarations of locals,
45726         pos and result, into scopes where they're used.
45727
45728 2009-01-26  Eric Blake  <ebb9@byu.net>
45729
45730         Silence warning reintroduced by recent extensions patch.
45731         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
45732         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
45733         autoconf.
45734
45735         Backport improved autoconf semantics of AC_DEFUN_ONCE.
45736         * m4/00gnulib.m4: New file.
45737         * gnulib-tool (func_get_filelist): Always use it.
45738         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
45739         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
45740
45741 2009-01-25  Bruno Haible  <bruno@clisp.org>
45742
45743         Make test-quotearg work on MacOS X and AIX.
45744         * tests/test-quotearg.sh: New file.
45745         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
45746         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
45747         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
45748         include <libintl.h>.
45749         (fake_locale): Remove variable.
45750         (gettext, dgettext, dcgettext): Remove functions.
45751         (main): Instead of setting a fake locale, set a real locale. Call
45752         textdomain and bindtextdomain.
45753         * modules/quotearg-tests (Files): Add the new files.
45754         (Depends-on): Add gettext, setenv, unsetenv.
45755         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
45756         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
45757         Augment TESTS_ENVIRONMENT.
45758
45759 2009-01-25  Bruno Haible  <bruno@clisp.org>
45760
45761         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
45762         fr_FR.ISO8859-1 locale on MacOS X.
45763         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
45764         ja_JP.eucJP locale on MacOS X.
45765         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
45766         zh_CN.GB18030 locale on MacOS X.
45767
45768 2009-01-25  Bruno Haible  <bruno@clisp.org>
45769
45770         Avoid link errors on MacOS X 10.3.
45771         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
45772         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45773
45774 2009-01-25  Bruno Haible  <bruno@clisp.org>
45775
45776         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
45777         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
45778         * modules/pipe (Files): Remove m4/posix_spawn.m4.
45779         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
45780         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
45781         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
45782         posix_spawnattr_init, posix_spawnattr_setsigmask,
45783         posix_spawnattr_setflags, posix_spawnattr_destroy.
45784
45785         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
45786         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
45787         * modules/execute (Files): Remove m4/posix_spawn.m4.
45788         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
45789         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
45790         posix_spawnattr_init, posix_spawnattr_setsigmask,
45791         posix_spawnattr_setflags, posix_spawnattr_destroy.
45792
45793 2009-01-25  Bruno Haible  <bruno@clisp.org>
45794
45795         * lib/glthread/threadlib.c: Include <stdlib.h>.
45796
45797 2009-01-25  Bruno Haible  <bruno@clisp.org>
45798
45799         * lib/glthread/threadlib.c (dummy): New declaration.
45800
45801 2009-01-25  Bruno Haible  <bruno@clisp.org>
45802
45803         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
45804         multibyte characters also for the GB18030 encoding. Don't crash when
45805         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
45806
45807 2009-01-25  Bruno Haible  <bruno@clisp.org>
45808
45809         Avoid redefining 'struct random_data' on OSF/1 5.1.
45810         * lib/stdlib.in.h: Include <random.h> if it exists.
45811         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
45812         HAVE_RANDOM_H. Include <random.h> when testing whether
45813         'struct random_data' exists.
45814         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
45815
45816 2009-01-25  Bruno Haible  <bruno@clisp.org>
45817
45818         Don't install charset.alias on MacOS X >= 10.3.
45819         * lib/localcharset.c (DARWIN7): New macro.
45820         (get_charset_aliases): Hardcode the result for Darwin7.
45821         * modules/localcharset (install-exec-local): Don't install
45822         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
45823
45824 2009-01-25  Bruno Haible  <bruno@clisp.org>
45825
45826         Don't install charset.alias on mingw and Cygwin.
45827         * modules/localcharset (install-exec-local): Don't install
45828         charset.alias on mingw and Cygwin, if the file does not yet exist.
45829         The result for these platforms is hardcoded in localcharset.c.
45830
45831 2009-01-25  Bruno Haible  <bruno@clisp.org>
45832
45833         Make it possible again to use AC_GNU_SOURCE together with gnulib.
45834         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
45835         before requiring AC_USE_SYSTEM_EXTENSIONS.
45836
45837 2009-01-25  Jim Meyering  <meyering@redhat.com>
45838
45839         c-strtod: avoid warnings
45840         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
45841         "assignment discards qualifiers from pointer target type" warnings.
45842
45843 2009-01-24  Bruno Haible  <bruno@clisp.org>
45844
45845         Add support for non-UTF-8 locales on MacOS X.
45846         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
45847         canonical encodings. For Darwin 7 and newer, don't map traditional
45848         encodings to UTF-8.
45849         Reported by Vincent Lefevre <vincent@vinc17.org>
45850         at <http://savannah.gnu.org/bugs/?25235>.
45851
45852 2009-01-24  Bruno Haible  <bruno@clisp.org>
45853
45854         * doc/gnulib.texi (Obsolete modules): New section.
45855         Reported by Mike Frysinger <vapier@gentoo.org>.
45856
45857 2009-01-24  Bruno Haible  <bruno@clisp.org>
45858
45859         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
45860         (%.dvi): New rule.
45861
45862 2009-01-24  Bruno Haible  <bruno@clisp.org>
45863
45864         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
45865         Reported by Eric Blake.
45866
45867 2009-01-24  Bruno Haible  <bruno@clisp.org>
45868
45869         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
45870         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
45871         Reported by Gary V. Vaughan <gary@gnu.org>.
45872
45873 2009-01-24  Bruno Haible  <bruno@clisp.org>
45874
45875         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
45876
45877 2009-01-23  Bruno Haible  <bruno@clisp.org>
45878
45879         Make c-strtod, c-strtold usable in libraries.
45880         * lib/c-strtod.c: Include string.h instead of xalloc.h.
45881         (C_STRTOD): Call strdup instead of xstrdup.
45882         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
45883         * modules/c-strtold (Depends-on): Likewise.
45884         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
45885         * NEWS: Mention the change.
45886         Reported by Michael Gold <mgold@ncf.ca>.
45887
45888 2009-01-23  Jim Meyering  <meyering@redhat.com>
45889
45890         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
45891         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
45892         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
45893
45894 2009-01-23  Simon Josefsson  <simon@josefsson.org>
45895
45896         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
45897         GNU CoreUtils.
45898         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
45899         * modules/version-etc (Description): Update.
45900
45901 2009-01-22  Bruno Haible  <bruno@clisp.org>
45902
45903         Cache the C locale object.
45904         * lib/c-strtod.c (c_locale_cache): New variable.
45905         (c_locale): New function.
45906         (C_STRTOD): Use it, and don't call freelocale.
45907         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
45908         Suggested by Paolo Bonzini.
45909
45910 2009-01-21  Bruno Haible  <bruno@clisp.org>
45911
45912         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
45913         conditions other than overflow.
45914
45915 2009-01-21  Bruno Haible  <bruno@clisp.org>
45916
45917         * lib/c-strtod.c: Include errno.h.
45918         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
45919         value from STRTOD_L and STRTOD.
45920
45921 2009-01-21  Bruno Haible  <bruno@clisp.org>
45922         and Jim Meyering  <meyering@redhat.com>
45923
45924         nanosleep: skip configure test (fail it) for apple universal builds
45925         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
45926         universal builds, assume that nanosleep does not work.
45927         * modules/nanosleep (Depends-on): Add multiarch.
45928
45929         mktime: skip configure test (fail it) for apple universal builds
45930         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
45931         universal builds, assume that mktime does not work.
45932         * modules/mktime (Depends-on): Add multiarch.
45933
45934 2009-01-21  Eric Blake  <ebb9@byu.net>
45935
45936         multiarch: avoid expand-before-require warning
45937         * modules/multiarch (configure.ac): Require, rather than expand,
45938         gl_MULTIARCH.
45939         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
45940         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
45941         enforce that all clients require it.  Partial reversion of
45942         2008-12-29 patch.
45943
45944         error: avoid expand-before-require warning
45945         * modules/errno (configure.ac): Require, rather than expand,
45946         gl_HEADER_ERRNO_H.
45947         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
45948         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
45949         enforce that all clients require it.
45950
45951         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
45952         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
45953         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
45954         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
45955
45956 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
45957
45958         Revert:
45959         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
45960
45961         regex: do not depend on obsolete modules.
45962         * modules/regex: Remove memcmp and memmove.
45963
45964 2009-01-20  Bruno Haible  <bruno@clisp.org>
45965
45966         Make the 'link' module link on Windows NT 4.
45967         * lib/link.c (_WIN32_WINNT): Don't define.
45968         (CreateHardLinkFuncType): New type.
45969         (CreateHardLinkFunc, initialized): New variables.
45970         (initialize): New function.
45971         (link): Invoke CreateHardLink indirectly through the function pointer.
45972
45973 2009-01-20  Bruno Haible  <bruno@clisp.org>
45974
45975         Fix compilation failure on mingw.
45976         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
45977
45978 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
45979
45980         * doc/c-strtod.texi: Mention a couple of restrictions.
45981
45982 2009-01-20  Jim Meyering  <meyering@redhat.com>
45983
45984         gettimeofday: move more declarations out of functions
45985         * lib/gettimeofday.c: Move extern declarations of tzset and
45986         gmtime out of containing functions.  Prompted by Bruno Haible.
45987
45988 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
45989
45990         regex: do not depend on obsolete modules.
45991         * modules/regex: Remove memcmp and memmove.
45992
45993 2009-01-19  Bruno Haible  <bruno@clisp.org>
45994
45995         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
45996         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
45997         gl_BIGENDIAN, not AC_C_BIGENDIAN.
45998         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
45999         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
46000
46001 2009-01-19  Bruno Haible  <bruno@clisp.org>
46002
46003         * tests/test-link.c: Include <errno.h>.
46004         (main): Exit with code 77 when a hard link cannot be created due to
46005         the file system.
46006         * tests/test-link.sh: Skip test when a hard link cannot be created due
46007         to the file system.
46008         Suggested by Eric Blake.
46009
46010 2009-01-19  Martin Lambers  <marlam@marlam.de>
46011
46012         * modules/link-tests: New file.
46013         * tests/test-link.sh: New file.
46014         * tests/test-link.c: New file.
46015
46016 2009-01-19  Eric Blake  <ebb9@byu.net>
46017
46018         doc: mention another function added in cygwin 1.7.0
46019         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
46020         Another new function in cygwin 1.7.
46021
46022 2009-01-19  Bruno Haible  <bruno@clisp.org>
46023
46024         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46025         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
46026         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
46027         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46028         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46029         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
46030         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46031         * m4/md4.m4 (gl_MD4): Likewise.
46032         * m4/md5.m4 (gl_MD5): Likewise.
46033         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
46034         * m4/sha1.m4 (gl_SHA1): Likewise.
46035         * m4/sha256.m4 (gl_SHA256): Likewise.
46036         * m4/sha512.m4 (gl_SHA512): Likewise.
46037
46038 2009-01-19  Bruno Haible  <bruno@clisp.org>
46039
46040         * modules/uniname/uniname-tests (Depends-on): Add progname.
46041         * tests/uniname/test-uninames.c: Include progname.h.
46042         (main): Call set_program_name.
46043
46044         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
46045         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
46046         (main): Call set_program_name.
46047
46048         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
46049         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
46050         (main): Call set_program_name.
46051
46052         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
46053         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
46054         (main): Call set_program_name.
46055
46056         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
46057         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
46058         (main): Call set_program_name.
46059
46060         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
46061         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
46062         (main): Call set_program_name.
46063
46064         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
46065         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
46066         (main): Call set_program_name.
46067
46068         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
46069         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
46070         (main): Call set_program_name.
46071
46072         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
46073         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
46074         (main): Call set_program_name.
46075
46076 2009-01-19  Eric Blake  <ebb9@byu.net>
46077
46078         test-unistd: test previous patch
46079         * tests/test-unistd.c: Test *_FILENO macros.
46080
46081         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
46082         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46083         Guarantee a definition.
46084         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
46085         * modules/unistd-safer (Depends-on): Add dependency on unistd.
46086         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
46087         * lib/dup-safer.c (STDERR_FILENO): Likewise.
46088         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46089         Likewise.
46090         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
46091         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
46092         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46093         Likewise.
46094         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
46095         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
46096         (STDERR_FILENO): Likewise.
46097         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
46098         (STDERR_FILENO): Likewise.
46099         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
46100         (STDERR_FILENO): Likewise.
46101         Reported by Elbert Pol.
46102
46103 2009-01-19  Eric Blake  <ebb9@byu.net>
46104
46105         doc: mention more functions added in cygwin 1.7.0
46106         * doc/posix-functions/abort.texi (abort): Update wording related
46107         to cygwin.
46108         * doc/posix-functions/daylight.texi (daylight): Likewise.
46109         * doc/posix-functions/optarg.texi (optarg): Likewise.
46110         * doc/posix-functions/optarg.texi (opterr): Likewise.
46111         * doc/posix-functions/optarg.texi (optind): Likewise.
46112         * doc/posix-functions/optarg.texi (optopt): Likewise.
46113         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
46114         worked in 1.5.x, and was withdrawn in 1.7.
46115         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
46116         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
46117         cygwin versions.
46118         * doc/posix-functions/perror.texi (perror): Likewise.
46119         * doc/posix-functions/printf.texi (printf): Likewise.
46120         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
46121         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
46122         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
46123         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
46124         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46125         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
46126         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
46127         Likewise.
46128         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
46129         Likewise.
46130         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
46131         this function.
46132         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
46133         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
46134         Likewise.
46135         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
46136         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
46137         * doc/posix-functions/confstr.texi (confstr): Likewise.
46138         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
46139         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
46140         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
46141         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
46142         * doc/posix-functions/fputws.texi (fputws): Likewise.
46143         * doc/posix-functions/fwide.texi (fwide): Likewise.
46144         * doc/posix-functions/getwc.texi (getwc): Likewise.
46145         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
46146         * doc/posix-functions/putwc.texi (putwc): Likewise.
46147         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
46148         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
46149         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
46150         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
46151         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
46152         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
46153         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
46154         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
46155         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
46156         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
46157         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
46158
46159 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46160
46161         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
46162         * lib/ioctl.c: Include <sys/ioctl.h>.
46163
46164 2009-01-19  Simon Josefsson  <simon@josefsson.org>
46165
46166         * modules/getdate-tests (Depends-on): Add progname.
46167         * tests/test-getdate.c: Use progname module, to avoid link errors
46168         on non-glibc systems.
46169
46170 2009-01-18  Simon Josefsson  <simon@josefsson.org>
46171
46172         * modules/filenamecat-tests (Depends-on): Add progname.
46173         * modules/fstrcmp-tests (Depends-on): Likewise.
46174
46175         * tests/test-filenamecat.c: Use progname module, to avoid link
46176         errors on non-glibc systems.
46177         * tests/test-fstrcmp.c: Likewise.
46178
46179 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46180
46181         gettimeofday: avoid warning: nested extern declaration of 'localtime'
46182         * lib/gettimeofday.c: Move extern declaration out of function.
46183
46184 2009-01-18  Bruno Haible  <bruno@clisp.org>
46185
46186         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
46187         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
46188         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
46189
46190 2009-01-18  Bruno Haible  <bruno@clisp.org>
46191
46192         * lib/strftime.c (MEMPCPY): Remove unused macro.
46193         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
46194
46195 2009-01-18  Martin Lambers  <marlam@marlam.de>
46196
46197         New module 'link'.
46198         * lib/unistd.in.h (link): New declaration.
46199         * lib/link.c: New file.
46200         * m4/link.m4: New file.
46201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
46202         HAVE_LINK.
46203         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
46204         * modules/link: New file.
46205         * doc/posix-functions/link.texi: Mention the new module.
46206
46207 2009-01-18  Bruno Haible  <bruno@clisp.org>
46208
46209         * tests/test-avltree_list.c (main): Call set_program_name.
46210         * tests/test-avltree_oset.c (main): Likewise.
46211         * tests/test-obstack-printf.c: Include progname.h.
46212         (main): Call set_program_name.
46213         * tests/test-quotearg.c: Include progname.h.
46214         (main): Call set_program_name.
46215         * tests/test-xmemdup0.c: Include progname.h.
46216         (main): Call set_program_name.
46217
46218 2009-01-18  Bruno Haible  <bruno@clisp.org>
46219
46220         New module 'alphasort'.
46221         * lib/dirent.in.h (alphasort): New declaration.
46222         * lib/alphasort.c: New file, from glibc with modifications.
46223         * m4/alphasort.m4: New file.
46224         * modules/alphasort: New file.
46225         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
46226         HAVE_ALPHASORT.
46227         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
46228         HAVE_ALPHASORT.
46229         * doc/posix-functions/alphasort.texi: Mention the new module and the
46230         portability problems.
46231
46232 2009-01-18  Bruno Haible  <bruno@clisp.org>
46233
46234         New module 'scandir'.
46235         * lib/dirent.in.h (scandir): New declaration.
46236         * lib/scandir.c: New file, from glibc with modifications.
46237         * m4/scandir.m4: New file.
46238         * modules/scandir: New file.
46239         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
46240         HAVE_SCANDIR.
46241         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
46242         HAVE_SCANDIR.
46243         * doc/posix-functions/scandir.texi: Mention the new module and the
46244         portability problems.
46245
46246 2009-01-17  Bruno Haible  <bruno@clisp.org>
46247
46248         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
46249         Update documentation.
46250         (func_remove_suffix): Escape all dots in the suffix. Update
46251         documentation.
46252         (func_filter_filelist): Update documentation.
46253         Reported by Ralf Wildenhues.
46254
46255 2009-01-17  Bruno Haible  <bruno@clisp.org>
46256
46257         * modules/dprintf-posix-tests: New file.
46258         * tests/test-dprintf-posix.sh: New file.
46259         * tests/test-dprintf-posix.c: New file.
46260
46261         New modules 'dprintf', 'dprintf-posix'.
46262         * lib/stdio.in.h (dprintf): New declaration.
46263         * lib/dprintf.c: New file.
46264         * m4/dprintf.m4: New file.
46265         * m4/dprintf-posix.m4: New file.
46266         * modules/dprintf: New file.
46267         * modules/dprintf-posix: New file.
46268         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
46269         HAVE_DPRINTF, REPLACE_DPRINTF.
46270         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
46271         HAVE_DPRINTF, REPLACE_DPRINTF.
46272         * doc/posix-functions/dprintf.texi: Mention the new modules.
46273
46274 2009-01-17  Bruno Haible  <bruno@clisp.org>
46275
46276         * modules/vdprintf-posix-tests: New file.
46277         * tests/test-vdprintf-posix.sh: New file.
46278         * tests/test-vdprintf-posix.c: New file.
46279
46280         New modules 'vdprintf', 'vdprintf-posix'.
46281         * lib/stdio.in.h (vdprintf): New declaration.
46282         * lib/vdprintf.c: New file.
46283         * m4/vdprintf.m4: New file.
46284         * m4/vdprintf-posix.m4: New file.
46285         * modules/vdprintf: New file.
46286         * modules/vdprintf-posix: New file.
46287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
46288         HAVE_VDPRINTF, REPLACE_VDPRINTF.
46289         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
46290         HAVE_VDPRINTF, REPLACE_VDPRINTF.
46291         * doc/posix-functions/vdprintf.texi: Mention the new modules.
46292
46293 2009-01-17  Bruno Haible  <bruno@clisp.org>
46294
46295         Fix replacement of fopen on mingw.
46296         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
46297         mingw.
46298
46299 2009-01-17  Bruno Haible  <bruno@clisp.org>
46300
46301         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
46302         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
46303
46304 2009-01-17  Bruno Haible  <bruno@clisp.org>
46305
46306         Avoid test-fflush2.sh failure on mingw.
46307         * tests/test-fflush2.c: Include binary-io.h.
46308         (main): Put standard input into binary mode.
46309         * modules/fflush-tests (Depends-on): Add binary-io.
46310
46311 2009-01-17  Bruno Haible  <bruno@clisp.org>
46312
46313         * lib/wchar.in.h: In another particular situation, include only the
46314         system's <wchar.h> file.
46315         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
46316         Reported by Albert Chin-A-Young <china@thewrittenword.com>
46317         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
46318
46319 2009-01-17  Bruno Haible  <bruno@clisp.org>
46320
46321         Support for stripping executables in --enable-relocatable.
46322         * build-aux/install-reloc: Expect one more argument, or an environment
46323         variable RELOC_STRIP_PROG. If set, strip the destination program and
46324         its wrapper.
46325         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
46326         RELOC_STRIP_PROG.
46327         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
46328         to set RELOCATABLE_STRIP.
46329         * NEWS: Mention the new Makefile requirement.
46330
46331 2009-01-17  Bruno Haible  <bruno@clisp.org>
46332
46333         * build-aux/install-reloc: Remove debugging information left over by
46334         C compiler on MacOS X.
46335
46336 2009-01-17  Bruno Haible  <bruno@clisp.org>
46337
46338         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
46339         * lib/progreloc.c (find_executable): Fix type of pointer passed to
46340         _NSGetExecutablePath.
46341
46342 2009-01-16  Jim Meyering  <meyering@redhat.com>
46343
46344         strerror: avoid warnings about discarding "const"
46345         * lib/strerror.c (rpl_strerror): Instead of returning a const
46346         string from each and every "case", use a variable, and add a single
46347         cast after the switch.
46348
46349 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
46350
46351         * lib/arpa_inet.in.h: Add extern "C" block for C++.
46352
46353 2009-01-16  Bruno Haible  <bruno@clisp.org>
46354
46355         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
46356         array initializer syntax that also works in C++ mode.
46357         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46358
46359 2009-01-16  Jim Meyering  <meyering@redhat.com>
46360
46361         poll: suppress a warning
46362         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
46363         to ignore "...unsigned expression < 0 is always false" warnings.
46364
46365 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
46366
46367         poll: remove declarations of unused variables
46368         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
46369         sockbuf and optlen.
46370
46371 2009-01-15  Bruno Haible  <bruno@clisp.org>
46372
46373         Make fflush-after-ungetc POSIX compliant on BSD systems.
46374         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
46375         (clear_ungetc_buffer): Implement also for other systems.
46376         (rpl_fflush): On glibc systems, invoke
46377         clear_ungetc_buffer_preserving_position. Otherwise, invoke
46378         clear_ungetc_buffer after fetching the stream's position, not before.
46379
46380 2009-01-15  Bruno Haible  <bruno@clisp.org>
46381
46382         Make fflush-after-ungetc POSIX compliant on glibc systems.
46383         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
46384         after ungetc.
46385         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
46386         (rpl_fflush): On glibc systems, simply call the system's fflush
46387         function after clearing the ungetc buffer.
46388         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
46389         Instead, lseek only to the end of file, then use the system's fseeko
46390         for the rest. On glibc systems, reset the EOF indicator bit.
46391
46392 2009-01-15  Jim Meyering  <meyering@redhat.com>
46393
46394         openmp.m4: revert quote-adding change, for portability to older autoconf
46395         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
46396         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
46397         Simon Josefsson noticed the problem when using autoconf-2.61.
46398
46399 2009-01-15  Bruno Haible  <bruno@clisp.org>
46400
46401         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
46402         * tests/test-fflush2.c (ASSERT): Always fail.
46403         (main): Add two tests for fflush() after ungetc(), taking into account
46404         the Austin Group's clarification.
46405         Suggested by Eric Blake.
46406
46407 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
46408
46409         mktime.m4: remove K&R-style function prototypes
46410         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
46411         for the Sun C++ compiler.
46412
46413 2009-01-14  Bruno Haible  <bruno@clisp.org>
46414
46415         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
46416         while including <wchar.h>.
46417         * lib/wchar.in.h: In two particular situations on HP-UX, include only
46418         the system's <wchar.h> file.
46419         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46420
46421 2009-01-14  Bruno Haible  <bruno@clisp.org>
46422
46423         * m4/csharp.m4: Don't mention gettext on the serial number line.
46424         * m4/csharpexec.m4: Likewise.
46425         * m4/eaccess.m4: Likewise.
46426         * m4/javaexec.m4: Likewise.
46427         * m4/sig_atomic_t.m4: Likewise.
46428         * m4/tmpdir.m4: Likewise.
46429         * m4/intldir.m4: Bump gettext version.
46430         * m4/lib-ld.m4: Likewise.
46431
46432 2009-01-14  Bruno Haible  <bruno@clisp.org>
46433
46434         * lib/progname.c (set_program_name): Add more comments.
46435         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
46436
46437 2009-01-14  Simon Josefsson  <simon@josefsson.org>
46438
46439         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
46440         were sys/stat.h does not define it.
46441
46442 2009-01-14  Jim Meyering  <meyering@redhat.com>
46443
46444         many *.m4 files: improve m4 quoting
46445         99% of this change was performed by running the following commands:
46446         git ls-files | grep '\.m4$' | xargs perl -pi \
46447           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
46448           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
46449           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
46450           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
46451         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
46452         The remainder were to add Copyright dates, increment serial numbers,
46453         undo some changes in comments, exclude m4/intl.m4, and add quotes
46454         around the "1" in ",1" where the unusual spacing prohibited the
46455         above regexps from doing the job.  For more details, see
46456         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
46457         * m4/acl.m4: Modified.
46458         * m4/afs.m4: Likewise.
46459         * m4/alloca.m4: Likewise.
46460         * m4/argp.m4: Likewise.
46461         * m4/argz.m4: Likewise.
46462         * m4/atexit.m4: Likewise.
46463         * m4/bison-i18n.m4: Likewise.
46464         * m4/bison.m4: Likewise.
46465         * m4/byteswap.m4: Likewise.
46466         * m4/c-stack.m4: Likewise.
46467         * m4/c-strtod.m4: Likewise.
46468         * m4/calloc.m4: Likewise.
46469         * m4/canonicalize-lgpl.m4: Likewise.
46470         * m4/chown.m4: Likewise.
46471         * m4/clock_time.m4: Likewise.
46472         * m4/codeset.m4: Likewise.
46473         * m4/copy-file.m4: Likewise.
46474         * m4/csharp.m4: Likewise.
46475         * m4/csharpcomp.m4: Likewise.
46476         * m4/csharpexec.m4: Likewise.
46477         * m4/d-ino.m4: Likewise.
46478         * m4/d-type.m4: Likewise.
46479         * m4/dirfd.m4: Likewise.
46480         * m4/double-slash-root.m4: Likewise.
46481         * m4/eaccess.m4: Likewise.
46482         * m4/eealloc.m4: Likewise.
46483         * m4/environ.m4: Likewise.
46484         * m4/errno_h.m4: Likewise.
46485         * m4/euidaccess.m4: Likewise.
46486         * m4/execute.m4: Likewise.
46487         * m4/fatal-signal.m4: Likewise.
46488         * m4/fchdir.m4: Likewise.
46489         * m4/fcntl_h.m4: Likewise.
46490         * m4/fileblocks.m4: Likewise.
46491         * m4/filenamecat.m4: Likewise.
46492         * m4/findprog.m4: Likewise.
46493         * m4/flexmember.m4: Likewise.
46494         * m4/fnmatch.m4: Likewise.
46495         * m4/fopen.m4: Likewise.
46496         * m4/fpending.m4: Likewise.
46497         * m4/fprintf-posix.m4: Likewise.
46498         * m4/free.m4: Likewise.
46499         * m4/frexp.m4: Likewise.
46500         * m4/frexpl.m4: Likewise.
46501         * m4/fsusage.m4: Likewise.
46502         * m4/ftruncate.m4: Likewise.
46503         * m4/gc-camellia.m4: Likewise.
46504         * m4/gc-random.m4: Likewise.
46505         * m4/gc.m4: Likewise.
46506         * m4/getaddrinfo.m4: Likewise.
46507         * m4/getcwd-abort-bug.m4: Likewise.
46508         * m4/getcwd-path-max.m4: Likewise.
46509         * m4/getdate.m4: Likewise.
46510         * m4/getdomainname.m4: Likewise.
46511         * m4/getgroups.m4: Likewise.
46512         * m4/gethostname.m4: Likewise.
46513         * m4/gethrxtime.m4: Likewise.
46514         * m4/getline.m4: Likewise.
46515         * m4/getloadavg.m4: Likewise.
46516         * m4/getndelim2.m4: Likewise.
46517         * m4/getpass.m4: Likewise.
46518         * m4/gettext.m4: Likewise.
46519         * m4/gettime.m4: Likewise.
46520         * m4/gettimeofday.m4: Likewise.
46521         * m4/gnulib-common.m4: Likewise.
46522         * m4/group-member.m4: Likewise.
46523         * m4/host-os.m4: Likewise.
46524         * m4/iconv.m4: Likewise.
46525         * m4/iconv_open.m4: Likewise.
46526         * m4/inet_ntop.m4: Likewise.
46527         * m4/inet_pton.m4: Likewise.
46528         * m4/inline.m4: Likewise.
46529         * m4/intldir.m4: Likewise.
46530         * m4/intlmacosx.m4: Likewise.
46531         * m4/intmax.m4: Likewise.
46532         * m4/intmax_t.m4: Likewise.
46533         * m4/inttypes.m4: Likewise.
46534         * m4/inttypes_h.m4: Likewise.
46535         * m4/inttypes-pri.m4: Likewise.
46536         * m4/isapipe.m4: Likewise.
46537         * m4/isnand.m4: Likewise.
46538         * m4/isnanf.m4: Likewise.
46539         * m4/isnanl.m4: Likewise.
46540         * m4/javacomp.m4: Likewise.
46541         * m4/javaexec.m4: Likewise.
46542         * m4/jm-winsz1.m4: Likewise.
46543         * m4/jm-winsz2.m4: Likewise.
46544         * m4/lchown.m4: Likewise.
46545         * m4/lcmessage.m4: Likewise.
46546         * m4/ldexpl.m4: Likewise.
46547         * m4/lib-ld.m4: Likewise.
46548         * m4/lib-link.m4: Likewise.
46549         * m4/libsigsegv.m4: Likewise.
46550         * m4/link-follow.m4: Likewise.
46551         * m4/localcharset.m4: Likewise.
46552         * m4/locale-fr.m4: Likewise.
46553         * m4/locale-ja.m4: Likewise.
46554         * m4/locale-tr.m4: Likewise.
46555         * m4/locale-zh.m4: Likewise.
46556         * m4/lock.m4: Likewise.
46557         * m4/longlong.m4: Likewise.
46558         * m4/ls-mntd-fs.m4: Likewise.
46559         * m4/lstat.m4: Likewise.
46560         * m4/malloc.m4: Likewise.
46561         * m4/mathl.m4: Likewise.
46562         * m4/mbrtowc.m4: Likewise.
46563         * m4/mbstate_t.m4: Likewise.
46564         * m4/mbswidth.m4: Likewise.
46565         * m4/memchr.m4: Likewise.
46566         * m4/memcmp.m4: Likewise.
46567         * m4/memcpy.m4: Likewise.
46568         * m4/memmem.m4: Likewise.
46569         * m4/memmove.m4: Likewise.
46570         * m4/mempcpy.m4: Likewise.
46571         * m4/memrchr.m4: Likewise.
46572         * m4/memset.m4: Likewise.
46573         * m4/minmax.m4: Likewise.
46574         * m4/mkdir-slash.m4: Likewise.
46575         * m4/mkdtemp.m4: Likewise.
46576         * m4/mktime.m4: Likewise.
46577         * m4/mmap-anon.m4: Likewise.
46578         * m4/mountlist.m4: Likewise.
46579         * m4/nanosleep.m4: Likewise.
46580         * m4/nls.m4: Likewise.
46581         * m4/nocrash.m4: Likewise.
46582         * m4/open.m4: Likewise.
46583         * m4/openat.m4: Likewise.
46584         * m4/openmp.m4: Likewise.
46585         * m4/pathmax.m4: Likewise.
46586         * m4/perl.m4: Likewise.
46587         * m4/physmem.m4: Likewise.
46588         * m4/pipe.m4: Likewise.
46589         * m4/po.m4: Likewise.
46590         * m4/poll.m4: Likewise.
46591         * m4/posixtm.m4: Likewise.
46592         * m4/posixver.m4: Likewise.
46593         * m4/printf-frexp.m4: Likewise.
46594         * m4/printf-frexpl.m4: Likewise.
46595         * m4/printf-posix.m4: Likewise.
46596         * m4/printf-posix-rpl.m4: Likewise.
46597         * m4/printf.m4: Likewise.
46598         * m4/progtest.m4: Likewise.
46599         * m4/putenv.m4: Likewise.
46600         * m4/readline.m4: Likewise.
46601         * m4/readlink.m4: Likewise.
46602         * m4/readutmp.m4: Likewise.
46603         * m4/realloc.m4: Likewise.
46604         * m4/regex.m4: Likewise.
46605         * m4/relocatable.m4: Likewise.
46606         * m4/relocatable-lib.m4: Likewise.
46607         * m4/rename-dest-slash.m4: Likewise.
46608         * m4/rename.m4: Likewise.
46609         * m4/rmdir-errno.m4: Likewise.
46610         * m4/rmdir.m4: Likewise.
46611         * m4/roundf.m4: Likewise.
46612         * m4/roundl.m4: Likewise.
46613         * m4/rpmatch.m4: Likewise.
46614         * m4/save-cwd.m4: Likewise.
46615         * m4/selinux-selinux-h.m4: Likewise.
46616         * m4/setenv.m4: Likewise.
46617         * m4/settime.m4: Likewise.
46618         * m4/sig2str.m4: Likewise.
46619         * m4/sig_atomic_t.m4: Likewise.
46620         * m4/signalblocking.m4: Likewise.
46621         * m4/signbit.m4: Likewise.
46622         * m4/sigpipe.m4: Likewise.
46623         * m4/sockets.m4: Likewise.
46624         * m4/sockpfaf.m4: Likewise.
46625         * m4/st_dm_mode.m4: Likewise.
46626         * m4/stat-time.m4: Likewise.
46627         * m4/stdbool.m4: Likewise.
46628         * m4/stdint.m4: Likewise.
46629         * m4/stdint_h.m4: Likewise.
46630         * m4/stpcpy.m4: Likewise.
46631         * m4/stpncpy.m4: Likewise.
46632         * m4/strcase.m4: Likewise.
46633         * m4/strchrnul.m4: Likewise.
46634         * m4/strcspn.m4: Likewise.
46635         * m4/strdup.m4: Likewise.
46636         * m4/strftime.m4: Likewise.
46637         * m4/strndup.m4: Likewise.
46638         * m4/strnlen.m4: Likewise.
46639         * m4/strpbrk.m4: Likewise.
46640         * m4/strptime.m4: Likewise.
46641         * m4/strsep.m4: Likewise.
46642         * m4/strtod.m4: Likewise.
46643         * m4/strtoimax.m4: Likewise.
46644         * m4/strtok_r.m4: Likewise.
46645         * m4/strtol.m4: Likewise.
46646         * m4/strtoll.m4: Likewise.
46647         * m4/strtoul.m4: Likewise.
46648         * m4/strtoull.m4: Likewise.
46649         * m4/strtoumax.m4: Likewise.
46650         * m4/strverscmp.m4: Likewise.
46651         * m4/threadlib.m4: Likewise.
46652         * m4/timegm.m4: Likewise.
46653         * m4/tm_gmtoff.m4: Likewise.
46654         * m4/tmpdir.m4: Likewise.
46655         * m4/tmpfile.m4: Likewise.
46656         * m4/tzset.m4: Likewise.
46657         * m4/uintmax_t.m4: Likewise.
46658         * m4/unlinkdir.m4: Likewise.
46659         * m4/unlocked-io.m4: Likewise.
46660         * m4/uptime.m4: Likewise.
46661         * m4/userspec.m4: Likewise.
46662         * m4/utimbuf.m4: Likewise.
46663         * m4/utime.m4: Likewise.
46664         * m4/utimes-null.m4: Likewise.
46665         * m4/utimes.m4: Likewise.
46666         * m4/vararrays.m4: Likewise.
46667         * m4/vasnprintf.m4: Likewise.
46668         * m4/vfprintf-posix.m4: Likewise.
46669         * m4/vprintf-posix.m4: Likewise.
46670         * m4/wait-process.m4: Likewise.
46671         * m4/wchar_t.m4: Likewise.
46672         * m4/wint_t.m4: Likewise.
46673         * m4/write-any-file.m4: Likewise.
46674         * m4/yield.m4: Likewise.
46675
46676 2009-01-13  Bruno Haible  <bruno@clisp.org>
46677
46678         Avoid test-copy-file.sh failures when ACL support insufficient.
46679         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
46680         TESTS_ENVIRONMENT.
46681         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
46682         Reported by Jim Meyering.
46683
46684 2009-01-13  Bruno Haible  <bruno@clisp.org>
46685
46686         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
46687         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
46688         * modules/unistdio/u8-printf-parse (Files): Likewise.
46689         * modules/unistdio/u32-printf-parse (Files): Likewise.
46690         * modules/unistdio/ulc-printf-parse (Files): Likewise.
46691
46692 2009-01-13  Simon Josefsson  <simon@josefsson.org>
46693
46694         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
46695         and m4/inttypes_h.m4 too.
46696
46697 2009-01-12  Eric Blake  <ebb9@byu.net>
46698
46699         tests: IRIX 6.2 cc can't compile -0.0 into .data
46700         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
46701         rather than at compile-time.
46702         * tests/test-floorl.c (minus_zero): Likewise.
46703         * tests/test-frexpl.c (minus_zero): Likewise.
46704         * tests/test-isnan.c (minus_zerol): Likewise.
46705         * tests/test-isnanl.h (minus_zero): Likewise.
46706         * tests/test-ldexpl.c (minus_zero): Likewise.
46707         * tests/test-roundl.c (minus_zero): Likewise.
46708         * tests/test-signbit.c (minus_zerol): Likewise.
46709         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46710         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46711         * tests/test-truncl.c (minus_zero): Likewise.
46712         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46713         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46714         Reported by Tom G. Christensen and Nelson H. F. Beebe.
46715
46716 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
46717
46718         regex: fix glibc bug 9697
46719         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
46720         handling.
46721
46722 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
46723
46724         regex: fix glibc bug 697
46725         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
46726         being NULL also if there are no backreferences.
46727
46728 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
46729
46730         regex: merge glibc changes
46731         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
46732         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
46733         re_string_skip_chars, re_string_reconstruct): Likewise.
46734         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
46735
46736 2009-01-07  Jim Meyering  <meyering@redhat.com>
46737
46738         poll: filter through cppi
46739         * lib/poll.c: Indent cpp directives to reflect nesting.
46740
46741 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
46742
46743         poll: don't return uninitialized
46744         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
46745
46746 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
46747
46748         avoid compile failure on AIX 6.1
46749         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
46750         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
46751
46752 2009-01-04  Jim Meyering  <meyering@redhat.com>
46753
46754         remove duplicate inclusion of <stdio.h>
46755         * tests/test-fprintf-posix.c: Likewise.
46756         * tests/test-printf-posix.c: Likewise.
46757         * tests/test-snprintf-posix.c: Likewise.
46758         * tests/test-sprintf-posix.c: Likewise.
46759         * tests/test-vasprintf-posix.c: Likewise.
46760         * tests/test-vfprintf-posix.c: Likewise.
46761         * tests/test-vprintf-posix.c: Likewise.
46762         * tests/test-vsnprintf-posix.c: Likewise.
46763         * tests/test-vsprintf-posix.c: Likewise.
46764
46765 2009-01-03  Jim Meyering  <meyering@redhat.com>
46766
46767         gnulib-tool: fix sed-based filtering
46768         * gnulib-tool (func_filter_filelist): Remove extra backslash
46769         in sed_fff_filter definition.
46770
46771 2009-01-02  Jim Meyering  <meyering@redhat.com>
46772
46773         strftime: avoid compilation failure on Solaris 2.6
46774         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
46775         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
46776         Don't #define mbrlen or mbsinit, since now they're guaranteed to
46777         be available.  Reported by Tom G. Christensen.  Details in
46778         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
46779
46780 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46781             Bruno Haible  <bruno@clisp.org>
46782
46783         Speed up gnulib-tool by doing more string processing through shell
46784         built-ins.
46785         * gnulib-tool (fast_func_append): New variable.
46786         (func_remove_prefix, func_remove_suffix): New functions.
46787         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
46788         (func_filter_filelist): New function.
46789         (func_get_dependencies): Use func_remove_suffix instead of sed.
46790         (func_get_automake_snippet): Use func_filter_filelist instead of a
46791         subshell and sed invocation.
46792
46793 2009-01-01  Bruno Haible  <bruno@clisp.org>
46794
46795         Fix a security bug.
46796         * gnulib-tool (func_import, import, update): Don't allow the characters
46797         '"', '$', '`', '\' in macro arguments that become part of commands that
46798         are evaluated.
46799
46800 2009-01-01  Bruno Haible  <bruno@clisp.org>
46801
46802         * gnulib-tool (func_reset_sigpipe): Add more comments.
46803
46804 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46805
46806         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
46807         func_emit_tests_Makefile_am, func_import): Abort loops early if we
46808         already know the answer.
46809
46810 2009-01-01  Jim Meyering  <meyering@redhat.com>
46811
46812         * lib/version-etc.c (version_etc_va): Update copyright year.
46813
46814 2008-12-30  Bruno Haible  <bruno@clisp.org>
46815
46816         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
46817         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
46818         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
46819
46820 2008-12-29  Eric Blake  <ebb9@byu.net>
46821
46822         multiarch: avoid autoconf AC_REQUIRE bug
46823         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
46824         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
46825         2.63 and older.
46826         Reported by Bruno Haible, and analyzed in
46827         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
46828
46829 2008-12-29  Bruno Haible  <bruno@clisp.org>
46830
46831         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
46832         files in subdirectories correctly.
46833         Reported by Ralf Wildenhues.
46834
46835 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46836
46837         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
46838         rather than 'join FILE -', for Solaris join.
46839
46840 2008-12-29  Bruno Haible  <bruno@clisp.org>
46841
46842         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
46843         quoting.
46844         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
46845         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
46846         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
46847         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
46848         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
46849         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
46850         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
46851         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
46852         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
46853         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
46854         * m4/nls.m4 (AM_NLS): Likewise.
46855         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
46856         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
46857         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
46858         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
46859         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
46860         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
46861         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
46862         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
46863         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
46864         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46865         * m4/xsize.m4 (gl_XSIZE): Likewise.
46866         Suggested by Jim Meyering.
46867
46868 2008-11-17  Bruce Korb  <bkorb@gnu.org>
46869
46870         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
46871         * lib/parse-duration.c: use a switch instead of cascading if's.
46872
46873 2008-12-29  Eric Blake  <ebb9@byu.net>
46874
46875         wchar.h: supply WEOF on Irix 5.3
46876         * lib/wchar.in.h (wint_t): Also supply WEOF.
46877         * lib/wctype.in.h (wint_t): Likewise.
46878         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
46879         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
46880         Reported by Tom G. Christensen.
46881
46882 2008-12-26  Bruno Haible  <bruno@clisp.org>
46883
46884         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
46885         i486, i586, i686.
46886
46887 2008-12-26  Bruno Haible  <bruno@clisp.org>
46888
46889         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
46890
46891 2008-12-26  Bruno Haible  <bruno@clisp.org>
46892
46893         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
46894         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
46895         not __STDC_CONSTANT_MACROS.
46896         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46897
46898 2008-12-25  Bruno Haible  <bruno@clisp.org>
46899
46900         Add support for universal builds to vasnprintf.
46901         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
46902         universal builds, guess no.
46903         * modules/vasnprintf-posix (Depends-on): Add multiarch.
46904         * modules/vasprintf-posix (Depends-on): Likewise.
46905         * modules/fprintf-posix (Depends-on): Likewise.
46906         * modules/vfprintf-posix (Depends-on): Likewise.
46907         * modules/snprintf-posix (Depends-on): Likewise.
46908         * modules/vsnprintf-posix (Depends-on): Likewise.
46909         * modules/sprintf-posix (Depends-on): Likewise.
46910         * modules/vsprintf-posix (Depends-on): Likewise.
46911         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46912         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46913         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46914         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46915         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46916         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46917         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46918
46919         Add support for universal builds to <inttypes.h>.
46920         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
46921         _SCNu64_PREFIX): In Apple
46922         universal builds, define directly, using _LP64.
46923         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
46924         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
46925         * modules/inttypes (Depends-on): Add multiarch.
46926         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
46927
46928         Add support for universal builds to <stdint.h>.
46929         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
46930         universal builds, define directly, using _LP64.
46931         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
46932         Apple universal builds, don't test for the size and suffix of ptrdiff_t
46933         and size_t.
46934         * modules/stdint (Depends-on): Add multiarch.
46935         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
46936
46937         New module 'multiarch'.
46938         * modules/multiarch: New file.
46939         * m4/multiarch.m4: New file.
46940
46941 2008-12-25  Bruno Haible  <bruno@clisp.org>
46942
46943         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
46944
46945 2008-12-25  Bruno Haible  <bruno@clisp.org>
46946
46947         * modules/btowc (License): Relicense under LGPLv2+.
46948         * modules/mbsinit (License): Likewise.
46949         * modules/mbrtowc (License): Likewise.
46950         * modules/wcrtomb (License): Likewise.
46951         * modules/streq (License): Likewise.
46952         Reported by David Lutterkort <lutter@redhat.com>.
46953
46954 2008-12-23  Bruno Haible  <bruno@clisp.org>
46955
46956         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
46957
46958 2008-12-23  Bruno Haible  <bruno@clisp.org>
46959
46960         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
46961         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
46962         GETADDRINFO_LIB, not in LIBS.
46963         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
46964         * modules/canon-host (Link): Likewise.
46965         * NEWS: Mention the change.
46966         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
46967         GETADDRINFO_LIB.
46968
46969 2008-12-22  Bruno Haible  <bruno@clisp.org>
46970
46971         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
46972         * doc/posix-functions/iswalpha_l.texi: Likewise.
46973         * doc/posix-functions/iswblank_l.texi: Likewise.
46974         * doc/posix-functions/iswcntrl_l.texi: Likewise.
46975         * doc/posix-functions/iswctype_l.texi: Likewise.
46976         * doc/posix-functions/iswdigit_l.texi: Likewise.
46977         * doc/posix-functions/iswgraph_l.texi: Likewise.
46978         * doc/posix-functions/iswlower_l.texi: Likewise.
46979         * doc/posix-functions/iswprint_l.texi: Likewise.
46980         * doc/posix-functions/iswpunct_l.texi: Likewise.
46981         * doc/posix-functions/iswspace_l.texi: Likewise.
46982         * doc/posix-functions/iswupper_l.texi: Likewise.
46983         * doc/posix-functions/iswxdigit_l.texi: Likewise.
46984         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
46985         * doc/posix-functions/open_wmemstream.texi: Likewise.
46986         * doc/posix-functions/swscanf.texi: Likewise.
46987         * doc/posix-functions/towctrans_l.texi: Likewise.
46988         * doc/posix-functions/towlower.texi: Likewise.
46989         * doc/posix-functions/towlower_l.texi: Likewise.
46990         * doc/posix-functions/towupper.texi: Likewise.
46991         * doc/posix-functions/towupper_l.texi: Likewise.
46992         * doc/posix-functions/vfwprintf.texi: Likewise.
46993         * doc/posix-functions/vfwscanf.texi: Likewise.
46994         * doc/posix-functions/vswscanf.texi: Likewise.
46995         * doc/posix-functions/vwprintf.texi: Likewise.
46996         * doc/posix-functions/vwscanf.texi: Likewise.
46997         * doc/posix-functions/wcpcpy.texi: Likewise.
46998         * doc/posix-functions/wcpncpy.texi: Likewise.
46999         * doc/posix-functions/wcscasecmp.texi: Likewise.
47000         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
47001         * doc/posix-functions/wcscoll_l.texi: Likewise.
47002         * doc/posix-functions/wcsdup.texi: Likewise.
47003         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47004         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
47005         * doc/posix-functions/wcsnlen.texi: Likewise.
47006         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47007         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
47008         * doc/posix-functions/wctrans_l.texi: Likewise.
47009         * doc/posix-functions/wctype_l.texi: Likewise.
47010         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
47011         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
47012         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
47013         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
47014         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
47015         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
47016         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
47017         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
47018         * doc/glibc-functions/wcschrnul.texi: Likewise.
47019         * doc/glibc-functions/wcsftime_l.texi: Likewise.
47020         * doc/glibc-functions/wcstod_l.texi: Likewise.
47021         * doc/glibc-functions/wcstof_l.texi: Likewise.
47022         * doc/glibc-functions/wcstol_l.texi: Likewise.
47023         * doc/glibc-functions/wcstold_l.texi: Likewise.
47024         * doc/glibc-functions/wcstoll_l.texi: Likewise.
47025         * doc/glibc-functions/wcstoq.texi: Likewise.
47026         * doc/glibc-functions/wcstoul_l.texi: Likewise.
47027         * doc/glibc-functions/wcstoull_l.texi: Likewise.
47028         * doc/glibc-functions/wcstouq.texi: Likewise.
47029         * doc/glibc-functions/wmempcpy.texi: Likewise.
47030
47031 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
47032             Eric Blake  <ebb9@byu.net>
47033             Paolo Bonzini  <bonzini@gnu.org>
47034             Bruno Haible  <bruno@clisp.org>
47035
47036         Make c-stack work on Haiku.
47037         * lib/c-stack.c (SA_ONSTACK): Define fallback.
47038         (c_stack_action): Use SA_ONSTACK flag.
47039
47040 2008-12-22  Bruno Haible  <bruno@clisp.org>
47041
47042         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
47043
47044 2008-12-22  Bruno Haible  <bruno@clisp.org>
47045
47046         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
47047         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
47048         being overridden.
47049         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
47050         New macros.
47051         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
47052         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
47053         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
47054         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
47055
47056 2008-12-22  Bruno Haible  <bruno@clisp.org>
47057
47058         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
47059         from test code.
47060
47061 2008-12-22  Eric Blake  <ebb9@byu.net>
47062
47063         Avoid gcc warnings on cygwin.
47064         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
47065         Avoid unused variable.
47066         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
47067         Likewise.
47068
47069 2008-12-22  Bruno Haible  <bruno@clisp.org>
47070
47071         Remove HAVE_MBRTOWC conditionals.
47072         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
47073         (mbscasecmp): Assume mbrtowc function.
47074         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
47075         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
47076         * lib/mbschr.c: Include mbuiter.h unconditionally.
47077         (mbschr): Assume mbrtowc function.
47078         * lib/mbscspn.c: Include mbuiter.h unconditionally.
47079         (mbscspn): Assume mbrtowc function.
47080         * lib/mbslen.c: Include mbuiter.h unconditionally.
47081         (mbslen): Assume mbrtowc function.
47082         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
47083         (mbsncasecmp): Assume mbrtowc function.
47084         * lib/mbsnlen.c: Include mbiter.h unconditionally.
47085         (mbsnlen): Assume mbrtowc function.
47086         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
47087         (mbspbrk): Assume mbrtowc function.
47088         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
47089         (mbspcasecmp): Assume mbrtowc function.
47090         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
47091         (mbsrchr): Assume mbrtowc function.
47092         * lib/mbssep.c: Include mbuiter.h unconditionally.
47093         (mbssep): Assume mbrtowc function.
47094         * lib/mbsspn.c: Include mbuiter.h unconditionally.
47095         (mbsspn): Assume mbrtowc function.
47096         * lib/mbsstr.c: Include mbuiter.h unconditionally.
47097         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
47098         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
47099         (mbstok_r): Assume mbrtowc function.
47100         * lib/propername.c: Include mbuiter.h unconditionally.
47101         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
47102         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
47103         (trim2): Assume mbrtowc function.
47104         * lib/mbswidth.c (mbsinit): Remove fallback definition.
47105         (mbsnwidth): Assume mbrtowc function.
47106         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
47107         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
47108         fallback definitions.
47109         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
47110
47111 2008-12-22  Bruno Haible  <bruno@clisp.org>
47112
47113         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
47114
47115 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
47116
47117         * modules/regex: Request emulations for the mb*/wc* functions we need.
47118         * m4/regex.m4: Don't look for those functions here.
47119         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
47120
47121 2008-12-22  Bruno Haible  <bruno@clisp.org>
47122
47123         * modules/fnmatch (Depends-on): Remove duplicated dependency.
47124
47125 2008-12-21  Bruno Haible  <bruno@clisp.org>
47126
47127         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
47128         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
47129         (Include): Remove conditionalization.
47130         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
47131         (Include): Remove conditionalization.
47132         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
47133         (Include): Remove conditionalization.
47134         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
47135         * m4/mbfile.m4 (gl_MBFILE): Likewise.
47136         * NEWS: Mention the change.
47137         Reported by Alan Hourihane <alanh@fairlite.co.uk>
47138         via Sergey Poznyakoff <gray@gnu.org.ua>.
47139
47140 2008-12-21  Bruno Haible  <bruno@clisp.org>
47141
47142         * MODULES.html.sh (Extended multibyte and wide character utilities
47143         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
47144         wcrtomb, wcsrtombs.
47145         (Support for systems lacking POSIX:2008): Add accept, bind, close,
47146         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
47147         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
47148         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
47149
47150 2008-12-21  Bruno Haible  <bruno@clisp.org>
47151
47152         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
47153
47154 2008-12-21  Bruno Haible  <bruno@clisp.org>
47155
47156         * modules/wcsnrtombs-tests: New file.
47157         * tests/test-wcsnrtombs1.sh: New file.
47158         * tests/test-wcsnrtombs2.sh: New file.
47159         * tests/test-wcsnrtombs3.sh: New file.
47160         * tests/test-wcsnrtombs4.sh: New file.
47161         * tests/test-wcsnrtombs.c: New file.
47162
47163         New module 'wcsnrtombs'.
47164         * lib/wchar.in.h (wcsnrtombs): New declaration.
47165         * lib/wcsnrtombs.c: New file.
47166         * lib/wcsrtombs-state.c: New file.
47167         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
47168         (internal_state): Remove variable.
47169         * m4/wcsnrtombs.m4: New file.
47170         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
47171         compilation units.
47172         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
47173         HAVE_WCSNRTOMBS.
47174         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
47175         HAVE_WCSNRTOMBS.
47176         * modules/wcsnrtombs: New file.
47177         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
47178         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
47179
47180 2008-12-21  Bruno Haible  <bruno@clisp.org>
47181
47182         * modules/wcsrtombs-tests: New file.
47183         * tests/test-wcsrtombs1.sh: New file.
47184         * tests/test-wcsrtombs2.sh: New file.
47185         * tests/test-wcsrtombs3.sh: New file.
47186         * tests/test-wcsrtombs4.sh: New file.
47187         * tests/test-wcsrtombs.c: New file.
47188
47189         New module 'wcsrtombs'.
47190         * lib/wchar.in.h (wcsrtombs): New declaration.
47191         * lib/wcsrtombs.c: New file.
47192         * m4/wcsrtombs.m4: New file.
47193         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
47194         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47195         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
47196         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47197         * modules/wcsrtombs: New file.
47198         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
47199         bugs.
47200
47201 2008-12-21  Bruno Haible  <bruno@clisp.org>
47202
47203         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
47204         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
47205         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
47206         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
47207         if not correct.
47208         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
47209         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
47210         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47211         m4/locale-zh.m4, m4/codeset.m4.
47212         * doc/posix-functions/wcrtomb.texi: Document the bug.
47213
47214 2008-12-21  Bruno Haible  <bruno@clisp.org>
47215
47216         Work around a btowc() bug on IRIX 6.5.
47217         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
47218         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
47219         REPLACE_WTOBC if not.
47220         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
47221         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
47222         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
47223
47224 2008-12-21  Bruno Haible  <bruno@clisp.org>
47225
47226         * modules/wcrtomb-tests: New file.
47227         * tests/test-wcrtomb.sh: New file.
47228         * tests/test-wcrtomb.c: New file.
47229
47230         New module 'wcrtomb'.
47231         * lib/wchar.in.h (wcrtomb): New declaration.
47232         * lib/wcrtomb.c: New file.
47233         * m4/wcrtomb.m4: New file.
47234         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
47235         HAVE_WCRTOMB.
47236         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
47237         HAVE_WCRTOMB.
47238         * modules/wcrtomb: New file.
47239         * doc/posix-functions/wcrtomb.texi: Mention the new module.
47240
47241 2008-12-21  Bruno Haible  <bruno@clisp.org>
47242
47243         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
47244         * modules/mbsrtowcs (Files): Likewise.
47245         * modules/wctob (Files): Likewise.
47246         * modules/c-strcase-tests (Files): Likewise.
47247         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
47248         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
47249         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
47250         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
47251         * modules/vasnprintf-posix-tests (Files): Likewise.
47252
47253 2008-12-21  William Pursell  <bill.pursell@gmail.com>
47254
47255         gitlog-to-changelog: pass all command-line arguments to git-log
47256         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
47257         it is sometimes convenient to filter the commits in various ways.
47258         gitlog-to-changelog only allows --since to specify a start date,
47259         but git-log itself supports many other filtering mechanisms.
47260         At the moment, I want to filter by branch name.  Rather than
47261         adding a --branch option to gitlog-to-changelog, it seems more
47262         flexible to simply pass all options directly to git-log and let
47263         git do the work.  Notice that this effectively makes --since a
47264         redundant option for gitlog-to-changelog, but removing it would
47265         require current usage to change since calls would then require
47266         an additional '--'.
47267
47268 2008-12-21  Bruno Haible  <bruno@clisp.org>
47269
47270         * modules/mbsnrtowcs-tests: New file.
47271         * tests/test-mbsnrtowcs1.sh: New file.
47272         * tests/test-mbsnrtowcs2.sh: New file.
47273         * tests/test-mbsnrtowcs3.sh: New file.
47274         * tests/test-mbsnrtowcs4.sh: New file.
47275         * tests/test-mbsnrtowcs.c: New file.
47276
47277         New module 'mbsnrtowcs'.
47278         * lib/wchar.in.h (mbsnrtowcs): New declaration.
47279         * lib/mbsnrtowcs.c: New file.
47280         * lib/mbsrtowcs-state.c: New file.
47281         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
47282         (internal_state): Remove variable.
47283         * m4/mbsnrtowcs.m4: New file.
47284         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
47285         compilation units.
47286         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
47287         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
47288         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
47289         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
47290         * modules/mbsnrtowcs: New file.
47291         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
47292         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
47293         portability problem.
47294
47295 2008-12-21  Bruno Haible  <bruno@clisp.org>
47296
47297         Work around mbsrtowcs bug.
47298         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
47299         (gl_FUNC_MBSRTOWCS): Invoke it.
47300         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47301         m4/locale-zh.m4.
47302         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
47303
47304 2008-12-21  Bruno Haible  <bruno@clisp.org>
47305
47306         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
47307
47308 2008-12-21  Bruno Haible  <bruno@clisp.org>
47309
47310         Update doc for AIX.
47311         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
47312         16-bit wchar_t type.
47313         * doc/posix-functions/btowc.texi: Likewise.
47314         * doc/posix-functions/fgetwc.texi: Likewise.
47315         * doc/posix-functions/fgetws.texi: Likewise.
47316         * doc/posix-functions/fputwc.texi: Likewise.
47317         * doc/posix-functions/fputws.texi: Likewise.
47318         * doc/posix-functions/fwide.texi: Likewise.
47319         * doc/posix-functions/fwprintf.texi: Likewise.
47320         * doc/posix-functions/fwscanf.texi: Likewise.
47321         * doc/posix-functions/getwchar.texi: Likewise.
47322         * doc/posix-functions/getwc.texi: Likewise.
47323         * doc/posix-functions/iswalnum.texi: Likewise.
47324         * doc/posix-functions/iswalpha.texi: Likewise.
47325         * doc/posix-functions/iswblank.texi: Likewise.
47326         * doc/posix-functions/iswcntrl.texi: Likewise.
47327         * doc/posix-functions/iswctype.texi: Likewise.
47328         * doc/posix-functions/iswdigit.texi: Likewise.
47329         * doc/posix-functions/iswgraph.texi: Likewise.
47330         * doc/posix-functions/iswlower.texi: Likewise.
47331         * doc/posix-functions/iswprint.texi: Likewise.
47332         * doc/posix-functions/iswpunct.texi: Likewise.
47333         * doc/posix-functions/iswspace.texi: Likewise.
47334         * doc/posix-functions/iswupper.texi: Likewise.
47335         * doc/posix-functions/iswxdigit.texi: Likewise.
47336         * doc/posix-functions/mbrtowc.texi: Likewise.
47337         * doc/posix-functions/mbsrtowcs.texi: Likewise.
47338         * doc/posix-functions/mbstowcs.texi: Likewise.
47339         * doc/posix-functions/mbtowc.texi: Likewise.
47340         * doc/posix-functions/putwchar.texi: Likewise.
47341         * doc/posix-functions/putwc.texi: Likewise.
47342         * doc/posix-functions/swprintf.texi: Likewise.
47343         * doc/posix-functions/tolower.texi: Likewise.
47344         * doc/posix-functions/toupper.texi: Likewise.
47345         * doc/posix-functions/towctrans.texi: Likewise.
47346         * doc/posix-functions/ungetwc.texi: Likewise.
47347         * doc/posix-functions/vswprintf.texi: Likewise.
47348         * doc/posix-functions/wcrtomb.texi: Likewise.
47349         * doc/posix-functions/wcscat.texi: Likewise.
47350         * doc/posix-functions/wcschr.texi: Likewise.
47351         * doc/posix-functions/wcscmp.texi: Likewise.
47352         * doc/posix-functions/wcscoll.texi: Likewise.
47353         * doc/posix-functions/wcscpy.texi: Likewise.
47354         * doc/posix-functions/wcscspn.texi: Likewise.
47355         * doc/posix-functions/wcsftime.texi: Likewise.
47356         * doc/posix-functions/wcslen.texi: Likewise.
47357         * doc/posix-functions/wcsncat.texi: Likewise.
47358         * doc/posix-functions/wcsncmp.texi: Likewise.
47359         * doc/posix-functions/wcsncpy.texi: Likewise.
47360         * doc/posix-functions/wcspbrk.texi: Likewise.
47361         * doc/posix-functions/wcsrchr.texi: Likewise.
47362         * doc/posix-functions/wcsrtombs.texi: Likewise.
47363         * doc/posix-functions/wcsspn.texi: Likewise.
47364         * doc/posix-functions/wcsstr.texi: Likewise.
47365         * doc/posix-functions/wcstod.texi: Likewise.
47366         * doc/posix-functions/wcstof.texi: Likewise.
47367         * doc/posix-functions/wcstoimax.texi: Likewise.
47368         * doc/posix-functions/wcstok.texi: Likewise.
47369         * doc/posix-functions/wcstold.texi: Likewise.
47370         * doc/posix-functions/wcstoll.texi: Likewise.
47371         * doc/posix-functions/wcstol.texi: Likewise.
47372         * doc/posix-functions/wcstombs.texi: Likewise.
47373         * doc/posix-functions/wcstoull.texi: Likewise.
47374         * doc/posix-functions/wcstoul.texi: Likewise.
47375         * doc/posix-functions/wcstoumax.texi: Likewise.
47376         * doc/posix-functions/wcswidth.texi: Likewise.
47377         * doc/posix-functions/wcsxfrm.texi: Likewise.
47378         * doc/posix-functions/wctob.texi: Likewise.
47379         * doc/posix-functions/wctomb.texi: Likewise.
47380         * doc/posix-functions/wctrans.texi: Likewise.
47381         * doc/posix-functions/wctype.texi: Likewise.
47382         * doc/posix-functions/wcwidth.texi: Likewise.
47383         * doc/posix-functions/wmemchr.texi: Likewise.
47384         * doc/posix-functions/wmemcmp.texi: Likewise.
47385         * doc/posix-functions/wmemcpy.texi: Likewise.
47386         * doc/posix-functions/wmemmove.texi: Likewise.
47387         * doc/posix-functions/wmemset.texi: Likewise.
47388         * doc/posix-functions/wprintf.texi: Likewise.
47389         * doc/posix-functions/wscanf.texi: Likewise.
47390
47391 2008-12-21  Bruno Haible  <bruno@clisp.org>
47392
47393         Update doc for HP-UX 11.11.
47394         * doc/posix-functions/btowc.texi: Clarify that the function is missing
47395         in HP-UX version 11.00, not in all versions of HP-UX 11.
47396         * doc/posix-functions/fwide.texi: Likewise.
47397         * doc/posix-functions/fwprintf.texi: Likewise.
47398         * doc/posix-functions/fwscanf.texi: Likewise.
47399         * doc/posix-functions/inet_ntop.texi: Likewise.
47400         * doc/posix-functions/inet_pton.texi: Likewise.
47401         * doc/posix-functions/mbrlen.texi: Likewise.
47402         * doc/posix-functions/mbrtowc.texi: Likewise.
47403         * doc/posix-functions/mbsinit.texi: Likewise.
47404         * doc/posix-functions/mbsrtowcs.texi: Likewise.
47405         * doc/posix-functions/swprintf.texi: Likewise.
47406         * doc/posix-functions/swscanf.texi: Likewise.
47407         * doc/posix-functions/towctrans.texi: Likewise.
47408         * doc/posix-functions/vfwprintf.texi: Likewise.
47409         * doc/posix-functions/vswprintf.texi: Likewise.
47410         * doc/posix-functions/vwprintf.texi: Likewise.
47411         * doc/posix-functions/wcrtomb.texi: Likewise.
47412         * doc/posix-functions/wcsrtombs.texi: Likewise.
47413         * doc/posix-functions/wcsstr.texi: Likewise.
47414         * doc/posix-functions/wctob.texi: Likewise.
47415         * doc/posix-functions/wctrans.texi: Likewise.
47416         * doc/posix-functions/wmemchr.texi: Likewise.
47417         * doc/posix-functions/wmemcmp.texi: Likewise.
47418         * doc/posix-functions/wmemcpy.texi: Likewise.
47419         * doc/posix-functions/wmemmove.texi: Likewise.
47420         * doc/posix-functions/wmemset.texi: Likewise.
47421         * doc/posix-functions/wprintf.texi: Likewise.
47422         * doc/posix-functions/wscanf.texi: Likewise.
47423
47424 2008-12-21  Bruno Haible  <bruno@clisp.org>
47425
47426         Work around a portability problem.
47427         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
47428         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
47429
47430 2008-12-20  Bruno Haible  <bruno@clisp.org>
47431
47432         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
47433         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
47434         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
47435         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
47436         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
47437
47438         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
47439         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
47440         set.
47441         (GNULIB_defined_mbstate_t): New macro.
47442         (mbsinit): Redefine if REPLACE_MBSINIT is set.
47443         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
47444         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
47445         reuses the system's mbrtowc function but works around the bugs.
47446         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
47447         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
47448         macros.
47449         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
47450         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
47451         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
47452         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
47453         REPLACE_MBSINIT if mbsinit needs to be overridden.
47454         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
47455         REPLACE_MBSINIT, REPLACE_MBRTOWC.
47456         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
47457         REPLACE_MBSINIT, REPLACE_MBRTOWC.
47458         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47459         m4/locale-zh.m4.
47460         (Depends): Add mbsinit.
47461         * modules/mbsinit (Depends): Add mbrtowc.
47462         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
47463
47464 2008-12-20  Bruno Haible  <bruno@clisp.org>
47465
47466         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
47467         so that there are no conversion errors on AIX.
47468         * tests/test-mbsrtowcs.c (main): LIkewise.
47469
47470 2008-12-20  Bruno Haible  <bruno@clisp.org>
47471
47472         Work around wctob bug on Solaris <= 9.
47473         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
47474         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
47475         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
47476         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
47477         * modules/wctob (Files): Add m4/locale-fr.m4.
47478         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
47479
47480 2008-12-20  Bruno Haible  <bruno@clisp.org>
47481
47482         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
47483         /dev/null.
47484         * tests/test-select-in.sh: Likewise.
47485         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47486
47487 2008-12-20  Bruno Haible  <bruno@clisp.org>
47488
47489         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
47490         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
47491         Cygwin 1.5.x.
47492
47493 2008-12-20  Bruno Haible  <bruno@clisp.org>
47494
47495         Ensure mbstate_t is defined on HP-UX 11.11.
47496         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
47497         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
47498         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
47499         AC_USE_SYSTEM_EXTENSIONS.
47500         * modules/fnmatch (Depends-on): Add extensions.
47501         * modules/mbrlen (Depends-on): Likewise.
47502         * modules/mbrtowc (Depends-on): Likewise.
47503         * modules/mbsinit (Depends-on): Likewise.
47504         * modules/mbsrtowcs (Depends-on): Likewise.
47505         * modules/mbswidth (Depends-on): Likewise.
47506         * modules/quotearg (Depends-on): Likewise.
47507         * modules/strftime (Depends-on): Likewise.
47508
47509 2008-12-20  Bruno Haible  <bruno@clisp.org>
47510
47511         Ensure wctob is declared on IRIX 6.5.
47512         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
47513         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
47514         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
47515         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
47516         of HAVE_WCTOB.
47517         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
47518         HAVE_WCTOB.
47519         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
47520
47521 2008-12-19  Bruno Haible  <bruno@clisp.org>
47522
47523         * modules/mbsrtowcs-tests: New file.
47524         * tests/test-mbsrtowcs1.sh: New file.
47525         * tests/test-mbsrtowcs2.sh: New file.
47526         * tests/test-mbsrtowcs3.sh: New file.
47527         * tests/test-mbsrtowcs4.sh: New file.
47528         * tests/test-mbsrtowcs.c: New file.
47529
47530         New module 'mbsrtowcs'.
47531         * lib/wchar.in.h (mbsrtowcs): New declaration.
47532         * lib/mbsrtowcs.c: New file.
47533         * m4/mbsrtowcs.m4: New file.
47534         * modules/mbsrtowcs: New file.
47535         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
47536         HAVE_MBSRTOWCS.
47537         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
47538         HAVE_MBSRTOWCS.
47539         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
47540
47541 2008-12-19  Bruno Haible  <bruno@clisp.org>
47542
47543         New module 'mbrlen'.
47544         * lib/wchar.in.h (mbrlen): New declaration.
47545         * lib/mbrlen.c: New file.
47546         * m4/mbrlen.m4: New file.
47547         * modules/mbrlen: New file.
47548         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
47549         HAVE_MBRLEN.
47550         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
47551         HAVE_MBRLEN.
47552         * doc/posix-functions/mbrlen.texi: Document the new module.
47553
47554 2008-12-19  Bruno Haible  <bruno@clisp.org>
47555
47556         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
47557         * modules/mbrtowc (Depends-on): Add verify.
47558         Suggested by Paul Eggert.
47559
47560 2008-12-18  Bruno Haible  <bruno@clisp.org>
47561
47562         * modules/mbsinit-tests: New file.
47563         * tests/test-mbsinit.sh: New file.
47564         * tests/test-mbsinit.c: New file.
47565
47566 2008-12-18  Bruno Haible  <bruno@clisp.org>
47567
47568         * modules/mbrtowc-tests: New file.
47569         * tests/test-mbrtowc1.sh: New file.
47570         * tests/test-mbrtowc2.sh: New file.
47571         * tests/test-mbrtowc3.sh: New file.
47572         * tests/test-mbrtowc4.sh: New file.
47573         * tests/test-mbrtowc.c: New file.
47574
47575         New module 'mbrtowc'.
47576         * lib/wchar.in.h (mbstate_t): Override when the system does not have
47577         mbsinit and mbrtowc.
47578         (mbrtowc): New declaration.
47579         * lib/mbrtowc.c: New file.
47580         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
47581         * modules/mbrtowc: New file.
47582         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
47583         HAVE_MBRTOWC.
47584         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
47585         HAVE_MBRTOWC.
47586         * doc/posix-functions/mbrtowc.texi: Document the new module.
47587
47588 2008-12-18  Bruno Haible  <bruno@clisp.org>
47589
47590         New module 'wctob'.
47591         * lib/wchar.in.h (wctob): New declaration.
47592         * lib/wctob.c: New file.
47593         * m4/wctob.m4: New file.
47594         * modules/wctob: New file.
47595         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
47596         HAVE_WCTOB.
47597         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
47598         * doc/posix-functions/wctob.texi: Document the new module.
47599
47600 2008-12-18  Bruno Haible  <bruno@clisp.org>
47601
47602         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
47603         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
47604
47605 2008-12-18  Simon Josefsson  <simon@josefsson.org>
47606
47607         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
47608         G. Christensen" <tgc@jupiterrise.com>.
47609
47610         * lib/flock.c: Need to include errno.h.  Reported by "Tom
47611         G. Christensen" <tgc@jupiterrise.com>.
47612
47613         * lib/flock.c: Need to include string.h.  Reported by "Tom
47614         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
47615         <ebb9@byu.net>.
47616
47617 2008-12-18  Bruno Haible  <bruno@clisp.org>
47618
47619         * m4/locale-ja.m4: New file, from GNU gettext.
47620
47621 2008-12-17  Bruno Haible  <bruno@clisp.org>
47622
47623         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
47624         Suggested by Eric Blake.
47625
47626 2008-12-17  Bruno Haible  <bruno@clisp.org>
47627
47628         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
47629
47630 2008-12-17  Bruno Haible  <bruno@clisp.org>
47631
47632         * lib/mbsinit.c: Include verify.h. Verify an assumption.
47633         * modules/mbsinit (Depends-on): Add verify.
47634         Suggested by Paul Eggert.
47635
47636 2008-12-17  Bruno Haible  <bruno@clisp.org>
47637
47638         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
47639         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
47640         gl_FUNC_MBRTOWC.
47641         * m4/mbiter.m4 (gl_MBITER): LIkewise.
47642         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
47643         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
47644         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
47645         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
47646         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
47647         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
47648         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
47649         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
47650         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
47651         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
47652         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
47653         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
47654         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
47655         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
47656         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47657         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
47658         * modules/trim (configure.ac): Likewise.
47659
47660 2008-12-17  Bruno Haible  <bruno@clisp.org>
47661
47662         * modules/btowc-tests: New file.
47663         * tests/test-btowc1.sh: New file.
47664         * tests/test-btowc2.sh: New file.
47665         * tests/test-btowc.c: New file.
47666
47667         New module 'btowc'.
47668         * lib/wchar.in.h (btowc): New declaration.
47669         * lib/btowc.c: New file.
47670         * m4/btowc.m4: New file.
47671         * modules/btowc: New file.
47672         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
47673         HAVE_BTOWC.
47674         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
47675         * doc/posix-functions/btowc.texi: Document the new module.
47676
47677 2008-12-17  Bruno Haible  <bruno@clisp.org>
47678
47679         New module 'mbsinit'.
47680         * lib/wchar.in.h (mbsinit): New declaration.
47681         * lib/mbsinit.c: New file.
47682         * m4/mbsinit.m4: New file.
47683         * modules/mbsinit: New file.
47684         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
47685         HAVE_MBSINIT.
47686         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
47687         HAVE_MBSINIT.
47688         * doc/posix-functions/mbsinit.texi: Document the new module.
47689
47690 2008-12-16  Bruno Haible  <bruno@clisp.org>
47691
47692         * lib/unistd.in.h: Add comment.
47693         * tests/test-environ.c: Don't include <stdlib.h>.
47694
47695 2008-12-16  Bruno Haible  <bruno@clisp.org>
47696
47697         * lib/parse-duration.h (parse_duration): Document return value
47698         convention.
47699         * lib/parse-duration.c: Include specification header first. Add
47700         comments.
47701         (_): Remove macro.
47702         (parse_year_month_day, parse_hour_minute_second): Move side effects
47703         outside of strchr call.
47704         (parse_non_iso8601): Move side effects outside of isspace call.
47705         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
47706         call.
47707
47708 2008-12-16  Bruno Haible  <bruno@clisp.org>
47709
47710         * tests/test-parse-duration.sh: Produce no output when the test
47711         succeeds.
47712
47713 2008-12-16  Bruno Haible  <bruno@clisp.org>
47714
47715         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
47716         expressions.
47717
47718 2008-12-15  Bruno Haible  <bruno@clisp.org>
47719
47720         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
47721         * doc/glibc-functions/flistxattr.texi: Likewise.
47722         * doc/glibc-functions/fopencookie.texi: Likewise.
47723         * doc/glibc-functions/fremovexattr.texi: Likewise.
47724         * doc/glibc-functions/fsetxattr.texi: Likewise.
47725         * doc/glibc-functions/getxattr.texi: Likewise.
47726         * doc/glibc-functions/lgetxattr.texi: Likewise.
47727         * doc/glibc-functions/listxattr.texi: Likewise.
47728         * doc/glibc-functions/llistxattr.texi: Likewise.
47729         * doc/glibc-functions/lremovexattr.texi: Likewise.
47730         * doc/glibc-functions/lsetxattr.texi: Likewise.
47731         * doc/glibc-functions/removexattr.texi: Likewise.
47732         * doc/glibc-functions/setxattr.texi: Likewise.
47733         * doc/posix-functions/open_memstream.texi: Likewise.
47734
47735 2008-12-15  Eric Blake  <ebb9@byu.net>
47736
47737         Update doc for cygwin 1.7.
47738         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
47739         functions.
47740         * doc/posix-functions/fchmodat.texi: Likewise.
47741         * doc/posix-functions/fchownat.texi: Likewise.
47742         * doc/posix-functions/fdopendir.texi: Likewise.
47743         * doc/posix-functions/fmemopen.texi: Likewise.
47744         * doc/posix-functions/freeaddrinfo.texi: Likewise.
47745         * doc/posix-functions/fstatat.texi: Likewise.
47746         * doc/posix-functions/futimens.texi: Likewise.
47747         * doc/posix-functions/gai_strerror.texi: Likewise.
47748         * doc/posix-functions/getaddrinfo.texi: Likewise.
47749         * doc/posix-functions/getnameinfo.texi: Likewise.
47750         * doc/posix-functions/if_freenameindex.texi: Likewise.
47751         * doc/posix-functions/if_indextoname.texi: Likewise.
47752         * doc/posix-functions/if_nameindex.texi: Likewise.
47753         * doc/posix-functions/if_nametoindex.texi: Likewise.
47754         * doc/posix-functions/insque.texi: Likewise.
47755         * doc/posix-functions/linkat.texi: Likewise.
47756         * doc/posix-functions/llrint.texi: Likewise.
47757         * doc/posix-functions/llrintf.texi: Likewise.
47758         * doc/posix-functions/llrintl.texi: Likewise.
47759         * doc/posix-functions/lockf.texi: Likewise.
47760         * doc/posix-functions/lrintl.texi: Likewise.
47761         * doc/posix-functions/mkdirat.texi: Likewise.
47762         * doc/posix-functions/mkfifoat.texi: Likewise.
47763         * doc/posix-functions/mknodat.texi: Likewise.
47764         * doc/posix-functions/mq_close.texi: Likewise.
47765         * doc/posix-functions/mq_getattr.texi: Likewise.
47766         * doc/posix-functions/mq_notify.texi: Likewise.
47767         * doc/posix-functions/mq_open.texi: Likewise.
47768         * doc/posix-functions/mq_receive.texi: Likewise.
47769         * doc/posix-functions/mq_send.texi: Likewise.
47770         * doc/posix-functions/mq_setattr.texi: Likewise.
47771         * doc/posix-functions/mq_timedreceive.texi: Likewise.
47772         * doc/posix-functions/mq_timedsend.texi: Likewise.
47773         * doc/posix-functions/mq_unlink.texi: Likewise.
47774         * doc/posix-functions/open_memstream.texi: Likewise.
47775         * doc/posix-functions/openat.texi: Likewise.
47776         * doc/posix-functions/posix_fadvise.texi: Likewise.
47777         * doc/posix-functions/posix_fallocate.texi: Likewise.
47778         * doc/posix-functions/posix_madvise.texi: Likewise.
47779         * doc/posix-functions/posix_memalign.texi: Likewise.
47780         * doc/posix-functions/posix_openpt.texi: Likewise.
47781         * doc/posix-functions/readlinkat.texi: Likewise.
47782         * doc/posix-functions/remque.texi: Likewise.
47783         * doc/posix-functions/renameat.texi: Likewise.
47784         * doc/posix-functions/rintl.texi: Likewise.
47785         * doc/posix-functions/sem_unlink.texi: Likewise.
47786         * doc/posix-functions/shm_open.texi: Likewise.
47787         * doc/posix-functions/shm_unlink.texi: Likewise.
47788         * doc/posix-functions/signgam.texi: Likewise.
47789         * doc/posix-functions/sigset.texi: Likewise.
47790         * doc/posix-functions/stpcpy.texi: Likewise.
47791         * doc/posix-functions/stpncpy.texi: Likewise.
47792         * doc/posix-functions/strerror.texi: Likewise.
47793         * doc/posix-functions/strtod.texi: Likewise.
47794         * doc/posix-functions/symlinkat.texi: Likewise.
47795         * doc/posix-functions/unlinkat.texi: Likewise.
47796         * doc/posix-functions/utimensat.texi: Likewise.
47797         * doc/glibc-functions/bindresvport.texi: Likewise.
47798         * doc/glibc-functions/dn_expand.texi: Likewise.
47799         * doc/glibc-functions/exp10.texi: Likewise.
47800         * doc/glibc-functions/exp10f.texi: Likewise.
47801         * doc/glibc-functions/fgetxattr.texi: Likewise.
47802         * doc/glibc-functions/flistxattr.texi: Likewise.
47803         * doc/glibc-functions/fopencookie.texi: Likewise.
47804         * doc/glibc-functions/freeifaddrs.texi: Likewise.
47805         * doc/glibc-functions/fremovexattr.texi: Likewise.
47806         * doc/glibc-functions/fsetxattr.texi: Likewise.
47807         * doc/glibc-functions/getifaddrs.texi: Likewise.
47808         * doc/glibc-functions/getxattr.texi: Likewise.
47809         * doc/glibc-functions/lgetxattr.texi: Likewise.
47810         * doc/glibc-functions/listxattr.texi: Likewise.
47811         * doc/glibc-functions/llistxattr.texi: Likewise.
47812         * doc/glibc-functions/lremovexattr.texi: Likewise.
47813         * doc/glibc-functions/lsetxattr.texi: Likewise.
47814         * doc/glibc-functions/pow10.texi: Likewise.
47815         * doc/glibc-functions/pow10f.texi: Likewise.
47816         * doc/glibc-functions/rcmd_af.texi: Likewise.
47817         * doc/glibc-functions/removexattr.texi: Likewise.
47818         * doc/glibc-functions/res_init.texi: Likewise.
47819         * doc/glibc-functions/res_mkquery.texi: Likewise.
47820         * doc/glibc-functions/res_query.texi: Likewise.
47821         * doc/glibc-functions/res_querydomain.texi: Likewise.
47822         * doc/glibc-functions/res_send.texi: Likewise.
47823         * doc/glibc-functions/rresvport_af.texi: Likewise.
47824         * doc/glibc-functions/setxattr.texi: Likewise.
47825         * doc/glibc-functions/strcasestr.texi: Likewise.
47826
47827 2008-12-15  Bruno Haible  <bruno@clisp.org>
47828
47829         Fix compilation error on OSF/1 4.0.
47830         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
47831         <sys/time.h>, simply delegate to the system header.
47832         Reported by Daniel Richard G. <oss@teragram.com>.
47833
47834 2008-12-15  Bruno Haible  <bruno@clisp.org>
47835
47836         * doc/posix-functions/openat.texi: Mention the 'openat' module.
47837         * doc/posix-functions/fchmodat.texi: Likewise.
47838         * doc/posix-functions/fchownat.texi: Likewise.
47839         * doc/posix-functions/fdopendir.texi: Likewise.
47840         * doc/posix-functions/fstatat.texi: Likewise.
47841         * doc/posix-functions/mkdirat.texi: Likewise.
47842         * doc/posix-functions/unlinkat.texi: Likewise.
47843
47844 2008-12-14  Bruno Haible  <bruno@clisp.org>
47845
47846         Update doc for POSIX:2008.
47847         * doc/posix-functions/faccessat.texi: New file.
47848         * doc/posix-functions/fchmodat.texi: New file.
47849         * doc/posix-functions/fchownat.texi: New file.
47850         * doc/posix-functions/fdopendir.texi: New file.
47851         * doc/posix-functions/fstatat.texi: New file.
47852         * doc/posix-functions/futimens.texi: New file.
47853         * doc/posix-functions/linkat.texi: New file.
47854         * doc/posix-functions/mkdirat.texi: New file.
47855         * doc/posix-functions/mkfifoat.texi: New file.
47856         * doc/posix-functions/mknodat.texi: New file.
47857         * doc/posix-functions/open_wmemstream.texi: New file.
47858         * doc/posix-functions/openat.texi: New file.
47859         * doc/posix-functions/psiginfo.texi: New file.
47860         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
47861         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
47862         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
47863         * doc/posix-functions/readlinkat.texi: New file.
47864         * doc/posix-functions/renameat.texi: New file.
47865         * doc/posix-functions/strerror_l.texi: New file.
47866         * doc/posix-functions/symlinkat.texi: New file.
47867         * doc/posix-functions/unlinkat.texi: New file.
47868         * doc/posix-functions/utimensat.texi: New file.
47869         * doc/gnulib.texi (Function Substitutes): Add these subsections.
47870
47871 2008-12-14  Bruno Haible  <bruno@clisp.org>
47872
47873         Update doc for POSIX:2008.
47874         * doc/posix-functions/alphasort.texi: Renamed from
47875         doc/glibc-functions/alphasort.texi.
47876         * doc/posix-functions/dirfd.texi: Renamed from
47877         doc/glibc-functions/dirfd.texi.
47878         * doc/posix-functions/dprintf.texi: Renamed from
47879         doc/glibc-functions/dprintf.texi.
47880         * doc/posix-functions/duplocale.texi: Renamed from
47881         doc/glibc-functions/duplocale.texi.
47882         * doc/posix-functions/fexecve.texi: Renamed from
47883         doc/glibc-functions/fexecve.texi.
47884         * doc/posix-functions/fmemopen.texi: Renamed from
47885         doc/glibc-functions/fmemopen.texi.
47886         * doc/posix-functions/freelocale.texi: Renamed from
47887         doc/glibc-functions/freelocale.texi.
47888         * doc/posix-functions/getdate_err.texi: Renamed from
47889         doc/glibc-functions/getdate_err.texi.
47890         * doc/posix-functions/isalnum_l.texi: Renamed from
47891         doc/glibc-functions/isalnum_l.texi.
47892         * doc/posix-functions/isalpha_l.texi: Renamed from
47893         doc/glibc-functions/isalpha_l.texi.
47894         * doc/posix-functions/isblank_l.texi: Renamed from
47895         doc/glibc-functions/isblank_l.texi.
47896         * doc/posix-functions/iscntrl_l.texi: Renamed from
47897         doc/glibc-functions/iscntrl_l.texi.
47898         * doc/posix-functions/isdigit_l.texi: Renamed from
47899         doc/glibc-functions/isdigit_l.texi.
47900         * doc/posix-functions/isgraph_l.texi: Renamed from
47901         doc/glibc-functions/isgraph_l.texi.
47902         * doc/posix-functions/islower_l.texi: Renamed from
47903         doc/glibc-functions/islower_l.texi.
47904         * doc/posix-functions/isprint_l.texi: Renamed from
47905         doc/glibc-functions/isprint_l.texi.
47906         * doc/posix-functions/ispunct_l.texi: Renamed from
47907         doc/glibc-functions/ispunct_l.texi.
47908         * doc/posix-functions/isspace_l.texi: Renamed from
47909         doc/glibc-functions/isspace_l.texi.
47910         * doc/posix-functions/isupper_l.texi: Renamed from
47911         doc/glibc-functions/isupper_l.texi.
47912         * doc/posix-functions/iswalnum_l.texi: Renamed from
47913         doc/glibc-functions/iswalnum_l.texi.
47914         * doc/posix-functions/iswalpha_l.texi: Renamed from
47915         doc/glibc-functions/iswalpha_l.texi.
47916         * doc/posix-functions/iswblank_l.texi: Renamed from
47917         doc/glibc-functions/iswblank_l.texi.
47918         * doc/posix-functions/iswcntrl_l.texi: Renamed from
47919         doc/glibc-functions/iswcntrl_l.texi.
47920         * doc/posix-functions/iswctype_l.texi: Renamed from
47921         doc/glibc-functions/iswctype_l.texi.
47922         * doc/posix-functions/iswdigit_l.texi: Renamed from
47923         doc/glibc-functions/iswdigit_l.texi.
47924         * doc/posix-functions/iswgraph_l.texi: Renamed from
47925         doc/glibc-functions/iswgraph_l.texi.
47926         * doc/posix-functions/iswlower_l.texi: Renamed from
47927         doc/glibc-functions/iswlower_l.texi.
47928         * doc/posix-functions/iswprint_l.texi: Renamed from
47929         doc/glibc-functions/iswprint_l.texi.
47930         * doc/posix-functions/iswpunct_l.texi: Renamed from
47931         doc/glibc-functions/iswpunct_l.texi.
47932         * doc/posix-functions/iswspace_l.texi: Renamed from
47933         doc/glibc-functions/iswspace_l.texi.
47934         * doc/posix-functions/iswupper_l.texi: Renamed from
47935         doc/glibc-functions/iswupper_l.texi.
47936         * doc/posix-functions/iswxdigit_l.texi: Renamed from
47937         doc/glibc-functions/iswxdigit_l.texi.
47938         * doc/posix-functions/isxdigit_l.texi: Renamed from
47939         doc/glibc-functions/isxdigit_l.texi.
47940         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
47941         doc/glibc-functions/mbsnrtowcs.texi.
47942         * doc/posix-functions/mkdtemp.texi: Renamed from
47943         doc/glibc-functions/mkdtemp.texi.
47944         * doc/posix-functions/newlocale.texi: Renamed from
47945         doc/glibc-functions/newlocale.texi.
47946         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
47947         doc/glibc-functions/nl_langinfo_l.texi.
47948         * doc/posix-functions/open_memstream.texi: Renamed from
47949         doc/glibc-functions/open_memstream.texi.
47950         * doc/posix-functions/opterr.texi: Renamed from
47951         doc/glibc-functions/opterr.texi.
47952         * doc/posix-functions/optind.texi: Renamed from
47953         doc/glibc-functions/optind.texi.
47954         * doc/posix-functions/optopt.texi: Renamed from
47955         doc/glibc-functions/optopt.texi.
47956         * doc/posix-functions/psignal.texi: Renamed from
47957         doc/glibc-functions/psignal.texi.
47958         * doc/posix-functions/scandir.texi: Renamed from
47959         doc/glibc-functions/scandir.texi.
47960         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
47961         doc/glibc-functions/sched_get_priority_min.texi.
47962         * doc/posix-functions/signgam.texi: Renamed from
47963         doc/glibc-functions/signgam.texi.
47964         * doc/posix-functions/stpcpy.texi: Renamed from
47965         doc/glibc-functions/stpcpy.texi.
47966         * doc/posix-functions/stpncpy.texi: Renamed from
47967         doc/glibc-functions/stpncpy.texi.
47968         * doc/posix-functions/strcasecmp_l.texi: Renamed from
47969         doc/glibc-functions/strcasecmp_l.texi.
47970         * doc/posix-functions/strcoll_l.texi: Renamed from
47971         doc/glibc-functions/strcoll_l.texi.
47972         * doc/posix-functions/strfmon_l.texi: Renamed from
47973         doc/glibc-functions/strfmon_l.texi.
47974         * doc/posix-functions/strftime_l.texi: Renamed from
47975         doc/glibc-functions/strftime_l.texi.
47976         * doc/posix-functions/strncasecmp_l.texi: Renamed from
47977         doc/glibc-functions/strncasecmp_l.texi.
47978         * doc/posix-functions/strndup.texi: Renamed from
47979         doc/glibc-functions/strndup.texi.
47980         * doc/posix-functions/strnlen.texi: Renamed from
47981         doc/glibc-functions/strnlen.texi.
47982         * doc/posix-functions/strsignal.texi: Renamed from
47983         doc/glibc-functions/strsignal.texi.
47984         * doc/posix-functions/strxfrm_l.texi: Renamed from
47985         doc/glibc-functions/strxfrm_l.texi.
47986         * doc/posix-functions/timer_gettime.texi: Renamed from
47987         doc/glibc-functions/timer_gettime.texi.
47988         * doc/posix-functions/tolower_l.texi: Renamed from
47989         doc/glibc-functions/tolower_l.texi.
47990         * doc/posix-functions/toupper_l.texi: Renamed from
47991         doc/glibc-functions/toupper_l.texi.
47992         * doc/posix-functions/towctrans_l.texi: Renamed from
47993         doc/glibc-functions/towctrans_l.texi.
47994         * doc/posix-functions/towlower_l.texi: Renamed from
47995         doc/glibc-functions/towlower_l.texi.
47996         * doc/posix-functions/towupper_l.texi: Renamed from
47997         doc/glibc-functions/towupper_l.texi.
47998         * doc/posix-functions/uselocale.texi: Renamed from
47999         doc/glibc-functions/uselocale.texi.
48000         * doc/posix-functions/vdprintf.texi: Renamed from
48001         doc/glibc-functions/vdprintf.texi.
48002         * doc/posix-functions/wcpcpy.texi:
48003         Renamed from doc/glibc-functions/wcpcpy.texi.
48004         * doc/posix-functions/wcpncpy.texi: Renamed from
48005         doc/glibc-functions/wcpncpy.texi.
48006         * doc/posix-functions/wcscasecmp.texi: Renamed from
48007         doc/glibc-functions/wcscasecmp.texi.
48008         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
48009         doc/glibc-functions/wcscasecmp_l.texi.
48010         * doc/posix-functions/wcscoll_l.texi: Renamed from
48011         doc/glibc-functions/wcscoll_l.texi.
48012         * doc/posix-functions/wcsdup.texi: Renamed from
48013         doc/glibc-functions/wcsdup.texi.
48014         * doc/posix-functions/wcsncasecmp.texi: Renamed from
48015         doc/glibc-functions/wcsncasecmp.texi.
48016         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
48017         doc/glibc-functions/wcsncasecmp_l.texi.
48018         * doc/posix-functions/wcsnlen.texi: Renamed from
48019         doc/glibc-functions/wcsnlen.texi.
48020         * doc/posix-functions/wcsnrtombs.texi: Renamed from
48021         doc/glibc-functions/wcsnrtombs.texi.
48022         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
48023         doc/glibc-functions/wcsxfrm_l.texi.
48024         * doc/posix-functions/wctrans_l.texi: Renamed from
48025         doc/glibc-functions/wctrans_l.texi.
48026         * doc/posix-functions/wctype_l.texi: Renamed from
48027         doc/glibc-functions/wctype_l.texi.
48028         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48029         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
48030         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
48031         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
48032         these subsections.
48033         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
48034         Remove sections.
48035
48036 2008-12-14  Bruno Haible  <bruno@clisp.org>
48037
48038         Update doc for POSIX:2008.
48039         * doc/posix-functions/*.texi: Update URL of POSIX specification.
48040
48041 2008-12-14  Bruno Haible  <bruno@clisp.org>
48042
48043         Update doc for POSIX:2008.
48044         * doc/pastposix-functions/bcmp.texi: Renamed from
48045         doc/posix-functions/bcmp.texi.
48046         * doc/pastposix-functions/bcopy.texi: Renamed from
48047         doc/posix-functions/bcopy.texi.
48048         * doc/pastposix-functions/bsd_signal.texi: Renamed from
48049         doc/posix-functions/bsd_signal.texi.
48050         * doc/pastposix-functions/bzero.texi: Renamed from
48051         doc/posix-functions/bzero.texi.
48052         * doc/pastposix-functions/ecvt.texi: Renamed from
48053         doc/posix-functions/ecvt.texi.
48054         * doc/pastposix-functions/fcvt.texi: Renamed from
48055         doc/posix-functions/fcvt.texi.
48056         * doc/pastposix-functions/ftime.texi: Renamed from
48057         doc/posix-functions/ftime.texi.
48058         * doc/pastposix-functions/gcvt.texi: Renamed from
48059         doc/posix-functions/gcvt.texi.
48060         * doc/pastposix-functions/getcontext.texi: Renamed from
48061         doc/posix-functions/getcontext.texi.
48062         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
48063         doc/posix-functions/gethostbyaddr.texi.
48064         * doc/pastposix-functions/gethostbyname.texi: Renamed from
48065         doc/posix-functions/gethostbyname.texi.
48066         * doc/pastposix-functions/getwd.texi: Renamed from
48067         doc/posix-functions/getwd.texi.
48068         * doc/pastposix-functions/h_errno.texi: Renamed from
48069         doc/posix-functions/h_errno.texi.
48070         * doc/pastposix-functions/index.texi: Renamed from
48071         doc/posix-functions/index.texi.
48072         * doc/pastposix-functions/makecontext.texi: Renamed from
48073         doc/posix-functions/makecontext.texi.
48074         * doc/pastposix-functions/mktemp.texi: Renamed from
48075         doc/posix-functions/mktemp.texi.
48076         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
48077         doc/posix-functions/pthread_attr_getstackaddr.texi.
48078         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
48079         doc/posix-functions/pthread_attr_setstackaddr.texi.
48080         * doc/pastposix-functions/rindex.texi: Renamed from
48081         doc/posix-functions/rindex.texi.
48082         * doc/pastposix-functions/scalb.texi: Renamed from
48083         doc/posix-functions/scalb.texi.
48084         * doc/pastposix-functions/setcontext.texi: Renamed from
48085         doc/posix-functions/setcontext.texi.
48086         * doc/pastposix-functions/swapcontext.texi: Renamed from
48087         doc/posix-functions/swapcontext.texi.
48088         * doc/pastposix-functions/ualarm.texi: Renamed from
48089         doc/posix-functions/ualarm.texi.
48090         * doc/pastposix-functions/usleep.texi: Renamed from
48091         doc/posix-functions/usleep.texi.
48092         * doc/pastposix-functions/vfork.texi: Renamed from
48093         doc/posix-functions/vfork.texi.
48094         * doc/pastposix-functions/wcswcs.texi: Renamed from
48095         doc/posix-functions/wcswcs.texi.
48096         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
48097         (Function Substitutes): Update.
48098
48099 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48100
48101         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
48102         m4/strerror.m4.
48103
48104 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48105             Bruno Haible  <bruno@clisp.org>
48106
48107         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
48108
48109 2008-12-13  Bruno Haible  <bruno@clisp.org>
48110
48111         * modules/strtoull (Depends-on): Remove unistd.
48112
48113 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48114
48115         * modules/strtoull (Depends-on): Add stdlib.
48116
48117 2008-12-11  Simon Josefsson  <simon@josefsson.org>
48118
48119         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
48120
48121 2008-12-10  Jim Meyering  <meyering@redhat.com>
48122
48123         gl_ASSERT: don't say assertions are disabled when they're not
48124         * m4/assert.m4 (gl_ASSERT): Do not make configure report
48125         "checking whether to enable assertions... no", when they are in
48126         fact enabled.  This is solely a bug in the output of configure.
48127         In spite of saying "no", NDEBUG was not defined in that case.
48128         Also, as noted by Eric Blake, leave assertions enabled upon
48129         --enable-assert=INVALID.
48130
48131 2008-12-10  Bruno Haible  <bruno@clisp.org>
48132
48133         Change MODULES.html to refer to POSIX:2008 where possible.
48134         * MODULES.html.sh (POSIX2008_URL): New variable.
48135         (posix_headers): Remove sys/timeb, ucontext.
48136         (posix2001_headers): New variable.
48137         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
48138         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
48139         index, makecontext, mktemp, pthread_attr_getstackaddr,
48140         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
48141         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
48142         (posix2001_functions): New variable.
48143         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
48144         otherwise.
48145
48146 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48147
48148         add missing include to parse-duration.c
48149         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
48150         * modules/parse-duration (Depends-on): Add xalloc.
48151
48152         fix sed script reading maint.mk
48153         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
48154         (syntax-check-rules): Use it.
48155
48156 2008-12-09  Bruno Haible  <bruno@clisp.org>
48157
48158         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
48159         MacOS X 10.4/PowerPC.
48160         Reported by Simon Josefsson.
48161
48162 2008-12-08  Jim Meyering  <meyering@redhat.com>
48163
48164         work around mingw's lack of some S_IF definitions
48165         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
48166         Reported by Simon Josefsson.
48167
48168 2008-12-08  Bruno Haible  <bruno@clisp.org>
48169
48170         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
48171         applied to variables. Needed on MacOS X 10.4/PowerPC.
48172         Reported by Simon Josefsson.
48173
48174 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
48175         and Eric Blake  <ebb9@byu.net>
48176
48177         assert: honor --enable-assert
48178         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
48179         order to honor --enable-assert, rather than treating it as a
48180         synonym for --disable-assert.
48181
48182 2008-12-08  Jim Meyering  <meyering@redhat.com>
48183
48184         * lib/posixtm.c: Remove now-useless declaration of mktime.
48185
48186         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
48187
48188 2008-12-07  Bruno Haible  <bruno@clisp.org>
48189
48190         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
48191         test_once): Mark functions as static.
48192         * tests/test-tls.c (test_tls): Likewise.
48193
48194 2008-12-07  Bruno Haible  <bruno@clisp.org>
48195
48196         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
48197         iconv_register_autodetect.
48198
48199 2008-12-07  Jim Meyering  <meyering@redhat.com>
48200
48201         posixtm.c: avoid a warning
48202         * lib/posixtm.c (posixtime): Don't initialize tm0.
48203         It's no longer needed to placate gcc4's -Wuninitialized,
48204         and the attempt to placate would elicit a new warning.
48205
48206         unicodeio.c: mark unused parameters
48207         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
48208         (fallback_failure_callback): Likewise.
48209
48210 2008-12-07  Bruno Haible  <bruno@clisp.org>
48211
48212         * gnulib-tool (func_create_testdir): When building the tests
48213         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
48214         Reported by Simon Josefsson.
48215
48216 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48217
48218         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
48219
48220 2008-12-06  Bruno Haible  <bruno@clisp.org>
48221
48222         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
48223         Suggested by Eric Blake.
48224
48225 2008-12-06  Bruno Haible  <bruno@clisp.org>
48226
48227         Fix a c-stack test failure on MacOS X.
48228         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
48229         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
48230         handler for SIGBUS as well.
48231         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
48232         install a signal handler for SIGBUS as well.
48233         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
48234
48235 2008-12-06  Bruno Haible  <bruno@clisp.org>
48236
48237         Advocacy documentation.
48238         * doc/gnulib-intro.texi (Benefits): New section.
48239         * doc/gnulib.texi: Update.
48240
48241 2008-12-06  Bruno Haible  <bruno@clisp.org>
48242
48243         Document the 'manywarnings' module.
48244         * doc/manywarnings.texi: New file.
48245         * doc/gnulib.texi: Include it.
48246
48247 2008-12-05  Eric Blake  <ebb9@byu.net>
48248
48249         tests: silence some gcc warnings
48250         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
48251         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
48252         type mismatches.
48253
48254 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48255             Bruno Haible  <bruno@clisp.org>
48256
48257         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
48258
48259 2008-11-29  Jim Meyering  <meyering@redhat.com>
48260
48261         unicodeio.c: mark unused parameters
48262         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
48263         (fallback_failure_callback): Likewise.
48264
48265         fts: fix a thinko
48266         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
48267         (set_stat_type): Return S_IF*-valued "type" directly.
48268         Prompted by James Youngman's spotting a related bug.
48269         Confirmed by further testing through find.
48270
48271         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
48272         * lib/fts.c (D_TYPE): Define.
48273         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
48274         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
48275         (s_ifmt_shift_bits): New function.
48276         (set_stat_type): New function.
48277         (fts_build): When not calling fts_stat, call set_stat_type
48278         to propagate dirent.d_type info to fts_read caller.
48279         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
48280         fts_statp->st_mode type information may be valid.
48281
48282 2008-11-28  Simon Josefsson  <simon@josefsson.org>
48283
48284         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
48285         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
48286         <sds@gnu.org>.
48287
48288 2008-11-20  Bruno Haible  <bruno@clisp.org>
48289
48290         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
48291         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
48292         INCLUDE_NEXT.
48293         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
48294         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
48295         * modules/math (Makefile.am): Substitute
48296         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
48297         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48298
48299 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
48300             Bruno Haible  <bruno@clisp.org>
48301
48302         * lib/stdint.in.h: Define all type macros so that their expansion is
48303         a single typedef'ed token. Fixes a compilation failure in Boost which
48304         does "using ::int8_t;".
48305
48306 2008-11-18  Simon Josefsson  <simon@josefsson.org>
48307
48308         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
48309         gl_MANYWARN_ALL_GCC.
48310         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
48311         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
48312         * modules/manywarnings: New file.
48313         * MODULES.html.sh: Mention manywarnings module.
48314
48315 2008-11-18  Bruno Haible  <bruno@clisp.org>
48316
48317         * doc/gnulib-tool.texi (Unit tests): New section.
48318
48319 2008-11-18  Simon Josefsson  <simon@josefsson.org>
48320
48321         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
48322         paths like 'lib/po/foo.po'.
48323
48324 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48325
48326         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
48327         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
48328
48329 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48330
48331         * m4/warnings.m4: Use CPPFLAGS to really check whether the
48332         parameter works.
48333
48334 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48335
48336         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
48337
48338 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48339
48340         * modules/parse-duration-tests: New file.
48341         * tests/test-parse-duration.sh: New file.
48342         * tests/test-parse-duration.c: New file.
48343
48344         New module 'parse-duration'.
48345         * lib/parse-duration.h: New file.
48346         * lib/parse-duration.c: New file.
48347         * modules/parse-duration: New file.
48348
48349 2008-11-17  Bruno Haible  <bruno@clisp.org>
48350
48351         * tests/test-select-out.sh: Comment out the first pipe test.
48352         Reported by Simon Josefsson.
48353
48354 2008-11-17  Bruno Haible  <bruno@clisp.org>
48355
48356         * modules/getaddrinfo (Depends-on): Add servent, hostent.
48357         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
48358         gl_HOSTENT.
48359
48360 2008-11-17  Bruno Haible  <bruno@clisp.org>
48361
48362         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
48363         -lnetwork and -lnet. Needed for Haiku and BeOS.
48364
48365 2008-11-16  Bruno Haible  <bruno@clisp.org>
48366
48367         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
48368
48369 2008-11-16  Bruno Haible  <bruno@clisp.org>
48370
48371         Avoid test failure on Haiku.
48372         * tests/test-fsync.c: Include <errno.h>.
48373         (main): Don't require that fsync (0) fails.
48374
48375 2008-11-15  Bruno Haible  <bruno@clisp.org>
48376
48377         New module 'hostent'.
48378         * modules/hostent: New file.
48379         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
48380
48381 2008-11-15  Bruno Haible  <bruno@clisp.org>
48382
48383         New module 'servent'.
48384         * modules/servent: New file.
48385         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
48386
48387 2008-11-15  Bruno Haible  <bruno@clisp.org>
48388
48389         Avoid generating same test program with two different rules.
48390         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
48391         test-frexp to test-frexp-nolibm.
48392         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
48393         test-frexpl to test-frexpl-nolibm.
48394
48395 2008-11-15  Bruno Haible  <bruno@clisp.org>
48396
48397         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
48398         $(FREXPL_LIBM).
48399
48400 2008-11-15  Bruno Haible  <bruno@clisp.org>
48401
48402         * lib/netdb.in.h: Activate the definitions also when the system's
48403         <netdb.h> has 'struct addrinfo'.
48404         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
48405         EAI_OVERFLOW or AI_NUMERICSERV.
48406         * doc/posix-headers/netdb.texi: Document the problem.
48407
48408 2008-11-15  Bruno Haible  <bruno@clisp.org>
48409
48410         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
48411
48412         Make the 'sched' module work on platforms where <sched.h> exists but
48413         is incomplete (such as Haiku).
48414         * lib/sched.in.h; Include the system's <sched.h> if it exists.
48415         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
48416         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
48417         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
48418         HAVE_STRUCT_SCHED_PARAM.
48419         * modules/sched (Depends-on): Add include_next.
48420         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
48421         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
48422         * doc/posix-headers/sched.texi: Document the issue.
48423
48424 2008-11-13  Jim Meyering  <meyering@redhat.com>
48425
48426         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
48427         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
48428         test would fail due to the difference in the Report bugs to ...
48429         line.  The expected address is empty, "<>", while the actual
48430         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
48431
48432 2008-11-12  Bruno Haible  <bruno@clisp.org>
48433
48434         lstat: don't compile lstat.c on systems lacking lstat
48435         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
48436         which don't have lstat; this is handled by lib/sys_stat.in.h already.
48437         Reported by Daniel P. Berrange via Jim Meyering.
48438
48439 2008-11-12  Jim Meyering  <meyering@redhat.com>
48440
48441         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
48442
48443 2008-11-12  Simon Josefsson  <simon@josefsson.org>
48444
48445         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
48446         instead.
48447
48448 2008-11-12  Bruno Haible  <bruno@clisp.org>
48449
48450         * lib/unicodeio.c: Include unistr.h.
48451         (utf8_wctomb): Remove function.
48452         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
48453
48454 2008-11-12  Simon Josefsson  <simon@josefsson.org>
48455
48456         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
48457         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
48458         <bruno@clisp.org>.
48459         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
48460
48461 2008-11-12  Simon Josefsson  <simon@josefsson.org>
48462
48463         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
48464         * doc/gnulib.texi: Add section for warnings.
48465
48466 2008-11-11  Bruno Haible  <bruno@clisp.org>
48467
48468         * lib/sockets.h: Add a comment.
48469
48470 2008-11-11  Karl Berry  <karl@gnu.org>
48471
48472         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
48473
48474 2008-11-11  Eric Blake  <ebb9@byu.net>
48475
48476         fdl.texi: avoid git symlinks
48477         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
48478
48479 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48480
48481         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
48482
48483 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48484
48485         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
48486         (gl_WARN_ADD): Substitute $2 if literal.
48487
48488 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48489
48490         * m4/warning.m4: Remove.
48491
48492 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48493
48494         * m4/warnings.m4: Almost complete rewrite. :-)
48495
48496 2008-11-10  Simon Josefsson  <simon@josefsson.org>
48497
48498         * modules/warnings: New module.
48499         * m4/warnings.m4: New file.
48500         * MODULES.html.sh: Mention warnings module.
48501         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
48502         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48503
48504 2008-11-10  Eric Blake  <ebb9@byu.net>
48505
48506         fdl.texi: make a symlink to the latest version
48507         * doc/standards.texi: Revert today's earlier change.
48508         * doc/fdl-1.2.texi: Rename from old fdl.texi...
48509         * doc/fdl.texi: ...and replace this with a symlink to the newer
48510         fdl-1.3.texi.
48511
48512 2008-11-10  Bruno Haible  <bruno@clisp.org>
48513
48514         * tests/test-select-fd.c (main): Accept the result file name as fourth
48515         argument.
48516         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
48517         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
48518
48519 2008-11-10  Bruno Haible  <bruno@clisp.org>
48520
48521         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
48522         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
48523         as autoconf-substituted macros.
48524         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
48525         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
48526         gl_NETDB_H_DEFAULTS. Set these variables.
48527         * modules/netdb (Makefile.am): Substitute these variables.
48528
48529 2008-11-10  Eric Blake  <ebb9@byu.net>
48530
48531         standards.texi: include correct file for FDL 1.3
48532         * doc/standards.texi (GNU Free Documentation License): Change
48533         include file to pull in FDL 1.3, not 1.2.
48534
48535         fdl.texi: revert accidental change to license
48536         * doc/fdl.texi: This is FDL 1.2, not 1.3.
48537
48538 2008-11-10  Bruno Haible  <bruno@clisp.org>
48539
48540         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
48541         cross-compiling guesses also when the native compile gives no result.
48542
48543 2008-11-10  Bruno Haible  <bruno@clisp.org>
48544
48545         * lib/spawni.c (__spawni): Force variable into the stack.
48546
48547 2008-11-10  Bruno Haible  <bruno@clisp.org>
48548
48549         Add support for Haiku.
48550         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
48551         glibc and BeOS, but also on Haiku.
48552         * lib/fpurge.c (fpurge): Likewise.
48553         * lib/freadable.c (freadable): Likewise.
48554         * lib/freadahead.c (freadahead): Likewise.
48555         * lib/freading.c (freading): Likewise.
48556         * lib/freadptr.c (freadptr): Likewise.
48557         * lib/freadseek.c (freadptrinc): Likewise.
48558         * lib/fseeko.c (rpl_fseeko): Likewise.
48559         * lib/fseterr.c (fseterr): Likewise.
48560         * lib/fwritable.c (fwritable): Likewise.
48561         * lib/fwriting.c (fwriting): Likewise.
48562         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
48563
48564 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
48565
48566         * lib/config.charset: Treat Haiku like BeOS.
48567
48568 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
48569
48570         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
48571         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
48572
48573 2008-11-08  Bruno Haible  <bruno@clisp.org>
48574
48575         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
48576         AC_CACHE_CHECK.
48577
48578 2008-11-08  Bruno Haible  <bruno@clisp.org>
48579
48580         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
48581
48582 2008-11-08  Bruno Haible  <bruno@clisp.org>
48583
48584         * tests/test-select-fd.c: New file.
48585         * tests/test-select-in.sh: New file.
48586         * tests/test-select-out.sh: New file.
48587         * tests/test-select-stdin.c: New file.
48588         * modules/select-tests (Files): Add the new files.
48589         (Depends-on): Add gettimeofday.
48590         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
48591         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
48592         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
48593
48594 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
48595             Bruno Haible  <bruno@clisp.org>
48596
48597         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
48598
48599 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
48600
48601         * build-aux/pmccabe2html: Added support for C++ source files.
48602
48603 2008-11-05  Ben Pfaff  <blp@gnu.org>
48604
48605         Fix lib/close.c build on Windows.
48606         * modules/close (Files): Add lib/w32sock.h.
48607
48608 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
48609
48610         Accept Bison's NEWS format.
48611         * build-aux/announce-gen (print_news_deltas): Tweak
48612         $re_prefix.
48613
48614 2008-11-04  Bruno Haible  <bruno@clisp.org>
48615
48616         * modules/random_r (Maintainer): Add glibc.
48617
48618 2008-11-04  Simon Josefsson  <simon@josefsson.org>
48619
48620         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
48621         by karl@freefriends.org (Karl Berry).
48622         * doc/alloca.texi: Likewise.
48623         * doc/c-ctype.texi: Likewise.
48624         * doc/c-strcase.texi: Likewise.
48625         * doc/c-strcaseeq.texi: Likewise.
48626         * doc/c-strcasestr.texi: Likewise.
48627         * doc/c-strstr.texi: Likewise.
48628         * doc/c-strtod.texi: Likewise.
48629         * doc/c-strtold.texi: Likewise.
48630         * doc/ctime.texi: Likewise.
48631         * doc/error.texi: Likewise.
48632         * doc/fdl.texi: Likewise.
48633         * doc/gcd.texi: Likewise.
48634         * doc/getdate.texi: Likewise.
48635         * doc/gnulib-intro.texi: Likewise.
48636         * doc/gnulib-tool.texi: Likewise.
48637         * doc/gnulib.texi: Likewise.
48638         * doc/inet_ntoa.texi: Likewise.
48639         * doc/maintain.texi: Likewise.
48640         * doc/make-stds.texi: Likewise.
48641         * doc/quote.texi: Likewise.
48642         * doc/regexprops-generic.texi: Likewise.
48643         * doc/standards.texi: Likewise.
48644         * doc/verify.texi: Likewise.
48645         * doc/visibility.texi: Likewise.
48646         * doc/gnulib.texi (GNU Free Documentation License): Include
48647         fdl-1.3.texi instead of fdl.texi.
48648
48649 2008-11-04  Simon Josefsson  <simon@josefsson.org>
48650
48651         * doc/fdl-1.3.texi: New file, from
48652         <http://www.gnu.org/licenses/fdl-1.3.texi>.
48653         * modules/fdl-1.3: Add.
48654         * MODULES.html.sh: Add fdl-1.3.
48655
48656 2008-11-03  Bruno Haible  <bruno@clisp.org>
48657
48658         Make determination of absolute name of header file work with AIX xlc.
48659         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
48660         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
48661         preprocessing.
48662         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48663         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48664
48665 2008-11-03  Simon Josefsson  <simon@josefsson.org>
48666
48667         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
48668         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
48669         <ludo@gnu.org>.
48670
48671 2008-11-02  Bruno Haible  <bruno@clisp.org>
48672
48673         Mark 'strpbrk' obsolete.
48674         * modules/strpbrk (Status, Notice): New sections.
48675         * modules/strtok_r (Depends-on): Add strpbrk.
48676
48677 2008-11-02  Bruno Haible  <bruno@clisp.org>
48678
48679         Mark 'strdup' obsolete.
48680         * modules/strdup (Status, Notice): New sections.
48681         * modules/findprog (Depends-on): Add strdup.
48682         * modules/getaddrinfo (Depends-on): Likewise.
48683         * modules/localename (Depends-on): Likewise.
48684         * modules/relocatable-lib (Depends-on): Likewise.
48685         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
48686         * modules/relocatable-prog (Depends-on): Likewise.
48687         * modules/trim (Depends-on): Likewise.
48688         * modules/unictype/gen-ctype (Depends-on): Likewise.
48689         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
48690
48691 2008-11-02  Bruno Haible  <bruno@clisp.org>
48692
48693         Mark 'strcspn' obsolete.
48694         * modules/strcspn (Status, Notice): New sections.
48695
48696 2008-11-02  Bruno Haible  <bruno@clisp.org>
48697
48698         Mark 'rmdir' obsolete.
48699         * modules/rmdir (Status, Notice): New sections.
48700         * modules/clean-temp (Depends-on): Add rmdir.
48701         * modules/openat (Depends-on): Likewise.
48702
48703 2008-11-02  Bruno Haible  <bruno@clisp.org>
48704
48705         Mark 'raise' obsolete.
48706         * modules/raise (Status, Notice): New sections.
48707         (Include): Specify <signal.h>.
48708         * modules/stdio (Depends-on): Add raise.
48709         * modules/write (Depends-on): Likewise.
48710
48711 2008-11-02  Bruno Haible  <bruno@clisp.org>
48712
48713         Mark 'memset' obsolete.
48714         * modules/memset (Status, Notice): New sections.
48715
48716 2008-11-02  Bruno Haible  <bruno@clisp.org>
48717
48718         Mark 'memmove' obsolete.
48719         * modules/memmove (Status, Notice): New sections.
48720         * modules/argp (Depends-on): Add memmove.
48721         * modules/argz (Depends-on): Likewise.
48722         * modules/canonicalize (Depends-on): Likewise.
48723         * modules/canonicalize-lgpl (Depends-on): Likewise.
48724         * modules/fts (Depends-on): Likewise.
48725         * modules/getcwd (Depends-on): Likewise.
48726         * modules/human (Depends-on): Likewise.
48727         * modules/regex (Depends-on): Likewise.
48728         * modules/striconveh (Depends-on): Likewise.
48729         * modules/trim (Depends-on): Likewise.
48730         * modules/unistr/u8-move (Depends-on): Likewise.
48731         * modules/unistr/u16-move (Depends-on): Likewise.
48732         * modules/unistr/u32-move (Depends-on): Likewise.
48733
48734 2008-11-02  Bruno Haible  <bruno@clisp.org>
48735
48736         Mark 'memcpy' obsolete.
48737         * modules/memcpy (Status, Notice): New sections.
48738
48739 2008-11-02  Bruno Haible  <bruno@clisp.org>
48740
48741         Mark 'memcmp' obsolete.
48742         * modules/memcmp (Status, Notice): New sections.
48743         * modules/argmatch (Depends-on): Add memchr.
48744         * modules/backupfile (Depends-on): Likewise.
48745         * modules/c-strcasestr (Depends-on): Likewise.
48746         * modules/crypto/des (Depends-on): Likewise.
48747         * modules/csharpcomp (Depends-on): Likewise.
48748         * modules/fnmatch (Depends-on): Likewise.
48749         * modules/git-merge-changelog (Depends-on): Likewise.
48750         * modules/isnand (Depends-on): Likewise.
48751         * modules/isnand-nolibm (Depends-on): Likewise.
48752         * modules/isnanf (Depends-on): Likewise.
48753         * modules/isnanf-nolibm (Depends-on): Likewise.
48754         * modules/isnanl (Depends-on): Likewise.
48755         * modules/isnanl-nolibm (Depends-on): Likewise.
48756         * modules/mbchar (Depends-on): Likewise.
48757         * modules/memcoll (Depends-on): Likewise.
48758         * modules/quotearg (Depends-on): Likewise.
48759         * modules/regex (Depends-on): Likewise.
48760         * modules/relocatable-prog (Depends-on): Likewise.
48761         * modules/same (Depends-on): Likewise.
48762         * modules/signbit (Depends-on): Likewise.
48763         * modules/strcasestr-simple (Depends-on): Likewise.
48764         * modules/unictype/gen-ctype (Depends-on): Likewise.
48765         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
48766         * modules/uniname/uniname (Depends-on): Likewise.
48767         * modules/unistr/u8-cmp (Depends-on): Likewise.
48768
48769 2008-11-02  Bruno Haible  <bruno@clisp.org>
48770
48771         Mark 'memchr' obsolete.
48772         * modules/memchr (Status, Notice): New sections.
48773         * modules/argp (Depends-on): Add memchr.
48774         * modules/base64 (Depends-on): Likewise.
48775         * modules/c-strcasestr (Depends-on): Likewise.
48776         * modules/chdir-long (Depends-on): Likewise.
48777         * modules/fnmatch (Depends-on): Likewise.
48778         * modules/getsubopt (Depends-on): Likewise.
48779         * modules/git-merge-changelog (Depends-on): Likewise.
48780         * modules/glob (Depends-on): Likewise.
48781         * modules/strcasestr-simple (Depends-on): Likewise.
48782         * modules/strnlen (Depends-on): Likewise.
48783
48784 2008-11-02  Bruno Haible  <bruno@clisp.org>
48785
48786         Mark 'atexit' obsolete.
48787         * modules/atexit (Status, Notice): New sections.
48788         * modules/chdir-long (Depends-on): Add atexit.
48789         * modules/wait-process (Depends-on): Likewise.
48790
48791 2008-11-02  Bruno Haible  <bruno@clisp.org>
48792
48793         * gnulib-tool: New option --with-obsolete.
48794         (func_usage): Document it.
48795         (func_modules_transitive_closure): Drop obsolete dependencies if
48796         incobsolete is not true.
48797         (func_import): Read and save the incobsolete variable to the cache.
48798
48799 2008-11-02  Bruno Haible  <bruno@clisp.org>
48800
48801         * modules/TEMPLATE-EXTENDED: New field 'Status'.
48802         * gnulib-tool: New option --extract-status.
48803         (func_usage): Document it.
48804         (sed_extract_prog): Recognize it.
48805         (func_get_status): New function.
48806
48807 2008-10-30  Simon Josefsson  <simon@josefsson.org>
48808
48809         * modules/sockets (License): Change from LGPL to LGPLv2+.
48810
48811 2008-10-28  Simon Josefsson  <simon@josefsson.org>
48812
48813         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
48814
48815 2008-10-28  Simon Josefsson  <simon@josefsson.org>
48816
48817         * MODULES.html.sh (Support for systems lacking POSIX:2001):
48818         Mention times and sys_times.
48819         * modules/sys_times, modules/sys_times-tests: New modules.
48820         * modules/times, modules/times-tests: Likewise
48821         * m4/sys_times_h.m4: New file.
48822         * lib/sys_times.in.h: Likewise
48823         * lib/times.c: Likewise.
48824         * tests/test-sys_times.c: Likewise.
48825         * tests/test-times.c: Likewise.
48826         * doc/posix-headers/sys_times.texi: Update.
48827         * doc/posix-functions/times.texi: Update.
48828
48829 2008-10-28  Jim Meyering  <meyering@redhat.com>
48830
48831         * modules/tempname (Depends-on): Add lstat.
48832
48833         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
48834
48835 2008-10-28  Simon Josefsson  <simon@josefsson.org>
48836
48837         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
48838         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
48839         using idiom used elsewhere in gnulib.
48840
48841 2008-10-27  Jim Meyering  <meyering@redhat.com>
48842
48843         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
48844
48845 2008-10-27  Simon Josefsson  <simon@josefsson.org>
48846
48847         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
48848         TESTS_ENVIRONMENT, for shell scripts that needs to call built
48849         programs.
48850         * tests/test-argp-2.sh: Use $EXEEXT when needed.
48851
48852 2008-10-27  Simon Josefsson  <simon@josefsson.org>
48853
48854         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
48855
48856 2008-10-27  Bruno Haible  <bruno@clisp.org>
48857
48858         * tests/test-lstat.c: Include <stdio.h>.
48859
48860 2008-10-27  Simon Josefsson  <simon@josefsson.org>
48861
48862         * modules/lstat-tests: New module.
48863         * tests/test-lstat.c: New file.
48864
48865 2008-10-26  Jim Meyering  <meyering@redhat.com>
48866
48867         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
48868
48869 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48870             Bruno Haible  <bruno@clisp.org>
48871
48872         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
48873         * modules/configmake (Include): Add a note that the include must come
48874         after all system headers.
48875         * lib/javaversion.c: Include configmake.h after all other includes.
48876
48877 2008-10-26  Bruno Haible  <bruno@clisp.org>
48878
48879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
48880         HAVE_STRUCT_RANDOM_DATA to 1.
48881         (gl_STDLIB_H): Simplify.
48882
48883 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48884
48885         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
48886         substitute HAVE_STRUCT_RANDOM_DATA.
48887         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
48888         random_data.
48889         * modules/stdlib (Makefile.am): Substitute
48890         HAVE_STRUCT_RANDOM_DATA.
48891
48892 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48893
48894         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
48895         * doc/gnulib-intro.texi (Copyright): Likewise.
48896
48897 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48898
48899         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
48900         findings.
48901
48902 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
48903             Bruno Haible  <bruno@clisp.org>
48904
48905         * lib/unistd.in.h: Include <winsock2.h>.
48906         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
48907         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
48908         Provide dummy declarations.
48909         (gethostname): Override.
48910         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
48911         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
48912         gl_PREREQ_SYS_H_WINSOCK2.
48913         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
48914         * doc/posix-functions/gethostname.texi: More details.
48915
48916 2008-10-25  Bruno Haible  <bruno@clisp.org>
48917
48918         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
48919         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
48920         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
48921
48922         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
48923         here ...
48924         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
48925         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
48926         gl_UNISTD_H_DEFAULTS.
48927
48928 2008-10-25  Eric Blake  <ebb9@byu.net>
48929
48930         signbit: avoid spurious compiler failure
48931         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
48932         declarations inside function.
48933
48934 2008-10-24  Simon Josefsson  <simon@josefsson.org>
48935             Bruno Haible  <bruno@clisp.org>
48936
48937         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
48938         * modules/random_r (Depends-on): Add stdint.
48939
48940 2008-10-24  Bruno Haible  <bruno@clisp.org>
48941
48942         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
48943         Eggert.
48944         * modules/strerror (License): Likewise.
48945
48946 2008-10-24  Jim Meyering  <meyering@redhat.com>
48947
48948         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
48949         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
48950
48951 2008-10-24  Eric Blake  <ebb9@byu.net>
48952
48953         getgroups: fix compilation when getgroups is available
48954         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
48955         but with <config.h> override of getgroups disabled.
48956
48957 2008-10-24  Simon Josefsson  <simon@josefsson.org>
48958
48959         * doc/gnulib.texi (Header files): Add note about C++ problems.
48960         Explained by Bruno Haible <bruno@clisp.org>.
48961
48962 2008-10-23  Bruno Haible  <bruno@clisp.org>
48963
48964         Define a dummy SA_NODEFER macro on Interix.
48965         * lib/signal.in.h (SA_NODEFER): Define fallback.
48966         Reported by Aleksey Cheusov <cheusov@tut.by> via
48967         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
48968
48969 2008-10-23  Bruno Haible  <bruno@clisp.org>
48970
48971         * modules/freadahead (License): Change to LGPLv2+.
48972         Suggested by Simon Josefsson.
48973
48974 2008-10-23  Jim Meyering  <meyering@redhat.com>
48975
48976         random_r: new module
48977         * modules/random_r: New file.
48978         * m4/random_r.m4: New file.
48979         * lib/random_r.c: New file, from glibc.
48980         * modules/random_r-tests: New file.
48981         * tests/test-random_r.c: New file.
48982         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
48983          Declare.
48984         (RAND_MAX): Define.
48985         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
48986         * modules/stdlib: Substitute them, too.
48987         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
48988         * doc/glibc-functions/initstate_r.texi: Mention the new module.
48989         * doc/glibc-functions/random_r.texi: Likewise.
48990         * doc/glibc-functions/setstate_r.texi: Likewise.
48991         * doc/glibc-functions/srandom_r.texi: Likewise.
48992         * config/srclist.txt: Mention it.
48993
48994 2008-10-23  David Lutterkort  <lutter@redhat.com>
48995
48996         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
48997         link requirement
48998
48999 2008-10-23  Jim Meyering  <meyering@redhat.com>
49000
49001         selinux-h: mark parameters of stub functions as intentionally unused
49002         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
49003         * lib/se-context.in.h: Likewise.
49004
49005 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49006
49007         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
49008
49009 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49010
49011         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
49012
49013 2008-10-22  Eric Blake  <ebb9@byu.net>
49014
49015         glthread/thread: avoid compiler warning
49016         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
49017         Add unreachable abort to silence compiler.
49018
49019 2008-10-22  Eric Blake  <ebb9@byu.net>
49020
49021         netdb: also supply struct addrinfo for cygwin 1.5.x
49022         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
49023         older cygwin.
49024         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
49025         cygwin.
49026         * doc/posix-headers/netdb.texi (netdb.h): Document this.
49027
49028 2008-10-22  Bruno Haible  <bruno@clisp.org>
49029
49030         * users.txt: Update entry about pspp.
49031
49032 2008-10-21  Bruno Haible  <bruno@clisp.org>
49033
49034         Simplification.
49035         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
49036         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
49037
49038         Simplification.
49039         * lib/ioctl.c (ioctl): Don't undefine.
49040         * lib/socket.c (socket): Don't undefine.
49041
49042         Remove unused module indicator macros.
49043         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
49044         GNULIB_$1 as a C macro.
49045
49046         * doc/posix-functions/close.texi: Undo last change.
49047         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
49048         Windows platforms.
49049
49050 2008-10-21  Bruno Haible  <bruno@clisp.org>
49051
49052         Add gethostname() declaration to <unistd.h>.
49053         * lib/unistd.in.h (gethostname): New declaration.
49054         * lib/gethostname.c: Include <unistd.h>.
49055         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
49056         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
49057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
49058         and HAVE_GETHOSTNAME.
49059         * modules/gethostname (Depends-on): Add unistd.
49060         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49061         (Include): Specify <unistd.h>.
49062         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
49063         HAVE_GETHOSTNAME.
49064         * tests/test-gethostname.c: Include <unistd.h> first.
49065
49066 2008-10-21  Bruno Haible  <bruno@clisp.org>
49067
49068         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
49069         * modules/select-tests (Depends-on): Likewise.
49070         Reported by Simon Josefsson.
49071
49072 2008-10-21  Simon Josefsson  <simon@josefsson.org>
49073
49074         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
49075         * lib/accept.c: New file, based on winsock.c.
49076         * lib/bind.c: New file, based on winsock.c.
49077         * lib/connect.c: New file, based on winsock.c.
49078         * lib/getpeername.c: New file, based on winsock.c.
49079         * lib/getsockname.c: New file, based on winsock.c.
49080         * lib/getsockopt.c: New file, based on winsock.c.
49081         * lib/ioctl.c: New file, based on winsock.c.
49082         * lib/listen.c: New file, based on winsock.c.
49083         * lib/recv.c: New file, based on winsock.c.
49084         * lib/recvfrom.c: New file, based on winsock.c.
49085         * lib/send.c: New file, based on winsock.c.
49086         * lib/sendto.c: New file, based on winsock.c.
49087         * lib/setsockopt.c: New file, based on winsock.c.
49088         * lib/shutdown.c: New file, based on winsock.c.
49089         * lib/socket.c: New file, based on winsock.c.
49090         * lib/w32sock.h: New file, based on winsock.c.
49091         * lib/winsock.c: Remove file.
49092         * modules/accept: Likewise.
49093         * modules/bind: Likewise.
49094         * modules/connect: Likewise.
49095         * modules/getpeername: Likewise.
49096         * modules/getsockname: Likewise.
49097         * modules/getsockopt: Likewise.
49098         * modules/ioctl: Likewise.
49099         * modules/listen: Likewise.
49100         * modules/recv: Likewise.
49101         * modules/recvfrom: Likewise.
49102         * modules/send: Likewise.
49103         * modules/sendto: Likewise.
49104         * modules/setsockopt: Likewise.
49105         * modules/shutdown: Likewise.
49106         * modules/socket: Use socket.c instead of winsock.c.
49107         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
49108         * doc/posix-functions/accept.texi: Doc fix.
49109         * doc/posix-functions/bind.texi: Doc fix.
49110         * doc/posix-functions/close.texi: Doc fix.
49111         * doc/posix-functions/connect.texi: Doc fix.
49112         * doc/posix-functions/getpeername.texi: Doc fix.
49113         * doc/posix-functions/getsockname.texi: Doc fix.
49114         * doc/posix-functions/getsockopt.texi: Doc fix.
49115         * doc/posix-functions/ioctl.texi: Doc fix.
49116         * doc/posix-functions/listen.texi: Doc fix.
49117         * doc/posix-functions/recv.texi: Doc fix.
49118         * doc/posix-functions/recvfrom.texi: Doc fix.
49119         * doc/posix-functions/send.texi: Doc fix.
49120         * doc/posix-functions/sendto.texi: Doc fix.
49121         * doc/posix-functions/setsockopt.texi: Doc fix.
49122         * doc/posix-functions/shutdown.texi: Doc fix.
49123         * doc/posix-functions/socket.texi: Doc fix.
49124
49125 2008-10-20  Bruno Haible  <bruno@clisp.org>
49126
49127         Take into account the role of SIGABRT_COMPAT on Windows 2008.
49128         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
49129         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
49130         as an alias for SIGABRT.
49131         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
49132         (sigaction): Map it to SIGABRT.
49133         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
49134
49135 2008-10-20  Bruno Haible  <bruno@clisp.org>
49136
49137         * lib/fts.c: Don't include lstat.h.
49138         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
49139
49140         Move the lstat() declaration to <sys/stat.h>.
49141         * lib/lstat.h: Remove file.
49142         * lib/sys_stat.in.h: Add special invocation convention.
49143         (lstat): New declaration.
49144         * lib/lstat.c (orig_lstat): New function.
49145         (rpl_lstat): Use orig_lstat instead of lstat.
49146         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
49147         AC_C_INLINE. Set REPLACE_LSTAT.
49148         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
49149         and REPLACE_LSTAT.
49150         * modules/lstat (Files): Remove lib/lstat.h.
49151         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49152         (Include): Specify <sys/stat.h> instead of lstat.h.
49153         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
49154         REPLACE_LSTAT.
49155         * NEWS: Mention the change.
49156
49157 2008-10-20  Bruno Haible  <bruno@clisp.org>
49158
49159         * modules/posix_spawn-tests: New file.
49160         * tests/test-posix_spawn3.c: New file.
49161
49162 2008-10-20  Bruno Haible  <bruno@clisp.org>
49163
49164         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
49165         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49166         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
49167         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49168         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
49169
49170 2008-10-20  Bruno Haible  <bruno@clisp.org>
49171
49172         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
49173         of posix_spawn on AIX 5.3.
49174
49175 2008-10-20  Bruno Haible  <bruno@clisp.org>
49176
49177         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
49178
49179 2008-10-20  Bruno Haible  <bruno@clisp.org>
49180
49181         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
49182         of AC_LANG_PROGRAM.
49183
49184 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49185
49186         * lib/netdb.in.h: Don't define GNU specific constants until they
49187         are supported or needed.  Reported by Bruno Haible
49188         <bruno@clisp.org>.
49189
49190 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49191
49192         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
49193
49194 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49195
49196         * lib/getaddrinfo.h: Remove file.
49197         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
49198         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
49199         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
49200         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
49201         * modules/netdb: Substitute GNULIB_GETADDRINFO.
49202         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
49203         * tests/test-getaddrinfo.c: Likewise.
49204         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
49205         * NEWS: Mention change.
49206
49207 2008-10-19  Bruno Haible  <bruno@clisp.org>
49208
49209         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
49210
49211 2008-10-19  Bruno Haible  <bruno@clisp.org>
49212
49213         * lib/wait-process.c: Include simply <sys/wait.h>.
49214         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
49215         WIFSTOPPED): Remove fallback definitions.
49216         * modules/wait-process (Depends-on): Add sys_wait.
49217
49218         New module 'sys_wait'.
49219         * modules/sys_wait: New file.
49220         * lib/sys_wait.in.h: New file, partially copied from
49221         lib/wait-process.c.
49222         * m4/sys_wait_h.m4: New file.
49223         * doc/posix-headers/sys_wait.texi: Mention the new module.
49224
49225 2008-10-19  Bruno Haible  <bruno@clisp.org>
49226
49227         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
49228
49229 2008-10-19  Bruno Haible  <bruno@clisp.org>
49230
49231         Assume that waitpid() fills an 'int' status, not a 'union wait'.
49232         * lib/wait-process.c (WAIT_T): Remove type.
49233         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
49234         (wait_subprocess): Update.
49235
49236 2008-10-19  Bruno Haible  <bruno@clisp.org>
49237
49238         New module 'atoll'.
49239         * modules/atoll: New file.
49240         * lib/stdlib.in.h (atoll): New declaration.
49241         * lib/atoll.c: New file, from glibc with modifications.
49242         * m4/atoll.m4: New file.
49243         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
49244         HAVE_ATOLL.
49245         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
49246         * doc/posix-functions/atoll.texi: Mention the new module.
49247
49248 2008-10-19  Bruno Haible  <bruno@clisp.org>
49249
49250         Add strtoull() declaration to <stdlib.h>.
49251         * lib/stdlib.in.h (strtoull): New declaration.
49252         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
49253         Set HAVE_STRTOULL.
49254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
49255         HAVE_STRTOULL.
49256         * modules/strtoull (Depends-on): Add stdlib.
49257         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49258         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
49259         HAVE_STRTOULL.
49260
49261 2008-10-19  Bruno Haible  <bruno@clisp.org>
49262
49263         Add strtoll() declaration to <stdlib.h>.
49264         * lib/stdlib.in.h (strtoll): New declaration.
49265         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
49266         Set HAVE_STRTOLL.
49267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
49268         HAVE_STRTOLL.
49269         * modules/strtoll (Depends-on): Add stdlib.
49270         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49271         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
49272
49273 2008-10-19  Bruno Haible  <bruno@clisp.org>
49274
49275         * modules/bcopy (Depends-on): Add strings.
49276         (Include): Specify <strings.h>.
49277
49278 2008-10-19  Bruno Haible  <bruno@clisp.org>
49279
49280         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
49281
49282 2008-10-19  Bruno Haible  <bruno@clisp.org>
49283
49284         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
49285         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
49286         mingw.
49287
49288 2008-10-19  Bruno Haible  <bruno@clisp.org>
49289
49290         * lib/atanl.c: Don't include isnanl.h.
49291         * lib/cosl.c: Likewise.
49292         * lib/ldexpl.c: Likewise.
49293         * lib/logl.c: Likewise.
49294         * lib/sinl.c: Likewise.
49295         * lib/sqrtl.c: Likewise.
49296         * lib/tanl.c: Likewise.
49297
49298         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
49299         * lib/isnanf.h: Remove file.
49300         * lib/isnand.h: Remove file.
49301         * lib/isnanl.h: Remove file.
49302         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
49303         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
49304         macros.
49305         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
49306         HAVE_ISNANF, don't define it as a C macro.
49307         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
49308         HAVE_ISNAND, don't define it as a C macro.
49309         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
49310         HAVE_ISNANL, don't define it as a C macro.
49311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
49312         HAVE_ISNAN[FDL].
49313         * modules/isnanf (Files): Remove lib/isnanf.h.
49314         (Depends-on): Add math.
49315         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49316         (Include): Specify <math.h> instead of isnanf.h.
49317         * modules/isnand (Files): Remove lib/isnand.h.
49318         (Depends-on): Add math.
49319         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49320         (Include): Specify <math.h> instead of isnand.h.
49321         * modules/isnanl (Files): Remove lib/isnanl.h.
49322         (Depends-on): Add math.
49323         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49324         (Include): Specify <math.h> instead of isnanl.h.
49325         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
49326         HAVE_ISNAN[FDL].
49327         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
49328         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
49329         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
49330         * NEWS: Mention the change.
49331
49332 2008-10-18  Bruno Haible  <bruno@clisp.org>
49333
49334         Add getusershell(), setusershell(), endusershell() declarations to
49335         <unistd.h>.
49336         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
49337         declarations.
49338         * lib/getusershell.c: Include unistd.h.
49339         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
49340         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
49341         HAVE_GETUSERSHELL.
49342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
49343         and HAVE_GETUSERSHELL.
49344         * modules/getusershell (Depends-on): Add unistd, extensions.
49345         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49346         (Include): Specify <unistd.h>.
49347         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
49348         HAVE_GETUSERSHELL.
49349
49350 2008-10-18  Bruno Haible  <bruno@clisp.org>
49351
49352         Add a getloadavg() declaration to <stdlib.h>.
49353         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
49354         getloadavg declaration.
49355         (getloadavg): New declaration.
49356         * lib/getloadavg.c: Include <stdlib.h> first.
49357         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
49358         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
49359         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
49360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
49361         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
49362         * modules/getloadavg (Depends-on): Add stdlib, extensions.
49363         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49364         (Include): Specify <stdlib.h>.
49365         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
49366         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
49367
49368 2008-10-18  Bruno Haible  <bruno@clisp.org>
49369
49370         * lib/dirchownmod.c: Don't include lchmod.h.
49371
49372         Move the lchmod() declaration to <sys/stat.h>.
49373         * lib/lchmod.h: Remove file.
49374         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
49375         (lchmod): New declaration, moved here from lib/lchown.h.
49376         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
49377         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
49378         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
49379         and HAVE_LCHMOD.
49380         * modules/lchmod (Files): Remove lib/lchmod.h.
49381         (Depends-on): Add sys_stat, extensions.
49382         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49383         (Include): Specify <sys/stat.h> instead of lchmod.h.
49384         * modules/sys_stat (Depends-on): Add link-warning.
49385         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
49386         definition of GL_LINK_WARNING.
49387         * NEWS: Mention the change.
49388
49389 2008-10-18  Bruno Haible  <bruno@clisp.org>
49390
49391         * lib/fchdir.c: Don't include dirfd.h.
49392         * lib/fts.c: Likewise.
49393         * lib/getcwd.c: Likewise.
49394         * lib/glob.c: Likewise.
49395
49396         Move the dirfd() declaration to <dirent.h>.
49397         * lib/dirfd.h: Remove file.
49398         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
49399         (dirfd): New declaration.
49400         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
49401         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
49402         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
49403         HAVE_DECL_DIRFD.
49404         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
49405         HAVE_DECL_DIRFD.
49406         * modules/dirfd (Files): Remove lib/dirfd.h.
49407         (Depends-on): Add dirent, extensions.
49408         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
49409         (Include): Specify <dirent.h> instead of dirfd.h.
49410         * modules/dirent (Depends-on): Add link-warning.
49411         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
49412         definition of GL_LINK_WARNING.
49413         * NEWS: Mention the change.
49414
49415 2008-10-18  Bruno Haible  <bruno@clisp.org>
49416
49417         Move the euidaccess() declaration to <unistd.h>.
49418         * lib/euidaccess.h: Remove file.
49419         * lib/unistd.in.h (euidaccess): New declaration.
49420         * lib/euidaccess.c: Don't include euidaccess.h.
49421         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
49422         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
49423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
49424         and HAVE_EUIDACCESS.
49425         * modules/euidaccess (Files): Remove lib/euidaccess.h.
49426         (Depends-on): Add unistd.
49427         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49428         (Include): Specify <unistd.h> instead of euidaccess.h.
49429         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
49430         HAVE_EUIDACCESS.
49431         * NEWS: Mention the change.
49432
49433 2008-10-18  Bruno Haible  <bruno@clisp.org>
49434
49435         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
49436
49437         Move the getdomainname() declaration to <unistd.h>.
49438         * lib/getdomainname.h: Remove file.
49439         * lib/unistd.in.h (getdomainname): New declaration.
49440         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
49441         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
49442         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
49443         HAVE_GETDOMAINNAME.
49444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49445         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
49446         * modules/getdomainname (Files): Remove lib/getdomainname.h.
49447         (Depends-on): Add unistd, extensions.
49448         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49449         (Includes): Specify <unistd.h> instead of getdomainname.h.
49450         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
49451         HAVE_GETDOMAINNAME.
49452         * NEWS: Mention the change.
49453
49454 2008-10-18  Bruno Haible  <bruno@clisp.org>
49455
49456         * modules/dirent: New file.
49457         * m4/dirent_h.m4: New file.
49458         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
49459         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
49460         * modules/fchdir (Files): Remove lib/dirent.in.h.
49461         (Depends-on): Add dirent.
49462         (Makefile.am): Move rules to modules/dirent.
49463         * doc/posix-headers/dirent.texi: Mention the new module.
49464
49465 2008-10-18  Bruno Haible  <bruno@clisp.org>
49466
49467         Avoid -Wunused-parameter warnings in public gnulib header files.
49468         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
49469         macro.
49470         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
49471
49472 2008-10-18  Bruno Haible  <bruno@clisp.org>
49473
49474         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
49475         * doc/glibc-functions/error.texi: Mention the module 'error'.
49476         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
49477         * doc/glibc-functions/getdomainname.texi: Mention the module
49478         'getdomainname'.
49479         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
49480         * doc/glibc-functions/getpagesize.texi: Mention the module
49481         'getpagesize'.
49482         * doc/glibc-functions/getusershell.texi: Mention the module
49483         'getusershell'.
49484         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
49485         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
49486         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
49487         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
49488         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
49489         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
49490         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
49491         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
49492         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
49493         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
49494         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
49495         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
49496         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
49497         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
49498
49499 2008-10-17  Bruno Haible  <bruno@clisp.org>
49500
49501         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
49502         HP-UX and IRIX, use -0.0L.
49503         * tests/test-ceill.c (minus_zero): Likewise.
49504         * tests/test-floorl.c (minus_zero): Likewise.
49505         * tests/test-frexpl.c (minus_zero): Likewise.
49506         * tests/test-isnan.c (minus_zerol): Likewise.
49507         * tests/test-isnanl.h (minus_zero): Likewise.
49508         * tests/test-ldexpl.c (minus_zero): Likewise.
49509         * tests/test-roundl.c (minus_zero): Likewise.
49510         * tests/test-signbit.c (minus_zerol): Likewise.
49511         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49512         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49513         * tests/test-truncl.c (minus_zero): Likewise.
49514         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49515         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49516         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
49517         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49518
49519 2008-10-17  Bruno Haible  <bruno@clisp.org>
49520
49521         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
49522         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
49523         that it gets activated only for gcc >= 3.0.
49524         * lib/dirent.in.h: Likewise.
49525         * lib/errno.in.h: Likewise.
49526         * lib/fcntl.in.h: Likewise.
49527         * lib/float.in.h: Likewise.
49528         * lib/iconv.in.h: Likewise.
49529         * lib/inttypes.in.h: Likewise.
49530         * lib/locale.in.h: Likewise.
49531         * lib/math.in.h: Likewise.
49532         * lib/netdb.in.h: Likewise.
49533         * lib/netinet_in.in.h: Likewise.
49534         * lib/search.in.h: Likewise.
49535         * lib/signal.in.h: Likewise.
49536         * lib/spawn.in.h: Likewise.
49537         * lib/stdarg.in.h: Likewise.
49538         * lib/stdint.in.h: Likewise.
49539         * lib/stdio.in.h: Likewise.
49540         * lib/stdlib.in.h: Likewise.
49541         * lib/string.in.h: Likewise.
49542         * lib/strings.in.h: Likewise.
49543         * lib/sys_file.in.h: Likewise.
49544         * lib/sys_ioctl.in.h: Likewise.
49545         * lib/sys_select.in.h: Likewise.
49546         * lib/sys_socket.in.h: Likewise.
49547         * lib/sys_stat.in.h: Likewise.
49548         * lib/sys_time.in.h: Likewise.
49549         * lib/sysexits.in.h: Likewise.
49550         * lib/time.in.h: Likewise.
49551         * lib/unistd.in.h: Likewise.
49552         * lib/wchar.in.h: Likewise.
49553         * lib/wctype.in.h: Likewise.
49554         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49555
49556 2008-10-17  Jim Meyering  <meyering@redhat.com>
49557
49558         ignore-value: don't depend on inline module
49559         * modules/ignore-value (Depends-on): Remove 'inline'.
49560         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
49561         Suggestion from Bruno Haible.
49562
49563 2008-10-17  Bruno Haible  <bruno@clisp.org>
49564
49565         New implementation of condition variables for Win32.
49566         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
49567         (gl_linked_waitqueue_t): New type.
49568         (gl_cond_t): Use it.
49569         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
49570         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
49571         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
49572         (glthread_cond_init_func, glthread_cond_wait_func,
49573         glthread_cond_timedwait_func, glthread_cond_signal_func,
49574         glthread_cond_broadcast_func, glthread_cond_destroy_func):
49575         Reimplemented on the basis of gl_linked_waitqueue_t.
49576         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
49577         gl_waitqueue_t.
49578         (gl_rwlock_t): Update.
49579         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
49580
49581 2008-10-17  Simon Josefsson  <simon@josefsson.org>
49582
49583         * modules/recvfrom (Depends-on): Add dependency on getpeername.
49584         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49585
49586 2008-10-17  Jim Meyering  <meyering@redhat.com>
49587
49588         ignore-value: new module
49589         * modules/ignore-value: New file.
49590         * lib/ignore-value.h: New file.
49591         * MODULES.html.sh (Compiler warning management): New section,
49592         just for this module.  More to come.
49593
49594 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49595
49596         open-safer.c: avoid 'signed and unsigned in conditional...' warning
49597         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
49598         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
49599
49600 2008-10-16  Jim Meyering  <meyering@redhat.com>
49601
49602         openat-die.c: avoid 'no previous prototype' warning
49603         * lib/openat-die.c: Include "openat.h".
49604         Reported by Reuben Thomas <rrt@sc3d.org>.
49605
49606 2008-10-16  Simon Josefsson  <simon@josefsson.org>
49607
49608         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
49609         * lib/netdb.in.h: Fix typo.
49610         Reported by Bruno Haible  <bruno@clisp.org>
49611
49612         * lib/netdb.in.h: Include sys/socket.h for platforms without
49613         netdb.h, to get structures like hostent on MinGW.
49614         * modules/netdb (Depends-on): Add sys_socket.
49615
49616 2008-10-15  Simon Josefsson  <simon@josefsson.org>
49617
49618         * modules/netdb, modules/netdb-tests: New file.
49619         * m4/netdb_h.m4: New file.
49620         * lib/netdb.in.h: Add, currently just an empty file pending
49621         definitions.
49622         * tests/test-netdb.c: New file.
49623         * doc/posix-headers/netdb.texi: Mention that we replace it if
49624         needed.
49625         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49626         netdb.
49627
49628 2008-10-15  Simon Josefsson  <simon@josefsson.org>
49629
49630         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
49631         with code.
49632
49633 2008-10-13  Bruno Haible  <bruno@clisp.org>
49634
49635         * lib/glthread/cond.c (glthread_cond_wait_func,
49636         glthread_cond_timedwait_func): Add a comment.
49637
49638 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
49639
49640         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
49641         * tests/test-select.c: Likewise,
49642
49643 2008-10-13  Bruno Haible  <bruno@clisp.org>
49644
49645         * lib/glthread/cond.c (glthread_cond_wait_func,
49646         glthread_cond_timedwait_func): Fix variable name.
49647         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49648
49649 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
49650
49651         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
49652         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
49653         struct sockaddr.sa_len.
49654         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
49655
49656 2008-10-13  Simon Josefsson  <simon@josefsson.org>
49657
49658         * build-aux/pmccabe2html: Add css and css_url parameters.
49659
49660 2008-10-12  Bruno Haible  <bruno@clisp.org>
49661
49662         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
49663         calling aclx_get.
49664         Reported by Rainer Tammer <tammer@tammer.net>.
49665
49666 2008-10-12  Bruno Haible  <bruno@clisp.org>
49667
49668         Use msvcrt aware primitives for creation/termination of Win32 threads.
49669         * lib/glthread/thread.c: Include <process.h>.
49670         (glthread_create_func): Use _beginthreadex instead of CreateThread.
49671         (wrapper_func): Update signature.
49672         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
49673
49674 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
49675             Bruno Haible  <bruno@clisp.org>
49676
49677         Provide a Win32 implementation of the 'cond' module.
49678         * lib/glthread/cond.h [USE_WIN32]: New implementation.
49679         * lib/glthread/cond.c (glthread_cond_init_func,
49680         glthread_cond_wait_func, glthread_cond_timedwait_func,
49681         glthread_cond_signal_func, glthread_cond_broadcast_func,
49682         glthread_cond_destroy_func) [USE_WIN32]: New functions.
49683         * modules/cond (Dependencies): Add gettimeofday.
49684
49685 2008-10-11  Bruno Haible  <bruno@clisp.org>
49686
49687         Make sleep work on older versions of mingw.
49688         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
49689         only whether it exists.
49690         * doc/posix-functions/sleep.texi: Mention the problem with older
49691         versions of mingw.
49692
49693 2008-10-11  Bruno Haible  <bruno@clisp.org>
49694
49695         New module 'shutdown'.
49696         * modules/shutdown: New file.
49697         * lib/sys_socket.in.h (shutdown): New declaration.
49698         * lib/winsock.c (shutdown): New function.
49699         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
49700         GNULIB_SHUTDOWN.
49701         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
49702         * doc/posix-functions/shutdown.texi: Document the new module.
49703
49704 2008-10-11  Jim Meyering  <meyering@redhat.com>
49705
49706         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
49707
49708 2008-10-11  Bruno Haible  <bruno@clisp.org>
49709
49710         New module 'fclose'.
49711         * modules/fclose: New file.
49712         * lib/stdio.in.h (fclose): New declaration.
49713         * lib/fclose.c: New file.
49714         * m4/fclose.m4: New file.
49715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
49716         REPLACE_FCLOSE.
49717         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
49718         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
49719         REPLACE_FCLOSE.
49720         * modules/close (Depends-on): fclose.
49721         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
49722
49723 2008-10-11  Bruno Haible  <bruno@clisp.org>
49724
49725         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
49726         set errno and don't call _close.
49727
49728 2008-10-10  Bruno Haible  <bruno@clisp.org>
49729
49730         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
49731         ACL, not afterwards. Fixes test failure on Cygwin.
49732
49733 2008-10-09  Ben Pfaff  <blp@gnu.org>
49734
49735         * build-aux/announce-gen: Fix gnulib version related part of usage
49736         message.  Die with a useful error message if no tarballs are
49737         found.
49738
49739 2008-10-10  Jim Meyering  <meyering@redhat.com>
49740
49741         bootstrap: use git's --depth=N option only if it's supported
49742         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
49743         recognize the --depth option.  Reported by Pádraig Brady.
49744
49745 2008-10-09  Bruno Haible  <bruno@clisp.org>
49746
49747         New module 'ioctl'.
49748         * modules/ioctl: New file.
49749         * lib/sys_socket.in.h (ioctl): Remove declaration.
49750         * lib/winsock.c: Include <sys/ioctl.h>.
49751         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
49752         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49753         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
49754         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
49755         * doc/posix-functions/ioctl.texi: Mention the new module.
49756
49757 2008-10-09  Bruno Haible  <bruno@clisp.org>
49758
49759         New module 'sys_ioctl'.
49760         * lib/sys_ioctl.in.h: New file.
49761         * m4/sys_ioctl_h.m4: New file.
49762         * modules/sys_ioctl: New file.
49763         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
49764
49765 2008-10-09  Bruno Haible  <bruno@clisp.org>
49766
49767         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
49768         * lib/winsock.c: Include <stdarg.h>.
49769         (rpl_ioctl): Change to second argument 'int' and then varargs.
49770
49771 2008-10-09  Bruno Haible  <bruno@clisp.org>
49772
49773         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
49774         when the sys_socket module is present and the system has <winsock2.h>.
49775
49776 2008-10-09  Bruno Haible  <bruno@clisp.org>
49777
49778         * doc/posix-functions/close.texi: Mention module 'close' instead of
49779         module 'sys_socket'.
49780
49781 2008-10-09  Bruno Haible  <bruno@clisp.org>
49782
49783         * doc/glibc-headers/sys_ioctl.texi: New file.
49784         * doc/gnulib.texi: Include it.
49785
49786 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49787             Bruno Haible  <bruno@clisp.org>
49788
49789         Combine the two replacements of 'close'.
49790         * lib/sys_socket.in.h (close): Define to a reminder to include
49791         <unistd.h>.
49792         (_gl_close_fd_maybe_socket): New declaration.
49793         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
49794         * lib/winsock.c (close): Remove undefinition.
49795         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
49796         needed for the gnulib module 'close'.
49797         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
49798         define to an error symbol or to a warning, if suitable.
49799         * lib/close.c: Include <sys/socket.h>.
49800         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
49801         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
49802         UNISTD_H_HAVE_WINSOCK2_H.
49803         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
49804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49805         UNISTD_H_HAVE_WINSOCK2_H.
49806         * modules/sys_socket (Files): Add m4/unistd_h.m4.
49807         (configure.ac): Set a module indicator.
49808         (Makefile.am): Substitute GNULIB_CLOSE.
49809         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
49810         * modules/poll-tests (Depends-on): Add close.
49811         * modules/select-tests (Depends-on): Likewise.
49812
49813 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49814             Bruno Haible  <bruno@clisp.org>
49815
49816         New module 'close'.
49817         * modules/close: New file.
49818         * lib/unistd.in.h (close): Move declaration out of the
49819         FCHDIR_REPLACEMENT scope.
49820         (_gl_unregister_fd): New declaration.
49821         * lib/close.c: New file.
49822         * lib/fchdir.c (rpl_close): Remove function.
49823         * m4/close.m4: New file.
49824         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
49825         close.
49826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
49827         REPLACE_CLOSE.
49828         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
49829         REPLACE_CLOSE.
49830         * modules/fchdir (Depends-on): Add close.
49831
49832 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49833             Bruno Haible  <bruno@clisp.org>
49834
49835         * lib/fcntl.in.h (open): Simplify conditionals.
49836         (_gl_register_fd): New declaration.
49837         * lib/fchdir.c (rpl_open): Remove function.
49838         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
49839         also.
49840         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
49841         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
49842         open.
49843
49844 2008-10-09  Jim Meyering  <meyering@redhat.com>
49845
49846         GNUmakefile: use the more name-space-friendly "_version"
49847         * top/GNUmakefile (_dummy): Update.
49848         (_version): Rename from "version".
49849
49850 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49851             Bruno Haible  <bruno@clisp.org>
49852
49853         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
49854         rpl_close.
49855         (_gl_register_fd): New function, extracted from rpl_open.
49856         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
49857         (rpl_open, rpl_opendir): Use _gl_register_fd.
49858
49859 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49860
49861         Fix organization of 'open' replacement.
49862         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
49863         (gl_FUNC_OPEN): Use it.
49864         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
49865
49866 2008-10-08  Bruno Haible  <bruno@clisp.org>
49867
49868         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
49869
49870 2008-10-08  Simon Josefsson  <simon@josefsson.org>
49871
49872         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
49873         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
49874         listen).
49875
49876 2008-10-08  Eric Blake  <ebb9@byu.net>
49877
49878         GNUmakefile: add 'make version' target
49879         * top/GNUmakefile (_curr-ver): Split version update rules...
49880         (version): ...into a target.
49881
49882 2008-10-07  Bruno Haible  <bruno@clisp.org>
49883
49884         Use a more portable replacement expression for -0.0L.
49885         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
49886         instead of -0.0L. Fix m4 quotation.
49887
49888         * tests/test-signbit.c: Include <float.h>.
49889         (minus_zero): New variable.
49890         (test_signbitl): Use minus_zero instead of -zero.
49891         * modules/signbit-tests (Depends-on): Add float.
49892
49893         * tests/test-ceill.c: Include <float.h>.
49894         (zero): Remove variable.
49895         (minus_zero): New variable.
49896         (main): Use minus_zero instead of -zero.
49897         * modules/ceill-tests (Depends-on): Add float.
49898
49899         * tests/test-floorl.c: Include <float.h>.
49900         (zero): Remove variable.
49901         (minus_zero): New variable.
49902         (main): Use minus_zero instead of -zero.
49903         * modules/floorl-tests (Depends-on): Add float.
49904
49905         * tests/test-roundl.c: Include <float.h>.
49906         (zero): Remove variable.
49907         (minus_zero): New variable.
49908         (main): Use minus_zero instead of -zero.
49909         * modules/roundl-tests (Depends-on): Add float.
49910
49911         * tests/test-truncl.c: Include <float.h>.
49912         (zero): Remove variable.
49913         (minus_zero): New variable.
49914         (main): Use minus_zero instead of -zero.
49915         * modules/truncl-tests (Depends-on): Add float.
49916
49917         * tests/test-frexpl.c (zero): Remove variable.
49918         (minus_zero): New variable.
49919         (main): Use minus_zero instead of -zero.
49920         * modules/frexpl-tests (Depends-on): Add float.
49921
49922         * tests/test-isnan.c (zerol): Remove variable.
49923         (minus_zerol): New variable.
49924         (test_long_double): Use minus_zerol instead of -zerol.
49925         * modules/isnan-tests (Depends-on): Add float.
49926
49927         * tests/test-isnanl.h (zero): Remove variable.
49928         (minus_zero): New variable.
49929         (main): Use minus_zero instead of -zero.
49930         * modules/isnanl-nolibm-tests (Depends-on): Add float.
49931         * modules/isnanl-tests (Depends-on): Add float.
49932
49933         * tests/test-ldexpl.c (zero): Remove variable.
49934         (minus_zero): New variable.
49935         (main): Use minus_zero instead of -zero.
49936         * modules/ldexpl-tests (Depends-on): Add float.
49937
49938         * tests/test-snprintf-posix.h (zerol): Remove variable.
49939         (minus_zerol): New variable.
49940         (test_function): Use minus_zerol instead of -zerol.
49941         * modules/snprintf-posix-tests (Depends-on): Add float.
49942         * modules/vsnprintf-posix-tests (Depends-on): Add float.
49943
49944         * tests/test-sprintf-posix.h (zerol): Remove variable.
49945         (minus_zerol): New variable.
49946         (test_function): Use minus_zerol instead of -zerol.
49947         * modules/sprintf-posix-tests (Depends-on): Add float.
49948         * modules/vsprintf-posix-tests (Depends-on): Add float.
49949
49950         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
49951         (minus_zerol): New variable.
49952         (test_function): Use minus_zerol instead of -zerol.
49953         * modules/vasnprintf-posix-tests (Depends-on): Add float.
49954
49955         * tests/test-vasprintf-posix.c (zerol): Remove variable.
49956         (minus_zerol): New variable.
49957         (test_function): Use minus_zerol instead of -zerol.
49958         * modules/vasprintf-posix-tests (Depends-on): Add float.
49959
49960 2008-10-07  Simon Josefsson  <simon@josefsson.org>
49961
49962         * MODULES.html.sh (Support for building documentation): Mention
49963         pmccabe2html.  Sort entries.
49964
49965         Add pmccabe2html module, from gnupdf.
49966         * build-aux/pmccabe.css: New file.
49967         * build-aux/pmccabe2html: New file.
49968         * m4/pmccabe2html.m4: New file.
49969         * modules/pmccabe2html: New file.
49970
49971 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
49972
49973         flock: new module
49974         * MODULES.html.sh: Add to list of modules.
49975         * lib/flock.c: flock implementation for Windows and Unix systems
49976         which have fcntl.
49977         * doc/glibc-functions/flock.texi: Update documentation.
49978         * lib/sys_file.in.h: <sys/file.h> header file.
49979         * m4/flock.m4: M4 macros.
49980         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
49981         * modules/flock: flock module.
49982         * modules/flock-tests: flock tests module.
49983         * modules/sys_file: sys/file.h module.
49984         * tests/test-flock.c: test suite for flock.
49985
49986 2008-10-06  Jim Meyering  <meyering@redhat.com>
49987
49988         bootstrap: check for LT_INIT more portably still ;-)
49989         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
49990         Spotted by Bruno Haible.
49991
49992 2008-10-06  Eric Blake  <ebb9@byu.net>
49993
49994         test-signbit: avoid tripping Irix cc bug on -0.0L
49995         * tests/test-signbit.c (minus_zerol): Delete, and replace with
49996         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
49997         entire testsuite consistent and avoids an Irix 6.2 bug.
49998
49999 2008-10-05  Bruno Haible  <bruno@clisp.org>
50000             Jim Meyering  <jim@meyering.net>
50001
50002         Add an option for ignoring EPIPE during close_stdout.
50003         * lib/closeout.h: Include <stdbool.h>.
50004         (close_stdout_set_ignore_EPIPE): New declaration.
50005         * lib/closeout.c: Include <stdbool.h>.
50006         (ignore_EPIPE): New variable.
50007         (close_stdout_set_ignore_EPIPE): New function.
50008         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
50009         * lib/close-stream.c (close_stream): Mention the possible EPIPE
50010         failure.
50011         * modules/closeout (Depends-on): Add stdbool.
50012
50013 2008-10-05  Bruno Haible  <bruno@clisp.org>
50014
50015         * modules/accept: New file.
50016         * modules/bind: New file.
50017         * modules/connect: New file.
50018         * modules/getpeername: New file.
50019         * modules/getsockname: New file.
50020         * modules/getsockopt: New file.
50021         * modules/listen: New file.
50022         * modules/recv: New file.
50023         * modules/recvfrom: New file.
50024         * modules/send: New file.
50025         * modules/sendto: New file.
50026         * modules/setsockopt: New file.
50027         * modules/socket: New file.
50028         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
50029         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50030         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
50031         the particular module is requested. Add a link warning when the
50032         particular module is not requested.
50033         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
50034         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
50035         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
50036         the particular module is requested.
50037         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
50038         gl_SYS_SOCKET_H_DEFAULTS): New macros.
50039         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
50040         * modules/sys_socket (Depends-on): Add link-warning.
50041         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
50042         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
50043         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
50044         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
50045         GL_LINK_WARNING.
50046         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
50047         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
50048         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
50049         * doc/posix-functions/getpeername.texi: Mention the new module
50050         'getpeername'.
50051         * doc/posix-functions/getsockname.texi: Mention the new module
50052         'getsockname'.
50053         * doc/posix-functions/getsockopt.texi: Mention the new module
50054         'getsockopt'.
50055         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
50056         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
50057         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
50058         * doc/posix-functions/send.texi: Mention the new module 'send'.
50059         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
50060         * doc/posix-functions/setsockopt.texi: Mention the new module
50061         'setsockopt'.
50062         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
50063         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
50064         listen, connect, accept.
50065         * modules/select-tests (Depends-on): Likewise.
50066
50067 2008-10-05  Bruno Haible  <bruno@clisp.org>
50068
50069         * lib/winsock.c (strerror): Remove unused #undef.
50070         (rpl_close): Remove unused local variable.
50071
50072         * modules/sys_socket (Depends-on); Add errno.
50073
50074 2008-10-05  Bruno Haible  <bruno@clisp.org>
50075
50076         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
50077         (select): Add a link warning when the 'select' module is not used.
50078         * modules/sys_select (Depends-on): Add link-warning.
50079         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
50080         Suggested by Paolo Bonzini.
50081
50082 2008-10-05  Jim Meyering  <meyering@redhat.com>
50083
50084         bootstrap: check for LT_INIT more portably
50085         * build-aux/bootstrap: Avoid using grep -E, since it's not
50086         portable enough.  Suggestion from Bruno Haible.
50087
50088 2008-10-05  Bruno Haible  <bruno@clisp.org>
50089
50090         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
50091         as being fixed by gnulib.
50092
50093 2008-10-05  Bruno Haible  <bruno@clisp.org>
50094
50095         * modules/select-tests: New file, mostly copied from
50096         modules/sys_select-tests.
50097         * tests/test-select.c: New file, mostly copied from
50098         tests/test-sys_select.c.
50099         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
50100         * modules/sys_select-tests (Depends-on): Remove all dependencies.
50101         (Makefile.am): Remove test_sys_select_LDADD.
50102
50103         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
50104         to an undefined symbol, for an error message.
50105         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
50106         (gl_SYS_SELECT_H_DEFAULTS): New macro.
50107         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
50108         winsock-select.c here.
50109         * modules/sys_select (Files): Remove lib/winsock-select.c.
50110         (Depends-on): Remove alloca.
50111         (Makefile.am): Substitute GNULIB_SELECT.
50112         * modules/select: New file.
50113         * doc/posix-functions/select.texi: Update.
50114
50115 2008-10-05  Bruno Haible  <bruno@clisp.org>
50116
50117         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
50118         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
50119         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
50120         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
50121         getdtablesize.
50122         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
50123         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
50124
50125 2008-10-05  Bruno Haible  <bruno@clisp.org>
50126
50127         * modules/getdtablesize-tests: New file.
50128         * tests/test-getdtablesize.c: New file.
50129
50130         New module 'getdtablesize'.
50131         * lib/unistd.in.h (getdtablesize): New declaration.
50132         * lib/getdtablesize.c: New file.
50133         * m4/getdtablesize.m4: New file.
50134         * modules/getdtablesize: New file.
50135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50136         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
50137         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
50138         HAVE_GETDTABLESIZE.
50139         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
50140
50141 2008-10-05  Bruno Haible  <bruno@clisp.org>
50142
50143         * modules/sched (Makefile.am): Fix typo.
50144         Reported by Simon Josefsson.
50145
50146 2008-10-05  Jim Meyering  <meyering@redhat.com>
50147
50148         bootstrap: check for LT_INIT, too
50149         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
50150         are deprecated.  Suggestion from Ralf Wildenhues.
50151
50152 2008-10-05  Bruno Haible  <bruno@clisp.org>
50153
50154         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
50155         overriding them by ours.
50156         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
50157
50158 2008-10-05  Jim Meyering  <meyering@redhat.com>
50159
50160         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
50161         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
50162         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
50163
50164 2008-10-04  Bruno Haible  <bruno@clisp.org>
50165
50166         * modules/dup2 (License): Change to LGPLv2+.
50167         * modules/sleep (License): Likewise.
50168         * modules/perror (License): Likewise.
50169         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
50170         Blake.
50171         * modules/signal (License): Likewise.
50172         * modules/sigprocmask (License): Likewise.
50173         * modules/raise (License): Change to LGPLv2+, with approval by Jim
50174         Meyering.
50175
50176 2008-10-04  Bruno Haible  <bruno@clisp.org>
50177
50178         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
50179         Reported by Rainer Tammer <tammer@tammer.net>.
50180
50181 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
50182             Bruno Haible  <bruno@clisp.org>
50183
50184         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
50185         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
50186         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
50187
50188 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
50189
50190         filevercmp: new module
50191         * lib/filevercmp.h: New function filevercmp comparing version strings.
50192         * lib/filevercmp.c: Implementation of filevercmp function.
50193         * modules/filevercmp: Module metadata.
50194         * tests/test-filevercmp.c: Unit test for new module.
50195         * modules/filevercmp-tests: Unit test metadata.
50196         * MODULES.html.sh: Add filevercmp module.
50197
50198 2008-10-03  Bruno Haible  <bruno@clisp.org>
50199
50200         * lib/c-ctype.h: Add comment.
50201         Reported by Jim Meyering.
50202
50203 2008-10-02  Bruno Haible  <bruno@clisp.org>
50204
50205         * modules/posix_spawn-internal (Depends-on): Add 'open'.
50206
50207 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50208
50209         * build-aux/bootstrap: Allow renaming bootstrap, and change the
50210         name of bootstrap.conf accordingly.
50211
50212 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50213
50214         * build-aux/bootstrap: Install git-merge-changelog configuration
50215         items into .gitconfig if needed.
50216
50217 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50218
50219         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
50220         git repository, and initialize/update it accordingly.
50221
50222 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
50223
50224         * modules/fsync-tests: New file.
50225         * tests/test-fsync.c: New file.
50226
50227         New module 'fsync'.
50228         * lib/fsync.c: New file.
50229         * m4/fsync.m4: New file.
50230         * modules/fsync: New file.
50231         * lib/unistd.in.h (fsync): New declaration.
50232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
50233         GNULIB_FSYNC and HAVE_FSYNC.
50234         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
50235         * MODULES.html.sh (posix_functions): Add fsync.
50236         * doc/posix-functions/fsync.texi: Mention the new module.
50237
50238 2008-10-02  Jim Meyering  <meyering@redhat.com>
50239
50240         fts.c: sync with similar code from coreutils' remove.c
50241         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
50242         Guard also with "#if defined __linux__", since for now at least,
50243         this code is Linux-kernel-specific.
50244
50245 2008-10-02  Jim Meyering  <meyering@redhat.com>
50246
50247         fts: bug fixes
50248         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
50249         Include <sys/vfs.h>, not <sys/statfs.h>.
50250
50251         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
50252         Include <sys/vfs.h>, not <sys/statfs.h>.
50253
50254 2008-10-01  Bruno Haible  <bruno@clisp.org>
50255
50256         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
50257         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
50258         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
50259         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
50260         * doc/posix-functions/posix_spawnp.texi: Likewise.
50261         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
50262         whether posix_spawn actually works.
50263         * m4/pipe.m4 (gl_PIPE): Likewise.
50264         * modules/execute (Files): Add m4/posix_spawn.m4.
50265         * modules/pipe (Files): Add m4/posix_spawn.m4.
50266         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
50267
50268 2008-10-01  Jim Meyering  <meyering@redhat.com>
50269
50270         remove trailing spaces
50271         * NEWS: Likewise.
50272         * lib/poll.c (poll): Likewise.
50273         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
50274         * lib/winsock.c (rpl_close): Likewise.
50275         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
50276         * modules/yield: Likewise.
50277         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
50278         * tests/test-sys_select.c (connect_to_socket): Likewise.
50279
50280         fts.c: adjust a new interface to be more generally useful
50281         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
50282         (fts_build): Adjust caller.
50283
50284 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50285
50286         * modules/cond-tests: New file.
50287         * tests/test-cond.c: New file.
50288
50289 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50290             Bruno Haible  <bruno@clisp.org>
50291
50292         * modules/cond (Dependencies): Add errno, time.
50293         * lib/glthread/cond.h: Include <time.h>.
50294         (gl_cond_define, gl_cond_define_initialized): Use the same definition
50295         across platforms.
50296
50297 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50298             Bruno Haible  <bruno@clisp.org>
50299
50300         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
50301
50302 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50303             Bruno Haible  <bruno@clisp.org>
50304
50305         * modules/tls-tests (Depends-on): Add thread, yield.
50306         (configure.ac): Remove all checks.
50307         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
50308         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
50309         gl_thread_self): Remove definitions. Include glthread/thread.h and
50310         glthread/yield.h instead.
50311         (test_tls): Pass an additional NULL argument to gl_thread_join.
50312
50313 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50314             Bruno Haible  <bruno@clisp.org>
50315
50316         * modules/lock-tests (Depends-on): Add thread, yield.
50317         (configure.ac): Remove all checks.
50318         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
50319         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
50320         gl_thread_self): Remove definitions. Include glthread/thread.h and
50321         glthread/yield.h instead.
50322         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
50323         additional NULL argument to gl_thread_join.
50324
50325 2008-09-30  Bruno Haible  <bruno@clisp.org>
50326
50327         Fix the Win32 implementation of the 'thread' module.
50328         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
50329         pointer type.
50330         (gl_thread_self): Invoke gl_thread_self_func.
50331         (gl_thread_self_func): New declaration.
50332         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
50333         (do_init_self_key, init_self_key): New functions.
50334         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
50335         Remove some fields.
50336         (running_threads, running_lock): Remove variables.
50337         (get_current_thread_handle): New function.
50338         (gl_thread_self_func, wrapper_func, glthread_create_func,
50339         glthread_join_func, gl_thread_exit_func): Largely rewritten and
50340         simplified.
50341
50342 2008-09-30  Bruno Haible  <bruno@clisp.org>
50343
50344         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
50345         files.
50346
50347 2008-09-30  Jim Meyering  <meyering@redhat.com>
50348
50349         fts.m4: correct the test for statfs.f_type
50350         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
50351         when checking for statfs.f_type.
50352
50353 2008-09-15  Simon Josefsson  <simon@josefsson.org>
50354
50355         tests: avoid some compiler warnings
50356         * tests/test-memchr.c (main): Pass NULL indirectly.
50357         * tests/test-getdate.c (main): Remove unused variable 'ret'.
50358
50359 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
50360
50361         getdate.y: disallow countable dayshifts like "4 yesterday ago"
50362         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
50363         exactly specified dayshifts.
50364         (dayshift): New rule.
50365         (rel): Add dayshift.
50366         (relative_time_table) [tomorrow, yesterday, today, now]:
50367         Use tDAY_SHIFT in place of tDAY_UNIT.
50368         * tests/test-getdate.c: Add tests for now-disallowed countable
50369         dayshifts, e.g., "4 yesterday ago".
50370
50371 2008-09-29  Bruno Haible  <bruno@clisp.org>
50372
50373         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
50374         * tests/test-posix_spawn1.in.sh: Renamed from
50375         tests/test-posix_spawn.in.sh.
50376         * tests/test-posix_spawn2.c: New file.
50377         * tests/test-posix_spawn2.in.sh: New file.
50378         * modules/posix_spawnp-tests (Files): Update.
50379         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
50380
50381 2008-09-29  Bruno Haible  <bruno@clisp.org>
50382
50383         Propagate effects of putenv/setenv/unsetenv to child processes.
50384         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
50385         * lib/pipe.c (create_pipe): Likewise.
50386
50387 2008-09-29  Bruno Haible  <bruno@clisp.org>
50388
50389         Enable use of shell scripts as executables in mingw.
50390         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
50391         run the program as a shell script.
50392         * lib/pipe.c (create_pipe): Likewise.
50393         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
50394         resulting array.
50395
50396 2008-09-29  Eric Blake  <ebb9@byu.net>
50397
50398         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
50399
50400 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
50401
50402         * doc/posix-functions/accept.texi: Update mingw problems.
50403         * doc/posix-functions/bind.texi: Update mingw problems.
50404         * doc/posix-functions/close.texi: Update mingw problems.
50405         * doc/posix-functions/connect.texi: Update mingw problems.
50406         * doc/posix-functions/getpeername.texi: Update mingw problems.
50407         * doc/posix-functions/getsockname.texi: Update mingw problems.
50408         * doc/posix-functions/getsockopt.texi: Update mingw problems.
50409         * doc/posix-functions/ioctl.texi: Update mingw problems.
50410         * doc/posix-functions/listen.texi: Update mingw problems.
50411         * doc/posix-functions/recv.texi: Update mingw problems.
50412         * doc/posix-functions/recvfrom.texi: Update mingw problems.
50413         * doc/posix-functions/select.texi: Update mingw problems.
50414         * doc/posix-functions/send.texi: Update mingw problems.
50415         * doc/posix-functions/sendto.texi: Update mingw problems.
50416         * doc/posix-functions/setsockopt.texi: Update mingw problems.
50417         * doc/posix-functions/socket.texi: Update mingw problems.
50418
50419 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
50420             Bruno Haible  <bruno@clisp.org>
50421
50422         * lib/sys_select.in.h: Include sys/time.h.
50423         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
50424         * modules/sys_select: Depend on sys_time.
50425         * tests/test-sys_select.c: Test that sys/select.h defines struct
50426         timeval fully.
50427
50428 2008-09-29  Bruno Haible  <bruno@clisp.org>
50429
50430         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
50431         * lib/sys_select.in.h: Likewise.
50432
50433 2008-09-29  Bruno Haible  <bruno@clisp.org>
50434
50435         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
50436
50437 2008-09-29  Bruno Haible  <bruno@clisp.org>
50438
50439         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
50440         Set LIBSOCKET instead of augmenting LIBS.
50441         * modules/sockets (Link): New section.
50442         * modules/sockets-tests (test_sockets_LDADD): New variable.
50443         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
50444         * modules/poll-tests (test_poll_LDADD): New variable.
50445         * NEWS: Document the change.
50446
50447 2008-09-29  Bruno Haible  <bruno@clisp.org>
50448
50449         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
50450         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
50451         ARPA_INET_H directly.
50452         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50453
50454 2008-09-28  Bruno Haible  <bruno@clisp.org>
50455
50456         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
50457         from gl_HEADER_SYS_SOCKET.
50458         (gl_HEADER_SYS_SOCKET): Invoke it.
50459         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50460
50461 2008-09-28  Bruno Haible  <bruno@clisp.org>
50462
50463         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
50464         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
50465         Needed on OSF/1 4.0.
50466
50467 2008-09-28  Bruno Haible  <bruno@clisp.org>
50468
50469         Override open more carefully.
50470         * lib/open.c (orig_open): New function.
50471         (rpl_open): Use orig_open instead of open.
50472         * lib/fcntl.in.h: Add special invocation convention.
50473         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
50474         (gl_FUNC_OPEN): Invoke it.
50475
50476         Override freopen more carefully.
50477         * lib/freopen.c (orig_freopen): New function.
50478         (rpl_freopen): Use orig_freopen instead of freopen.
50479         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
50480         (gl_FUNC_FREOPEN): Invoke it.
50481
50482         Override fopen more carefully.
50483         * lib/fopen.c (orig_fopen): New function.
50484         (rpl_fopen): Use orig_fopen instead of fopen.
50485         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
50486         (gl_FUNC_FOPEN): Invoke it.
50487         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
50488
50489 2008-09-28  Bruno Haible  <bruno@clisp.org>
50490
50491         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
50492         SIGPIPE.
50493
50494 2008-09-28  Bruno Haible  <bruno@clisp.org>
50495
50496         * tests/test-sigaction.c (handler, main): Disable the check whether
50497         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
50498         glibc systems with LinuxThreads.
50499
50500 2008-09-28  Bruno Haible  <bruno@clisp.org>
50501
50502         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
50503
50504         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
50505         with AIX xlc.
50506         * lib/fcntl.in.h (open): Likewise.
50507         Reported by Rainer Tammer <tammer@tammer.net>.
50508
50509 2008-09-28  Bruno Haible  <bruno@clisp.org>
50510
50511         * modules/posix_spawnp-tests: New file.
50512         * tests/test-posix_spawn.c: New file.
50513         * tests/test-posix_spawn.in.sh: New file.
50514
50515         New module 'posix_spawnp'.
50516         * modules/posix_spawnp: New file.
50517         * lib/spawnp.c: New file, from GNU libc with modifications.
50518         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
50519
50520         New module 'posix_spawn'.
50521         * modules/posix_spawn: New file.
50522         * lib/spawn.c: New file, from GNU libc with modifications.
50523         * doc/posix-functions/posix_spawn.texi: Mention the new module.
50524
50525         New module 'posix_spawnattr_destroy'.
50526         * modules/posix_spawnattr_destroy: New file.
50527         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
50528         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
50529         module.
50530
50531         New module 'posix_spawnattr_setsigmask'.
50532         * modules/posix_spawnattr_setsigmask: New file.
50533         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
50534         modifications.
50535         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
50536         new module.
50537
50538         New module 'posix_spawnattr_getsigmask'.
50539         * modules/posix_spawnattr_getsigmask: New file.
50540         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
50541         modifications.
50542         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
50543         new module.
50544
50545         New module 'posix_spawnattr_setsigdefault'.
50546         * modules/posix_spawnattr_setsigdefault: New file.
50547         * lib/spawnattr_setdefault.c: New file, from GNU libc with
50548         modifications.
50549         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
50550         new module.
50551
50552         New module 'posix_spawnattr_getsigdefault'.
50553         * modules/posix_spawnattr_getsigdefault: New file.
50554         * lib/spawnattr_getdefault.c: New file, from GNU libc with
50555         modifications.
50556         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
50557         new module.
50558
50559         New module 'posix_spawnattr_setschedpolicy'.
50560         * modules/posix_spawnattr_setschedpolicy: New file.
50561         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
50562         modifications.
50563         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
50564         new module.
50565
50566         New module 'posix_spawnattr_getschedpolicy'.
50567         * modules/posix_spawnattr_getschedpolicy: New file.
50568         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
50569         modifications.
50570         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
50571         new module.
50572
50573         New module 'posix_spawnattr_setschedparam'.
50574         * modules/posix_spawnattr_setschedparam: New file.
50575         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
50576         modifications.
50577         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
50578         new module.
50579
50580         New module 'posix_spawnattr_getschedparam'.
50581         * modules/posix_spawnattr_getschedparam: New file.
50582         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
50583         modifications.
50584         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
50585         new module.
50586
50587         New module 'posix_spawnattr_setpgroup'.
50588         * modules/posix_spawnattr_setpgroup: New file.
50589         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
50590         modifications.
50591         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
50592         module.
50593
50594         New module 'posix_spawnattr_getpgroup'.
50595         * modules/posix_spawnattr_getpgroup: New file.
50596         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
50597         modifications.
50598         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
50599         module.
50600
50601         New module 'posix_spawnattr_setflags'.
50602         * modules/posix_spawnattr_setflags: New file.
50603         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
50604         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
50605         module.
50606
50607         New module 'posix_spawnattr_getflags'.
50608         * modules/posix_spawnattr_getflags: New file.
50609         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
50610         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
50611         module.
50612
50613         New module 'posix_spawnattr_init'.
50614         * modules/posix_spawnattr_init: New file.
50615         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
50616         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
50617         module.
50618
50619         New module 'posix_spawn_file_actions_destroy'.
50620         * modules/posix_spawn_file_actions_destroy: New file.
50621         * lib/spawn_faction_destroy.c: New file, from GNU libc with
50622         modifications.
50623         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
50624         the new module.
50625
50626         New module 'posix_spawn_file_actions_addopen'.
50627         * modules/posix_spawn_file_actions_addopen: New file.
50628         * lib/spawn_faction_addopen.c: New file, from GNU libc with
50629         modifications.
50630         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
50631         the new module.
50632
50633         New module 'posix_spawn_file_actions_adddup2'.
50634         * modules/posix_spawn_file_actions_adddup2: New file.
50635         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
50636         modifications.
50637         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
50638         the new module.
50639
50640         New module 'posix_spawn_file_actions_addclose'.
50641         * modules/posix_spawn_file_actions_addclose: New file.
50642         * lib/spawn_faction_addclose.c: New file, from GNU libc with
50643         modifications.
50644         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
50645         the new module.
50646
50647         New module 'posix_spawn_file_actions_init'.
50648         * modules/posix_spawn_file_actions_init: New file.
50649         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
50650         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
50651         new module.
50652
50653         New module 'posix_spawn-internal'.
50654         * modules/posix_spawn-internal: New file.
50655         * lib/spawn_int.h: New file, from GNU libc with modifications.
50656         * lib/spawni.c: New file, from GNU libc with modifications.
50657         * m4/posix_spawn.m4: New file.
50658
50659         New module 'spawn'.
50660         * modules/spawn: New file.
50661         * lib/spawn.in.h: New file, from GNU libc with modifications.
50662         * m4/spawn_h.m4: New file.
50663         * doc/posix-headers/spawn.texi: Mention the new module.
50664
50665 2008-09-28  Bruno Haible  <bruno@clisp.org>
50666
50667         * modules/sched-tests: New file.
50668         * tests/test-sched.c: New file.
50669
50670         New module 'sched'.
50671         * modules/sched: New file.
50672         * lib/sched.in.h: New file.
50673         * m4/sched_h.m4: New file.
50674         * doc/posix-headers/sched.texi: Mention the new module.
50675
50676 2008-09-27  Eric Blake  <ebb9@byu.net>
50677
50678         Fix previous patch, and tweak references to $0.
50679         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
50680         (func_version, func_gnulib_dir): Don't call this program
50681         gnulib-tool.
50682         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
50683         with using $0 in function.
50684         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
50685         (func_fatal_error): Reuse the name the user invoked us with.
50686
50687 2008-09-27  Bruno Haible  <bruno@clisp.org>
50688
50689         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
50690         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
50691         (gl_ICONV_H): Not here.
50692         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
50693         instead of assigning ICONV_H directly.
50694
50695         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
50696         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
50697         WCHAR_H directly.
50698
50699 2008-09-27  Bruno Haible  <bruno@clisp.org>
50700
50701         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
50702         * modules/arpa_inet (Depends-on): Add link-warning.
50703         (Makefile.am): Insert the definition of GL_LINK-WARNING.
50704         * modules/unistd (Makefile.am): Likewise.
50705
50706 2008-09-26  Bruno Haible  <bruno@clisp.org>
50707
50708         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
50709         variables.
50710         (func_version): Essentially copied from gnulib-tool.
50711         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
50712         func_readlink): Copied from gnulib-tool.
50713
50714 2008-09-26  Bruno Haible  <bruno@clisp.org>
50715
50716         * gnulib-tool (func_version): Change directory to $gnulib_dir before
50717         invoking git-version-gen.
50718
50719 2008-09-26  Bruno Haible  <bruno@clisp.org>
50720
50721         * posix-modules: Update to directory names changed on 2008-01-19.
50722         Remove commas in output before splitting into words. No more need to
50723         avoid 'ftruncate' since 2007-02-19.
50724
50725 2008-09-26  Bruno Haible  <bruno@clisp.org>
50726
50727         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
50728
50729 2008-09-26  Bruno Haible  <bruno@clisp.org>
50730
50731         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
50732         * modules/fwriteerror (Depends-on): Add errno.
50733
50734 2008-09-26  Bruno Haible  <bruno@clisp.org>
50735
50736         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
50737         * tests/test-vc-list-files-cvs.sh: Likewise.
50738
50739 2008-09-26  Bruno Haible  <bruno@clisp.org>
50740
50741         * doc/posix-headers/sys_resource.texi: Reorder items.
50742
50743 2008-09-26  Jim Meyering  <meyering@redhat.com>
50744
50745         fts: tweak inode comparison function
50746         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
50747         inode numbers, as documented.
50748
50749         fts: sort dirent entries on inode number before traversing
50750         This avoids a quadratic, seek-related performance penalty when
50751         operating on a directory containing many entries (measurable at 10k;
50752         3.5 hours at 2 million entries with a cold cache) on certain types
50753         of file systems, including ext3 and ext4, but not tmpfs.
50754         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
50755         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
50756         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
50757         (fs_handles_readdir_ordered_dirents_efficiently): New function.
50758         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
50759         (fts_build): Set the stat.st_ino member from D_INO.
50760         If it is likely to be useful, sort dirent entries on inode number.
50761
50762         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
50763         and the struct statfs.f_type member.
50764         * modules/fts (Depends-on): Add d-ino.
50765
50766 2008-09-26  Bruno Haible  <bruno@clisp.org>
50767
50768         * modules/sigpipe-die (Depends-on): Add sigpipe.
50769
50770         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
50771         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
50772         and GNULIB_STDIO_H_SIGPIPE are set.
50773         * lib/stdio-write.c: New file.
50774         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
50775         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50776         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50777         REPLACE_STDIO_WRITE_FUNCS.
50778         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
50779         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50780         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50781         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
50782         * modules/stdio (Files): Add lib/stdio-write.c.
50783         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
50784         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50785         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50786         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
50787         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
50788         REPLACE_FPRINTF_POSIX.
50789         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
50790         REPLACE_PRINTF_POSIX.
50791         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
50792         REPLACE_VFPRINTF_POSIX.
50793         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
50794         REPLACE_VPRINTF_POSIX.
50795         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
50796         SIGPIPE issue.
50797         * doc/posix-functions/fputc.texi: Likewise.
50798         * doc/posix-functions/fputs.texi: Likewise.
50799         * doc/posix-functions/fwrite.texi: Likewise.
50800         * doc/posix-functions/printf.texi: Likewise.
50801         * doc/posix-functions/putc.texi: Likewise.
50802         * doc/posix-functions/putchar.texi: Likewise.
50803         * doc/posix-functions/puts.texi: Likewise.
50804         * doc/posix-functions/vfprintf.texi: Likewise.
50805         * doc/posix-functions/vprintf.texi: Likewise.
50806
50807         * modules/safe-write (Depends-on): Add write.
50808
50809         * modules/sigpipe-tests: New file.
50810         * tests/test-sigpipe.c: New file.
50811         * tests/test-sigpipe.sh: New file.
50812
50813         * modules/write: New file.
50814         * lib/unistd.in.h: Include <sys/types.h>.
50815         (write): New declaration.
50816         * lib/write.c: New file.
50817         * m4/write.m4: New file.
50818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50819         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
50820         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
50821         GNULIB_WRITE, REPLACE_WRITE.
50822         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
50823         and the SIGPIPE issue.
50824
50825         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
50826         (raise): New declaration.
50827         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
50828         (ext_signal): New function.
50829         (rpl_raise): New function.
50830         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50831         GNULIB_SIGNAL_H_SIGPIPE.
50832         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
50833         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
50834
50835         * modules/sigpipe: New file.
50836         * m4/sigpipe.m4: New file.
50837
50838 2008-09-25  Derek Price  <derek@ximbiot.com>
50839             Bruno Haible  <bruno@clisp.org>
50840
50841         * gnulib-tool (func_import): Report all license incompatibilities, not
50842         just the first one.
50843
50844 2008-09-25  Bruno Haible  <bruno@clisp.org>
50845
50846         * gnulib-tool (func_import): When computing the edits, consider not
50847         only the Makefile.ams that exist but also those that will be generated.
50848
50849 2008-09-25  Simon Josefsson  <simon@josefsson.org>
50850
50851         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
50852         fixes gnulib-tool --test warning about duplicate dependency.
50853
50854 2008-09-25  Bruno Haible  <bruno@clisp.org>
50855
50856         * gnulib-tool: Don't ask the user to perform edits in the generated
50857         Makefile.ams.
50858         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
50859         apply to the Makefile.am being generated.
50860         (func_emit_tests_Makefile_am): Execute edits that apply to the
50861         Makefile.am being generated.
50862         (func_import): Setup list of Makefile.am edits before emitting the
50863         Makefile.ams, not at the end.
50864         (func_create_testdir): Update.
50865         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50866
50867 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50868
50869         * gnulib-tool (func_import): Store the --tests-base option in the
50870         comment in gnulib-cache.m4.
50871
50872 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
50873
50874         * NEWS: Document increased portability that sys_select now provides.
50875
50876         * lib/sys_select.in.h: Install select wrapper.
50877         * lib/sys_socket.in.h: Use more descriptive name when there is no
50878         select wrapper.
50879         * lib/winsock-select.c: New.
50880         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
50881         Require gl_HEADER_SYS_SOCKET.
50882         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
50883         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
50884         * tests/test-sys_select.c: Add functional tests.
50885
50886 2008-09-24  Eric Blake  <ebb9@byu.net>
50887
50888         open, fopen: close fd leak in last patch
50889         * lib/open.c (rpl_open): Close fd before returning error.
50890         * lib/fopen.c (rpl_fopen): Close fd before returning error.
50891         * doc/posix-functions/open.texi (open): Document that Irix also
50892         has the bug.
50893         * doc/posix-functions/fopen.texi (fopen): Likewise.
50894         Reported by Paolo Bonzini.
50895
50896 2008-09-24  Bruno Haible  <bruno@clisp.org>
50897
50898         Ensure that a filename ending in a slash cannot be used to access a
50899         non-directory.
50900         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
50901         to check whether it's really a directory.
50902         * lib/fopen.c: Include fcntl.h, unistd.h.
50903         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
50904         and fdopen().
50905         * modules/fopen (Depends-on): Add unistd.
50906         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
50907         * tests/test-fopen.c (main): Likewise.
50908         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
50909         * doc/posix-functions/fopen.texi: Likewise.
50910         Reported by Eric Blake.
50911
50912 2008-09-23  Eric Blake  <ebb9@byu.net>
50913
50914         c-stack: avoid compiler optimizations when provoking overflow
50915         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
50916         recursion harder to optimize, to ensure a stack overflow occurs.
50917         * tests/test-c-stack.c (recurse): Likewise.
50918         Borrowed from libsigsegv.
50919
50920         c-stack: work around Irix sigaltstack bug
50921         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
50922         whether sigaltstack uses wrong end of stack_t (copied in part from
50923         libsigsegv).
50924         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
50925         Irix bug, without requiring an over-allocation.
50926         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
50927         bug.
50928
50929         fopen: document mingw bug on directories
50930         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
50931         not allowing a stream visiting a directory, even though reading
50932         from such a stream is not portable.
50933
50934 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
50935
50936         * lib/poll.c: Rewrite.
50937         * modules/poll: Depend on alloca.
50938
50939 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
50940
50941         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
50942         instead define prototypes for a full set of wrappers.  Ensure
50943         that Cygwin does not use the compatibility code, which is only
50944         for MinGW.
50945         * lib/winsock.c: New.
50946         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
50947         * modules/sys_socket: Add lib/winsock.c.
50948
50949         * modules/poll-tests: Add errno and perror.
50950         * tests/test-poll.c: Use ioctl, not ioctlsocket.
50951
50952 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
50953
50954         * tests/test-poll.c: Downgrade minimum needed Winsock version.
50955
50956 2008-09-23  Bruno Haible  <bruno@clisp.org>
50957
50958         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
50959         * doc/glibc-functions/*: Likewise.
50960
50961 2008-09-23  Simon Josefsson  <simon@josefsson.org>
50962
50963         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
50964         success.
50965
50966 2008-09-22  Eric Blake  <ebb9@byu.net>
50967             Bruno Haible  <bruno@clisp.org>
50968
50969         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
50970         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
50971         supply %A but mishandle pseudo-NaN.
50972         Reported by Simon Josefsson.
50973
50974 2008-09-21  Bruno Haible  <bruno@clisp.org>
50975
50976         * tests/test-lock.c (main): Tweak skip message.
50977         * tests/test-tls.c (main): Likewise.
50978
50979 2008-09-21  Bruno Haible  <bruno@clisp.org>
50980
50981         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
50982         whether 'struct sigaction' has sa_sigaction here...
50983         (gl_PREREQ_SIG_HANDLER_H): ... not here.
50984         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
50985
50986 2008-09-21  Bruno Haible  <bruno@clisp.org>
50987
50988         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
50989         section.
50990         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
50991         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
50992         the new section.
50993         (Support for obsolete systems lacking POSIX:2001): New section.
50994         (String handling <string.h>): Move strdup to the new section.
50995         Suggested by Simon Josefsson and Paolo Bonzini.
50996
50997 2008-09-21  Bruno Haible  <bruno@clisp.org>
50998
50999         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
51000         exponents in %e and %g results on 'long double'. Needed for mingw's
51001         improved *printf functions.
51002         * tests/test-vasprintf-posix.c (test_function): Likewise.
51003         * tests/test-snprintf-posix.h (test_function): Likewise.
51004         * tests/test-sprintf-posix.h (test_function): Likewise.
51005         Reported by Eric Blake.
51006
51007 2008-09-21  Bruno Haible  <bruno@clisp.org>
51008
51009         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
51010         * tests/test-sprintf-posix.h (test_function): Likewise.
51011
51012 2008-09-21  Bruno Haible  <bruno@clisp.org>
51013
51014         * modules/getpass (Depends-on): Add strdup-posix.
51015
51016         New module 'strdup-posix'.
51017         * modules/strdup-posix: New file.
51018         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
51019         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
51020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51021         REPLACE_STRDUP.
51022         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
51023         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
51024         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51025         strdup-posix.
51026
51027         * modules/strdup (Depends-on): Remove malloc-posix.
51028
51029 2008-09-20  Bruno Haible  <bruno@clisp.org>
51030
51031         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
51032         Wildenhues.
51033
51034 2008-09-20  Bruno Haible  <bruno@clisp.org>
51035
51036         Ensure that wint_t gets defined on IRIX 5.3.
51037         * lib/wchar.in.h (wint_t): Define if not defined by the system.
51038         * lib/wctype.in.h (wint_t): Likewise.
51039         (__wctype_wint_t): Remove type.
51040         (isw*): Use wint_t instead of __wctype_wint_t.
51041         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
51042         * modules/wchar (Files): Add m4/wint_t.m4.
51043         (Makefile.am): Substitute HAVE_WINT_T.
51044         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
51045         * tests/test-wctype.c: Check that wint_t is defined.
51046         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
51047         * doc/posix-headers/wctype.texi: Likewise.
51048         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51049
51050 2008-09-18  Bruno Haible  <bruno@clisp.org>
51051
51052         * gnulib-tool (func_exit): Update comment.
51053
51054 2008-09-18  Simon Josefsson  <simon@josefsson.org>
51055
51056         * modules/getaddrinfo (Depends-on): Remove strdup, this module
51057         assumes strdup exists and does not depend on strdup to return
51058         ENOMEM on out of memory conditions.
51059
51060 2008-09-18  Bruno Haible  <bruno@clisp.org>
51061
51062         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
51063         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
51064         digits for the exponent.
51065
51066 2008-09-18  Jim Meyering  <meyering@redhat.com>
51067             Bruno Haible  <bruno@clisp.org>
51068
51069         * lib/vasnprintf.c (decimal_point_char): Define also if
51070         NEED_PRINTF_INFINITE_LONG_DOUBLE.
51071
51072 2008-09-16  Bruno Haible  <bruno@clisp.org>
51073         and Eric Blake  <ebb9@byu.net>
51074
51075         vasnprintf: support Irix 5.3
51076         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
51077         that mishandle long double infinity.
51078         Reported by Tom G. Christensen.
51079
51080 2008-09-16  Bruno Haible  <bruno@clisp.org>
51081
51082         * doc/glibc-functions/scandir.texi: Mention the function is missing on
51083         Solaris 9.
51084         * doc/glibc-functions/alphasort.texi: Likewise.
51085         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
51086
51087 2008-09-16  Jim Meyering  <meyering@redhat.com>
51088
51089         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
51090         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
51091         a umask modification leak out of a subshell.  Otherwise, the
51092         opensolaris /bin/sh would be accepted and thus cause unwarranted
51093         failures in the coreutils test suite.
51094
51095 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
51096
51097         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
51098         to succeed.
51099
51100 2008-09-16  Jim Meyering  <meyering@redhat.com>
51101
51102         avoid spurious test failure when library is built without ACL support
51103         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
51104         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
51105         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
51106         * tests/test-copy-acl.sh: Likewise.
51107
51108 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51109
51110         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
51111         based on character occurrence counts.
51112
51113 2008-09-15  Eric Blake  <ebb9@byu.net>
51114
51115         tests: avoid some compiler warnings
51116         * tests/test-memchr.c (main): Pass NULL indirectly.
51117         * tests/test-closein.c (main): Avoid unused variable.
51118
51119 2008-09-15  Bruno Haible  <bruno@clisp.org>
51120
51121         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
51122         are missing on OpenBSD 4.0 individually.
51123         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51124
51125 2008-09-15  Bruno Haible  <bruno@clisp.org>
51126
51127         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
51128         * doc/posix-functions/strerror.texi: Mention also Cygwin.
51129         * doc/posix-functions/perror.texi: Likewise.
51130         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
51131         is missing.
51132         Reported by Eric Blake.
51133
51134         * lib/errno.in.h: Use replacement values >= 2000.
51135         Reported by Eric Blake.
51136
51137 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51138
51139         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
51140         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
51141         limit.
51142         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
51143         compareseq was aborted.
51144
51145 2008-09-14  Bruno Haible  <bruno@clisp.org>
51146
51147         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
51148         yvec_edit_count.
51149         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
51150         (fstrcmp_bounded): Simplify result computation accordingly.
51151
51152 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51153
51154         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
51155         (fstrcmp): Define in terms of fstrcmp_bounded.
51156         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
51157         lower_bound argument.
51158         Return quickly if the result is certainly < lower_bound.
51159         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
51160
51161 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51162
51163         * lib/diffseq.h (EARLY_ABORT): New macro.
51164         (compareseq): Change return type to bool. Return true when EARLY_ABORT
51165         evaluates to true.
51166
51167 2008-09-14  Bruno Haible  <bruno@clisp.org>
51168
51169         * modules/perror-tests: New file.
51170         * tests/test-perror.sh: New file.
51171         * tests/test-perror.c: New file.
51172
51173         New module 'perror'.
51174         * lib/stdio.in.h (perror): New declaration.
51175         * lib/perror.c: New file.
51176         * m4/perror.m4: New file.
51177         * modules/perror: New file.
51178         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
51179         * doc/posix-functions/perror.texi: Mention the perror module.
51180         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
51181         REPLACE_PERROR.
51182         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
51183         REPLACE_PERROR.
51184
51185 2008-09-14  Bruno Haible  <bruno@clisp.org>
51186
51187         * modules/stdio (Makefile.am): Reorder to match the order in
51188         lib/stdio.in.h.
51189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51190
51191 2008-09-13  Bruno Haible  <bruno@clisp.org>
51192
51193         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
51194
51195 2008-09-13  Bruno Haible  <bruno@clisp.org>
51196
51197         Extend strerror to cover the added errno values.
51198         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
51199         (rpl_strerror): Provide error messages for the added errno values and
51200         for the WSA* values.
51201         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
51202         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
51203         strerror.
51204         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
51205         * modules/strerror (Depends-on): Add errno.
51206         * doc/posix-functions/strerror.texi: Document the change.
51207         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
51208         and EOVERFLOW.
51209
51210 2008-09-13  Bruno Haible  <bruno@clisp.org>
51211
51212         * modules/EOVERFLOW: Remove file.
51213         * m4/eoverflow.m4: Remove file.
51214         * modules/EOVERFLOW-tests: Remove file.
51215         * tests/test-EOVERFLOW.c: Remove file.
51216         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
51217         * modules/ftell (Depends-on): Likewise.
51218         * modules/getdelim (Depends-on): Likewise.
51219         * modules/getugroups (Depends-on): Likewise.
51220         * modules/poll (Depends-on): Likewise.
51221         * modules/snprintf (Depends-on): Likewise.
51222         * modules/sprintf-posix (Depends-on): Likewise.
51223         * modules/vasnprintf (Depends-on): Likewise.
51224         * modules/vasprintf (Depends-on): Likewise.
51225         * modules/vfprintf-posix (Depends-on): Likewise.
51226         * modules/vsnprintf (Depends-on): Likewise.
51227         * modules/vsprintf-posix (Depends-on): Likewise.
51228         * modules/xvasprintf (Depends-on): Likewise.
51229         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51230         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
51231         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
51232         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
51233         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51234         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
51235         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
51236         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
51237         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51238         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
51239         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
51240         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
51241         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51242         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
51243         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
51244         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
51245         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51246         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
51247         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
51248         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
51249         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51250         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
51251         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
51252         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
51253         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
51254         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51255         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
51256         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
51257         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
51258         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
51259         * MODULES.html.sh: Remove EOVERFLOW.
51260         * NEWS: Mention the change.
51261
51262 2008-09-13  Bruno Haible  <bruno@clisp.org>
51263
51264         * modules/errno-tests: New file.
51265         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
51266
51267         * lib/errno.in.h: New file.
51268         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
51269         * modules/errno: New file.
51270         * doc/posix-headers/errno.texi: Update documentation.
51271         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
51272
51273 2008-09-13  Bruno Haible  <bruno@clisp.org>
51274
51275         * tests/test-poll.c: Use #if for native Windows, rather than testing
51276         __MSVCRT__.
51277
51278 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51279             Bruno Haible  <bruno@clisp.org>
51280
51281         * lib/glob.c: Don't include <pwd.h> on native Windows.
51282         (WINDOWS32): New macro.
51283         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
51284
51285 2008-09-13  Bruno Haible  <bruno@clisp.org>
51286
51287         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
51288         (ETIMEDOUT): Remove macro.
51289         (glthread_cond_timedwait_multithreaded): New declaration.
51290         (glthread_cond_timedwait): Use it.
51291         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
51292         (glthread_cond_timedwait_multithreaded): New function.
51293
51294 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51295
51296         * modules/poll-tests: Do not check for io.h.
51297         * tests/test-poll.c: Check for __MSVCRT__ instead.
51298
51299 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51300
51301         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
51302         * modules/poll-tests: Add inet_pton, stdbool, sockets.
51303         * tests/test-poll.c: Use them.  Use _pipe on Windows.
51304
51305 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51306
51307         * modules/poll-tests: New.
51308         * tests/test-poll.c: New.
51309
51310 2008-09-12  Eric Blake  <ebb9@byu.net>
51311
51312         frexp: test for NetBSD failure on -0.0
51313         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
51314         not all, bugs from NetBSD 3.0 have been fixed.
51315         * doc/posix-functions/frexp.texi (frexp): Document bug.
51316         Reported by Thomas Klausner.
51317
51318         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
51319         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
51320         literal -0.0.
51321         Reported by Jonathan C. Patschke <jp@centtech.com>.
51322
51323 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51324
51325         * lib/glthread/cond.h: Use dummy implementation also if
51326         USE_WIN32_THREADS.
51327
51328 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51329
51330         * modules/fnmatch-posix (License): Change to LGPLv2+.
51331         * modules/fnmatch-gnu (License): Likewise.
51332
51333 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51334
51335         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
51336
51337 2008-09-11  Jim Meyering  <meyering@redhat.com>
51338
51339         * users.txt: Add gtk-vnc.
51340
51341 2008-09-08  Simon Josefsson  <simon@josefsson.org>
51342
51343         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
51344         rotate amounts.
51345
51346         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
51347         required for 16-bit and 8-bit rotates.
51348         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
51349         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
51350         UINT8_MAX instead of hard-coded constants.
51351         Suggested by Paul Eggert.
51352
51353 2008-09-07  Bruno Haible  <bruno@clisp.org>
51354
51355         * tests/test-striconveh.c (main): Check behaviour when converting from
51356         UTF-7.
51357
51358         Make striconveh work better with stateful encodings.
51359         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
51360         that iconv does not increment the inptr when returning -1/EINVAL.
51361
51362 2008-09-07  Bruno Haible  <bruno@clisp.org>
51363
51364         * build-aux/config.rpath: Update according to libtool-2.2.6.
51365         * build-aux/config.libpath: Likewise.
51366
51367 2008-09-06  Bruno Haible  <bruno@clisp.org>
51368
51369         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
51370         * lib/freadptr.c (freadptr): Likewise.
51371         * lib/freadseek.c (freadptrinc): Likewise.
51372         Reported by Simon Josefsson.
51373
51374 2008-09-06  Bruno Haible  <bruno@clisp.org>
51375
51376         * modules/freadptr (License): Change to LGPLv2+.
51377         * modules/freadseek (License): Likewise.
51378         Suggested by Eric Blake.
51379
51380         * modules/memchr2 (License): Change to LGPLv2+.
51381         Approved by Eric Blake.
51382
51383 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51384             Bruno Haible  <bruno@clisp.org>
51385
51386         Make gnulib-tool work with native 'sed' on AIX.
51387         * gnulib-tool (sed_noop): New variable.
51388         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
51389         func_add_or_update, func_create_testdir): Use it to initialize sed
51390         script variables.
51391         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51392
51393 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
51394             Bruno Haible  <bruno@clisp.org>
51395
51396         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
51397         also works after #include directives.
51398
51399 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
51400
51401         getdate.y: reject an out-of-range timezone value
51402         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
51403         the range [-24...+24].  When specified with only one or two digits,
51404         * tests/test-getdate.c: Tests for the fix.
51405         * doc/getdate.texi: Document this change.
51406
51407 2008-09-03  Bruno Haible  <bruno@clisp.org>
51408
51409         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
51410
51411 2008-09-02  Simon Josefsson  <simon@josefsson.org>
51412
51413         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
51414         <bruce.korb@gmail.com> with ideas from Ben Pfaff
51415         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
51416         Blake <ebb9@byu.net>.
51417
51418         * tests/test-bitrotate.c: Add more test vectors.
51419
51420 2008-09-02  Eric Blake  <ebb9@byu.net>
51421
51422         vasnprintf-posix: handle large precision via %.*d
51423         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
51424         when handling it ourselves.
51425         * tests/test-vasnprintf-posix.c (test_function): Add test.
51426         * tests/test-snprintf-posix.h (test_function): Likewise.
51427         * tests/test-sprintf-posix.h (test_function): Likewise.
51428         * tests/test-vasprintf-posix.c (test_function): Likewise.
51429         Reported by Alain Guibert.
51430
51431 2008-09-01  Eric Blake  <ebb9@byu.net>
51432
51433         c-stack: make configure-time check more robust
51434         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
51435         successful sigaction call.
51436         Reported by Tom G. Christensen.
51437
51438 2008-09-01  Bruno Haible  <bruno@clisp.org>
51439
51440         New module 'findprog-lgpl'.
51441         * modules/findprog-lgpl: New file.
51442         * lib/findprog-lgpl.c: New file.
51443         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
51444         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
51445         to decide whether to use strdup or xstrdup, concatenated_filename or
51446         xconcatenated_filename.
51447
51448 2008-09-01  Bruno Haible  <bruno@clisp.org>
51449
51450         Split module 'concat-filename' into 'concat-filename' (LGPL) and
51451         'xconcat-filename' (GPL).
51452         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
51453         (License): Change to LGPLv2+.
51454         * modules/xconcat-filename: New file.
51455         * lib/concat-filename.h (concatenated_filename): Change specification.
51456         (xconcatenated_filename): New declaration.
51457         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
51458         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
51459         memory situations.
51460         * lib/xconcat-filename.c: New file.
51461         * NEWS: Mention the change.
51462         * lib/findprog.c: Include concat-filename.h, not filename.h.
51463         (find_in_path): Use xconcatenated_filename instead of
51464         concatenated_filename.
51465         * lib/javacomp.c: Include concat-filename.h, not filename.h.
51466         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
51467         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
51468         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
51469         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
51470         instead of concatenated_filename.
51471         * lib/javaexec.c: Include concat-filename.h, not filename.h.
51472         (execute_java_class): Use xconcatenated_filename instead of
51473         concatenated_filename.
51474         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
51475         * modules/javacomp (Depends-on): Likewise.
51476         * modules/javaexec (Depends-on): Likewise.
51477
51478 2008-09-01  Bruno Haible  <bruno@clisp.org>
51479
51480         Split module 'filename' into 'filename' and 'concat-filename'.
51481         * modules/filename: Keep only lib/filename.h.
51482         (License): Change to LGPLv2+.
51483         * modules/concat-filename: New file, extracted from modules/filename.
51484         * lib/filename.h (concatenated_filename): Remove declaration.
51485         * lib/concat-filename.h: New file, extracted from lib/filename.h.
51486         * lib/concat-filename.c: Include concat-filename.h.
51487         * NEWS: Mention the change.
51488
51489 2008-09-01  Simon Josefsson  <simon@josefsson.org>
51490
51491         * lib/bitrotate.h (rotl8, rotr8): Add.
51492
51493         * modules/bitrotate (configure.ac): Need
51494         AC_REQUIRE([AC_C_INLINE]).
51495         (Description): Mention stdint.h.  Reported by Bruno Haible
51496         <bruno@clisp.org>.
51497
51498         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
51499         Paolo Bonzini <bonzini@gnu.org>.
51500
51501 2008-08-31  Bruno Haible  <bruno@clisp.org>
51502
51503         Assume Solaris specific bi-arch conventions on Solaris systems.
51504         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
51505         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
51506         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
51507         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
51508         like acl_libdirstem.
51509         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
51510         acl_libdirstem.
51511         * NEWS: Mention the change.
51512         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
51513
51514 2008-08-31  Jim Meyering  <meyering@redhat.com>
51515
51516         * lib/strftime.h: Add comments describing the two added arguments.
51517
51518         remove duplicate #include directives
51519         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
51520         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
51521
51522 2008-08-31  Bruno Haible  <bruno@clisp.org>
51523
51524         New module 'sigpipe-die'.
51525         * modules/sigpipe-die: New file.
51526         * lib/sigpipe-die.h: New file.
51527         * lib/sigpipe-die.c: New file.
51528         * MODULES.html.sh (Signal handling): Add sigpipe-die.
51529
51530 2008-08-31  Bruno Haible  <bruno@clisp.org>
51531
51532         Don't override previously installed signal handlers.
51533         * lib/fatal-signal.c (saved_sigactions): New variable.
51534         (uninstall_handlers): Reset the signal to the saved handler, not
51535         to SIG_DFL (except when ignored).
51536         (install_handlers): Save the previous handlers.
51537
51538 2008-08-30  Bruno Haible  <bruno@clisp.org>
51539
51540         * gnulib-tool (func_reset_sigpipe): New function.
51541         (func_get_automake_snippet, func_modules_transitive_closure,
51542         func_import): Invoke it before a join command that reads from stdin,
51543         to avoid "echo: write error: Broken pipe" error messages on stderr.
51544         Reported by Sam Steingold <sds@gnu.org>.
51545
51546 2008-08-30  Bruno Haible  <bruno@clisp.org>
51547
51548         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
51549         Code copied from m4/open.m4.
51550         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
51551         access and the filename ends in a slash. Code copied from lib/open.c.
51552         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
51553         * tests/test-fopen.c (main): Check against bug with trailing slash.
51554
51555 2008-08-29  Bruno Haible  <bruno@clisp.org>
51556
51557         Avoid some "gcc -pedantic" warnings.
51558         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
51559         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
51560         * lib/dirent.in.h: Likewise.
51561         * lib/fcntl.in.h: Likewise.
51562         * lib/float.in.h: Likewise.
51563         * lib/iconv.in.h: Likewise.
51564         * lib/inttypes.in.h: Likewise.
51565         * lib/locale.in.h: Likewise.
51566         * lib/math.in.h: Likewise.
51567         * lib/netinet_in.in.h: Likewise.
51568         * lib/search.in.h: Likewise.
51569         * lib/signal.in.h: Likewise.
51570         * lib/stdarg.in.h: Likewise.
51571         * lib/stdint.in.h: Likewise.
51572         * lib/stdio.in.h: Likewise.
51573         * lib/stdlib.in.h: Likewise.
51574         * lib/string.in.h: Likewise.
51575         * lib/strings.in.h: Likewise.
51576         * lib/sys_select.in.h: Likewise.
51577         * lib/sys_socket.in.h: Likewise.
51578         * lib/sys_stat.in.h: Likewise.
51579         * lib/sys_time.in.h: Likewise.
51580         * lib/sysexits.in.h: Likewise.
51581         * lib/time.in.h: Likewise.
51582         * lib/unistd.in.h: Likewise.
51583         * lib/wchar.in.h: Likewise.
51584         * lib/wctype.in.h: Likewise.
51585         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
51586         * modules/fchdir (Makefile.am): Likewise.
51587         * modules/fcntl (Makefile.am): Likewise.
51588         * modules/float (Makefile.am): Likewise.
51589         * modules/iconv_open (Makefile.am): Likewise.
51590         * modules/inttypes (Makefile.am): Likewise.
51591         * modules/locale (Makefile.am): Likewise.
51592         * modules/math (Makefile.am): Likewise.
51593         * modules/netinet_in (Makefile.am): Likewise.
51594         * modules/search (Makefile.am): Likewise.
51595         * modules/signal (Makefile.am): Likewise.
51596         * modules/stdarg (Makefile.am): Likewise.
51597         * modules/stdint (Makefile.am): Likewise.
51598         * modules/stdio (Makefile.am): Likewise.
51599         * modules/stdlib (Makefile.am): Likewise.
51600         * modules/string (Makefile.am): Likewise.
51601         * modules/strings (Makefile.am): Likewise.
51602         * modules/sys_select (Makefile.am): Likewise.
51603         * modules/sys_socket (Makefile.am): Likewise.
51604         * modules/sys_stat (Makefile.am): Likewise.
51605         * modules/sys_time (Makefile.am): Likewise.
51606         * modules/sysexits (Makefile.am): Likewise.
51607         * modules/time (Makefile.am): Likewise.
51608         * modules/unistd (Makefile.am): Likewise.
51609         * modules/wchar (Makefile.am): Likewise.
51610         * modules/wctype (Makefile.am): Likewise.
51611         Reported by Reuben Thomas <rrt@sc3d.org>.
51612
51613 2008-08-29  Bruno Haible  <bruno@clisp.org>
51614
51615         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
51616         any more.
51617
51618 2008-08-29  Simon Josefsson  <simon@josefsson.org>
51619
51620         * MODULES.html.sh (Misc): Add bitrotate.
51621
51622         * modules/bitrotate: New file.
51623
51624         * lib/bitrotate.h: New file.
51625
51626         * modules/bitrotate-tests: New file.
51627
51628         * tests/test-bitrotate.c: New file.
51629
51630         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
51631         on the bitrotate module.
51632
51633         * lib/arctwo.c: Use new bitrotate module.
51634
51635 2008-08-29  Jim Meyering  <meyering@redhat.com>
51636
51637         bootstrap: merge changes from coreutils
51638         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
51639         of copied files.  Remove a kludge, now that this is fixed.
51640         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
51641         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
51642         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
51643
51644 2008-08-29  Bruno Haible  <bruno@clisp.org>
51645
51646         * MODULES.html.sh: Remove --cvs-urls option.
51647
51648 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
51649
51650         maint.mk: adjust to file name change
51651         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
51652
51653 2008-08-28  Jim Meyering  <meyering@redhat.com>
51654
51655         * modules/getndelim2 (License): Relicense to LGPLv2+.
51656         Approved by Richard Stallman for the version of 1995, and by
51657         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
51658
51659 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
51660
51661         * lib/getdelim.c (flockfile, funlockfile): Make all of them
51662         dummy if one is not available.  Do not touch them if
51663         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
51664         (getc_maybe_unlocked): New.
51665         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
51666
51667 2008-08-26  Eric Blake  <ebb9@byu.net>
51668
51669         doc/INSTALL: resync from autoconf
51670         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
51671         (INSTALL_PRELUDE): Delete; this is done more efficiently by
51672         moving...
51673         * install.texi [!autoconf]: ...here.  Resync from autoconf.
51674         * INSTALL: Regenerate.
51675         * INSTALL.ISO: New file.
51676         * INSTALL.UTF-8: Likewise.
51677
51678 2008-08-26  Jim Meyering  <meyering@redhat.com>
51679
51680         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
51681         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
51682         these definitions conditional, so that they may be overridden, too.
51683
51684 2008-08-26  Bruno Haible  <bruno@clisp.org>
51685
51686         Generate INSTALL file variants with prettier quotes.
51687         * doc/Makefile (INSTALL_PRELUDE): New macro.
51688         (INSTALL): Use it.
51689         (INSTALL.ISO, INSTALL.UTF-8): New rules.
51690
51691 2008-08-26  Bruno Haible  <bruno@clisp.org>
51692
51693         Run makeinfo in an English locale.
51694         * doc/Makefile (MAKEINFO): New variable.
51695
51696 2008-08-26  Bruno Haible  <bruno@clisp.org>
51697
51698         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
51699         Suggested by Eric Blake.
51700
51701 2008-08-25  Bruno Haible  <bruno@clisp.org>
51702
51703         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
51704
51705 2008-08-25  Eric Blake  <ebb9@byu.net>
51706
51707         c-stack: test that stack overflow can be caught
51708         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
51709         that platform allows handling stack overflow; at least OS/2 EMX
51710         has sigaltstack, but crashes before transferring control to
51711         handler on stack overflow.
51712         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
51713         check for HAVE_STACK_OVERFLOW_HANDLING.
51714         Reported by Elbert Pol.
51715
51716 2008-08-25  Bruno Haible  <bruno@clisp.org>
51717
51718         * doc/posix-functions/strftime.texi: Fix description of strftime
51719         module.
51720
51721 2008-08-24  Bruno Haible  <bruno@clisp.org>
51722
51723         * tests/uniwidth/test-uc_width2.c: New file.
51724         * tests/uniwidth/test-uc_width2.sh: New file.
51725         * modules/uniwidth/width-tests (Files): Add the new files.
51726         (TESTS): Add uniwidth/test-uc_width2.sh.
51727         (TESTS_ENVIRONMENT): New variable.
51728         (check_PROGRAMS): Add test-uc_width2.
51729         (test_uc_width2_SOURCES): New variable.
51730
51731         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
51732         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
51733         not 0x00AB.
51734         Reported by Alexander V. Lukyanov <lav@netis.ru>.
51735
51736 2008-08-22  Eric Blake  <ebb9@byu.net>
51737
51738         test-lock, test-tls: mention why a test is skipped
51739         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
51740         skipped.
51741         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
51742
51743         count-one-bits: relax license
51744         * modules/count-one-bits (License): Relicense to LGPLv2+.
51745         Suggested by Ludovic Courtès, approved by Ben Pfaff.
51746
51747 2008-08-22  Andreas Schwab  <schwab@suse.de>
51748
51749         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
51750         Remove spurious space in assignment.
51751
51752 2008-08-21  Simon Josefsson  <simon@josefsson.org>
51753
51754         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
51755         Paul Eggert <eggert@CS.UCLA.EDU>.
51756
51757 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
51758
51759         * modules/gettext: Add m4/threadlib.m4.
51760
51761 2008-08-19  Eric Blake  <ebb9@byu.net>
51762
51763         test-c-stack: fix compilation failure on FreeBSD 5.0
51764         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
51765         headers before <sys/resource.h>.
51766         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
51767         the bug.
51768         Reported by Nelson H. F. Beebe.
51769
51770         strverscmp: migrate from "strverscmp.h" to <string.h>
51771         * modules/string (Makefile.am): Add new hooks.
51772         * modules/strverscmp (Files): Remove strverscmp.h.
51773         (Depends-on): Add string.
51774         (configure.ac): Add indicator.
51775         (Include): Mention new header.
51776         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
51777         defaults.
51778         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
51779         results.
51780         * lib/strverscmp.h: Delete.
51781         * lib/string.in.h (strverscmp): Provide declaration, when needed.
51782         * tests/test-strverscmp.c (includes): Adjust client.
51783         * lib/check-version.c (includes): Likewise.
51784         * NEWS: Document the change.
51785
51786         strverscmp: add unit test
51787         * modules/strverscmp-tests: New file.
51788         * tests/test-strverscmp.c: Likewise.
51789
51790 2008-08-19  Simon Josefsson  <simon@josefsson.org>
51791
51792         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
51793         regarding Windows crypto stuff, from Mono.
51794
51795 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
51796
51797         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
51798         if present, for intel RND.  Return error on failures.
51799
51800 2008-08-18  Ben Pfaff  <blp@gnu.org>
51801
51802         gitlog-to-changelog: give better diagnostic for failed pipe-open
51803         * build-aux/gitlog-to-changelog: Improve error message: suggest
51804         that the version of Git may be too old.
51805
51806 2008-08-18  Simon Josefsson  <simon@josefsson.org>
51807
51808         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
51809         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
51810
51811 2008-08-18  Bruno Haible  <bruno@clisp.org>
51812
51813         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
51814         pthread_in_use().
51815
51816 2008-08-18  Bruno Haible  <bruno@clisp.org>
51817
51818         * lib/glthread/threadlib.c: Include <pthread.h>.
51819
51820 2008-08-18  Bruno Haible  <bruno@clisp.org>
51821
51822         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
51823         glthread_recursive_lock_* macros.
51824         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
51825         Fix syntax error.
51826
51827 2008-08-18  Bruno Haible  <bruno@clisp.org>
51828
51829         * lib/glthread/thread.c: Avoid forcing a context switch right after
51830         thread creation.
51831
51832 2008-08-17  Bruno Haible  <bruno@clisp.org>
51833
51834         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
51835         * lib/glthread/thread.h: Provide Win32 specific implementation.
51836         * modules/thread (Files): Add lib/glthread/thread.c.
51837         (Depends-on): Add lock.
51838         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
51839
51840 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51841
51842         New module 'yield'.
51843         * modules/yield: New file.
51844         * lib/glthread/yield.h: New file.
51845         * m4/yield.m4: New file.
51846         * MODULES.html.sh (Multithreading): Add yield.
51847
51848 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51849
51850         New module 'thread'.
51851         * modules/thread: New file.
51852         * lib/glthread/thread.h: New file.
51853         * m4/thread.m4: New file.
51854         * MODULES.html.sh (Multithreading): Add thread.
51855
51856 2008-08-17  Bruno Haible  <bruno@clisp.org>
51857
51858         * lib/glthread/lock.h: Include <stdlib.h> always.
51859         * lib/glthread/tls.h: Likewise.
51860         * lib/glthread/cond.h: Likewise.
51861
51862 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51863
51864         New module 'cond'.
51865         * modules/cond: New file.
51866         * lib/glthread/cond.h: New file.
51867         * lib/glthread/cond.c: New file.
51868         * m4/cond.m4: New file.
51869         * MODULES.html.sh (Multithreading): Add cond.
51870
51871 2008-08-16  Eric Blake  <ebb9@byu.net>
51872
51873         c-stack: fix regression on Irix 5.3 from 2008-06-21
51874         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
51875         sa_sigaction...
51876         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
51877         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
51878         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
51879         * modules/signal (Makefile.am): Use the value.
51880         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
51881         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
51882         * doc/posix-headers/signal.texi (signal.h): Document this
51883         portability issue.
51884         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
51885         Reported by Tom G. Christensen.
51886
51887 2008-08-17  Bruno Haible  <bruno@clisp.org>
51888
51889         New module 'threadlib'.
51890         * modules/threadlib: New file.
51891         * lib/glthread/threadlib.c: New file, extracted from
51892         lib/glthread/lock.c.
51893         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
51894         functions.
51895         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
51896         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
51897         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
51898         macros.
51899         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
51900         (gl_DISABLE_THREADS): Remove macro.
51901         * modules/lock (Files): Remove build-aux/config.rpath.
51902         (Depends-on): Remove havelib. Add threadlib.
51903         (configure.ac-early): Remove section.
51904         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
51905         * modules/tls (Depends-on): Remove lock. Add threadlib.
51906         (Link): New section, copied from threadlib.
51907         * MODULES.html.sh (Multithreading): Add threadlib.
51908
51909 2008-08-14  Bruno Haible  <bruno@clisp.org>
51910
51911         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
51912         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
51913         glthread_rwlock_unlock, glthread_rwlock_destroy,
51914         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
51915         glthread_recursive_lock_destroy): Define as macros always.
51916         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
51917         glthread_lock_lock.
51918         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
51919         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
51920         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
51921         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
51922         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
51923         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
51924         (glthread_recursive_lock_lock_func): Renamed from
51925         glthread_recursive_lock_lock.
51926         (glthread_recursive_lock_unlock_func): Renamed from
51927         glthread_recursive_lock_unlock.
51928         (glthread_recursive_lock_destroy_func): Renamed from
51929         glthread_recursive_lock_destroy.
51930
51931 2008-08-14  Bruno Haible  <bruno@clisp.org>
51932
51933         * lib/glthread/lock.h: Renamed from lib/lock.h.
51934         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
51935         * lib/glthread/tls.h: Renamed from lib/tls.h.
51936         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
51937         * lib/fstrcmp.c: Update includes.
51938         * lib/strsignal.c: Update includes.
51939         * modules/lock (Files, Makefile.am): Update.
51940         (Include): Change to "glthread/lock.h".
51941         * modules/tls (Files, Makefile.am): Update.
51942         (Include): Change to "glthread/tls.h".
51943         * tests/test-lock.c: Update includes.
51944         * tests/test-tls.c: Update includes.
51945         * NEWS: Mention the renamed header files.
51946
51947 2008-08-11  Jim Meyering  <meyering@redhat.com>
51948
51949         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
51950
51951 2008-08-11  Eric Blake  <ebb9@byu.net>
51952
51953         test-c-stack: avoid C99-ism
51954         * tests/test-c-stack.c (main): Fix whitespace, move declaration
51955         before statement.
51956         Reported by Alain Guibert.
51957
51958 2008-08-10  Jim Meyering  <meyering@redhat.com>
51959
51960         ensure that return value of uinttostr et al are not ignored
51961         * lib/inttostr.h (__GNUC_PREREQ): Define.
51962         (__attribute_warn_unused_result__): Define.
51963         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
51964
51965 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
51966
51967         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
51968         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
51969
51970 2008-08-07  Jim Meyering  <meyering@redhat.com>
51971
51972         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
51973
51974         * modules/mkstemp (License): Relicense under LGPLv2+.
51975         * modules/tempname (License): Likewise.
51976
51977 2008-08-06  Bruno Haible  <bruno@clisp.org>
51978
51979         * lib/poll.c (poll): Further micro-optimization.
51980
51981 2008-08-06  Jim Meyering  <meyering@redhat.com>
51982
51983         inet_pton.c: use locale-independent tolower
51984         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
51985         (inet_pton6): Use c_tolower rather than tolower.
51986         * modules/inet_pton (Depends-on): Add c-ctype.
51987
51988 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
51989
51990         * lib/poll.c (poll): Avoid division when timeout is 0, cache
51991         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
51992
51993 2008-08-06  Jim Meyering  <meyering@redhat.com>
51994
51995         * modules/inet_pton (License): Relicense under LGPLv2+.
51996
51997 2008-08-03  Bruno Haible  <bruno@clisp.org>
51998
51999         Additional non-aborting API for lock and tls.
52000         * lib/lock.h: Include <errno.h>.
52001         (glthread_lock_init): New macro/function.
52002         (gl_lock_init): Define as wrapper around glthread_lock_init.
52003         (glthread_lock_lock): New macro/function.
52004         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
52005         (glthread_lock_unlock): New macro/function.
52006         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
52007         (glthread_lock_destroy): New macro/function.
52008         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
52009         (glthread_rwlock_init): New macro/function.
52010         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
52011         (glthread_rwlock_rdlock): New macro/function.
52012         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
52013         (glthread_rwlock_wrlock): New macro/function.
52014         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
52015         (glthread_rwlock_unlock): New macro/function.
52016         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
52017         (glthread_rwlock_destroy): New macro/function.
52018         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
52019         (glthread_recursive_lock_init): New macro/function.
52020         (gl_recursive_lock_init): Define as wrapper around
52021         glthread_recursive_lock_init.
52022         (glthread_recursive_lock_lock): New macro/function.
52023         (gl_recursive_lock_lock): Define as wrapper around
52024         glthread_recursive_lock_lock.
52025         (glthread_recursive_lock_unlock): New macro/function.
52026         (gl_recursive_lock_unlock): Define as wrapper around
52027         glthread_recursive_lock_unlock.
52028         (glthread_recursive_lock_destroy): New macro/function.
52029         (gl_recursive_lock_destroy): Define as wrapper around
52030         glthread_recursive_lock_destroy.
52031         (glthread_once): New macro/function.
52032         (gl_once): Define as wrapper around glthread_once.
52033         Update function declarations.
52034         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
52035         glthread_rwlock_init. Return error code.
52036         (glthread_rwlock_rdlock_multithreaded): Renamed from
52037         glthread_rwlock_rdlock. Return error code.
52038         (glthread_rwlock_wrlock_multithreaded): Renamed from
52039         glthread_rwlock_wrlock. Return error code.
52040         (glthread_rwlock_unlock_multithreaded): Renamed from
52041         glthread_rwlock_unlock. Return error code.
52042         (glthread_rwlock_destroy_multithreaded): Renamed from
52043         glthread_rwlock_destroy. Return error code.
52044         (glthread_recursive_lock_init_multithreaded): Renamed from
52045         glthread_recursive_lock_init. Return error code.
52046         (glthread_recursive_lock_lock_multithreaded): Renamed from
52047         glthread_recursive_lock_lock. Return error code.
52048         (glthread_recursive_lock_unlock_multithreaded): Renamed from
52049         glthread_recursive_lock_unlock. Return error code.
52050         (glthread_recursive_lock_destroy_multithreaded): Renamed from
52051         glthread_recursive_lock_destroy. Return error code.
52052         (glthread_once_call): Make static.
52053         (glthread_once_multithreaded): Renamed from glthread_once.
52054         * lib/tls.h: Include <errno.h>.
52055         (glthread_tls_key_init): New macro/function.
52056         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
52057         (glthread_tls_set): New macro/function.
52058         (gl_tls_set): Define as wrapper around glthread_tls_set.
52059         (glthread_tls_key_destroy): New macro/function.
52060         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
52061         Update function declarations.
52062         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
52063         glthread_tls_get.
52064         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52065
52066 2008-08-04  Eric Blake  <ebb9@byu.net>
52067
52068         gnumakefile: use space, not TAB, outside of targets
52069         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
52070
52071 2008-08-02  Jim Meyering  <meyering@redhat.com>
52072
52073         getdate.y: avoid locale-dependent date parsing failure
52074         In Turkish locales, getdate would fail to recognize keywords
52075         containing a lowercase "i".  The solution is not to rely on
52076         locale-sensitive case-conversion.
52077         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
52078         (lookup_word): Use c_toupper in place of toupper.
52079         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
52080         Reported by Vefa Bicakci <bicave@superonline.com> in
52081         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
52082         * modules/getdate (Depends-on): Add c-ctype.
52083
52084 2008-08-02  Bruno Haible  <bruno@clisp.org>
52085
52086         * gnulib-tool (func_import): When updating or creating a .gitignore
52087         file, prepend each added line with a slash, and ignore leading slashes
52088         from the existing lines.
52089         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52090
52091 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52092
52093         Portability fix for GNU make 3.79.1.
52094         * top/GNUmakefile: Avoid 'else COND', which older GNU make
52095         versions do not understand.
52096
52097 2008-08-01  Bruno Haible  <bruno@clisp.org>
52098
52099         Work around bug of HP-UX 10.20 cc with -0.0 literal.
52100         * tests/test-isnanf.h (zero): New variable.
52101         (main): Avoid literal -0.0f.
52102         * tests/test-isnand.h (zero): New variable.
52103         (main): Avoid literal -0.0.
52104         * tests/test-isnanl.h (zero): New variable.
52105         (main): Avoid literal -0.0L.
52106         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
52107         (test_float, test_double, test_long_double): Avoid literals -0.0f,
52108         -0.0, -0.0L.
52109         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
52110         (test_signbitd): Avoid literal -0.0.
52111         (test_signbitl): Avoid literal -0.0L.
52112         * tests/test-ceilf1.c (zero): New variable.
52113         (main): Avoid literal -0.0f.
52114         * tests/test-ceill.c (zero): New variable.
52115         (main): Avoid literal -0.0L.
52116         * tests/test-floorf1.c (zero): New variable.
52117         (main): Avoid literal -0.0f.
52118         * tests/test-floorl.c (zero): New variable.
52119         (main): Avoid literal -0.0L.
52120         * tests/test-roundf1.c (zero): New variable.
52121         (main): Avoid literal -0.0f.
52122         * tests/test-round1.c (zero): New variable.
52123         (main): Avoid literal -0.0.
52124         * tests/test-roundl.c (zero): New variable.
52125         (main): Avoid literal -0.0L.
52126         * tests/test-truncf1.c (zero): New variable.
52127         (main): Avoid literal -0.0f.
52128         * tests/test-trunc1.c (zero): New variable.
52129         (main): Avoid literal -0.0.
52130         * tests/test-truncl.c (zero): New variable.
52131         (main): Avoid literal -0.0L.
52132         * tests/test-frexp.c (zero): New variable.
52133         (main): Avoid literal -0.0.
52134         * tests/test-frexpl.c (zero): New variable.
52135         (main): Avoid literal -0.0L.
52136         * tests/test-ldexpl.c (zero): New variable.
52137         (main): Avoid literal -0.0L.
52138         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52139         (zerod, zerol): New variables.
52140         (test_function): Avoid literals -0.0, -0.0L.
52141         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52142         (zerod, zerol): New variables.
52143         (test_function): Avoid literals -0.0, -0.0L.
52144         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52145         (zerod, zerol): New variables.
52146         (test_function): Avoid literals -0.0, -0.0L.
52147         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52148         (zerod, zerol): New variables.
52149         (test_function): Avoid literals -0.0, -0.0L.
52150         * tests/test-strtod.c (zero): New variable.
52151         (main): Avoid literal -0.0.
52152         Reported by Jonathan C. Patschke <jp@centtech.com>.
52153
52154 2008-07-31  Jim Meyering  <meyering@redhat.com>
52155
52156         sha256.h: correct definition of SHA224_DIGEST_SIZE
52157         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
52158         Reported by Paulie Pena IV <paulie4@gmail.com>.
52159         Define as 224 / 8, rather than as a literal.
52160         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
52161         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
52162         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
52163
52164 2008-07-31  Bruno Haible  <bruno@clisp.org>
52165
52166         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
52167         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
52168         Reported by Jonathan Patschke <jp@centtech.com>.
52169
52170 2008-07-31  Bruno Haible  <bruno@clisp.org>
52171
52172         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
52173         Reported by Paolo Bonzini <bonzini@gnu.org>.
52174
52175 2008-07-30  Eric Blake  <ebb9@byu.net>
52176
52177         test-strtod: allow compilation without -lm
52178         * tests/test-strtod.c (main): Avoid link dependence on fabs.
52179         Reported by Dennis Clarke <blastwave@gmail.com>.
52180
52181 2008-07-28  Jim Meyering  <meyering@redhat.com>
52182
52183         bootstrap: work also when there are no .po files in po/
52184         * build-aux/bootstrap (update_po_files): Complete the change
52185         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
52186
52187 2008-07-27  Jim Meyering  <meyering@redhat.com>
52188
52189         * users.txt: Add zile.
52190
52191 2008-07-26  Ben Pfaff  <blp@gnu.org>
52192
52193         Add missing dependencies on new m4/exponent[fdl].m4 files.
52194         * modules/isnanf-nolibm: Add m4/exponentf.m4.
52195         * modules/isnand-nolibm: Add m4/exponentd.m4.
52196         * modules/isnanl-nolibm: Add m4/exponentl.m4.
52197         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
52198         m4/isnan[fdl].m4, because the macros actually used moved.
52199         Reported by Jim Meyering.
52200
52201 2008-07-14  Ben Pfaff  <blp@gnu.org>
52202
52203         Add isinf module.
52204         * lib/isinf.c: New file.
52205         * lib/math.in.h: Define isinf macro if we have decided to replace
52206         it.
52207         * m4/isinf.m4: New file.
52208         * m4/math_h.m4: Initialize and substitute variables for isinf
52209         module.
52210         * modules/isinf: New file.
52211         * modules/isinf-tests: New file.
52212         * modules/math: Add substitutions for new module.
52213         * tests/test-isinf.c: New file.
52214         * doc/posix-functions/isinf.texi: Mention new module.
52215         * MODULES.html.sh: Mention new module.
52216
52217 2008-07-14  Ben Pfaff  <blp@gnu.org>
52218
52219         Factor out some macros for use by additional modules.
52220         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
52221         exponentf.m4.
52222         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
52223         exponentd.m4.
52224         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
52225         file exponentl.m4.
52226         * m4/exponentf.m4: New file.
52227         * m4/exponentd.m4: New file.
52228         * m4/exponentl.m4: New file.
52229         * modules/isnanf: Use new file m4/exponentf.m4.
52230         * modules/isnand: Use new file m4/exponentd.m4.
52231         * modules/isnanl: Use new file m4/exponentl.m4.
52232
52233 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
52234
52235         mktime.c: normalize tp->tm_isdst value to -1/0/1.
52236         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
52237         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
52238         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
52239
52240         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
52241         readlink on platforms without PATH_MAX.
52242
52243 2008-07-21  Eric Blake  <ebb9@byu.net>
52244
52245         Warn, not fail, on stale version.
52246         * top/GNUmakefile (_curr-ver): Tone down previous patch.
52247
52248         Don't allow installation with stale devel version number.
52249         * top/GNUmakefile (_is-install-target): New macro.
52250         (_curr-ver): Forbid installation with stale version number.
52251
52252 2008-07-20  Bruno Haible  <bruno@clisp.org>
52253
52254         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
52255         TESTS_ENVIRONMENT.
52256         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
52257
52258 2008-07-20  Bruno Haible  <bruno@clisp.org>
52259
52260         * lib/c-stack.h (c_stack_action): Add documentation.
52261         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
52262
52263 2008-07-20  Bruno Haible  <bruno@clisp.org>
52264
52265         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
52266         * modules/readlink (License): Likewise.
52267
52268 2008-07-17  Eric Blake  <ebb9@byu.net>
52269
52270         * modules/c-stack (Link): Fix typo.
52271
52272         Make c-stack use libsigsegv, when available.
52273         * modules/c-stack (Depends-on): Add libsigsegv.
52274         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
52275         needed.
52276         * lib/c-stack.c (SIGSTKSZ): Define fallback.
52277         (segv_handler, overflow_handler, c_stack_action)
52278         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
52279         implementation when libsigsegv is available, but only when using
52280         the library is necessary.
52281         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
52282         comment, explaining why XSI check fails on Linux.
52283         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
52284         * tests/test-c-stack2.sh: Tweak skip message.
52285         * NEWS: Document new link-time requirements.
52286
52287 2008-07-16  Eric Blake  <ebb9@byu.net>
52288
52289         c-stack: Expose false positives when not using libsigsegv.
52290         * modules/c-stack-tests (Files): Expand test.
52291         * tests/test-c-stack.c (main): Add means to conditionally trigger
52292         non-overflow SIGSEGV.
52293         * tests/test-c-stack2.sh: New file.
52294
52295 2008-07-14  Bruno Haible  <bruno@clisp.org>
52296
52297         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
52298         Reported by Eric Blake.
52299
52300 2008-07-14  Sam Steingold  <sds@gnu.org>
52301             Bruno Haible  <bruno@clisp.org>
52302
52303         New module libsigsegv.
52304         * modules/libsigsegv: New file.
52305         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
52306         modifications.
52307         * MODULES.html.sh (Signal handling): New section.
52308
52309 2008-07-14  Bruno Haible  <bruno@clisp.org>
52310
52311         * modules/unictype/ctype-* (Description): Add the word "function".
52312         Improves the resulting doc in MODULES.html.
52313
52314 2008-07-12  Ben Pfaff  <blp@gnu.org>
52315
52316         Add longlong module.
52317         * modules/longlong: New file.
52318
52319 2008-07-12  Bruno Haible  <bruno@clisp.org>
52320
52321         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
52322         to empty.
52323
52324 2008-07-10  Ben Pfaff  <blp@gnu.org>
52325
52326         Add isnan module.
52327         * doc/posix-functions/isnan.texi: Mention new module.
52328         * lib/math.in.h: Define isnan macro if we have decided to replace
52329         it.
52330         * m4/isnan.m4: New file.
52331         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
52332         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
52333         also.
52334         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
52335         redundancy.
52336         * m4/math_h.m4: Initialize and substitute variables for isnan
52337         module.
52338         * modules/isnan: New file.
52339         * modules/isnan-tests: New file.
52340         * modules/math: Add substitutions for new module.
52341         * tests/test-isnan.c: New file.
52342         * MODULES.html.sh: Mention new module.
52343
52344 2008-07-10  Ben Pfaff  <blp@gnu.org>
52345
52346         Add isnanf module.
52347         * lib/isnanf.m4: New file.
52348         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
52349         (gl_HAVE_ISNANF_IN_LIBM): New macro.
52350         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
52351         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
52352         * modules/isnanf: New file.
52353         * modules/isnanf-tests: New file.
52354         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
52355         files.
52356         * tests/test-isnanf-nolibm.c: factored most of its contents into
52357         new file tests/test-isnanf.h.
52358         * tests/test-isnanf.h: New file.
52359         * tests/test-isnanf.c: New file.
52360         * MODULES.html.sh: Mention new module.
52361         * doc/glibc-functions/isnanf.texi: Mention new module.
52362
52363 2008-07-10  Ben Pfaff  <blp@gnu.org>
52364
52365         Add isnand module.
52366         * lib/isnand.h: New file.
52367         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
52368         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
52369         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
52370         functionality also.
52371         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
52372         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
52373         (gl_HAVE_ISNAND_IN_LIBM): New macro.
52374         * modules/isnand: New file.
52375         * modules/isnand-tests: New file.
52376         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
52377         files.
52378         * tests/test-isnand-nolibm.c: factored most of its contents into
52379         new file tests/test-isnand.h.
52380         * tests/test-isnand.h: New file.
52381         * tests/test-isnand.c: New file.
52382         * MODULES.html.sh: Mention new module.
52383
52384 2008-07-10  Ben Pfaff  <blp@gnu.org>
52385
52386         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
52387         * lib/isnand.h: Rename lib/isnand-nolibm.h.
52388         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
52389         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
52390         * modules/isnanf-nolibm: Update references to renamed files.
52391         * modules/isnand-nolibm: Likewise.
52392         * modules/isnanf-nolibm-tests: Likewise.
52393         * modules/isnand-nolibm-tests: Likewise.
52394         * lib/frexp.c: Likewise.
52395         * lib/isfinite.c: Likewise.
52396         * lib/signbitd.c: Likewise.
52397         * lib/signbitf.c: Likewise.
52398         * lib/vasnprintf.c: Likewise.
52399         * tests/test-ceilf1.c: Likewise.
52400         * tests/test-ceilf2.c: Likewise.
52401         * tests/test-floorf1.c: Likewise.
52402         * tests/test-floorf2.c: Likewise.
52403         * tests/test-frexp.c: Likewise.
52404         * tests/test-round1.c: Likewise.
52405         * tests/test-round2.c: Likewise.
52406         * tests/test-roundf1.c: Likewise.
52407         * tests/test-strtod.c: Likewise.
52408         * tests/test-trunc1.c: Likewise.
52409         * tests/test-trunc2.c: Likewise.
52410         * tests/test-truncf1.c: Likewise.
52411         * tests/test-truncf2.c: Likewise.
52412         * NEWS: Mention the renamed header files.
52413
52414 2008-07-11  Jim Meyering  <meyering@redhat.com>
52415
52416         vc-list-files: make the last-resort awk code more portable
52417         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
52418         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
52419         does not support it.
52420
52421 2008-07-10  Eric Blake  <ebb9@byu.net>
52422
52423         Work with tar's bootstrap.
52424         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
52425         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
52426         an m4 comment.
52427
52428 2008-07-09  Jim Meyering  <meyering@redhat.com>
52429
52430         posix-shell.m4: fix typo that made this test malfunction
52431         * m4/posix-shell.m4: Remove capitalization in variable name.
52432
52433 2008-07-08  Bruno Haible  <bruno@clisp.org>
52434
52435         * m4/onceonly.m4: Update comments.
52436         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52437
52438 2008-07-04  Jim Meyering  <meyering@redhat.com>
52439
52440         * users.txt: Add vc-dwim.
52441         (bison, coreutils): Use the gitweb URL.
52442
52443 2008-07-03  Jim Meyering  <meyering@redhat.com>
52444
52445         * users.txt: Add libffcall.  From Sam Steingold.
52446
52447 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
52448
52449         getdate.y: do not ignore TZ with relative day, month or year offset
52450         * lib/getdate.y (get_date): Move the tz-handling block to follow the
52451         relative-date-handling, since otherwise, the latter would clobber the
52452         sole output (an updated Start value) of the tz-handling block.
52453         * tests/test-getdate.c: Tests for the fix
52454
52455 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52456
52457         Recognize 'foo_LIBRARIES += libgnu.a'.
52458         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
52459         makefile snippet has already specified an installation location,
52460         also using '+='.
52461
52462 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
52463
52464         getdate.y: factor out common actions
52465         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
52466         Use them in place of open-coded actions.
52467
52468 2008-07-01  Simon Josefsson  <simon@josefsson.org>
52469
52470         Add self-test for getdate module.
52471         * modules/getdate-tests: New file.
52472         * tests/test-getdate.c: New file.
52473
52474 2008-06-29  Bruno Haible  <bruno@clisp.org>
52475
52476         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
52477         .gitignore.
52478         Reported by Sylvain Beucler <beuc@beuc.net>.
52479
52480 2008-06-29  Bruno Haible  <bruno@clisp.org>
52481
52482         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
52483         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
52484
52485 2008-06-29  Bruno Haible  <bruno@clisp.org>
52486
52487         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
52488         EXTRA_DIST.
52489         Reported by Sylvain Beucler <beuc@beuc.net>.
52490
52491 2008-06-26  Jim Meyering  <meyering@redhat.com>
52492
52493         make several modules depend on the "open" module
52494         This provides slightly increased consistency when opening-for-write
52495         the name of a non-directory spelled with a trailing slash.
52496         * modules/chdir-safer: Likewise.
52497         * modules/chown: Likewise.
52498         * modules/clean-temp: Likewise.
52499         * modules/copy-file: Likewise.
52500         * modules/fchdir: Likewise.
52501         * modules/fcntl-safer: Likewise.
52502         * modules/pipe: Likewise.
52503         * modules/utime: Likewise.
52504         Prompted by Eric Blake and Bruno Haible.
52505
52506 2008-06-24  Andreas Schwab  <schwab@suse.de>
52507
52508         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
52509         literals can be used as initializers for global variables.
52510
52511 2008-06-23  Eric Blake  <ebb9@byu.net>
52512
52513         Make gnulib-cache.m4 easier to diff.
52514         * gnulib-tool (func_import): Allow newlines when reading cached
52515         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
52516
52517 2008-06-23  Bruno Haible  <bruno@clisp.org>
52518
52519         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
52520         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
52521         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
52522         m4/signalblocking.m4.
52523         (gl_PREREQ_SIGACTION): Don't invoke it.
52524         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
52525         gl_PREREQ_SIG_HANDLER_H.
52526         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
52527         Don't check for sigaction here.
52528
52529 2008-06-23  Bruno Haible  <bruno@clisp.org>
52530
52531         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
52532         (install_handlers): Don't set the SA_RESETHAND flag.
52533
52534 2008-06-23  Bruno Haible  <bruno@clisp.org>
52535
52536         * m4/sigaction.m4: Comment fixes.
52537         * lib/signal.in.h: Likewise.
52538
52539 2008-06-23  Eric Blake  <ebb9@byu.net>
52540
52541         Fix typo.
52542         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
52543
52544         Avoid SA_ namespace.
52545         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
52546         Reported by Ralf Wildenhues.
52547
52548         Avoid test failure due to SA_RESTORER.
52549         * tests/test-sigaction.c (SA_MASK): New macro.
52550         (main): Avoid failing due to extension flags being set.
52551         Reported by Jim Meyering.
52552
52553         Revert use of sig-handler.h in sigprocmask.c.
52554         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
52555         it requires the existence of struct sigaction.
52556         * lib/sigprocmask.c (handler_t): Restore typedef.
52557         (rpl_signal, old_handlers): Use local type.
52558
52559 2008-06-22  Bruno Haible  <bruno@clisp.org>
52560
52561         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
52562         conditionally.
52563         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52564
52565 2008-06-22  Bruno Haible  <bruno@clisp.org>
52566
52567         * doc/posix-functions/siginterrupt.texi: Move note.
52568
52569         * lib/signal.in.h (SA_RESTART): New macro.
52570         * lib/sigaction.c: Update comment.
52571
52572         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
52573
52574         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
52575         (gl_PREREQ_SIGPROCMASK): Invoke it.
52576         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
52577
52578         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
52579
52580         * lib/sigprocmask.c: Update a comment.
52581
52582 2008-06-21  Eric Blake  <ebb9@byu.net>
52583
52584         Use sigaction module rather than signal().
52585         * modules/c-stack (Depends-on): Add sigaction.
52586         * modules/fatal-signal (Depends-on): Likewise.
52587         * modules/nanosleep (Depends-on): Likewise.
52588         * modules/sigprocmask (Files): Add sig-handler.h.
52589         * modules/sigaction (Files): Likewise.
52590         * lib/sig-handler.h (get_handler): New file, suggested by Paul
52591         Eggert.
52592         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
52593         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
52594         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
52595         (init_fatal_signals): Likewise.
52596         * lib/nanosleep.c (rpl_nanosleep): Likewise.
52597         (siginterrupt): Delete fallback.
52598         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
52599         instead.
52600         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
52601         siginterrupt.
52602
52603         New module sigaction, for mingw.
52604         * modules/sigaction: New module...
52605         * modules/sigaction-tests: ...and its test.
52606         * m4/sigaction.m4: New file.
52607         * lib/sigaction.c: Likewise.
52608         * tests/test-sigaction.c: Likewise.
52609         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
52610         * modules/signal (Makefile.am): Likewise.
52611         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
52612         needed.
52613         * doc/posix-headers/signal.texi (signal.h): Mention provided
52614         types.
52615         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
52616         that sigaction is preferable.
52617         * doc/posix-functions/sigaction.texi (sigaction): Mention new
52618         module.
52619         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52620         sigaction.
52621
52622         Improve robustness of sigprocmask by overriding signal.
52623         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
52624         is in use.
52625         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
52626         (SIGKILL, SIGSTOP): Provide fallbacks.
52627         (rpl_signal): Implement.
52628         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
52629         signal can be called inside handlers.
52630
52631         Fix nanosleep module on mingw.
52632         * modules/nanosleep (Depends-on): Add sys_select.
52633         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
52634
52635         Fix licensing of sigprocmask.
52636         * modules/raise (License): Relicense as LGPL.
52637
52638 2008-06-21  Bruno Haible  <bruno@clisp.org>
52639
52640         * lib/propername.c (proper_name_utf8): Don't use the transliterated
52641         result if it contains question marks.
52642         Reported by Michael Geng <linux@michaelgeng.de>.
52643
52644 2008-06-19  Bruno Haible  <bruno@clisp.org>
52645
52646         Fix CVS-ism.
52647         * doc/gnulib.texi: Include updated-stamp.texi.
52648         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
52649         (updated-stamp.texi): New rule.
52650         (gnulib.info): Depend on it.
52651         * doc/.gitignore: Add updated-stamp.texi.
52652         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
52653
52654 2008-06-19  Bruno Haible  <bruno@clisp.org>
52655
52656         * doc/Makefile (gnulib.info): Update and simplify dependencies.
52657         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52658
52659 2008-06-19  Eric Blake  <ebb9@byu.net>
52660
52661         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
52662         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
52663         Reported by Stepan Kasal.
52664
52665 2008-06-18  Bruno Haible  <bruno@clisp.org>
52666
52667         * lib/fatal-signal.c (init_fatal_signals): Add comment.
52668         Reported by Eric Blake.
52669
52670 2008-06-18  Eric Blake  <ebb9@byu.net>
52671
52672         Work around cygwin 1.5.25 strsignal bug.
52673         * tests/test-strsignal.c: Allow for const char *.
52674         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
52675
52676 2008-06-18  Simon Josefsson  <simon@josefsson.org>
52677
52678         * users.txt: Update URL to article and add author/date
52679         information.
52680
52681 2008-06-17  Bruno Haible  <bruno@clisp.org>
52682
52683         New macro gl_DISABLE_THREADS.
52684         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
52685         if the user did not pass --enable-threads or --disable-threads option.
52686         (gl_DISABLE_THREADS): New macro.
52687         Reported by Eric Blake <ebb9@byu.net>.
52688
52689 2008-06-17  Bruno Haible  <bruno@clisp.org>
52690
52691         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
52692         when the macro ignores it.
52693         Based on a patch by Eric Blake <ebb9@byu.net>.
52694
52695 2008-06-17  Bruno Haible  <bruno@clisp.org>
52696
52697         * modules/tls (License): Change to LGPLv2+.
52698         Reported by Eric Blake.
52699
52700 2008-06-17  Eric Blake  <ebb9@byu.net>
52701
52702         Simplify c-stack prerequisites.
52703         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
52704         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
52705         no longer requires <ucontext.h> to exist.  Optimize setrlimit
52706         check.
52707         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
52708         <sys/resource.h>.
52709
52710         Move c-stack test into testsuite.
52711         * modules/c-stack-tests: New file.
52712         * lib/c-stack.c [DEBUG]: Move test program...
52713         * tests/test-c-stack.c: ...into this new file.  Skip rather than
52714         fail test if sigaltstack is lacking.
52715         * tests/test-c-stack.sh: New driver file.
52716
52717 2008-06-16  Eric Blake  <ebb9@byu.net>
52718
52719         Use raise module consistently.
52720         * modules/fatal-signal (Depends-on): Add raise.
52721         * modules/sigprocmask (Depends-on): Likewise.
52722         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
52723         * lib/sigprocmask.c (sigprocmask): Likewise.
52724         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
52725         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
52726
52727         Fix compliance bug in sigpending.
52728         * lib/sigprocmask.c (sigpending): Return pending array via
52729         parameter, not return value.
52730
52731 2008-06-14  Eric Blake  <ebb9@byu.net>
52732
52733         Improve obstack-printf test code.
52734         * tests/test-obstack-printf.c (test_function): Fix comment, and
52735         simplify usage of obstack_* in macros.  Add a test for coverage.
52736         Reported by Bruno Haible.
52737
52738 2008-06-14  Bruno Haible  <bruno@clisp.org>
52739
52740         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
52741         array size as a constant, not as a const variable.
52742         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
52743         AC_USE_SYSTEM_EXTENSIONS.
52744         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
52745         Test whether the obstack_printf function actually exists.
52746         * modules/obstack-printf (Depends-on): Add extensions.
52747         (Include): Remove obstack.h.
52748         * modules/obstack-printf-posix (Depends-on): Add extensions.
52749         (Include): Remove obstack.h.
52750
52751 2008-06-13  Eric Blake  <ebb9@byu.net>
52752
52753         Add obstack-printf and obstack-printf-posix modules.
52754         * modules/obstack-printf: New file.
52755         * modules/obstack-printf-posix: Likewise.
52756         * MODULES.html.sh (Misc): Mention them.
52757         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52758         Likewise.
52759         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52760         Likewise.
52761         * modules/stdio (Makefile.am): Accomodate new modules.
52762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52763         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
52764         Declare.
52765         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
52766         functions.
52767         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
52768         (gl_REPLACE_OBSTACK_PRINTF): New macros
52769         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
52770         * tests/test-obstack-printf.c: New file.
52771         * modules/obstack-printf-tests: Likewise.
52772         * modules/obstack-printf-posix-tests: Likewise.
52773
52774 2008-06-11  Bruno Haible  <bruno@clisp.org>
52775
52776         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
52777         * lib/open.c: Include errno.h.
52778         (open): Fail when attempting to write to a file that has a trailing
52779         slash.
52780         * tests/test-open.c (main): Test against trailing slash bug.
52781         * doc/posix-functions/open.texi: Mention the trailing slash bug.
52782
52783 2008-06-10  Bruno Haible  <bruno@clisp.org>
52784
52785         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
52786         for $? to work inside the trap command, with various /bin/sh-s.
52787         * tests/test-vc-list-files-cvs.sh: Likewise.
52788
52789 2008-06-10  Bruno Haible  <bruno@clisp.org>
52790
52791         * lib/acl-internal.h: Don't include gettext.h here.
52792         * lib/set-mode-acl.c: Include gettext.h here.
52793         * lib/copy-acl.c: Likewise.
52794
52795 2008-06-10  Bruno Haible  <bruno@clisp.org>
52796
52797         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
52798         * lib/wait-process.c (wait_subprocess): Likewise.
52799         * lib/execute.h (execute): Add termsigp argument.
52800         * lib/execute.c (execute): Likewise.
52801         * lib/csharpcomp.c (compile_csharp_using_pnet,
52802         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
52803         * lib/csharpexec.c (execute_csharp_using_pnet,
52804         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
52805         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
52806         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
52807         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
52808         is_jikes_present): Update.
52809         * lib/javaexec.c (execute_java_class): Update.
52810         * lib/javaversion.c (execute_and_read_line): Update.
52811         * NEWS: Document the changes.
52812         Reported by Eric Blake.
52813
52814 2008-06-10  Eric Blake  <ebb9@byu.net>
52815
52816         Add missing include.
52817         * tests/test-strstr.c (includes): Add <signal.h>.
52818         * tests/test-strcasestr.c (includes): Likewise.
52819         * tests/test-memmem.c (includes): Likewise.
52820
52821 2008-06-10  Bruno Haible  <bruno@clisp.org>
52822
52823         * lib/wait-process.c (wait_subprocess): Add an assertion.
52824
52825 2008-06-10  Bruno Haible  <bruno@clisp.org>
52826
52827         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
52828
52829 2008-06-10  Bruno Haible  <bruno@clisp.org>
52830
52831         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
52832         using alarm().
52833         * tests/test-strcasestr.c (main): Likewise.
52834         * tests/test-strstr.c (main): Likewise.
52835
52836 2008-06-09  Bruno Haible  <bruno@clisp.org>
52837
52838         Work around the Solaris 10 ACE ACLs ABI change.
52839         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
52840         declare if ACL_NO_TRIVIAL is present.
52841         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
52842         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
52843         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
52844         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
52845         define if ACL_NO_TRIVIAL is present.
52846         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
52847         and use the current ABI.
52848         (file_has_acl): Use same #if condition as elsewhere.
52849         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
52850         in use, and use the current ABI.
52851         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
52852         Reported by Jim Meyering.
52853
52854 2008-06-09  Eric Blake  <ebb9@byu.net>
52855
52856         Work around environments that (stupidly) ignore SIGALRM.
52857         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
52858         before using alarm().
52859         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52860         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52861         Reported by Ian Beckwith <ianb@erislabs.net>.
52862
52863         Produce autobuild blurb earlier in log.
52864         * modules/autobuild (configure.ac-early): Move AB_INIT here.
52865
52866 2008-06-09  Jim Meyering  <meyering@redhat.com>
52867         and OndÅ™ej Vašík  <ovasik@redhat.com>
52868
52869         utimens.c: correct kernel bug work-around
52870         OndÅ™ej Vašík found that the invalid return value of 280 indicates
52871         failure, not success, and the kernel bug we're trying to work
52872         around affects not just the utimensat call, but also the fallback
52873         futimens call.
52874         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
52875         not success.
52876         [HAVE_FUTIMENS]: Use the same work-around, here.
52877
52878 2008-06-09  Jim Meyering  <meyering@redhat.com>
52879
52880         add more guards around definition of ACE_-related code
52881         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
52882         ALLOW and ACE_OWNER are also defined.
52883
52884 2008-06-08  Bruno Haible  <bruno@clisp.org>
52885
52886         * lib/acl-internal.h: Add me as co-author.
52887         * lib/file-has-acl.c: Likewise.
52888         * lib/set-mode-acl.c: Likewise.
52889         * lib/copy-acl.c: Likewise.
52890
52891 2008-06-08  Bruno Haible  <bruno@clisp.org>
52892
52893         Add support for AIX ACLs.
52894         * lib/acl-internal.h (acl_nontrivial): New declaration.
52895         * lib/file-has-acl.c (acl_nontrivial): New function.
52896         (file_has_acl): Add implementation using AIX 4 ACL API.
52897         * lib/set-mode-acl.c (qset_acl): Likewise.
52898         * lib/copy-acl.c (qcopy_acl): Likewise.
52899
52900 2008-06-08  Bruno Haible  <bruno@clisp.org>
52901
52902         Add support for HP-UX ACLs.
52903         * lib/acl-internal.h (acl_nontrivial): New declaration.
52904         * lib/file-has-acl.c (acl_nontrivial): New function.
52905         (file_has_acl): Add implementation using HP-UX 11 ACL API.
52906         * lib/set-mode-acl.c (qset_acl): Likewise.
52907         * lib/copy-acl.c (qcopy_acl): Likewise.
52908
52909 2008-06-08  Bruno Haible  <bruno@clisp.org>
52910
52911         Add support for Cygwin ACLs.
52912         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
52913         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
52914         the chmod_or_fchmod call.
52915         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
52916
52917 2008-06-08  Bruno Haible  <bruno@clisp.org>
52918
52919         Fix bug with setuid modes in Solaris 10+ code.
52920         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
52921         succeeded, when the mode contains some special bits.
52922
52923 2008-06-08  Bruno Haible  <bruno@clisp.org>
52924
52925         Add support for Solaris 7..10 ACLs.
52926         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
52927         declarations.
52928         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
52929         functions.
52930         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
52931         * lib/set-mode-acl.c (qset_acl): Likewise.
52932         * lib/copy-acl.c (qcopy_acl): Likewise.
52933
52934 2008-06-08  Bruno Haible  <bruno@clisp.org>
52935
52936         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
52937         declaration.
52938         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
52939         (acl_access_nontrivial): Remove MacOS X case.
52940         (file_has_acl): Use acl_extended_nontrivial.
52941         * lib/copy-acl.c (qcopy_acl): Likewise.
52942
52943 2008-06-08  Bruno Haible  <bruno@clisp.org>
52944
52945         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
52946
52947 2008-06-08  Jim Meyering  <meyering@redhat.com>
52948
52949         * modules/acl (Maintainer): Add Bruno Haible.
52950
52951 2008-06-07  Bruno Haible  <bruno@clisp.org>
52952
52953         Improve support for Tru64 ACLs.
52954         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
52955         ACL on OSF/1.
52956
52957 2008-06-07  Bruno Haible  <bruno@clisp.org>
52958
52959         Add support for MacOS X ACLs.
52960         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
52961         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
52962         * lib/set-mode-acl.c (qset_acl): Likewise.
52963         * lib/copy-acl.c (qcopy_acl): Likewise.
52964
52965 2008-06-07  Bruno Haible  <bruno@clisp.org>
52966
52967         Fix memory leak introduced on 2008-05-22.
52968         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
52969         use.
52970
52971 2008-06-07  Bruno Haible  <bruno@clisp.org>
52972
52973         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
52974         to construct an empty ACL.
52975
52976 2008-06-07  Bruno Haible  <bruno@clisp.org>
52977
52978         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
52979         precisely.
52980         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
52981
52982 2008-06-07  Bruno Haible  <bruno@clisp.org>
52983
52984         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
52985         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
52986
52987 2008-06-07  Bruno Haible  <bruno@clisp.org>
52988
52989         * doc/posix-functions/_setjmp.texi: Explain the use of this function
52990         regardless of POSIX.
52991         * doc/posix-functions/_longjmp.texi: Likewise.
52992         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
52993         SystemV platform in this case.
52994
52995 2008-06-06  Eric Blake  <ebb9@byu.net>
52996
52997         Document abort() bugs.
52998         * doc/posix-functions/abort.texi (abort): Mention anomalies.
52999
53000         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
53001         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
53002         sigsetjmp.
53003         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
53004         siglongjmp, but only as a macro.
53005         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
53006         is obsolete.
53007         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
53008
53009         Tweak documentation to cover cygwin argz bugs.
53010         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
53011         argz bug fix; no code change needed since no cygwin releases
53012         occurred between the last fix and the bug being tested.
53013         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
53014         module and recently fixed cygwin bugs.
53015         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
53016         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
53017         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
53018         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
53019         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
53020         Likewise.
53021         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
53022         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
53023         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
53024         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
53025         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
53026         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
53027         Likewise.
53028
53029         Avoid gcc warning on cygwin.
53030         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
53031         !ACL_NO_TRIVIAL]: Avoid unused variable.
53032
53033 2008-06-05  Eric Blake  <ebb9@byu.net>
53034
53035         Be tolerant of UNKNOWN version in gnulib-tool test dir.
53036         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
53037         git-version-gen fails to come up with a version.
53038         Reported by Simon Josefsson.
53039
53040 2008-06-05  Jim Meyering  <meyering@redhat.com>
53041             Paul Eggert  <eggert@cs.ucla.edu>
53042
53043         utimens.c: work around a probable Linux kernel bug
53044         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
53045         appears to be a kernel bug that causes utimensat to return 280
53046         instead of 0, indicating success.
53047
53048 2008-06-04  Bruno Haible  <bruno@clisp.org>
53049
53050         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
53051         2008-06-01 commit.
53052
53053 2008-06-04  Bruno Haible  <bruno@clisp.org>
53054
53055         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
53056         * lib/file-has-acl.c (acl_access_nontrivial): New function.
53057         (file_has_acl): Use it. Save errno afterwards.
53058         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
53059
53060 2008-06-03  Bruno Haible  <bruno@clisp.org>
53061
53062         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
53063         draft code. Simplify #ifs.
53064         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
53065         Put Solaris code after POSIX-draft code. Fix comments regarding
53066         Solaris 10, HP-UX. Mention Cygwin.
53067         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
53068
53069 2008-06-03  Eric Blake  <ebb9@byu.net>
53070
53071         Provide fallback for older kernels.
53072         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
53073         Provide runtime fallback if kernel lacks support.
53074         Reported by Mike Frysinger.
53075
53076 2008-06-02  Bruno Haible  <bruno@clisp.org>
53077
53078         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
53079         it exists.
53080
53081 2008-06-02  Bruno Haible  <bruno@clisp.org>
53082
53083         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
53084         * lib/copy-acl.c (qcopy_acl): Update comment.
53085
53086 2008-06-02  Bruno Haible  <bruno@clisp.org>
53087
53088         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
53089         like ACL APIs.
53090
53091 2008-06-02  Bruno Haible  <bruno@clisp.org>
53092
53093         * tests/test-file-has-acl.sh: Use different code for Cygwin.
53094         * tests/test-set-mode-acl.sh: Likewise.
53095         * tests/test-copy-acl.sh: Likewise.
53096         * tests/test-copy-file.sh: Likewise.
53097
53098 2008-06-02  Bruno Haible  <bruno@clisp.org>
53099
53100         * tests/test-file-has-acl.sh: Remove unused code.
53101
53102 2008-06-01  Bruno Haible  <bruno@clisp.org>
53103
53104         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
53105         (copy_acl): Just a wrapper around qcopy_acl that emits the error
53106         messages.
53107         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
53108
53109 2008-06-01  Bruno Haible  <bruno@clisp.org>
53110
53111         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
53112         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
53113         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
53114         APIs.
53115         * modules/acl-tests (configure.ac): Remove tests now contained in
53116         m4/acl.m4.
53117
53118 2008-06-02  Jim Meyering  <meyering@redhat.com>
53119
53120         announce-gen: use a better key-server host name
53121         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
53122         it may be more consistently reliable.  Suggested by Werner Koch
53123         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
53124
53125 2008-06-01  Bruno Haible  <bruno@clisp.org>
53126
53127         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
53128         Reported by Voroskoi Andras <voroskoi@gmail.com>.
53129
53130 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
53131
53132         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
53133
53134 2008-06-01  Bruno Haible  <bruno@clisp.org>
53135
53136         New ACL tests.
53137         * tests/test-file-has-acl.sh: New file.
53138         * tests/test-file-has-acl.c: New file.
53139         * tests/test-set-mode-acl.sh: New file.
53140         * tests/test-set-mode-acl.c: New file.
53141         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
53142         * tests/test-copy-acl.c: New file.
53143         * modules/acl-tests: New file, based on modules/copy-file-tests.
53144         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
53145         (Depends-on): Add acl-tests.
53146         (configure.ac): Remove checks.
53147         (Makefile.am): Don't create test-sameacls program here any more.
53148
53149 2008-06-01  Bruno Haible  <bruno@clisp.org>
53150
53151         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
53152         * tests/test-sameacls.c: Include progname.h.
53153         (main): Invoke set_program_name. Portability fixes for MacOS X,
53154         Solaris, HP-UX.
53155
53156 2008-06-01  Bruno Haible  <bruno@clisp.org>
53157
53158         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
53159         function.
53160         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
53161
53162 2008-06-01  Bruno Haible  <bruno@clisp.org>
53163
53164         * modules/rpmatch (Depends-on): Add strdup.
53165
53166 2008-06-01  Bruno Haible  <bruno@clisp.org>
53167
53168         * lib/pipe.c: Include unistd-safer.h.
53169         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
53170         * modules/pipe (Depends-on): Add unistd-safer.
53171
53172 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53173
53174         * modules/autobuild (configure.ac): Call AB_INIT.
53175
53176 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53177
53178         * tests/test-getaddrinfo.c: Don't print debug messages by default.
53179         Suggested by Bruno Haible <bruno@clisp.org>.
53180
53181 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53182
53183         * tests/test-base64.c: Cast size_t to unsigned long when invoking
53184         printf.  Use %lu instead of %d.  Reported by Bruno Haible
53185         <bruno@clisp.org>.
53186
53187 2008-05-29  Eric Blake  <ebb9@byu.net>
53188
53189         Prefer new POSIX 200x interfaces over futimesat.
53190         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
53191         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
53192         when available.
53193         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
53194
53195 2008-05-28  Bruno Haible  <bruno@clisp.org>
53196
53197         * modules/stpcpy (License): Change to LGPLv2+.
53198         Requested by David Lutterkort <dlutter@redhat.com>.
53199
53200 2008-05-27  Bruno Haible  <bruno@clisp.org>
53201
53202         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
53203         current mingw.
53204         Reported by Jose E. Marchesi <jemarch@gnu.org>.
53205
53206 2008-05-27  Bruno Haible  <bruno@clisp.org>
53207
53208         * modules/iconv_open (Link): New section, from module 'iconv'.
53209         * modules/striconv (Link): Likewise.
53210         * modules/striconveh (Link): Likewise.
53211         * modules/xstriconv (Link): Likewise.
53212         * modules/unicodeio (Link): Likewise.
53213         * modules/propername (Link): Likewise.
53214         Reported by Jim Meyering.
53215
53216 2008-05-26  Jim Meyering  <meyering@redhat.com>
53217
53218         sha256: do not artificially restrict buffer length to be < 2^32
53219         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
53220         uint32_t to size_t.
53221         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
53222         to match.
53223
53224         avoid unaligned access errors, e.g., on sparc
53225         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
53226         direct access through a possibly-unaligned uint64* pointer.
53227         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
53228         direct access through a possibly-unaligned uint32* pointer.
53229         Prompted by this patch from Tom "spot" Callaway:
53230         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
53231
53232         sha512.c: fix typo in comment
53233         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
53234
53235 2008-05-25  Bruno Haible  <bruno@clisp.org>
53236
53237         * lib/set-mode-acl.c: Renamed from lib/acl.c.
53238         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
53239         (Makefile.am): Update lib_SOURCES.
53240
53241 2008-05-25  Bruno Haible  <bruno@clisp.org>
53242
53243         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
53244
53245 2008-05-25  Jim Meyering  <meyering@redhat.com>
53246
53247         useless-if-before-free: freed expr may have white-space differences
53248         * build-aux/useless-if-before-free: Recognize cases in which the
53249         freed expression differs from the tested one in embedded white
53250         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
53251         $1 was used, so we can't make any regexp shy.  Improved tests now
53252         detect this.
53253
53254         useless-if-before-free: accept white space in the expression.
53255         * build-aux/useless-if-before-free: For now, any white space
53256         in the expression must be identical in the free argument.
53257
53258         useless-if-before-free: efficiency tweak
53259         * build-aux/useless-if-before-free: Make the expression-matching
53260         regexp "shy".
53261         Make the *outer* regexp shy, not the expr-matching one.
53262
53263         update code-in-comment to accept cast of free arg
53264         * build-aux/useless-if-before-free: Update regexp.
53265
53266 2008-05-25  Bruno Haible  <bruno@clisp.org>
53267
53268         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
53269         * modules/copy-file-tests (Files, Makefile.am): Update.
53270         * tests/test-copy-file.c (func_test_copy): Update.
53271
53272 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
53273
53274         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
53275
53276 2008-05-23  Bruno Haible  <bruno@clisp.org>
53277
53278         Improve support for ACLs on OSF/1.
53279         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
53280         Remove fallback for unknown flavors of ACLs.
53281
53282 2008-05-22  Bruno Haible  <bruno@clisp.org>
53283
53284         Add support for ACLs on OSF/1.
53285         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
53286         replacements.
53287         (acl_free_text): New macro fallback.
53288         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
53289         acl_free.
53290         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
53291         acl_free_text function. Require AC_C_INLINE.
53292
53293 2008-05-22  Bruno Haible  <bruno@clisp.org>
53294
53295         Make copy_acl work on MacOS X 10.5.
53296         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
53297         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
53298         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
53299         If MODE_INSIDE_ACL, don't assume that every system has the same text
53300         representation for ACLs as FreeBSD.
53301         * lib/copy-acl.c (copy_acl): Add support for platforms with
53302         !MODE_INSIDE_ACL.
53303         * lib/file-has-acl.c (file_has_acl): Likewise.
53304         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
53305         FreeBSD, MacOS X, or IRIX, respectively.
53306
53307 2008-05-22  Bruno Haible  <bruno@clisp.org>
53308
53309         * lib/acl.h: Don't include <sys/acl.h>.
53310         (GETACLCNT): Move fallback to lib/acl-internal.h.
53311         * lib/acl-internal.h: Include <sys/acl.h> here.
53312         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
53313
53314 2008-05-22  Bruno Haible  <bruno@clisp.org>
53315
53316         Split off copy_acl function to separate file.
53317         * lib/copy-acl.c: New file, extracted from lib/acl.c.
53318         * lib/acl.c (copy_acl): Moved function to separate file.
53319         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
53320         * modules/acl (Files): Add lib/copy-acl.c.
53321         (Makefiles.am): Augment lib_SOURCES.
53322
53323 2008-05-22  Bruno Haible  <bruno@clisp.org>
53324
53325         * modules/copy-file-tests: New file.
53326         * tests/test-copy-file.sh: New file.
53327         * tests/test-copy-file.c: New file.
53328         * tests/test-copy-file-sameacls.c: New file.
53329
53330 2008-05-22  Eric Blake  <ebb9@byu.net>
53331
53332         Avoid gcc warning.
53333         * tests/test-memcmp.c (main): Pass NULL indirectly.
53334
53335 2008-05-21  Bruno Haible  <bruno@clisp.org>
53336
53337         Add reference doc about ACLs.
53338         * doc/acl-resources.txt: New file.
53339         * doc/acl-cygwin.txt: New file.
53340
53341 2008-05-21  Bruno Haible  <bruno@clisp.org>
53342
53343         Avoid one more warning from gcc.
53344         * lib/vasnprintf.c (IF_LINT): Update comments.
53345         (VASNPRINTF): Use it also for the 'prefix' array initializer.
53346
53347 2008-05-21  Jim Meyering  <meyering@redhat.com>
53348
53349         avoid a warning from gcc
53350         * lib/vasnprintf.c (IF_LINT): Define.
53351         (scale10_round_decimal_long_double):
53352         Use it to avoid a "may be used uninitialized" warning.
53353         (scale10_round_decimal_double): Likewise.
53354
53355 2008-05-21  Simon Josefsson  <simon@josefsson.org>
53356
53357         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
53358         declared.
53359
53360 2008-05-20  Bruno Haible  <bruno@clisp.org>
53361
53362         * tests/test-memcmp.c (main): Test also the sign of the result. Test
53363         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
53364
53365 2008-05-20  Simon Josefsson  <simon@josefsson.org>
53366
53367         * modules/memcmp-tests: New file.
53368         * tests/test-memcmp.c: New file.
53369
53370 2008-05-19  Bruno Haible  <bruno@clisp.org>
53371
53372         * modules/propername (Notice, configure.ac): Put quoted "..." into
53373         --keyword option.
53374         * lib/propername.h: Update comments accordingly.
53375         Reported by Eric Blake.
53376
53377 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
53378
53379         * modules/getpass-gnu (Depends-on): Add fseeko.
53380
53381 2008-05-19  Simon Josefsson  <simon@josefsson.org>
53382
53383         * modules/base64-tests: New file.
53384
53385 2008-05-19  Bo Borgerson <gigabo@gmail.com>
53386
53387         * lib/base64.c (base64_decode_ctx): If a decode context structure
53388         was passed in use it to ignore newlines.  If a context structure
53389         was _not_ passed in, continue to treat newlines as garbage (this
53390         is the historical behavior).  Formerly base64_decode.
53391         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
53392         takes a decode context structure.
53393         * lib/base64.h (base64_decode): Macro for four-argument calls.
53394         (base64_decode_alloc): Likewise.
53395         * lib/base64.c (base64_decode_ctx): If a decode context structure
53396         was passed in use it to ignore newlines.  If a context structure
53397         was _not_ passed in, continue to treat newlines as garbage (this
53398         is the historical behavior).  Formerly base64_decode.
53399         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
53400         takes a decode context structure.
53401         * lib/base64.h (base64_decode): Macro for four-argument calls.
53402         (base64_decode_alloc): Likewise.
53403
53404 2008-05-19  Jim Meyering  <meyering@redhat.com>
53405
53406         avoid a warning from gcc
53407         * lib/trim.c (IF_LINT): Define.
53408         (trim2): Use it to avoid a "may be used uninitialized" warning.
53409
53410         Fix doc typo.
53411         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
53412
53413 2008-05-19  Bruno Haible  <bruno@clisp.org>
53414
53415         * doc/glibc-functions/getpass.texi: Document limits of other
53416         implementations.
53417
53418 2008-05-19  Simon Josefsson  <simon@josefsson.org>
53419             Bruno Haible <bruno@clisp.org>
53420
53421         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
53422
53423 2008-05-18  Bruno Haible  <bruno@clisp.org>
53424
53425         * modules/propername: New file, from GNU gettext.
53426         * lib/propername.h: New file, from GNU gettext.
53427         * lib/propername.c: New file, from GNU gettext.
53428         * MODULES.html.sh (Internationalization functions): Add propername.
53429
53430 2008-05-16  Jim Meyering  <meyering@redhat.com>
53431             Bruno Haible  <bruno@clisp.org>
53432
53433         Avoid some warnings from "gcc -Wshadow".
53434         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
53435
53436 2008-05-15  Eric Blake  <ebb9@byu.net>
53437
53438         Extend previous patch to cygwin 1.7.0.
53439         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
53440         fast implementation in cygwin >= 1.7.0.
53441         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53442         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53443
53444 2008-05-15  Bruno Haible  <bruno@clisp.org>
53445
53446         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
53447         implementation in glibc >= 2.9.
53448         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53449         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53450
53451 2008-05-15  Bruno Haible  <bruno@clisp.org>
53452
53453         * MODULES.html.sh (Internationalization functions): Remove linebreak.
53454         (Unicode string functions): Add unilbrk/*.
53455         Reported by Karl Berry.
53456
53457 2008-05-15  Eric Blake  <ebb9@byu.net>
53458
53459         Fix violation of <stdbool.h> replacement in regex.
53460         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
53461         * lib/regexec.c (re_search_internal): Likewise.
53462         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
53463
53464 2008-05-15  Jim Meyering  <meyering@redhat.com>
53465
53466         avoid distracting test output when git or cvs is not found
53467         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
53468         * tests/test-vc-list-files-git.sh: Likewise.
53469
53470 2008-05-15  Eric Blake  <ebb9@byu.net>
53471
53472         Glibc finally accepted the memmem speedup code, bugzilla #5514.
53473         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
53474         glibc version.
53475         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
53476         * doc/posix-functions/strstr.texi (strstr): Likewise.
53477         * lib/str-two-way.h (MAX): Sychronize with glibc.
53478
53479 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
53480
53481         * lib/regcomp.c (optimize_utf8): Add a note on why we test
53482         opr.ctx_type.
53483         (calc_first): Initialize constraint field.
53484         (duplicate_node_closure): Use it instead of special casing ANCHORS.
53485         Fix grammar.
53486         (duplicate_node): Merge constraint field for all node types.
53487         (calc_eclosure_iter): Look at constraint field for all node types.
53488         * lib/regex_internal.c (create_cd_newstate): Don't look at
53489         opr.ctx_type.
53490
53491 2008-05-14  Bruno Haible  <bruno@clisp.org>
53492
53493         Help GCC to do better code generation.
53494         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
53495         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
53496         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
53497         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
53498         Declare with attribute 'malloc' if supported.
53499
53500 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
53501
53502         use "echo STR|wc -c" rather than unportable "expr length STR"
53503         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
53504         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
53505
53506 2008-05-14  Jim Meyering  <meyering@redhat.com>
53507
53508         use dd ibs=$n count=1 ... rather than less-portable head -c$n
53509         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
53510         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
53511         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
53512         via Collin Lasse.
53513
53514 2008-05-14  Eric Blake  <ebb9@byu.net>
53515
53516         Avoid quadratic growth in gl_LIBSOURCES.
53517         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
53518         Suggested by Bruno Haible.
53519
53520         Test xmemdup0.
53521         * modules/xmemdup0-tests: New file.
53522         * tests/test-xmemdup0.c: Likewise.
53523
53524 2008-05-13  Eric Blake  <ebb9@byu.net>
53525
53526         Split xmemdup0 into its own module.
53527         * modules/xmemdup0: New file.
53528         * lib/xmemdup0.h: Likewise.
53529         * lib/xmemdup0.c: Likewise.
53530         * MODULES.html.sh (Memory management functions): Add xmemdup0.
53531         * lib/xalloc.h (xmemdup0): Remove.
53532         * lib/xmalloc.c (xmemdup0): Likewise.
53533
53534 2008-05-13  Eric Blake  <ebb9@byu.net>
53535             Bruno Haible  <bruno@clisp.org>
53536
53537         Reduce number of forks required during autoconf.
53538         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
53539         and gl_LIBSOURCES_DIR.
53540         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
53541         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
53542         m4_syscmd per file.
53543         <m4_foreach_w>: Move...
53544         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
53545
53546 2008-05-13  Eric Blake  <ebb9@byu.net>
53547
53548         * gnulib-tool: Fix various comment typos.
53549
53550 2008-05-12  Bruno Haible  <bruno@clisp.org>
53551
53552         Tailor the linebreaking algorithm.
53553         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
53554
53555 2008-05-12  Bruno Haible  <bruno@clisp.org>
53556
53557         Update to Unicode 5.0.0.
53558         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
53559         LBP_JV, LBP_JT. Redistribute values.
53560         (unilbrk_table): Change size.
53561         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
53562         Unicode TR#14 rev. 22.
53563         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
53564         LBP_JV, LBP_JT. Redistribute values.
53565         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
53566         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
53567         Update.
53568         * lib/unilbrk/lbrkprop1.h: Regenerated.
53569         * lib/unilbrk/lbrkprop2.h: Regenerated.
53570         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
53571         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
53572         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
53573         Likewise.
53574         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
53575         Likewise.
53576         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
53577         result.
53578         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
53579         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
53580         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
53581         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
53582         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
53583         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
53584
53585 2008-05-11  Bruno Haible  <bruno@clisp.org>
53586
53587         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
53588
53589 2008-05-11  Bruno Haible  <bruno@clisp.org>
53590
53591         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
53592         * modules/unilbrk/gen-lbrk: New file.
53593
53594 2008-05-11  Bruno Haible  <bruno@clisp.org>
53595
53596         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
53597         * m4/sha512.m4 (gl_SHA512): Likewise.
53598
53599 2008-05-11  Jim Meyering  <meyering@redhat.com>
53600
53601         New modules: crypto/sha256, crypto/sha512 (from coreutils)
53602         * modules/crypto/sha256: New file.
53603         * modules/crypto/sha512: Likewise.
53604         * lib/sha256.c: Likewise.
53605         * lib/sha256.h: Likewise.
53606         * lib/sha512.c: Likewise.
53607         * lib/sha512.h: Likewise.
53608         * lib/u64.h: Likewise.
53609         * m4/sha256.m4: Likewise.
53610         * m4/sha512.m4: Likewise.
53611         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
53612
53613 2008-05-10  Bruno Haible  <bruno@clisp.org>
53614
53615         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
53616         (Input/Output <stdio.h>): Add xprintf.
53617         (Signal handling <signal.h>): Add strsignal.
53618         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
53619         (Core language properties): Add func.
53620         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
53621         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
53622         strings.
53623         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
53624         (Input/output): New section.
53625         (File system functions): Add openat-die, stat-macros.
53626         (Networking functions): Add sockets.
53627         (Unicode string functions): Add unictype/*.
53628         (Support for building libraries and executables): Add gperf.
53629         (Support for building documentation): Add agpl-3.0.
53630         (Misc): Add nocrash.
53631
53632 2008-05-10  Bruno Haible  <bruno@clisp.org>
53633
53634         * modules/unictype/gen-ctype: New file.
53635
53636 2008-05-10  Jim Meyering  <meyering@redhat.com>
53637
53638         Make chdir-safer.c more efficient on a system with no symlinks.
53639         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
53640         also if ELOOP is zero.  Suggested by Bruno Haible.
53641
53642         Make chdir-safer.c slightly safer.
53643         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
53644         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
53645
53646         Avoid compile failure on systems without ELOOP (like mingw).
53647         * lib/chdir-safer.c (ELOOP): Define if not already defined.
53648         Reported by Bruno Haible.
53649
53650 2008-05-10  Bruno Haible  <bruno@clisp.org>
53651
53652         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
53653         (is_utf8_encoding): Use a case-insensitive comparison.
53654         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
53655         streq.
53656
53657 2008-05-10  Bruno Haible  <bruno@clisp.org>
53658
53659         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
53660         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
53661         * lib/unilbrk/ulc-common.h (iconv_string_length,
53662         iconv_string_keeping_offsets): Remove declarations.
53663         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
53664         Don't include <iconv.h>, streq.h, xsize.h.
53665         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
53666         conversion.
53667         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
53668         <iconv.h>, streq.h, xsize.h.
53669         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
53670         conversion.
53671         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
53672         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
53673         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
53674         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
53675
53676 2008-05-10  Bruno Haible  <bruno@clisp.org>
53677
53678         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
53679         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
53680
53681         * modules/unilbrk/u32-width-linebreaks-tests: New file.
53682         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
53683
53684         * modules/unilbrk/u16-width-linebreaks-tests: New file.
53685         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
53686
53687         * modules/unilbrk/u8-width-linebreaks-tests: New file.
53688         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
53689
53690         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
53691         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
53692
53693         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
53694         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
53695
53696         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
53697         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
53698
53699         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
53700         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
53701
53702 2008-05-10  Bruno Haible  <bruno@clisp.org>
53703
53704         Split up 'linebreak' module.
53705         * lib/unilbrk.h: New file, based on lib/linebreak.h.
53706         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
53707         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
53708         modifications.
53709         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
53710         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
53711         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
53712         lib/linebreak.c.
53713         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
53714         lib/linebreak.c.
53715         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
53716         lib/linebreak.c.
53717         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
53718         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
53719         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
53720         lib/linebreak.c.
53721         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
53722         lib/linebreak.c.
53723         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
53724         lib/linebreak.c.
53725         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
53726         lib/linebreak.c.
53727         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
53728         lib/linebreak.c.
53729         * modules/unilbrk/base: New file.
53730         * modules/unilbrk/tables: New file.
53731         * modules/unilbrk/u8-possible-linebreaks: New file.
53732         * modules/unilbrk/u16-possible-linebreaks: New file.
53733         * modules/unilbrk/u32-possible-linebreaks: New file.
53734         * modules/unilbrk/ulc-common: New file.
53735         * modules/unilbrk/ulc-possible-linebreaks: New file.
53736         * modules/unilbrk/u8-width-linebreaks: New file.
53737         * modules/unilbrk/u16-width-linebreaks: New file.
53738         * modules/unilbrk/u32-width-linebreaks: New file.
53739         * modules/unilbrk/ulc-width-linebreaks: New file.
53740         * lib/linebreak.h: Remove file.
53741         * lib/linebreak.c: Remove file.
53742         * m4/linebreak.m4: Remove file.
53743         * modules/linebreak: Remove file.
53744         * NEWS: Mention the changes.
53745
53746 2008-05-09  Eric Blake  <ebb9@byu.net>
53747
53748         Add xmemdup0.
53749         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
53750         implementation.
53751         * lib/xmalloc.c (xmemdup0): New C implementation.
53752
53753 2008-05-08  Bruno Haible  <bruno@clisp.org>
53754
53755         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
53756
53757 2008-05-07  Eric Blake  <ebb9@byu.net>
53758
53759         Support cross-compilation of <wctype.h>.
53760         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
53761         AC_CACHE_CHECK.
53762
53763 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
53764
53765         * build-aux/vc-list-files: Add support for bzr.
53766
53767 2008-05-03  Jim Meyering  <meyering@redhat.com>
53768
53769         avoid failed assertion with tight malloc
53770         * tests/test-getndelim2.c: Correct an off-by-one assertion.
53771
53772 2008-05-03  Simon Josefsson  <simon@josefsson.org>
53773
53774         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
53775         are needed from arpa/inet.h.
53776         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
53777         Reported by Bruno Haible.
53778
53779 2008-05-02  Jim Meyering  <meyering@redhat.com>
53780
53781         avoid compilation error on FreeBSD 6
53782         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
53783
53784 2008-05-01  Jim Meyering  <meyering@redhat.com>
53785
53786         useless-if-before-free: correct --help's exit status description
53787         * build-aux/useless-if-before-free (usage): Like grep, exit 0
53788         for one or more matches, etc.  Reported by Bruno Haible.
53789
53790         vc-list-files: make the stand-alone gnulib test work
53791         * modules/vc-list-files-tests (configure.ac):
53792         Define and AC_SUBST abs_aux_dir.
53793         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
53794         $(abs_top_srcdir) to each script and having each of them
53795         duplicate the work of setting PATH, set PATH here, using
53796         the new variable, abs_aux_dir instead.
53797         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
53798         * tests/test-vc-list-files-git.sh: Likewise.
53799         Reported by Bruno Haible.
53800
53801 2008-05-01  Bruno Haible  <bruno@clisp.org>
53802
53803         * lib/getndelim2.c (getndelim2): Fix newsize computation during
53804         reallocation. Rename 'done' to 'found_delimiter'.
53805
53806 2008-05-01  Jim Meyering  <meyering@redhat.com>
53807
53808         vc-list-files: accommodate /bin/sh like the one from Solaris 10
53809         * build-aux/vc-list-files: Use `...`, not $(...).
53810
53811 2008-04-30  Jim Meyering  <meyering@redhat.com>
53812
53813         add tests for vc-list-files
53814         * modules/vc-list-files-tests: New module.
53815         * tests/test-vc-list-files-cvs.sh: New file.
53816         * tests/test-vc-list-files-git.sh: New file.
53817
53818         avoid a warning from gcc
53819         * lib/getndelim2.c (IF_LINT): Define.
53820         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
53821
53822         vc-list-files: work properly with build-aux/cvsu, too
53823         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
53824         to all cvs-based clauses.
53825
53826         vc-list-files: work properly in the CVS+awk case, too
53827         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
53828
53829         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
53830         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
53831         take more than one file argument, so .  Add quotes, just in case $dir
53832         ever contains a shell meta-character.  Prompted by Soren Hansen in
53833         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
53834
53835 2008-04-29  Eric Blake  <ebb9@byu.net>
53836
53837         Optimize getndelim2 to use block operations when possible.
53838         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
53839         freadseek, and memchr2.
53840         * lib/getndelim2.c (getndelim2): Use them for block reads.
53841
53842 2008-04-29  Bruno Haible  <bruno@clisp.org>
53843
53844         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
53845         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53846         * modules/inet_ntop (Depends-on): Add extensions.
53847         * modules/inet_pton (Depends-on): Likewise.
53848         Reported by Simon Josefsson.
53849
53850 2008-04-29  Jim Meyering  <meyering@redhat.com>
53851
53852         When the is more than one match in a block, match all of them.
53853         * build-aux/useless-if-before-free: Iterate through each block
53854         until there are no more matches.
53855
53856         Fix broken useless-if-before-free script.
53857         * build-aux/useless-if-before-free: Fix typo: missing "?" after
53858         the expression to match cast of argument to free-like function.
53859
53860 2008-04-29  Eric Blake  <ebb9@byu.net>
53861
53862         Use new header.
53863         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
53864
53865 2008-04-29  Jim Meyering  <meyering@redhat.com>
53866
53867         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
53868         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
53869         by gnulib to exist and to declare e.g., inet_ntop.
53870         Don't include "inet_ntop.h", now removed.
53871
53872         * m4/arpa_inet_h.m4: Remove trailing blanks.
53873
53874 2008-04-29  Eric Blake  <ebb9@byu.net>
53875
53876         Silence valgrind on safe reads beyond potential array bounds.
53877         * lib/rawmemchr.valgrind: New file.
53878         * lib/strchrnul.valgrind: Likewise.
53879         * modules/rawmemchr (Files): Distribute new file.
53880         * modules/strchrnul (Files): Likewise.
53881         Suggested by Bruno Haible.
53882
53883 2008-04-29  Bruno Haible  <bruno@clisp.org>
53884
53885         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
53886         (inet_ntop, inet_pton): Change portability warning's wording.
53887         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
53888         Invoke gl_CHECK_NEXT_HEADERS.
53889         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
53890         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
53891         set ARPA_INET_H.
53892         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53893         * modules/arpa_inet (Description): No longer only for systems that
53894         lack it.
53895         (Depends-on): Add include_next.
53896         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
53897         HAVE_ARPA_INET_H.
53898
53899 2008-04-29  Jim Meyering  <meyering@redhat.com>
53900
53901         * modules/mkdir (License): Re-license as LGPLv2+.
53902
53903 2008-04-29  Bruno Haible  <bruno@clisp.org>
53904
53905         * modules/rawmemchr (Maintainer): Set to Eric.
53906         * modules/strchrnul (Maintainer): Likewise.
53907
53908 2008-04-29  Simon Josefsson  <simon@josefsson.org>
53909
53910         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
53911         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
53912
53913         * modules/arpa_inet (arpa/inet.h): Use them.
53914
53915 2008-04-28  Eric Blake  <ebb9@byu.net>
53916
53917         Test getndelim2.
53918         * modules/getndelim2-tests: New file.
53919         * tests/test-getndelim2.c: Likewise.
53920         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
53921         stream.
53922         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
53923
53924         * MODULES.html.sh: Document new module.
53925
53926 2008-04-20  Bruno Haible  <bruno@clisp.org>
53927
53928         * lib/c-stack.c (die): Use raise.
53929         * modules/c-stack (Depends-on): Add raise.
53930
53931 2008-04-28  Bruno Haible  <bruno@clisp.org>
53932
53933         Expect rpmatch to be declared.
53934         * lib/yesno.c (rpmatch): Remove declaration.
53935
53936         Declare rpmatch.
53937         * lib/stdlib.in.h (rpmatch): New declaration.
53938         * lib/rpmatch.c: Include <stdlib.h> first.
53939         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
53940         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
53941         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
53942         HAVE_RPMATCH.
53943         * modules/rpmatch (Depends-on): Add stdlib, extensions.
53944         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53945         (Include): Set to <stdlib.h>.
53946         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
53947         HAVE_RPMATCH.
53948         * NEWS: Document the change.
53949
53950 2008-04-28  Bruno Haible  <bruno@clisp.org>
53951
53952         Change rpmatch to use nl_langinfo when appropriate.
53953         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
53954         (N_): New macro.
53955         (localized_pattern): New function/macro.
53956         (try): Remove match, nomatch arguments. Copy the pattern into safe
53957         memory before caching it.
53958         (rpmatch): Use localized_pattern. Add translator comments.
53959         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
53960         Suggested by Eric Blake.
53961         * modules/rpmatch (Depends-on): Add stdbool.
53962
53963 2008-04-28  Eric Blake  <ebb9@byu.net>
53964
53965         Add rawmemchr module, matching glibc.
53966         * modules/string (Makefile.am): New indicator.
53967         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
53968         * lib/string.in.h (rawmemchr): Declare when appropriate.
53969         * modules/rawmemchr: New file.
53970         * m4/rawmemchr.m4: Likewise.
53971         * lib/rawmemchr.c: Likewise.
53972         * modules/rawmemchr-tests: Likewise.
53973         * tests/test-rawmemchr.c: Likewise.
53974         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
53975         module.
53976         * modules/strchrnul (Depends-on): Add rawmemchr.
53977         * lib/strchrnul.c (strchrnul): Optimize a corner case.
53978
53979         Whitespace cleanup.
53980         * tests/test-strchrnul.c: Reindent.
53981         * lib/strchrnul.c: Likewise.
53982
53983         Optimize and test strchrnul.
53984         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
53985         * modules/strchrnul-tests: New file.
53986         * tests/test-strchrnul.c: Likewise.
53987
53988         Remove intprops dependency.
53989         * modules/memchr (Depends-on): Remove intprops.
53990         * modules/memrchr (Depends-on): Likewise.
53991         * modules/memchr2 (Depends-on): Likewise.
53992         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
53993         * lib/memrchr.c (__memrchr): Likewise.
53994         * lib/memrchr2.c (memchr2): Likewise.
53995         Reported by Simon Josefsson.
53996
53997 2008-04-28  Simon Josefsson  <simon@josefsson.org>
53998
53999         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
54000         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54001
54002 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54003
54004         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
54005
54006         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
54007
54008         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
54009
54010         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
54011         declarations.
54012         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
54013
54014         * m4/inet_pton.m4: Don't check for header files.
54015
54016         * m4/inet_ntop.m4: Don't check for header files.
54017
54018 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54019
54020         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
54021         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
54022         trigger for cygwin).
54023         Reported by Bruno Haible  <bruno@clisp.org>.
54024
54025 2008-04-28  Bruno Haible  <bruno@clisp.org>
54026
54027         * doc/posix-functions/strdup.texi: Mention mingw problem.
54028
54029 2008-04-27  Bruno Haible  <bruno@clisp.org>
54030
54031         * modules/stat-time-tests (Depends-on): Add sleep.
54032         * tests/test-stat-time.c (force_unlink): New function.
54033         (cleanup): Use it.
54034         (test_mtime): Remove the ctime related tests.
54035         (test_ctime): New function, containing the ctime related tests.
54036         (main): Call test_ctime, except on native Windows platforms.
54037
54038 2008-04-27  Bruno Haible  <bruno@clisp.org>
54039
54040         * lib/rpmatch.c (rpmatch): Add some comments.
54041         Reported by James Youngman <jay@gnu.org>.
54042
54043 2008-04-27  Bruno Haible  <bruno@clisp.org>
54044
54045         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
54046         quiet NaNs.
54047
54048 2008-04-27  Bruno Haible  <bruno@clisp.org>
54049
54050         Make test-yesno.sh work on mingw.
54051         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
54052         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
54053         (main): Set stdin to binary mode.
54054         * modules/yesno-tests (Depends-on): Add binary-io.
54055
54056 2008-04-27  Bruno Haible  <bruno@clisp.org>
54057
54058         Fix 'isfinite' on x86, x86_64, ia64 platforms.
54059         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
54060         argument that lie outside the IEEE 854 domain.
54061         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
54062         (gl_ISFINITE): Use it.
54063         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
54064
54065 2008-04-27  Bruno Haible  <bruno@clisp.org>
54066
54067         Allow local renaming in config.h.
54068         * lib/memrchr.c (memrchr): Don't undefine outside libc.
54069
54070 2008-04-27  Bruno Haible  <bruno@clisp.org>
54071
54072         * lib/memchr.c (__memchr): Change type of 'i'.
54073         * lib/memchr2.c (memchr2): Likewise.
54074
54075 2008-04-26  Eric Blake  <ebb9@byu.net>
54076         and Bruno Haible  <bruno@clisp.org>
54077
54078         Optimize and test memrchr.
54079         * modules/memrchr (Depends-on): Add intprops.
54080         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
54081         * modules/memrchr-tests: New file.
54082         * tests/test-memrchr.c: New file.
54083
54084 2008-04-26  Bruno Haible  <bruno@clisp.org>
54085
54086         Add tentative support for DragonFly BSD.
54087         * lib/stdio-impl.h: Add macros for DragonFly BSD.
54088         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
54089         fp.
54090         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54091         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
54092         * lib/fpurge.c (fpurge): Likewise.
54093         * lib/freadable.c (freaadable): Likewise.
54094         * lib/freadahead.c (freadahead): Likewise.
54095         * lib/freading.c (freading): Likewise.
54096         * lib/freadptr.c (freadptr): Likewise.
54097         * lib/freadseek.c (freadptrinc): Likewise.
54098         * lib/fseeko.c (fseeko): Likewise.
54099         * lib/fseterr.c (fseterr): Likewise.
54100         * lib/fwritable.c (fwritable): Likewise.
54101         * lib/fwriting.c (fwriting): Likewise.
54102
54103 2008-04-26  Bruno Haible  <bruno@clisp.org>
54104
54105         * lib/stdio-impl.h: New file.
54106         * lib/fbufmode.c: Include stdio-impl.h.
54107         (fbufmode): Use fp_, remove redundant #defines.
54108         * lib/fflush.c: Include stdio-impl.h.
54109         (clear_ungetc_buffer): Remove redundant #defines.
54110         * lib/fpurge.c: Include stdio-impl.h.
54111         (fpurge): Remove redundant #defines.
54112         * lib/freadable.c: Include stdio-impl.h.
54113         (freadable): Remove redundant #defines.
54114         * lib/freadahead.c: Include stdio-impl.h.
54115         (freadahead): Remove redundant #defines.
54116         * lib/freading.c: Include stdio-impl.h.
54117         (freading): Remove redundant #defines.
54118         * lib/freadptr.c: Include stdio-impl.h.
54119         (freadptr): Remove redundant #defines.
54120         * lib/freadseek.c: Include stdio-impl.h.
54121         (freadptrinc): Remove redundant #defines.
54122         * lib/fseeko.c: Include stdio-impl.h.
54123         (rpl_fseeko): Remove redundant #defines.
54124         * lib/fseterr.c: Include stdio-impl.h.
54125         (fseterr): Remove redundant #defines.
54126         * lib/fwritable.c: Include stdio-impl.h.
54127         (fwritable: Remove redundant #defines.
54128         * lib/fwriting.c: Include stdio-impl.h.
54129         (fwriting): Remove redundant #defines.
54130         * modules/fbufmode (Files): Add lib/stdio-impl.h.
54131         * modules/fflush (Files): Likewise.
54132         * modules/fpurge (Files): Likewise.
54133         * modules/freadable (Files): Likewise.
54134         * modules/freadahead (Files): Likewise.
54135         * modules/freading (Files): Likewise.
54136         * modules/freadptr (Files): Likewise.
54137         * modules/freadseek (Files): Likewise.
54138         * modules/fseeko (Files): Likewise.
54139         * modules/fseterr (Files): Likewise.
54140         * modules/fwritable (Files): Likewise.
54141         * modules/fwriting (Files): Likewise.
54142
54143 2008-04-26  Bruno Haible  <bruno@clisp.org>
54144
54145         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54146         restore_seek_optimization, update_fpos_cache): New functions, extracted
54147         from rpl_fflush.
54148         (rpl_fflush): Use them.
54149         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
54150         (gl_REPLACE_FFLUSH): Use it.
54151
54152 2008-04-26  Bruno Haible  <bruno@clisp.org>
54153
54154         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
54155         on Solaris.
54156         * tests/test-xstrtoimax.sh: Likewise.
54157         * tests/test-xstrtoumax.sh: Likewise.
54158         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54159
54160 2008-04-26  Bruno Haible  <bruno@clisp.org>
54161
54162         * modules/memchr-tests: New file.
54163         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
54164
54165 2008-04-26  Eric Blake  <ebb9@byu.net>
54166             Bruno Haible  <bruno@clisp.org>
54167
54168         * lib/memchr.c: Include intprops.h.
54169         (__memchr): Optimize parallel detection of matching bytes. Rename local
54170         variables. Add explanatory comments.
54171
54172 2008-04-26  Bruno Haible  <bruno@clisp.org>
54173
54174         Fix module 'memchr', broken since 2000-10-28.
54175         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
54176
54177 2008-04-26  Bruno Haible  <bruno@clisp.org>
54178
54179         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
54180         comments.
54181
54182 2008-04-25  Eric Blake  <ebb9@byu.net>
54183
54184         Use native fstatat on cygwin 1.7.0.
54185         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
54186         first.
54187
54188 2008-04-23  Eric Blake  <ebb9@byu.net>
54189
54190         Improve memchr2 performance.
54191         * lib/memchr2.c (memchr2): Further optimize parallel detection of
54192         NUL bytes.
54193         * modules/memchr2 (Depends-on): Use intprops.h.
54194
54195 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54196
54197         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
54198         an inline function instead of a CPP macro.  Patch by Ben Pfaff
54199         <blp@cs.stanford.edu>.
54200
54201 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54202
54203         * lib/arpa_inet.in.h: New file.
54204
54205         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
54206         (Makefile.am): Sed in substitute header file.
54207
54208         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
54209         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
54210
54211         * modules/inet_ntop (configure.ac): Use
54212         gl_ARPA_INET_MODULE_INDICATOR.
54213
54214         * modules/inet_pton (configure.ac): Use
54215         gl_ARPA_INET_MODULE_INDICATOR.
54216
54217 2008-04-22  Jim Meyering  <meyering@redhat.com>
54218
54219         * modules/verify (License): Re-license as LGPLv2+.
54220
54221 2008-04-22  Simon Josefsson  <simon@josefsson.org>
54222
54223         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
54224         parameter to void* as per POSIX standard (MinGW uses char*).
54225
54226 2008-04-21  Bruno Haible  <bruno@clisp.org>
54227
54228         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54229         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
54230         Define to replacements if REPLACE_ISWCNTRL is 1.
54231         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
54232         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
54233         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
54234         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
54235         what it fixes.
54236         * doc/posix-functions/iswalpha.texi: Likewise.
54237         * doc/posix-functions/iswblank.texi: Likewise.
54238         * doc/posix-functions/iswcntrl.texi: Likewise.
54239         * doc/posix-functions/iswdigit.texi: Likewise.
54240         * doc/posix-functions/iswgraph.texi: Likewise.
54241         * doc/posix-functions/iswlower.texi: Likewise.
54242         * doc/posix-functions/iswprint.texi: Likewise.
54243         * doc/posix-functions/iswpunct.texi: Likewise.
54244         * doc/posix-functions/iswspace.texi: Likewise.
54245         * doc/posix-functions/iswupper.texi: Likewise.
54246         * doc/posix-functions/iswxdigit.texi: Likewise.
54247         Reported by Alain Guibert.
54248
54249 2008-04-21  Bruno Haible  <bruno@clisp.org>
54250
54251         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
54252         Patch by Alain Guibert.
54253
54254 2008-04-21  Bruno Haible  <bruno@clisp.org>
54255
54256         Fix test failures on mingw.
54257         * tests/test-xstrtol.c (print_no_progname): New function.
54258         (main): Install it in error_print_progname hook.
54259         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
54260         * tests/test-xstrtoimax.sh: Likewise.
54261         * tests/test-xstrtoumax.sh: Likewise.
54262
54263 2008-04-21  Bruno Haible  <bruno@clisp.org>
54264
54265         Fix test failure on mingw.
54266         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
54267
54268 2008-04-21  Bruno Haible  <bruno@clisp.org>
54269
54270         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
54271         Actually assign a value.
54272
54273 2008-04-20  Bruno Haible  <bruno@clisp.org>
54274
54275         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
54276         take 2.
54277         * lib/canonicalize.c (canonicalize_file_name): Elide if the
54278         'canonicalize-lgpl' module is also used.
54279         * lib/canonicalize-lgpl.c: Undo last change.
54280         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
54281
54282 2008-04-20  Bruno Haible  <bruno@clisp.org>
54283
54284         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
54285         config.h. Provide _mkdir based fallback for mingw.
54286         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
54287         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
54288         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
54289         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
54290         rather than defining mkdir in config.h.
54291         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
54292         (gl_SYS_STAT_H_DEFAULTS): New macro.
54293         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
54294         HAVE_IO_H any more.
54295         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
54296         HAVE_DECL_MKDIR and HAVE_IO_H.
54297
54298 2008-04-20  Bruno Haible  <bruno@clisp.org>
54299
54300         * lib/isapipe.c: Port to native Windows platforms.
54301
54302 2008-04-20  Bruno Haible  <bruno@clisp.org>
54303
54304         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
54305
54306 2008-04-21  Eric Blake  <ebb9@byu.net>
54307
54308         Work around preprocessors that don't handle UINTMAX_MAX.
54309         * lib/memchr2.c (memchr2): Avoid embedded #if.
54310         Reported by Alain Guibert, fix suggested by Bruno Haible.
54311
54312 2008-04-21  Simon Josefsson  <simon@josefsson.org>
54313
54314         * doc/posix-functions/strftime.texi (strftime): Explain better
54315         Windows incompatibility.  Suggested by Micah Cowan
54316         <micah@cowan.name>.
54317
54318 2008-04-20  Bruno Haible  <bruno@clisp.org>
54319
54320         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
54321         unistr/u8-mblen.
54322
54323 2008-04-20  Bruno Haible  <bruno@clisp.org>
54324
54325         Fix test failure on platforms with non-GNU iconv.
54326         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
54327         (U_TO_U8): Use it, rather than u16_to_u8.
54328         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
54329         units at the end of the input string.
54330         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
54331
54332 2008-04-20  Bruno Haible  <bruno@clisp.org>
54333
54334         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
54335         when the resulting length is 0.
54336         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
54337
54338 2008-04-20  Bruno Haible  <bruno@clisp.org>
54339
54340         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
54341         works.
54342         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
54343
54344 2008-04-20  Bruno Haible  <bruno@clisp.org>
54345
54346         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
54347         * modules/tsearch-tests (configure.ac): Test for initstate function.
54348
54349 2008-04-20  Bruno Haible  <bruno@clisp.org>
54350
54351         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
54352         for nlink_t if missing.
54353         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
54354
54355 2008-04-19  Bruno Haible  <bruno@clisp.org>
54356
54357         Work around snprintf bug on Linux libc5.
54358         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
54359         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54360         gl_SNPRINTF_SIZE1.
54361         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54362         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
54363         that test failed.
54364         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
54365         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
54366         * modules/snprintf (Files): Add m4/printf.m4.
54367         * modules/vsnprintf (Files): Likewise.
54368         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
54369         * doc/posix-functions/vsnprintf.texi: Likewise.
54370
54371 2008-04-19  Bruno Haible  <bruno@clisp.org>
54372
54373         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
54374         from 0.0058 to less than 10^-7.
54375
54376 2008-04-19  Bruno Haible  <bruno@clisp.org>
54377
54378         Fix rounding when a precision is given.
54379         * lib/vasnprintf.c (is_borderline): New function.
54380         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
54381         9...9x.
54382         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
54383         %e, %g.
54384         * tests/test-vasprintf-posix.c (test_function): Likewise.
54385         * tests/test-snprintf-posix.h (test_function): Likewise.
54386         * tests/test-sprintf-posix.h (test_function): Likewise.
54387         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
54388         * tests/test-printf-posix.h (test_function): Likewise.
54389         * tests/test-printf-posix.output: Update.
54390         Reported by John Darrington <john@darrington.wattle.id.au> via
54391         Ben Pfaff <blp@cs.stanford.edu>.
54392
54393 2008-04-18  Simon Josefsson  <simon@josefsson.org>
54394
54395         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
54396         Suggested by Bruno Haible <bruno@clisp.org>.
54397
54398 2008-04-17  Bruno Haible  <bruno@clisp.org>
54399
54400         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
54401         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
54402         implementation.
54403         Patch by Bruce Merry <bmerry@gmail.com>.
54404
54405 2008-04-17  Simon Josefsson  <simon@josefsson.org>
54406
54407         * doc/posix-functions/strftime.texi (strftime): Mention that %e
54408         doesn't work under Windows.
54409
54410 2008-04-16  Bruno Haible  <bruno@clisp.org>
54411
54412         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
54413         New macros.
54414         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
54415         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
54416         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
54417         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
54418         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
54419         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
54420         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
54421         macros.
54422         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
54423         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
54424         Northern Sotho, Uighur.
54425
54426 2008-04-16  Bruno Haible  <bruno@clisp.org>
54427
54428         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
54429         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
54430         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
54431         Reported by Daniel Bergström <daniel@octocode.com>.
54432
54433 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
54434             Bruno Haible  <bruno@clisp.org>
54435
54436         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
54437         function.
54438         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
54439         New functions, mostly extracted from gl_locale_name_default.
54440         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
54441
54442 2008-04-16  Eric Blake  <ebb9@byu.net>
54443
54444         Adjust strtod detection to catch glibc 2.7 bug.
54445         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
54446         Reported by John Gatewood Ham.
54447
54448 2008-04-16  Bruno Haible  <bruno@clisp.org>
54449
54450         Add tentative support for Linux libc5.
54451         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
54452         * lib/fpurge.c (fpurge): Likewise.
54453         * lib/freadable.c (freadable): Likewise.
54454         * lib/freadahead.c (freadahead): Likewise.
54455         * lib/freading.c (freading): Likewise.
54456         * lib/freadptr.c (freadptr): Likewise.
54457         * lib/freadseek.c (freadptrinc): Likewise.
54458         * lib/fseeko.c (rpl_fseeko): Likewise.
54459         * lib/fseterr.c (fseterr): Likewise.
54460         * lib/fwritable.c (fwritable): Likewise.
54461         * lib/fwriting.c (fwriting): Likewise.
54462         Reported by Alain Guibert <alguibert+bts@free.fr>.
54463
54464 2008-04-15  Bruno Haible  <bruno@clisp.org>
54465
54466         * modules/mathl (configure.ac): Define module indicator.
54467
54468 2008-04-15  Bruno Haible  <bruno@clisp.org>
54469
54470         * lib/logl.c (logl): Remove unused variables.
54471
54472 2008-04-15  Bruno Haible  <bruno@clisp.org>
54473
54474         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
54475         fails.
54476
54477 2008-04-15  Bruno Haible  <bruno@clisp.org>
54478
54479         * lib/trim.c (trim2): Fix argument of isspace() macro.
54480
54481 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
54482
54483         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
54484         to 0.
54485         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
54486
54487 2008-04-14  Bruno Haible  <bruno@clisp.org>
54488
54489         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
54490         AC_LANG_PROGRAM argument.
54491         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
54492         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
54493         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
54494         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54495         * m4/math_h.m4 (gl_MATH_H): Likewise.
54496         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
54497         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54498         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54499         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
54500         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
54501         * m4/regex.m4 (gl_REGEX): Likewise.
54502         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
54503         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
54504         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54505         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
54506         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54507         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54508         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54509         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54510
54511 2008-04-14  Jim Meyering  <meyering@redhat.com>
54512
54513         test-strtod: fix typos: s/abs/fabs/
54514         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
54515
54516 2008-04-13  Bruno Haible  <bruno@clisp.org>
54517
54518         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
54519         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
54520         module is also used and while not building the reloc-wrapper.
54521
54522 2008-04-13  Bruno Haible  <bruno@clisp.org>
54523
54524         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
54525
54526 2008-04-13  Bruno Haible  <bruno@clisp.org>
54527
54528         Fix AIX compilation failure introduced on 2008-04-02.
54529         * tests/test-frexp.c (exp): Undefine before redefining.
54530         * tests/test-frexpl.c (exp): Likewise.
54531
54532 2008-04-13  Bruno Haible  <bruno@clisp.org>
54533
54534         Work around a HP-UX stdio bug.
54535         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
54536         * tests/test-ftello.c (main): Likewise.
54537         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
54538         * doc/posix-functions/ftello.texi: Likewise.
54539
54540 2008-04-13  Bruno Haible  <bruno@clisp.org>
54541
54542         Make test-signbit pass on HP-UX/hppa.
54543         * tests/test-signbit.c (minus_zerol): New variable.
54544         (test_signbitl): Use it.
54545
54546 2008-04-13  Bruno Haible  <bruno@clisp.org>
54547
54548         Make truncl work on OSF/1 4.0.
54549         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
54550         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
54551         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
54552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
54553         HAVE_DECL_TRUNCL.
54554         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
54555         HAVE_DECL_TRUNCL.
54556         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
54557
54558 2008-04-13  Bruno Haible  <bruno@clisp.org>
54559
54560         * lib/unictype.h: Remove trailing comma from enumeration definitions.
54561
54562 2008-04-13  Bruno Haible  <bruno@clisp.org>
54563
54564         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
54565         expression, so as to avoid HP-UX 11 cc compiler bug.
54566
54567 2008-04-13  Bruno Haible  <bruno@clisp.org>
54568
54569         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
54570
54571 2008-04-13  Bruno Haible  <bruno@clisp.org>
54572
54573         * lib/git-merge-changelog.c: Remove empty declaration outside of
54574         functions.
54575
54576 2008-04-13  Bruno Haible  <bruno@clisp.org>
54577
54578         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
54579
54580 2008-04-13  Bruno Haible  <bruno@clisp.org>
54581
54582         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
54583         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
54584         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
54585         also if it exists but lacks definitions of the SHUT_* macros.
54586         * modules/sys_socket (Description): Update.
54587         Reported by Elbert Pol <e.pol@chello.nl>.
54588
54589 2008-04-13  Bruno Haible  <bruno@clisp.org>
54590
54591         * lib/localcharset.c (OS2): Don't redefine if already defined.
54592         Reported by Elbert Pol <e.pol@chello.nl>.
54593
54594 2008-04-13  Bruno Haible  <bruno@clisp.org>
54595
54596         * lib/binary-io.h [__EMX__]: Include <io.h>.
54597         Reported by Elbert Pol <e.pol@chello.nl>.
54598
54599 2008-04-12  Bruno Haible  <bruno@clisp.org>
54600
54601         * lib/fpucw.h: Enable the definitions also for x86_64.
54602         Needed for NetBSD/x86_64.
54603         Reported by Thomas Klausner <tk@giga.or.at>.
54604
54605 2008-04-12  Bruno Haible  <bruno@clisp.org>
54606
54607         * tests/test-strtod.c: Include isnand.h.
54608         (main): Use isnand instead of isnan.
54609         Reported by Jim Meyering.
54610
54611 2008-04-12  Bruno Haible  <bruno@clisp.org>
54612
54613         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
54614         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54615
54616 2008-04-12  Jim Meyering  <meyering@redhat.com>
54617
54618         * m4/math_h.m4 (gl_MATH_H): Fix typos.
54619
54620 2008-04-12  Bruno Haible  <bruno@clisp.org>
54621
54622         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
54623         Reported by Elbert Pol <e.pol@chello.nl>.
54624
54625 2008-04-12  Eric Blake  <ebb9@byu.net>
54626
54627         Work around Solaris 10 math.h bug.
54628         * m4/math_h.m4 (gl_MATH_H): Check for bug.
54629         (gl_MATH_H_DEFAULTS): Set up default.
54630         * modules/math (Makefile.am): Replace new indicators.
54631         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
54632         * tests/test-math.c (main): Test this.
54633         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
54634         * doc/posix-headers/math.texi (math.h): Mention bug.
54635         Reported by Nelson H. F. Beebe and Jim Meyering.
54636
54637 2008-04-11  Bruno Haible  <bruno@clisp.org>
54638
54639         Adapt to future versions of Apple GCC.
54640         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
54641         Reported by Peter O'Gorman <peter@pogma.com>.
54642
54643 2008-04-11  Bruno Haible  <bruno@clisp.org>
54644
54645         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
54646
54647 2008-04-11  Bruno Haible  <bruno@clisp.org>
54648
54649         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
54650
54651         * modules/getaddrinfo-tests (Makefile.am): Define
54652         test_getaddrinfo_LDADD.
54653
54654 2008-04-11  Bruno Haible  <bruno@clisp.org>
54655
54656         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
54657         (init): Fix syntax error.
54658         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
54659         is declared.
54660
54661 2008-04-11  Bruno Haible  <bruno@clisp.org>
54662
54663         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
54664         * modules/glob (Depends-on): Add stdbool.
54665
54666 2008-04-11  Bruno Haible  <bruno@clisp.org>
54667
54668         * lib/trim.c: Include <string.h>.
54669
54670 2008-04-11  Eric Blake  <ebb9@byu.net>
54671
54672         Avoid compile failure on OS/2.
54673         * lib/regex_internal.h (internal_function): Disable optimization
54674         on OS/2 (__EMX__), where it caused compiler error.
54675         Reported by Elbert Pol.
54676
54677 2008-04-11  Bruno Haible  <bruno@clisp.org>
54678
54679         Flush the standard error stream before aborting. Needed on mingw.
54680         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
54681         * tests/test-array_list.c (ASSERT): Likewise.
54682         * tests/test-array_oset.c (ASSERT): Likewise.
54683         * tests/test-avltree_list.c (ASSERT): Likewise.
54684         * tests/test-avltree_oset.c (ASSERT): Likewise.
54685         * tests/test-avltreehash_list.c (ASSERT): Likewise.
54686         * tests/test-binary-io.c (ASSERT): Likewise.
54687         * tests/test-byteswap.c (ASSERT): Likewise.
54688         * tests/test-c-ctype.c (ASSERT): Likewise.
54689         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
54690         * tests/test-c-strcasestr.c (ASSERT): Likewise.
54691         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
54692         * tests/test-c-strstr.c (ASSERT): Likewise.
54693         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
54694         * tests/test-canonicalize.c (ASSERT): Likewise.
54695         * tests/test-carray_list.c (ASSERT): Likewise.
54696         * tests/test-ceilf1.c (ASSERT): Likewise.
54697         * tests/test-ceilf2.c (ASSERT): Likewise.
54698         * tests/test-ceill.c (ASSERT): Likewise.
54699         * tests/test-count-one-bits.c (ASSERT): Likewise.
54700         * tests/test-fbufmode.c (ASSERT): Likewise.
54701         * tests/test-fflush2.c (ASSERT): Likewise.
54702         * tests/test-floorf1.c (ASSERT): Likewise.
54703         * tests/test-floorf2.c (ASSERT): Likewise.
54704         * tests/test-floorl.c (ASSERT): Likewise.
54705         * tests/test-fopen.c (ASSERT): Likewise.
54706         * tests/test-fpending.c (ASSERT): Likewise.
54707         * tests/test-fprintf-posix.c (ASSERT): Likewise.
54708         * tests/test-fpurge.c (ASSERT): Likewise.
54709         * tests/test-freadable.c (ASSERT): Likewise.
54710         * tests/test-freadahead.c (ASSERT): Likewise.
54711         * tests/test-freading.c (ASSERT): Likewise.
54712         * tests/test-freadptr.c (ASSERT): Likewise.
54713         * tests/test-freadptr2.c (ASSERT): Likewise.
54714         * tests/test-freadseek.c (ASSERT): Likewise.
54715         * tests/test-freopen.c (ASSERT): Likewise.
54716         * tests/test-frexp.c (ASSERT): Likewise.
54717         * tests/test-frexpl.c (ASSERT): Likewise.
54718         * tests/test-fseek.c (ASSERT): Likewise.
54719         * tests/test-fseeko.c (ASSERT): Likewise.
54720         * tests/test-fstrcmp.c (ASSERT): Likewise.
54721         * tests/test-ftell.c (ASSERT): Likewise.
54722         * tests/test-ftello.c (ASSERT): Likewise.
54723         * tests/test-func.c (ASSERT): Likewise.
54724         * tests/test-fwritable.c (ASSERT): Likewise.
54725         * tests/test-fwriting.c (ASSERT): Likewise.
54726         * tests/test-getdelim.c (ASSERT): Likewise.
54727         * tests/test-getline.c (ASSERT): Likewise.
54728         * tests/test-i-ring.c (ASSERT): Likewise.
54729         * tests/test-iconv-utf.c (ASSERT): Likewise.
54730         * tests/test-iconv.c (ASSERT): Likewise.
54731         * tests/test-isfinite.c (ASSERT): Likewise.
54732         * tests/test-isnand.c (ASSERT): Likewise.
54733         * tests/test-isnanf.c (ASSERT): Likewise.
54734         * tests/test-isnanl.h (ASSERT): Likewise.
54735         * tests/test-ldexpl.c (ASSERT): Likewise.
54736         * tests/test-linked_list.c (ASSERT): Likewise.
54737         * tests/test-linkedhash_list.c (ASSERT): Likewise.
54738         * tests/test-localename.c (ASSERT): Likewise.
54739         * tests/test-lseek.c (ASSERT): Likewise.
54740         * tests/test-mbscasecmp.c (ASSERT): Likewise.
54741         * tests/test-mbscasestr1.c (ASSERT): Likewise.
54742         * tests/test-mbscasestr2.c (ASSERT): Likewise.
54743         * tests/test-mbscasestr3.c (ASSERT): Likewise.
54744         * tests/test-mbscasestr4.c (ASSERT): Likewise.
54745         * tests/test-mbschr.c (ASSERT): Likewise.
54746         * tests/test-mbscspn.c (ASSERT): Likewise.
54747         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
54748         * tests/test-mbspbrk.c (ASSERT): Likewise.
54749         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
54750         * tests/test-mbsrchr.c (ASSERT): Likewise.
54751         * tests/test-mbsspn.c (ASSERT): Likewise.
54752         * tests/test-mbsstr1.c (ASSERT): Likewise.
54753         * tests/test-mbsstr2.c (ASSERT): Likewise.
54754         * tests/test-mbsstr3.c (ASSERT): Likewise.
54755         * tests/test-memchr2.c (ASSERT): Likewise.
54756         * tests/test-memmem.c (ASSERT): Likewise.
54757         * tests/test-open.c (ASSERT): Likewise.
54758         * tests/test-printf-frexp.c (ASSERT): Likewise.
54759         * tests/test-printf-frexpl.c (ASSERT): Likewise.
54760         * tests/test-printf-posix.c (ASSERT): Likewise.
54761         * tests/test-quotearg.c (ASSERT): Likewise.
54762         * tests/test-rbtree_list.c (ASSERT): Likewise.
54763         * tests/test-rbtree_oset.c (ASSERT): Likewise.
54764         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
54765         * tests/test-round1.c (ASSERT): Likewise.
54766         * tests/test-roundf1.c (ASSERT): Likewise.
54767         * tests/test-roundl.c (ASSERT): Likewise.
54768         * tests/test-signbit.c (ASSERT): Likewise.
54769         * tests/test-sleep.c (ASSERT): Likewise.
54770         * tests/test-snprintf-posix.c (ASSERT): Likewise.
54771         * tests/test-snprintf.c (ASSERT): Likewise.
54772         * tests/test-sprintf-posix.c (ASSERT): Likewise.
54773         * tests/test-stat-time.c (ASSERT): Likewise.
54774         * tests/test-strcasestr.c (ASSERT): Likewise.
54775         * tests/test-strerror.c (ASSERT): Likewise.
54776         * tests/test-striconv.c (ASSERT): Likewise.
54777         * tests/test-striconveh.c (ASSERT): Likewise.
54778         * tests/test-striconveha.c (ASSERT): Likewise.
54779         * tests/test-strsignal.c (ASSERT): Likewise.
54780         * tests/test-strstr.c (ASSERT): Likewise.
54781         * tests/test-strtod.c (ASSERT): Likewise.
54782         * tests/test-trunc1.c (ASSERT): Likewise.
54783         * tests/test-trunc2.c (ASSERT): Likewise.
54784         * tests/test-truncf1.c (ASSERT): Likewise.
54785         * tests/test-truncf2.c (ASSERT): Likewise.
54786         * tests/test-truncl.c (ASSERT): Likewise.
54787         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
54788         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
54789         * tests/test-vasnprintf.c (ASSERT): Likewise.
54790         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
54791         * tests/test-vasprintf.c (ASSERT): Likewise.
54792         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
54793         * tests/test-vprintf-posix.c (ASSERT): Likewise.
54794         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
54795         * tests/test-vsnprintf.c (ASSERT): Likewise.
54796         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
54797         * tests/test-wcwidth.c (ASSERT): Likewise.
54798         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
54799         * tests/test-xprintf-posix.c (ASSERT): Likewise.
54800         * tests/test-xvasprintf.c (ASSERT): Likewise.
54801         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
54802         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
54803         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
54804         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
54805         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
54806         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
54807         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
54808         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
54809         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
54810         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
54811         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
54812         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
54813         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
54814         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
54815         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
54816         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
54817         * tests/unictype/test-block_list.c (ASSERT): Likewise.
54818         * tests/unictype/test-block_of.c (ASSERT): Likewise.
54819         * tests/unictype/test-block_test.c (ASSERT): Likewise.
54820         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
54821         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
54822         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
54823         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
54824         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
54825         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
54826         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
54827         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
54828         * tests/unictype/test-combining.c (ASSERT): Likewise.
54829         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
54830         * tests/unictype/test-digit.c (ASSERT): Likewise.
54831         * tests/unictype/test-mirror.c (ASSERT): Likewise.
54832         * tests/unictype/test-numeric.c (ASSERT): Likewise.
54833         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
54834         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
54835         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
54836         * tests/unictype/test-scripts.c (ASSERT): Likewise.
54837         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
54838         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
54839         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
54840         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
54841         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
54842         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
54843         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
54844         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
54845         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
54846         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
54847         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
54848         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
54849         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
54850         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
54851         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
54852         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
54853         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
54854         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
54855         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
54856         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
54857         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
54858         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
54859         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
54860         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
54861         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
54862         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
54863         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
54864         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
54865         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
54866         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
54867         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
54868         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
54869         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
54870         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
54871         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
54872         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
54873         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
54874         Reported by Eric Blake.
54875
54876 2008-04-11  Bruno Haible  <bruno@clisp.org>
54877
54878         * lib/wchar.in.h: Tweak comment.
54879
54880 2008-04-11  Bruno Haible  <bruno@clisp.org>
54881
54882         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
54883         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
54884         gl_COMMON.
54885         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
54886
54887 2008-04-11  Bruno Haible  <bruno@clisp.org>
54888
54889         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
54890
54891 2008-04-11  Simon Josefsson  <simon@josefsson.org>
54892
54893         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
54894         of attempting to use non-existing /dev/*random.  Based on patch
54895         from Adam Strzelecki <ono@java.pl> in
54896         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
54897
54898 2008-04-08  Bruno Haible  <bruno@clisp.org>
54899
54900         Add tentative support for emx+gcc.
54901         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
54902         * lib/fpurge.c (fpurge): Likewise.
54903         * lib/freadable.c (freadable): Likewise.
54904         * lib/freadahead.c (freadahead): Likewise.
54905         * lib/freading.c (freading): Likewise.
54906         * lib/freadptr.c (freadptr): Likewise.
54907         * lib/freadseek.c (freadptrinc): Likewise.
54908         * lib/fseeko.c (rpl_fseeko): Likewise.
54909         * lib/fseterr.c (fseterr): Likewise.
54910         * lib/fwritable.c (fwritable): Likewise.
54911         * lib/fwriting.c (fwriting): Likewise.
54912         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
54913
54914 2008-04-09  Eric Blake  <ebb9@byu.net>
54915
54916         Avoid some autoconf warnings.
54917         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
54918         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
54919         * m4/afs.m4 (gl_AFS): Likewise.
54920         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
54921         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
54922         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54923         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
54924         (gl_INTEGER_TYPE_SUFFIX): Likewise.
54925         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
54926         (AC_CHECK_DECLS_ONCE): Likewise.
54927         Rename file...
54928         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
54929         gnulib-tool requires autoconf 2.59 or better.
54930         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
54931
54932 2008-04-08  Eric Blake  <ebb9@byu.net>
54933
54934         Use 'git describe --match' if present (added in git 1.5.5).
54935         * build-aux/git-version-gen: Limit result to tags that match 'v*'
54936         if possible.
54937
54938 2008-04-08  Bruno Haible  <bruno@clisp.org>
54939
54940         Add tentative support for OpenServer.
54941         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
54942         _ptr, _cnt.
54943         * lib/fpurge.c (fpurge): Likewise.
54944         * lib/freadable.c (freadable): Likewise.
54945         * lib/freadahead.c (freadahead): Likewise.
54946         * lib/freading.c (freading): Likewise.
54947         * lib/freadptr.c (freadptr): Likewise.
54948         * lib/freadseek.c (freadptrinc): Likewise.
54949         * lib/fseeko.c (rpl_fseeko): Likewise.
54950         * lib/fseterr.c (fseterr): Likewise.
54951         * lib/fwritable.c (fwritable): Likewise.
54952         * lib/fwriting.c (fwriting): Likewise.
54953         Reported by Roger Cornelius <rac@tenzing.org> and
54954         Brian K. White <brian@aljex.com>.
54955
54956 2008-04-06  Jim Meyering  <meyering@redhat.com>
54957
54958         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
54959
54960 2008-04-06  Bruno Haible  <bruno@clisp.org>
54961
54962         Avoid possible error with non-ASCII bytes in UTF-8 locales.
54963         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
54964         * tests/test-printf-posix.sh: Likewise.
54965         * tests/test-vfprintf-posix.sh: Likewise.
54966         * tests/test-vprintf-posix.sh: Likewise.
54967         * tests/test-xprintf-posix.sh: Likewise.
54968
54969 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54970
54971         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
54972         hide error from 'ls', needed on OS/2.
54973         Report by Elbert Pol <elbert.pol@gmail.com>.
54974
54975 2008-04-04  Eric Blake  <ebb9@byu.net>
54976
54977         Make test-fseeko.c failures meaningful.
54978         * tests/test-fseeko.c: Print line number on failure.
54979         * tests/test-fseek.c: Likewise.
54980         Reported by Nelson H. F. Beebe.
54981
54982         Improve strtod bug detection check.
54983         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
54984         required for Solaris 10.
54985         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
54986
54987 2008-04-04  Bruno Haible  <bruno@clisp.org>
54988
54989         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
54990         by m4/setenv.m4.
54991
54992 2008-04-03  Eric Blake  <ebb9@byu.net>
54993
54994         Ensure sane .version contents.
54995         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
54996         version string.
54997         * build-aux/git-version-gen: Improve documentation.
54998
54999         Make GNU make output nicer.
55000         * top/GNUmakefile [!_have-Makefile]: Add dependency on
55001         MAKECMDGOALS to enforce message for all command line targets.  Set
55002         srcdir for use in maint.mk.
55003
55004         Another maintainer tweak.
55005         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
55006         a target that regenerates version.
55007
55008 2008-04-03  Jim Meyering  <meyering@redhat.com>
55009
55010         vc-list-files: don't cause coreutils "make po-check" failure
55011         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
55012
55013 2008-04-03  Eric Blake  <ebb9@byu.net>
55014
55015         Allow VPATH usage of vc-list-files.
55016         * build-aux/vc-list-files (scriptversion): Add timestamp.
55017         (options): Add --help, --version, -C.
55018         (CVS): Support installed cvsu.
55019
55020 2008-04-02  Bruno Haible  <bruno@clisp.org>
55021
55022         Avoid some "statement with no effect" warnings from gcc.
55023         * tests/test-wctype.c (main): Explicitly ignore unused values.
55024         Reported by Jim Meyering.
55025
55026 2008-04-02  Jim Meyering  <meyering@redhat.com>
55027
55028         Avoid some warnings from "gcc -Wshadow".
55029         * tests/test-frexp.c (exp): Define to a different identifier.
55030         * tests/test-frexpl.c (exp): Likewise.
55031
55032 2008-04-03  Jim Meyering  <meyering@redhat.com>
55033
55034         bootstrap: remove dangling *.[ch] symlinks from lib
55035         * build-aux/bootstrap [dangling symlink removal]: Move find's
55036         -depth option to precede all others, to avoid a warning.
55037         Remove *.[ch] files too, and from "$source_base" (usually lib/).
55038
55039 2008-04-02  Bruno Haible  <bruno@clisp.org>
55040
55041         Avoid some warnings from "gcc -Wshadow".
55042         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
55043         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
55044         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
55045         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
55046         Reported by Jim Meyering.
55047
55048 2008-04-01  Bruno Haible  <bruno@clisp.org>
55049
55050         Fix test to work on IRIX 6.5 with cc.
55051         * tests/test-math.c (numeric_equal): New function.
55052         (main): Use it.
55053
55054 2008-04-01  Bruno Haible  <bruno@clisp.org>
55055
55056         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
55057
55058 2008-04-01  Bruno Haible  <bruno@clisp.org>
55059
55060         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
55061         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55062         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
55063         (Depends-on): Remove math.
55064
55065         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
55066         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55067         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
55068         (Depends-on): Remove math.
55069
55070         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
55071         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55072         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
55073         (Depends-on): Remove math.
55074         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
55075         (Depends-on): Remove math.
55076
55077         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
55078         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55079         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
55080         (Depends-on): Remove math.
55081         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
55082         (Depends-on): Remove math.
55083
55084         * tests/test-round1.c: Include nan.h.
55085         (main): Use NaNd instead of NAN.
55086         * modules/round-tests (Files): Add tests/nan.h.
55087
55088         * tests/test-trunc1.c: Include nan.h.
55089         (main): Use NaNd instead of NAN.
55090         * modules/trunc-tests (Files): Add tests/nan.h.
55091
55092         * tests/test-roundf1.c: Include nan.h.
55093         (main): Use NaNf instead of NAN.
55094         * modules/roundf-tests (Files): Add tests/nan.h.
55095
55096         * tests/test-truncf1.c: Include nan.h.
55097         (main): Use NaNf instead of NAN.
55098         * modules/truncf-tests (Files): Add tests/nan.h.
55099
55100         * tests/test-ceilf1.c: Include nan.h.
55101         (main): Use NaNf instead of NAN.
55102         * modules/ceilf-tests (Files): Add tests/nan.h.
55103
55104         * tests/test-floorf1.c: Include nan.h.
55105         (main): Use NaNf instead of NAN.
55106         * modules/floorf-tests (Files): Add tests/nan.h.
55107
55108         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
55109         (main): Use NaNf instead of NAN.
55110         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
55111
55112         * tests/test-isnand.c: Include nan.h instead of <math.h>.
55113         (main): Use NaNd instead of NAN.
55114         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
55115
55116         * tests/test-frexp.c: Include nan.h.
55117         (main): Use NaNd instead of NAN.
55118         * modules/frexp-tests (Files): Add tests/nan.h.
55119
55120         * lib/isnan.c: Don't include <math.h>.
55121         (FUNC): Don't use NAN macro.
55122         * modules/isnand-nolibm (Depends-on): Remove math.
55123         * modules/isnanf-nolibm (Depends-on): Remove math.
55124         * modules/isnanl (Depends-on): Remove math.
55125         * modules/isnanl-nolibm (Depends-on): Remove math.
55126
55127         * tests/nan.h: New file.
55128
55129 2008-04-01  Eric Blake  <ebb9@byu.net>
55130
55131         Fix typos.
55132         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
55133         values to be the right type.
55134
55135         For now, cater to gnulib strtod inaccuracies.
55136         * tests/test-strtod.c (main): Allow 1-ulp error on expected
55137         fractional results.  While not as nice from a QoI perspective, it
55138         is a quicker patch than correctly implementing decimal to binary
55139         rounding.
55140
55141 2008-03-31  Eric Blake  <ebb9@byu.net>
55142
55143         Guarantee a definition of NAN.
55144         * lib/math.in.h (NAN): Define if missing.
55145         * tests/test-math.c (main): Test it.
55146         * doc/posix-headers/math.texi (math.h): Document this.
55147         * lib/isnan.c (rpl_isnand): Use it.
55148         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
55149         * tests/test-floorf1.c (NaN): Likewise.
55150         * tests/test-frexp.c (NaN): Likewise.
55151         * tests/test-isnand.c (NaN): Likewise.
55152         * tests/test-isnanf.c (NaN): Likewise.
55153         * tests/test-round1.c (NaN): Likewise.
55154         * tests/test-roundf1.c (NaN): Likewise.
55155         * tests/test-snprintf-posix.h (NaN): Likewise.
55156         * tests/test-sprintf-posix.h (NaN): Likewise.
55157         * tests/test-trunc1.c (NaN): Likewise.
55158         * tests/test-truncf1.c (NaN): Likewise.
55159         * tests/test-vasnprintf-posix.c (NaN): Likewise.
55160         * tests/test-vasprintf-posix.c (NaN): Likewise.
55161         * modules/isnand-nolibm (Depends-on): Add math.
55162         * modules/isnanf-nolibm (Depends-on): Likewise.
55163         * modules/isnanl (Depends-on): Likewise.
55164         * modules/isnanl-nolibm (Depends-on): Likewise.
55165         * modules/snprintf-posix-tests (Depends-on): Likewise.
55166         * modules/sprintf-posix-tests (Depends-on): Likewise.
55167         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
55168         * modules/vsprintf-posix-tests (Depends-on): Likewise.
55169         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
55170         * modules/vasprintf-posix-tests (Depends-on): Likewise.
55171
55172 2008-03-31  Bruno Haible  <bruno@clisp.org>
55173
55174         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
55175         * doc/posix-functions/strtod.texi: Likewise.
55176
55177 2008-03-31  Bruno Haible  <bruno@clisp.org>
55178
55179         * tests/test-strtod.c (main): Don't use C99 syntax.
55180
55181 2008-03-31  Bruno Haible  <bruno@clisp.org>
55182
55183         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
55184         Reported by Eric Blake.
55185
55186 2008-03-31  Jim Meyering  <meyering@redhat.com>
55187
55188         Don't compare actual signbit return values.
55189         * tests/test-strtod.c (main): Rather, compare only their
55190         zero/non-zero nature.
55191
55192 2008-03-31  Eric Blake  <ebb9@byu.net>
55193
55194         More strtod documentation.
55195         * doc/posix-functions/strtod.texi (strtod): Interpret more test
55196         failures as distinct bugs.
55197
55198 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55199
55200         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
55201         Problem reported by Erik Benada in
55202         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
55203
55204 2008-03-30  Bruno Haible  <bruno@clisp.org>
55205
55206         * tests/test-strtod.c: Add comments about which assertion fails on which
55207         platform.
55208         * doc/posix-functions/strtod.texi: Add info about many more platforms.
55209
55210 2008-03-30  Eric Blake  <ebb9@byu.net>
55211
55212         Test signbit behavior on zeros.
55213         * tests/test-signbit.c (test_signbitf): Add tests for zero.
55214         (test_signbitd, test_signbitl): Likewise.
55215
55216         More strtod touchups.
55217         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
55218         sign of negative underflow, for now.  Use .5, not .1.
55219         * doc/posix-functions/strtod.texi (strtod): Mention these
55220         limitations.
55221         Reported by Jim Meyering.
55222
55223 2008-03-30  Bruno Haible  <bruno@clisp.org>
55224
55225         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
55226         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
55227
55228 2008-03-30  Bruno Haible  <bruno@clisp.org>
55229
55230         Avoid failure when attempting to return empty iconv results on some
55231         platforms.
55232         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
55233         allocation, don't report ENOMEM when the resulting string is empty.
55234
55235 2008-03-30  Bruno Haible  <bruno@clisp.org>
55236
55237         Fix buffer overrun.
55238         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
55239         Don't consider the width for tmp_length. Check count against tmp_length
55240         before doing the padding. Ensure enough allocation during padding.
55241
55242 2008-03-30  Eric Blake  <ebb9@byu.net>
55243
55244         strtod touchups.
55245         * lib/strtod.c (strtod): Avoid compiler warnings.
55246         Reported by Jim Meyering.
55247
55248 2008-03-30  Bruno Haible  <bruno@clisp.org>
55249
55250         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
55251         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
55252         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
55253         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
55254         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
55255         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
55256         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
55257         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
55258
55259         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
55260         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
55261         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
55262         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
55263         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
55264         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
55265         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
55266         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
55267
55268         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
55269         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
55270         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
55271         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
55272         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
55273         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
55274         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
55275         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
55276
55277         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
55278         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
55279
55280         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
55281         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
55282
55283         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
55284         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
55285
55286         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
55287         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
55288         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
55289
55290         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
55291         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
55292         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
55293
55294         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
55295         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
55296         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
55297
55298         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
55299         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
55300         * modules/vasprintf (Depends-on): Add EOVERFLOW.
55301
55302         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
55303         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
55304         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
55305         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
55306         (Depends-on): Add EOVERFLOW.
55307         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
55308         (Depends-on): Add EOVERFLOW.
55309         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
55310         (Depends-on): Add EOVERFLOW.
55311         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
55312         (Depends-on): Add EOVERFLOW.
55313         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
55314         (Depends-on): Add EOVERFLOW.
55315         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
55316         (Depends-on): Add EOVERFLOW.
55317         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
55318         (Depends-on): Add EOVERFLOW.
55319         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
55320         (Depends-on): Add EOVERFLOW.
55321
55322         * lib/sprintf.c (EOVERFLOW): Remove fallback.
55323         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
55324         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
55325
55326         * lib/snprintf.c (EOVERFLOW): Remove fallback.
55327         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
55328         * modules/snprintf (Depends-on): Add EOVERFLOW.
55329
55330         * lib/poll.c (EOVERFLOW): Remove fallback.
55331         * modules/poll (Depends-on): Add EOVERFLOW.
55332
55333         * lib/getugroups.c (EOVERFLOW): Remove fallback.
55334         * modules/getugroups (Depends-on): Add EOVERFLOW.
55335
55336         * lib/getdelim.c (EOVERFLOW): Remove fallback.
55337         * modules/getdelim (Depends-on): Add EOVERFLOW.
55338
55339         * lib/ftell.c (EOVERFLOW): Remove fallback.
55340         * modules/ftell (Depends-on): Add EOVERFLOW.
55341
55342         * lib/fprintf.c (EOVERFLOW): Remove fallback.
55343         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
55344         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
55345
55346         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
55347
55348         * modules/EOVERFLOW-tests: New file.
55349         * tests/test-EOVERFLOW.c: New file.
55350
55351         * modules/EOVERFLOW: New file.
55352         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
55353
55354 2008-03-30  Bruno Haible  <bruno@clisp.org>
55355
55356         Fix bug introduced on 2007-06-10.
55357         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
55358         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
55359
55360 2008-03-30  Bruno Haible  <bruno@clisp.org>
55361
55362         Improve freadseek's efficiency after ungetc.
55363         * lib/freadseek.c: Include freadahead.h.
55364         (freadptrinc): New function, extracted from freadseek.
55365         (freadseek): Use it in a loop. Use freadahead to determine the number
55366         of loop iterations.
55367         * modules/freadseek (Depends-on): Add freadahead.
55368         (configure.ac): Require AC_C_INLINE.
55369
55370 2008-03-30  Bruno Haible  <bruno@clisp.org>
55371
55372         * lib/freadseek.c (freadseek): Don't ignore the return value of
55373         freadptr.
55374
55375 2008-03-29  Eric Blake  <ebb9@byu.net>
55376
55377         Add hex float support.
55378         * modules/strtod (Depends-on): Add c-ctype.
55379         (Link): Mention POW_LIB.
55380         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
55381         whitespace between 'e' and exponent.
55382         * tests/test-strtod.c (main): Enable hex float tests.
55383         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
55384         now provides.
55385
55386         Document various strtod bugs, with some fixes.
55387         * doc/posix-functions/strtod.texi (strtod): Document bugs with
55388         "-0x", "inf", "nan", and hex constants.
55389         * doc/posix-functions/atof.texi (atof): Likewise.
55390         * modules/stdlib (Makefile.am): Support strtod.
55391         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
55392         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
55393         detect additional strtod bugs.
55394         * lib/stdlib.in.h (rpl_strtod): Add declarations.
55395         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
55396         bool where appropriate.  Parse 'inf' and 'nan'.
55397         * tests/test-strtod.c: New file.
55398         * modules/strtod (Depends-on): Add stdbool, stdlib.
55399         (configure.ac): Turn on module indicator.
55400         * modules/strtod-tests: New module.
55401
55402 2008-03-29  Eric Blake  <ebb9@byu.net>
55403
55404         Fix ftell on mingw.
55405         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
55406         * modules/ftell-tests (Depends-on): Add binary-io.
55407         * modules/ftello-tests (Depends-on): Likewise.
55408         * tests/test-ftell.c (main): Enhance test to cover behavior after
55409         ungetc.  Enforce binary mode.
55410         * tests/test-ftello.c (main): Likewise.
55411
55412         Pass test-freadseek on cygwin.
55413         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
55414         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
55415         ungetc buffer.
55416
55417         * tests/test-fflush2.c (main): Fix typo.
55418
55419 2008-03-29  Bruno Haible  <bruno@clisp.org>
55420
55421         * tests/test-fflush2.c (main): Temporarily disable the contents of
55422         this test.
55423         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
55424         Reported by Eric Blake.
55425
55426 2008-03-28  Simon Josefsson  <simon@josefsson.org>
55427
55428         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
55429         (GC_SHA224_DIGEST_SIZE): Add.
55430
55431         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
55432         (gc_hash_digest_length): Likewise.
55433         (gc_hash_buffer): Likewise.
55434
55435 2008-03-25  Bruno Haible  <bruno@clisp.org>
55436
55437         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
55438         detail which gettext release to use.
55439         Reported by Simon Josefsson.
55440
55441 2008-03-26  Jim Meyering  <meyering@redhat.com>
55442
55443         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
55444         * modules/gnumakefile (clean-GNUmakefile): Also, use
55445         test ... && ... || : syntax rather than if-then ... fi.
55446
55447         gnumakefile: Don't double-quote-expand $(VPATH) value.
55448         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
55449
55450 2008-03-24  Eric Blake  <ebb9@byu.net>
55451
55452         Alter GNUmakefile to install into top directory.
55453         * modules/maintainer-makefile: Split, and add dependency...
55454         * modules/gnumakefile: to this new module.
55455         * build-aux/GNUmakefile: Move...
55456         * top/GNUmakefile: ...here.
55457         * build-aux/maint.mk: Move...
55458         * top/maint.mk: ...here.
55459         * MODULES.html.sh (Support for maintaining...): Document new
55460         module.
55461
55462 2008-03-23  Bruno Haible  <bruno@clisp.org>
55463
55464         * gnulib-tool: New options --vc-files, --no-vc-files.
55465         (func_usage): Document them.
55466         (vc_files): New variable.
55467         (func_import): Consider vc_files.
55468         (func_create_testdir): Set vc_files to empty.
55469         Suggested by Jim Meyering and Karl Berry.
55470
55471 2008-03-23  Bruno Haible  <bruno@clisp.org>
55472
55473         Fix regex compilation error on HP-UX 11.
55474         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
55475         * modules/regex (Files): Add m4/mbstate_t.m4.
55476         Reported by Ton Voon <ton.voon@altinity.com>.
55477
55478 2008-03-23  Bruno Haible  <bruno@clisp.org>
55479
55480         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
55481
55482 2008-03-23  Eric Blake  <ebb9@byu.net>
55483             Bruno Haible  <bruno@clisp.org>
55484
55485         Install files from top/ in the destination directory.
55486         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55487         augmentation also for the files from top/.
55488         (func_import, func_create_testdir): Rewrite file names:
55489         top/filename -> filename.
55490
55491 2008-03-23  Bruno Haible  <bruno@clisp.org>
55492
55493         Tweak "gnulib --version" output.
55494         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
55495
55496 2008-03-23  Bruno Haible  <bruno@clisp.org>
55497
55498         Tweak "gnulib --version" output.
55499         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
55500         rather than contents of ChangeLog, when possible.
55501
55502 2008-03-21  Eric Blake  <ebb9@byu.net>
55503
55504         More --version tweaks.
55505         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
55506         date of last ChangeLog entry.
55507
55508 2008-03-21  Jim Meyering  <meyering@redhat.com>
55509
55510         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
55511
55512 2008-03-20  Eric Blake  <ebb9@byu.net>
55513
55514         VPATH fix.
55515         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
55516
55517 2008-03-20  Simon Josefsson  <simon@josefsson.org>
55518
55519         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
55520         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
55521
55522 2008-03-20  Eric Blake  <ebb9@byu.net>
55523
55524         Sync GNUmakefile with coreutils.
55525         * build-aux/GNUmakefile (have-Makefile): Rename...
55526         (_have-Makefile): ...to this, for namespace consideration.
55527         (GNUmakefile.cfg): Include, if present.
55528         (_autoreconf): Define a default.
55529         (_is-dist-target): New rule for rebuilds to pick up intra-release
55530         version.
55531         (maint-cfg.mk): Rename...
55532         (cfg.mk): ...to this.
55533
55534 2008-03-18  Jim Meyering  <meyering@redhat.com>
55535
55536         New script and module: mktempd
55537         * MODULES.html.sh (maint+release support): Add mktempd.
55538         * build-aux/mktempd: New file.
55539         * modules/mktempd: New file.
55540
55541 2008-03-15  Jim Meyering  <meyering@redhat.com>
55542
55543         Undo last change.
55544         * lib/sha1.c, lib/md5.c: 63 != ~63.
55545         Reported by Andreas Schwab.
55546
55547         sha1.c, md5.c: Hoist a redundant expression.
55548         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
55549         "ctx->buflen" only once, before calling *_process_block.
55550         * lib/md5.c (md5_process_bytes): Likewise.
55551
55552 2008-03-14  Eric Blake  <ebb9@byu.net>
55553
55554         Bump copyright year in files generated by gnulib-tool.
55555         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
55556         gnulib-tool, rather than hard-coding it.
55557
55558         Fix 'gnulib-tool --version' output to work with git.
55559         * gnulib-tool (func_gnulib_dir): New function, extracted from...
55560         (startup): ...here.
55561         (func_version): Use it to invoke git-version-gen, rather than
55562         relying on CVS keyword expansion.  Modernize wording.
55563         (cvsdatestamp, last_checkin_date, version): Kill unused
55564         variables.
55565
55566 2008-03-12  Jim Meyering  <meyering@redhat.com>
55567
55568         Recognize optional cast of the argument to free.
55569         * build-aux/useless-if-before-free: Update regexps.
55570
55571         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
55572
55573 2008-03-11  Bruno Haible  <bruno@clisp.org>
55574
55575         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
55576         by a single package.
55577         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
55578         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
55579         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
55580         Reported by Sam Steingold <sds@gnu.org>.
55581
55582 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55583
55584         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
55585         repositories.
55586
55587 2008-03-11  Bruno Haible  <bruno@clisp.org>
55588
55589         Avoid conflicts between local macro definitions.
55590         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55591         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
55592
55593 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
55594             Bruno Haible  <bruno@clisp.org>
55595
55596         Make va_copy work with some version of xlc on AIX 5.1.
55597         * lib/stdarg.in.h: New file.
55598         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
55599         On AIX, use a <stdarg.h> file substitute.
55600         * modules/stdarg (Files): Add lib/stdarg.in.h.
55601         (Depends-on): Add include_next.
55602         (Makefile.am): Build a stdarg.h substitute if requested.
55603         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
55604
55605 2008-03-10  Bruno Haible  <bruno@clisp.org>
55606
55607         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
55608         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55609         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
55610
55611 2008-03-10  Bruno Haible  <bruno@clisp.org>
55612
55613         * modules/stdlib (Depends-on): Add include_next, remove
55614         absolute-header.
55615
55616 2008-03-09  Bruno Haible  <bruno@clisp.org>
55617
55618         * lib/freadahead.h (freadahead): Document more precisely.
55619         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
55620         the sum of both buffer sizes.
55621         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
55622         * NEWS: Document the change.
55623
55624 2008-03-09  Bruno Haible  <bruno@clisp.org>
55625
55626         Extend freadptr to return also the buffer size.
55627         * lib/freadptr.h (freadptr): Add sizep argument.
55628         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
55629         (freadptr): Add sizep argument. Determine buffer size like freadahead
55630         does.
55631         * tests/test-freadptr.c: Don't include freadahead.h.
55632         (main): Adapt for new calling convention of freadptr.
55633         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
55634         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
55635         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
55636         tests/test-freadptr2.sh.
55637         (Depends): Remove freadahead.
55638         (TESTS): Add test-freadptr2.sh.
55639         (check_PROGRAMS): Add test-freadptr2.
55640
55641 2008-03-09  Bruno Haible  <bruno@clisp.org>
55642
55643         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
55644         Report and solution by Simon Josefsson.
55645
55646 2008-03-06  Bruno Haible  <bruno@clisp.org>
55647
55648         Make fflush after ungetc work on BSD platforms.
55649         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
55650         * tests/test-fflush2.c: New file.
55651         * tests/test-fflush2.sh: New file.
55652         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
55653         tests/test-fflush2.c.
55654         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
55655         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
55656
55657 2008-03-06  Eric Blake  <ebb9@byu.net>
55658
55659         Likewise for ftello.
55660         * modules/ftello (Dependencies): Add extensions.
55661         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
55662
55663 2008-03-06  Bruno Haible  <bruno@clisp.org>
55664
55665         * modules/fseeko (Dependencies): Add extensions.
55666         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
55667         Needed on glibc systems.
55668
55669 2008-03-06  Bruno Haible  <bruno@clisp.org>
55670
55671         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
55672         email address.
55673         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55674
55675 2008-03-06  Bruno Haible  <bruno@clisp.org>
55676
55677         * users.txt: Add libgnupdf.
55678
55679 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55680
55681         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
55682         (Header File Substitutes, Function Substitutes,
55683         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
55684         (Build robot for gnulib): Fix typo.
55685
55686 2008-03-06  Bruno Haible  <bruno@clisp.org>
55687
55688         * doc/gnulib-tool.texi (VCS Issues): Small updates.
55689         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55690
55691 2008-03-06  Bruno Haible  <bruno@clisp.org>
55692
55693         * doc/func.texi: New file, extracted from doc/gnulib.texi.
55694         * doc/gnulib.texi: Include it.
55695
55696 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55697
55698         * modules/func (License): Change license to unlimited; there was
55699         no LGPL parts in the module anyway.
55700
55701 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55702
55703         * modules/__func__: Renamed to modules/func.
55704         * modules/__func__-tests: Renamed to modules/func-tests.
55705         * tests/test-__func__.c: Renamed to tests/test-func.c.
55706         * m4/__func__.m4: Renamed to m4/func.m4.
55707         * doc/gnulib.texi (__func__): Section renamed to func.
55708         Suggested by Eric Blake <ebb9@byu.net>.
55709
55710 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55711
55712         * doc/gnulib.texi (__func__): Use C99 terminology when talking
55713         about __func__.  Make example self-contained.  Suggested by Eric
55714         Blake <ebb9@byu.net>.
55715
55716         * tests/test-__func__.c (main): Avoid extraneous () around __func.
55717         Suggested by Eric Blake <ebb9@byu.net>.
55718
55719 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55720
55721         * modules/__func__: New file.
55722         * modules/__func__-tests: New file.
55723         * tests/test-__func__.c: New file.
55724         * m4/__func__.m4: New file.
55725         * doc/gnulib.texi (__func__): Document __func__ module.
55726
55727 2008-03-05  Simon Josefsson  <simon@josefsson.org>
55728
55729         * modules/byteswap (License): Re-license as LGPLv2+.
55730
55731 2008-03-05  Simon Josefsson  <simon@josefsson.org>
55732
55733         * doc/Makefile: Add pdf target.
55734
55735 2008-03-05  Simon Josefsson  <simon@josefsson.org>
55736
55737         * modules/inline (License): Use 'unlimited', since there are only
55738         *.m4 files in this module.
55739
55740 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
55741             Bruno Haible  <bruno@clisp.org>
55742
55743         Add support for HP C 7.1 on OpenVMS 8.3.
55744         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
55745
55746 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
55747
55748         Update VMS specifics.
55749         * lib/getopt.c [VMS]: Remove include of unixlib.h.
55750
55751 2008-03-02  Jim Meyering  <meyering@redhat.com>
55752
55753         Remove the last dependency on the "free" module.
55754         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
55755         Reported by Bob Proulx.
55756
55757         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
55758
55759         Remove useless "if" tests before free.  Deprecate "free" module.
55760         * doc/posix-functions/free.texi: Mention that this
55761         module is no longer useful.
55762         * modules/free (Notice): Say this module is obsolete.
55763         * modules/readutmp (Depends-on): Remove free.
55764         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
55765         * lib/putenv.c (putenv): Likewise.
55766         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
55767         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
55768         * tests/test-c-strcasestr.c (main): Likewise.
55769         * tests/test-c-strstr.c (main): Likewise.
55770         * tests/test-mbscasestr1.c (main): Likewise.
55771         * tests/test-mbscasestr2.c (main): Likewise.
55772         * tests/test-mbsstr1.c (main): Likewise.
55773         * tests/test-mbsstr2.c (main): Likewise.
55774         * tests/test-memmem.c (main): Likewise.
55775         * tests/test-strcasestr.c (main): Likewise.
55776         * tests/test-striconv.c (main): Likewise.
55777         * tests/test-striconveh.c (main): Likewise.
55778         * tests/test-striconveha.c (main): Likewise.
55779         * tests/test-strstr.c (main): Likewise.
55780
55781         * build-aux/git-version-gen: Adjust a comment and the Usage string.
55782
55783         bootstrap: sync from coreutils again
55784         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
55785
55786 2008-03-01  Jim Meyering  <meyering@redhat.com>
55787
55788         bootstrap: sync from coreutils
55789         * build-aux/bootstrap (update_po_files): Copy a .po file into place
55790         also when the target doesn't exist.
55791
55792 2008-03-01  Eric Blake  <ebb9@byu.net>
55793
55794         Fix bugs in last patch.
55795         * lib/memchr2.c (memchr2): Fix typo.
55796         * tests/test-memchr2.c: Test previous bug, and don't use GNU
55797         extension.
55798         Reported by Bruce Korb.
55799
55800         New module 'memchr2'.
55801         * modules/memchr2: New file.
55802         * modules/memchr2-tests: Likewise.
55803         * lib/memchr2.h: Likewise.
55804         * lib/memchr2.c: Likewise, based on memchr.c.
55805         * tests/test-memchr2.c: New test.
55806         * MODULES.html.sh (String handling): Add memchr2.
55807
55808 2008-02-29  Bruno Haible  <bruno@clisp.org>
55809
55810         * modules/freadseek-tests: New file.
55811         * tests/test-freadseek.sh: New file.
55812         * tests/test-freadseek.c: New file.
55813
55814         New module 'freadseek'.
55815         * modules/freadseek: New file.
55816         * lib/freadseek.h: New file.
55817         * lib/freadseek.c: New file.
55818         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
55819
55820 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
55821
55822         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
55823         wydawca.
55824
55825         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
55826         program_invocation_name and program_invocation_short_name are
55827         present.
55828
55829 2008-02-28  Bruno Haible  <bruno@clisp.org>
55830
55831         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
55832         * tests/test-freadptr.sh: Also test non-seekable stdin.
55833
55834 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
55835
55836         * build-aux/bootstrap (source_base, m4_base)
55837         (doc_base, tests_base): New variables.
55838         (gnulib_tool_options): Do not hardcode base directories, use
55839         the above variables instead.
55840
55841 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
55842
55843         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
55844
55845 2008-02-28  Bruno Haible  <bruno@clisp.org>
55846
55847         * modules/freadptr-tests: New file.
55848         * tests/test-freadptr.sh: New file.
55849         * tests/test-freadptr.c: New file.
55850
55851         New module 'freadptr'.
55852         * modules/freadptr: New file.
55853         * lib/freadptr.h: New file.
55854         * lib/freadptr.c: New file.
55855         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
55856
55857 2008-02-26  Karl Berry  <karl@freefriends.org>
55858
55859         Sync from Libtool:
55860         * libltdl/argz.c (argz_add, argz_count): New functions.
55861         * libltdl/argz.in.h: Declare them.
55862         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
55863
55864 2008-02-22  Bruno Haible  <bruno@clisp.org>
55865
55866         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
55867         is a pointer type.  Needed for HP-UX 10.
55868         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
55869         * doc/posix-functions/gmtime_r.texi: Likewise.
55870         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
55871
55872 2008-02-24  Bruno Haible  <bruno@clisp.org>
55873
55874         * modules/environ-tests: New file.
55875         * tests/test-environ.c: New file.
55876
55877         New module 'environ'.
55878         * modules/environ: New file.
55879         * lib/unistd.in.h (environ): New declaration.
55880         * m4/environ.m4: New file.
55881         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
55882         after use.
55883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
55884         HAVE_DECL_ENVIRON.
55885         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
55886         HAVE_DECL_ENVIRON.
55887         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
55888         wrong claim that 'environ' is missing on some systems.
55889         * modules/execute (Depends-on): Add environ.
55890         * lib/execute.c (environ): Remove fallback declaration.
55891         * modules/pipe (Depends-on): Add environ.
55892         * lib/pipe.c (environ): Remove fallback declaration.
55893         * modules/setenv (Depends-on): Add environ.
55894         * lib/setenv.c (environ): Remove fallback declaration.
55895         * modules/unsetenv (Depends-on): Add environ.
55896         * lib/unsetenv.c (environ): Remove fallback declaration.
55897         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
55898         m4/environ.m4.
55899         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
55900         (gl_PREREQ_UNSETENV): Likewise.
55901
55902 2008-02-24  Bruno Haible  <bruno@clisp.org>
55903
55904         * doc/posix-functions/environ.texi: Document the MacOS X problem.
55905
55906 2008-02-20  Bob Proulx  <bob@proulx.com>
55907
55908         Enable use of older two part flavor 'git describe'.
55909         * build-aux/git-version-gen: If using the older two part flavor of
55910         git version then recreate the third part now present in the
55911         newer three part flavor of git describe.
55912
55913 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
55914
55915         * lib/fts.c (fts_build): Typo correction to comment.
55916
55917 2008-02-17  Bruno Haible  <bruno@clisp.org>
55918
55919         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
55920         generating no-op conflicts.
55921
55922 2008-02-17  Bruno Haible  <bruno@clisp.org>
55923
55924         Speed up by 10%.
55925         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
55926         result_entries, rather than an index-based loop.
55927
55928 2008-02-17  Bruno Haible  <bruno@clisp.org>
55929
55930         Speed up by 25%.
55931         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
55932         'hashcode_cached'.
55933         (entry_create): New function.
55934         (entry_hashcode): Use the cached hashcode if possible.
55935         (read_changelog_file, try_split_merged_entry): Use entry_create.
55936
55937 2008-02-17  Bruno Haible  <bruno@clisp.org>
55938
55939         Speed up from O(n^2) to O(n) for long ChangeLog files.
55940         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
55941         (read_changelog_file): Change implementation of entries_reversed list
55942         to rbtreehash.
55943         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
55944
55945 2008-02-17  Bruno Haible  <bruno@clisp.org>
55946
55947         New option --split-merged-entry.
55948         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
55949         (find_paragraph_end, try_split_merged_entry): New functions.
55950         (long_options): Add option --split-merged-entry.
55951         (usage): Document option --split-merged-entry.
55952         (main): Implement option --split-merged-entry.
55953         Reported by Eric Blake.
55954
55955 2008-02-17  Bruno Haible  <bruno@clisp.org>
55956
55957         * lib/git-merge-changelog.c: Include c-strstr.h.
55958         (main): Support the "git pull --rebase" situation.
55959         * modules/git-merge-changelog (Depends-on): Add c-strstr.
55960         Reported by Eric Blake.
55961
55962 2008-02-16  Eric Blake  <ebb9@byu.net>
55963
55964         Avoid doubling \ in common case of "c-maybe" quoting style.
55965         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
55966         eliding outer quotes.
55967         * lib/quotearg.h: Document this.
55968         * tests/test-quotearg.c (result_strings, inputs, results_g)
55969         (flag_results, locale_results): Test it by adding a new string to
55970         each test group.
55971         (compare_strings): Test new string.
55972
55973 2008-02-13  Eric Blake  <ebb9@byu.net>
55974
55975         Avoid trigraph quoting in default output.
55976         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
55977         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
55978         unless explicitly requested.
55979         * tests/test-quotearg.c (flag_results, main): Add additional tests.
55980
55981 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
55982
55983         Don't rely on signed integer overflowing to negative value.
55984         * lib/getugroups.c (getugroups): Include <limits.h>.
55985         Instead, compare against INT_MAX, and increment only if the test passes.
55986
55987 2008-02-13  Jim Meyering  <meyering@redhat.com>
55988         and Eric Blake  <ebb9@byu.net>
55989
55990         Avoid shadowing warning and compile errors on Linux.
55991         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
55992         forwarding macros on Linux.
55993         (dcgettext): Define a stub, for Linux.
55994         (results_g, main): Avoid warnings.
55995
55996 2008-02-12  Eric Blake  <ebb9@byu.net>
55997
55998         Silence warning in last patch.
55999         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
56000
56001         Quotearg part 4: add tests, fix c-maybe colon quoting.
56002         * lib/quotearg.h: Improve documentation.
56003         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
56004         escapes when adding outer quotes.  When quoting trigraphs, use
56005         valid C notation.  When quoting NUL, omit extra characters if next
56006         character is not digit.  Alter prototype.
56007         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
56008         callers.
56009         * modules/quotearg-tests: New module.
56010         * tests/test-quotearg.c: New test.
56011
56012 2008-02-07  Eric Blake  <ebb9@byu.net>
56013
56014         Quotearg part 3: add flag to control outer quote elision.
56015         * lib/quotearg.h (c_maybe_quoting_style): New style.
56016         (enum quoting_flags): Better documentation of flags.
56017         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
56018         c-maybe style.
56019         (quotearg_buffer_restyled): Handle new flag to elide outer
56020         quotes.
56021
56022         Quotearg part 2: add flag that can control NUL elision.
56023         * lib/quotearg.h (set_quoting_flags): New prototype.
56024         * lib/quotearg.c (struct quoting_options): Add flag field.
56025         (set_quoting_flags): New function.
56026         (quotearg_buffer_restyled): Add flags parameter.
56027         (quotearg_alloc_mem): Set the flag if length cannot be returned.
56028         (quotearg_n_options): Set the flag, since length cannot be
56029         returned.
56030         (quoting_options_from_style): Default flags correctly.
56031
56032         Quotearg part 1: more wrappers, restore quotearg_char state.
56033         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
56034         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
56035         (quotearg_colon_mem): New wrappers.
56036         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
56037         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
56038         functions.
56039         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
56040         (quotearg_colon_mem): New functions.
56041
56042 2008-02-11  Bruno Haible  <bruno@clisp.org>
56043
56044         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
56045         library in the current directory: it does not work with parallel make.
56046         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56047
56048 2008-02-11  Bruno Haible  <bruno@clisp.org>
56049
56050         * .gitattributes: New file.
56051
56052 2008-02-11  Jim Meyering  <meyering@redhat.com>
56053
56054         useless-if-before-free: Fix reversed exit values.
56055         * build-aux/useless-if-before-free: Use correct values
56056         for EXIT_MATCH and EXIT_NO_MATCH.
56057
56058         * build-aux/useless-if-before-free: Close stdout carefully.
56059
56060 2008-02-10  Bruno Haible  <bruno@clisp.org>
56061
56062         New module 'git-merge-changelog'.
56063         * modules/git-merge-changelog: New file.
56064         * lib/git-merge-changelog.c: New file.
56065
56066 2008-02-10  Jim Meyering  <meyering@redhat.com>
56067
56068         useless-if-before-free: New option: --list (-l).
56069
56070         useless-if-before-free: Don't exit immediately upon open failure.
56071         * build-aux/useless-if-before-free: Exit 2 for errors.
56072         Upon failure to open a file, don't exit immediately.
56073         Rather, just warn and continue with any remaining files.
56074
56075 2008-02-10  Bruno Haible  <bruno@clisp.org>
56076
56077         New abstract list operation 'node_set_value'.
56078         * lib/gl_list.h (gl_list_node_set_value): New function.
56079         (struct gl_list_implementation): New field node_set_value.
56080         * lib/gl_list.c (gl_list_node_set_value): New function.
56081         * lib/gl_array_list.c (gl_array_node_set_value): New function.
56082         (gl_array_list_implementation): Update.
56083         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
56084         (gl_carray_list_implementation): Update.
56085         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
56086         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56087         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56088         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
56089         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56090         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56091         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56092         Update.
56093         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56094         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
56095         (gl_sublist_list_implementation): Update.
56096
56097 2008-02-10  Bruno Haible  <bruno@clisp.org>
56098
56099         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
56100         Needed when ELEMENT is #defined to 'some_type *'.
56101
56102 2008-02-10  Jim Meyering  <meyering@redhat.com>
56103
56104         New script and module: useless-if-before-free
56105         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
56106         * build-aux/useless-if-before-free: New file.
56107         * modules/useless-if-before-free: New file.
56108
56109         * build-aux/gitlog-to-changelog: Use committer date, not author date.
56110
56111         xstrtol_error: Fix typo.
56112         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
56113         s/exit_failure/exit_status/.
56114
56115 2008-02-09  Jim Meyering  <meyering@redhat.com>
56116
56117         New script and module: gitlog-to-changelog
56118         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
56119         * modules/gitlog-to-changelog: New file.
56120         * build-aux/gitlog-to-changelog: New file.
56121
56122 2008-02-08  Jim Meyering  <meyering@redhat.com>
56123
56124         Avoid two "parameter unused" warnings.
56125         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
56126         Mark "st" as used.
56127
56128         Use "git COMMAND", not "git-COMMAND".
56129         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
56130         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
56131         * build-aux/git-version-gen: Use "git status", not "git-status".
56132
56133 2008-02-07  Bruno Haible  <bruno@clisp.org>
56134
56135         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
56136         Avoids a crash on Windows Vista.
56137         Reported by Adam Strzelecki <ono@java.pl> via
56138         Simon Josefsson <simon@josefsson.org>.
56139
56140 2008-02-06  Bruno Haible  <bruno@clisp.org>
56141
56142         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
56143         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
56144         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
56145         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
56146         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56147         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56148         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
56149         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
56150         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56151         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56152         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56153         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56154         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56155         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56156         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56157         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
56158         left-adjust flag.
56159         * tests/test-snprintf-posix.h (test_function): Likewise.
56160         * tests/test-sprintf-posix.h (test_function): Likewise.
56161         * tests/test-vasprintf-posix.c (test_function): Likewise.
56162         * doc/posix-functions/fprintf.texi: Update.
56163         * doc/posix-functions/printf.texi: Update.
56164         * doc/posix-functions/snprintf.texi: Update.
56165         * doc/posix-functions/sprintf.texi: Update.
56166         * doc/posix-functions/vfprintf.texi: Update.
56167         * doc/posix-functions/vprintf.texi: Update.
56168         * doc/posix-functions/vsnprintf.texi: Update.
56169         * doc/posix-functions/vsprintf.texi: Update.
56170         Reported by Peter Fales <psfales@alcatel-lucent.com>.
56171
56172 2008-02-06  Bruno Haible  <bruno@clisp.org>
56173
56174         Fix bug introduced on 2008-01-26.
56175         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
56176
56177 2008-02-06  Bruno Haible  <bruno@clisp.org>
56178
56179         Fix bug introduced on 2007-06-10.
56180         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
56181         !NEED_PRINTF_FLAG_ZERO.
56182
56183 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
56184
56185         getloadavg: use libperfstat on AIX5
56186         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
56187
56188 2008-02-03  Bruno Haible  <bruno@clisp.org>
56189
56190         * lib/diffseq.h: Add comments about required #includes.
56191         Reported by Michael Biggs <gnulib@doubleplum.net>.
56192
56193 2008-02-01  Bruno Haible  <bruno@clisp.org>
56194
56195         * users.txt: Add gnuit.
56196
56197 2008-01-31  Bruno Haible  <bruno@clisp.org>
56198
56199         * lib/md4.c (set_uint32): Mark as inline.
56200         * lib/md5.c (set_uint32): Likewise.
56201         * lib/sha1.c (set_uint32): Likewise.
56202         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
56203         * m4/md5.m4 (gl_MD5): Likewise.
56204         * m4/sha1.m4 (gl_SHA1): Likewise.
56205
56206 2008-01-31  Jim Meyering  <meyering@redhat.com>
56207
56208         Use "sizeof VAR", rather than a literal "4".
56209         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
56210         * lib/md4.c (md4_read_ctx): Likewise.
56211         * lib/sha1.c (sha1_read_ctx): Likewise.
56212
56213 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56214
56215         * tests/test-sha1.c: New file, based on test-md5.c.
56216
56217         * modules/crypto/sha1-tests: New file.
56218
56219 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56220
56221         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
56222
56223 2008-01-31  Jim Meyering  <meyering@redhat.com>
56224
56225         Prefer "sizeof v" over the equivalent "4".
56226         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
56227         * lib/md5.c (set_uint32): Likewise.
56228         * lib/sha1.c (set_uint32): Likewise.
56229
56230 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56231
56232         * lib/sha1.c (set_uint32): Mark function as static.
56233
56234 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56235
56236         md2: clarify comments to say that alignment is not required.
56237         * lib/md2.h: Remove warning about alignment in comment.
56238         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
56239         never been required.
56240
56241 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56242
56243         md4: adapt alignment constraint fix from sha1.
56244         * lib/md4.c (set_uint32): New function, from sha1.c
56245         (md4_read_ctx): Use it.
56246         (md4_finish_ctx): Doc fix.
56247         * lib/md4.h: Doc fix.
56248
56249 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56250
56251         md5: adapt alignment constraint fix from sha1.
56252         * lib/md5.c (set_uint32): New function, from sha1.c
56253         (md5_read_ctx): Use it.
56254         (md5_finish_ctx): Doc fix.
56255         * lib/md5.h: Doc fix.
56256
56257 2008-01-30  Peter Palfrader  <weasel@debian.org>
56258
56259         sha1: remove the result buffer alignment constraint
56260         * lib/sha1.c (set_uint32): New function.
56261         (sha1_read_ctx): Rewrite to remove the result buffer alignment
56262         constraint.
56263         (sha1_finish_ctx): Remove comment warning about alignment constraint.
56264         * lib/sha1.h: Likewise.
56265
56266 2008-01-30  Andreas Schwab  <schwab@suse.de>
56267             Bruno Haible  <bruno@clisp.org>
56268
56269         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
56270         correct definition of LDBL_MIN_EXP.
56271
56272 2008-01-30  Karl Berry  <karl@gnu.org>
56273
56274         * config/srclist-update: try to preserve x bit on updates.
56275         * config/srclistvars.sh: update for karl.
56276
56277 2008-01-29  Jim Meyering  <meyering@redhat.com>
56278
56279         vasnprintf.c: Avoid warning about unused label
56280         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
56281         "overflow" label definition and associated code with the
56282         same cpp condition that guards the sole use of that label.
56283
56284 2008-01-26  Bruno Haible  <bruno@clisp.org>
56285
56286         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
56287         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
56288         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
56289         * lib/isnanl-nolibm.h (isnanl): Likewise.
56290         Reported by Paul Eggert <eggert@cs.ucla.edu>.
56291
56292 2008-01-26  Bruno Haible  <bruno@clisp.org>
56293
56294         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
56295         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
56296
56297 2008-01-26  Bruno Haible  <bruno@clisp.org>
56298
56299         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
56300         GCC >= 4.0 built-in.
56301         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
56302
56303 2008-01-26  Bruno Haible  <bruno@clisp.org>
56304
56305         Rename isnan, applicable to 'double' only, to isnand.
56306         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
56307         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
56308         (configure.ac): Update.
56309         (Include): Replace "isnan.h" with "isnand.h".
56310         * m4/isnand.m4: Renamed from m4/isnan.m4.
56311         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
56312         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
56313         instead of isnan.c.
56314         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
56315         instead of HAVE_ISNAN_IN_LIBC.
56316         (isnand): Renamed from isnan.
56317         * lib/isnand.c: New file.
56318         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
56319         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
56320         (Makefile.am): Update.
56321         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
56322         Include isnand.h instead of isnan.h.
56323         (main): Test isnand instead of isnan.
56324         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
56325         isnan-nolibm.
56326         * modules/frexp (Depends-on): Likewise.
56327         * modules/frexp-tests (Depends-on): Likewise.
56328         * modules/frexp-nolibm (Depends-on): Likewise.
56329         * modules/frexp-nolibm-tests (Depends-on): Likewise.
56330         * modules/isfinite (Depends-on): Likewise.
56331         * modules/round-tests (Depends-on): Likewise.
56332         * modules/signbit (Depends-on): Likewise.
56333         * modules/signbit-tests (Depends-on): Likewise.
56334         * modules/snprintf-posix (Depends-on): Likewise.
56335         * modules/sprintf-posix (Depends-on): Likewise.
56336         * modules/trunc-tests (Depends-on): Likewise.
56337         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56338         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56339         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56340         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56341         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56342         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56343         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56344         * modules/vasnprintf-posix (Depends-on): Likewise.
56345         * modules/vasprintf-posix (Depends-on): Likewise.
56346         * modules/vfprintf-posix (Depends-on): Likewise.
56347         * modules/vsnprintf-posix (Depends-on): Likewise.
56348         * modules/vsprintf-posix (Depends-on): Likewise.
56349         * lib/frexp.c: Include isnand.h instead of isnan.h.
56350         (ISNAN): Set to isnand instead of isnan.
56351         * lib/isfinite.c: Include isnand.h instead of isnan.h.
56352         (gl_isfinited): Use isnand instead of isnan.
56353         * lib/signbitd.c: Include isnand.h instead of isnan.h.
56354         (gl_signbitd): Use isnand instead of isnan.
56355         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
56356         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
56357         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
56358         (main): Use isnand instead of isnan.
56359         * tests/test-round1.c: Include isnand.h.
56360         (main): Use isnand instead of isnan.
56361         * tests/test-round2.c: Include isnand.h instead of isnan.h.
56362         (ISNAN): Set to isnand instead of isnan.
56363         * tests/test-trunc1.c: Include isnand.h.
56364         (main): Use isnand instead of isnan.
56365         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
56366         (equal): Use isnand instead of isnan.
56367         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
56368         isnand-nolibm.
56369         * NEWS: Mention the change.
56370
56371 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
56372             Bruno Haible  <bruno@clisp.org>
56373
56374         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
56375         the GCC builtins for signbits are present and set
56376         REPLACE_SIGNBIT_USING_GCC if so.
56377         * lib/math.in.h (signbit): Define using GCC builtins if
56378         REPLACE_SIGNBIT_USING_GCC is set.
56379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
56380         REPLACE_SIGNBIT_USING_GCC.
56381         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
56382
56383 2008-01-25  Jim Meyering  <meyering@redhat.com>
56384
56385         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
56386         * lib/poll.c: Include <config.h>, not "config.h".
56387         * tests/test-getaddrinfo.c: Likewise.
56388
56389 2008-01-25  Simon Josefsson  <simon@josefsson.org>
56390
56391         * modules/sockets-tests: New file.
56392
56393 2008-01-24  Simon Josefsson  <simon@josefsson.org>
56394
56395         * modules/sockets: New module, can be used to call WSA_Startup and
56396         WSA_Cleanup when needed.
56397
56398         * lib/sockets.h, lib/sockets.c: New files.
56399
56400         * m4/sockets.m4: New file.
56401
56402         * tests/test-sockets.c: New file.
56403
56404 2008-01-19  Bruno Haible  <bruno@clisp.org>
56405
56406         * doc/posix-headers: Renamed from doc/headers.
56407         * doc/posix-functions: Renamed from doc/functions.
56408         * doc/gnulib.texi: Update.
56409
56410 2008-01-19  Bruno Haible  <bruno@clisp.org>
56411
56412         * doc/glibc-functions/strcasestr.texi: Include contents of
56413         doc/functions/strcasestr.texi, fixing the list of platforms.
56414         * doc/functions/strcasestr.texi: Remove file.
56415
56416 2008-01-19  Bruno Haible  <bruno@clisp.org>
56417
56418         * doc/glibc-functions/memmem.texi: Include contents of
56419         doc/functions/memmem.texi.
56420         * doc/functions/memmem.texi: Remove file.
56421
56422 2008-01-18  Bruno Haible  <bruno@clisp.org>
56423
56424         * doc/glibc-functions/*.texi: New files.
56425         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
56426         to use the new files.
56427
56428 2008-01-17  Bruno Haible  <bruno@clisp.org>
56429
56430         * tests/test-gethostname.c (main): Fix printf statement.
56431
56432 2008-01-17  Simon Josefsson  <simon@josefsson.org>
56433
56434         * modules/gethostname-tests: New file.
56435
56436         * tests/test-gethostname.c: New file.
56437
56438 2008-01-17  Simon Josefsson  <simon@josefsson.org>
56439
56440         * lib/gethostname.c: Include string.h unconditionally, strncpy is
56441         used by the UNAME case.  Reported by Bruno Haible
56442         <bruno@clisp.org>.
56443
56444 2008-01-17  Eric Blake  <ebb9@byu.net>
56445
56446         Convert c-strcasestr to be more efficient.
56447         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
56448         (Depends-on): Add c-strcase, remove malloca, strnlen.
56449         * tests/test-c-strcasestr.c (main): Enhance test.
56450         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
56451
56452 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56453
56454         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
56455         Use it in creating po/Makevars.
56456
56457 2008-01-15  Simon Josefsson  <simon@josefsson.org>
56458
56459         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
56460         Applications that requires it should initialize libgcrypt
56461         manually.
56462
56463 2008-01-16  Simon Josefsson  <simon@josefsson.org>
56464
56465         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
56466
56467 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
56468
56469         Fix problem with getdate on mingw32 reported by Simon Josefsson
56470         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
56471         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
56472         tzname", when deciding whether to declare tzname.
56473         * lib/strftime.c (tzname): Likewise.
56474
56475 2008-01-15  Bruno Haible  <bruno@clisp.org>
56476
56477         Work around a MacOS X 10.5 bug in frexpl().
56478         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
56479         * doc/functions/frexpl.texi: Document the bug.
56480         Reported by Elias Pipping <pipping@gentoo.org>.
56481
56482 2008-01-14  Eric Blake  <ebb9@byu.net>
56483
56484         Touch up previous patch.
56485         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
56486         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
56487
56488         Convert strcasestr module to use Two-Way algorithm.
56489         * modules/strcasestr-simple: New module, based on the old
56490         strcasestr, but with Two-Way rather than KMP.
56491         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
56492         * lib/string.in.h (rpl_strcasestr): Declare.
56493         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
56494         performance.
56495         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
56496         * modules/string (Makefile.am): Support strcasestr.
56497         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
56498         * modules/strcasestr-tests (Depends-on): Check for alarm.
56499         * tests/test-strcasestr.c: Augment test.
56500         * lib/str-two-way.h: Clean up stray macro.
56501         * NEWS: Document new module.
56502         * MODULES.html.sh (string handling): Likewise.
56503         * doc/functions/strcasestr.texi: New file.
56504         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
56505         here, since it is not a POSIX function.
56506
56507 2008-01-14  Colin Watson  <cjwatson@debian.org>
56508             Bruno Haible  <bruno@clisp.org>
56509
56510         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
56511         works fine; if not, set REPLACE_STRSIGNAL.
56512         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
56513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56514         REPLACE_STRSIGNAL.
56515         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
56516         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
56517         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
56518
56519 2008-01-14  Bruno Haible  <bruno@clisp.org>
56520
56521         * modules/strsignal (Include): Change to <string.h>.
56522
56523 2008-01-14  Colin Watson  <cjwatson@debian.org>
56524
56525         * modules/argp (Notice): Add a notice recommending to change
56526         XGETTEXT_OPTIONS.
56527         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
56528
56529 2008-01-13  Colin Watson  <cjwatson@debian.org>
56530
56531         * modules/strsignal-tests: New file.
56532         * tests/test-strsignal.c: New file.
56533
56534         * lib/strsignal.c: New file, from glibc with modifications.
56535         * lib/siglist.h: New file, from glibc with modifications.
56536         * lib/string.in.h (strsignal): New declaration.
56537         * m4/strsignal.m4: New file.
56538         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56539         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
56540         * modules/strsignal: New file.
56541         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
56542         HAVE_DECL_STRSIGNAL.
56543
56544 2008-01-13  Bruno Haible  <bruno@clisp.org>
56545
56546         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
56547         locale encoding is not ASCII. Needed for OpenBSD 4.0.
56548         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56549         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56550
56551 2008-01-13  Bruno Haible  <bruno@clisp.org>
56552
56553         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
56554         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
56555         * lib/argp.h (__attribute__): Likewise.
56556         * lib/c-stack.c (__attribute__): Likewise.
56557         * lib/error.h (__attribute__): Likewise.
56558         * lib/fts.c (__attribute__): Likewise.
56559         * lib/openat.h (__attribute__): Likewise.
56560         * lib/stdio.in.h (__attribute__): Likewise.
56561         * lib/string.in.h (__attribute__): Likewise.
56562         * lib/utimens.c (__attribute__): Likewise.
56563         * lib/vasnprintf.h (__attribute__): Likewise.
56564         * lib/xalloc.h (__attribute__): Likewise.
56565         * lib/xprintf.h (__attribute__): Likewise.
56566         * lib/xstrtol.h (__attribute__): Likewise.
56567         * lib/xvasprintf.h (__attribute__): Likewise.
56568
56569 2008-01-12  Bruno Haible  <bruno@clisp.org>
56570
56571         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
56572         * doc/glibc-headers/a.out.texi: New file.
56573         * doc/glibc-headers/aliases.texi: New file.
56574         * doc/glibc-headers/alloca.texi: New file.
56575         * doc/glibc-headers/ar.texi: New file.
56576         * doc/glibc-headers/argp.texi: New file.
56577         * doc/glibc-headers/argz.texi: New file.
56578         * doc/glibc-headers/byteswap.texi: New file.
56579         * doc/glibc-headers/crypt.texi: New file.
56580         * doc/glibc-headers/endian.texi: New file.
56581         * doc/glibc-headers/envz.texi: New file.
56582         * doc/glibc-headers/err.texi: New file.
56583         * doc/glibc-headers/error.texi: New file.
56584         * doc/glibc-headers/execinfo.texi: New file.
56585         * doc/glibc-headers/fpu_control.texi: New file.
56586         * doc/glibc-headers/fstab.texi: New file.
56587         * doc/glibc-headers/fts.texi: New file.
56588         * doc/glibc-headers/getopt.texi: New file.
56589         * doc/glibc-headers/ieee754.texi: New file.
56590         * doc/glibc-headers/ifaddrs.texi: New file.
56591         * doc/glibc-headers/libintl.texi: New file.
56592         * doc/glibc-headers/mcheck.texi: New file.
56593         * doc/glibc-headers/mntent.texi: New file.
56594         * doc/glibc-headers/obstack.texi: New file.
56595         * doc/glibc-headers/paths.texi: New file.
56596         * doc/glibc-headers/printf.texi: New file.
56597         * doc/glibc-headers/pty.texi: New file.
56598         * doc/glibc-headers/resolv.texi: New file.
56599         * doc/glibc-headers/shadow.texi: New file.
56600         * doc/glibc-headers/sysexits.texi: New file.
56601         * doc/glibc-headers/ttyent.texi: New file.
56602
56603 2008-01-12  Jim Meyering  <meyering@redhat.com>
56604
56605         announce-gen: emit Gnulib's git-based version string.
56606         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
56607         New option --gnulib-version=V, where V is expected to be
56608         the output of running git describe in the gnulib directory.
56609         (get_tool_versions): Request feedback on xdelta.  I suspect it's
56610         not useful, and plan to stop publishing an xdelta file with each
56611         coreutils release.
56612
56613         * build-aux/announce-gen: Also check for lzma-compressed files.
56614
56615 2008-01-11  Bruno Haible  <bruno@clisp.org>
56616
56617         * tests/test-memmem.c (main): Increase maximum allowed time.
56618         * tests/test-strstr.c (main): Likewise.
56619
56620 2008-01-11  Bruno Haible  <bruno@clisp.org>
56621
56622         * doc/functions/memmem.texi: Add more precisions about platforms.
56623         * doc/functions/strstr.texi: Likewise.
56624
56625 2008-01-10  Eric Blake  <ebb9@byu.net>
56626
56627         * m4/strstr.m4: Delete cruft from copy-n-paste.
56628         Reported by Bruno Haible.
56629
56630 2008-01-10  Bruno Haible  <bruno@clisp.org>
56631
56632         Make c-strstr rely on strstr.
56633         * lib/c-strstr.c: Don't include str-kmp.h.
56634         (c_strstr): Define in terms of strstr.
56635         * modules/c-strstr (Files): Remove lib/str-kmp.h.
56636         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
56637
56638 2008-01-10  Bruno Haible  <bruno@clisp.org>
56639
56640         * doc/gnulib.texi (String Functions in C Locale): New section.
56641         * doc/c-ctype.texi: New file.
56642         * doc/c-strcase.texi: New file.
56643         * doc/c-strcaseeq.texi: New file.
56644         * doc/c-strcasestr.texi: New file.
56645         * doc/c-strstr.texi: New file.
56646         * doc/c-strtod.texi: New file.
56647         * doc/c-strtold.texi: New file.
56648
56649 2008-01-10  Eric Blake  <ebb9@byu.net>
56650
56651         * lib/relocatable.h: Fix a comment.
56652
56653 2008-01-10  Eric Blake  <ebb9@byu.net>
56654
56655         Share two-way algorithm.
56656         * lib/str-two-way.h: New file, merged from...
56657         * lib/memmem.c: ...here...
56658         * lib/strstr.c: ...and here.
56659         * modules/memmem (Files): Use it.
56660         * modules/strstr (Files): Likewise.
56661
56662         Avoid quadratic strstr implementations.
56663         * lib/strstr.c: New file.
56664         * m4/strstr.m4: Likewise.
56665         * modules/strstr: Likewise.
56666         * modules/strstr-tests: Likewise.
56667         * tests/test-strstr.c: Likewise.
56668         * lib/string.in.h (rpl_strstr): Declare.
56669         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
56670         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
56671         * modules/string (Makefile.am): Likewise.
56672         * MODULES.html.sh (string handling): Mention new module.
56673         * doc/functions/strstr.texi (strstr): Document the bug.
56674
56675 2008-01-10  Bruno Haible  <bruno@clisp.org>
56676
56677         * lib/relocatable.h (relocate): State whether result is freshly
56678         allocated or not.
56679         * lib/relocatable.c (relocate): Return a freshly allocated string
56680         instead of a pointer to a privately held string.
56681         Reported by Sylvain Beucler <beuc@gnu.org>.
56682
56683 2008-01-10  Colin Watson  <cjwatson@debian.org>
56684
56685         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
56686         s/S_ISNLK/S_ISLNK/.
56687
56688 2008-01-09  Bruno Haible  <bruno@clisp.org>
56689
56690         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
56691         and other files.
56692         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
56693         if it's only a guess.
56694         * modules/memmem: Simplify by depending on memmem-simple.
56695
56696 2008-01-09  Bruno Haible  <bruno@clisp.org>
56697
56698         Work around OpenBSD 4.0 tdelete() bug.
56699         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
56700         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
56701         macros and don't redefine the enum values.
56702         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
56703         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
56704         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
56705
56706 2008-01-09  Bruno Haible  <bruno@clisp.org>
56707
56708         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
56709         (main): Don't perform the tests if setlocale did not install a UTF-8
56710         locale. Needed on OpenBSD 4.0.
56711         * modules/wcwidth-tests (Depends-on): Add localcharset.
56712
56713 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56714
56715         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
56716         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
56717         * NEWS: announce this.
56718         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
56719
56720 2008-01-09  Simon Josefsson  <simon@josefsson.org>
56721         and Eric Blake  <ebb9@byu.net>
56722
56723         Add memmem-simple module.
56724         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
56725         (gl_FUNC_MEMMEM): Separate performance from presence checks.
56726         * modules/memmem-simple: New file.
56727         * modules/memmem (Description): Tweak.
56728         * MODULES.html.sh (string handling): Mention new module.
56729         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
56730         addressed by memmem-simple.
56731         * NEWS: Document the difference.
56732
56733 2008-01-09  Eric Blake  <ebb9@byu.net>
56734
56735         Give gcc some memmem optimization hints.
56736         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
56737         (strcasestr): Declare as pure.
56738         * modules/memmem (Maintainer): Claim my implementation.
56739
56740 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56741
56742         Support AIX 6.1 and higher.
56743         * build-aux/config.libpath: Likewise.
56744         * build-aux/config.rpath: Likewise.
56745
56746 2008-01-08  Jim Meyering  <meyering@redhat.com>
56747             Bruno Haible  <bruno@clisp.org>
56748
56749         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
56750         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
56751         Reported by Peter Fales in
56752         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
56753
56754 2008-01-08  Bruno Haible  <bruno@clisp.org>
56755
56756         * modules/unictype/category-of (Depends-on): Add
56757         unictype/category-none.
56758         * modules/unictype/category-and-tests (Depends-on): Add
56759         unictype/category-{L,N,Lu,Nd}.
56760         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
56761         * modules/unictype/category-or-tests (Depends-on): Add
56762         unictype/category-{L,N}.
56763         * modules/unictype/category-name-tests (Depends-on): Add
56764         unictype/category-{Z,Nl}.
56765         Reported by Simon Josefsson.
56766
56767 2008-01-08  Bruno Haible  <bruno@clisp.org>
56768
56769         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
56770         convention better.
56771         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
56772         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
56773         Reported by Peter Miller <millerp@canb.auug.org.au>.
56774
56775 2008-01-08  Eric Blake  <ebb9@byu.net>
56776
56777         Rewrite memmem to guarantee linear complexity without malloc.
56778         * lib/memmem.c (memmem): Use Two-Way rather than
56779         Knuth-Morris-Pratt, to allow O(1) space usage.
56780         (critical_factorization, two_way_short_needle)
56781         (two_way_long_needle): New functions.
56782         (knuth_morris_pratt): Delete.
56783         * modules/memmem (Depends-on): No longer need malloca or stdbool.
56784         Add stdint.
56785         * tests/test-memmem.c (main): Add tests for periodic needle and
56786         sublinear performance.
56787         * doc/functions/memmem.texi (memmem): Document other deficiencies
56788         in cygwin and older glibc.
56789
56790 2008-01-08  Bruno Haible  <bruno@clisp.org>
56791
56792         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
56793         augmentation.
56794
56795 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
56796
56797         Add a configure time option: --disable-acl.
56798         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
56799         AC_ARG_ENABLE(acl).
56800
56801 2008-01-06  Simon Josefsson  <simon@josefsson.org>
56802
56803         * tests/test-localename.c: Don't include obsolete "setenv.h".
56804
56805         * modules/localename-tests (Depends-on): Need unsetenv.
56806
56807 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56808
56809         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
56810
56811 2008-01-06  Colin Watson  <cjwatson@debian.org>
56812
56813         * users.txt: Add man-db.
56814
56815 2008-01-07  Bruno Haible  <bruno@clisp.org>
56816
56817         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
56818         previous section name.
56819
56820 2008-01-07  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/progname.c (set_program_name): Don't strip off a leading
56823         "lt-" prefix outside a .libs directory.
56824         Suggested by Paul Eggert.
56825
56826 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
56827             Bruno Haible  <bruno@clisp.org>
56828
56829         Improve memory cleanup in 'relocatable' module.
56830         * lib/relocatable.h (compute_curr_prefix): Change return type to
56831         'char *'.
56832         * lib/relocatable.c (compute_curr_prefix): Change return type to
56833         'char *'. Free curr_installdir after use.
56834         (relocate): Free curr_prefix_better after use.
56835         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
56836
56837 2008-01-01  Bruno Haible  <bruno@clisp.org>
56838
56839         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
56840         failure on older glibc systems.
56841         Reported by Peter Fales <psfales@alcatel-lucent.com>.
56842
56843 2008-01-05  Eric Blake  <ebb9@byu.net>
56844
56845         Avoid quadratic system memmem.
56846         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
56847         Reported by Ralf Wildenhues.
56848
56849         Fix memmem test for mingw.
56850         * modules/memmem-tests (configure.ac): Check for alarm.
56851         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
56852         it.
56853         * doc/functions/memmem.texi: New file.
56854         * doc/gnulib.texi (Function Substitutes): Add memmem.
56855         Reported by Bruno Haible.
56856
56857 2008-01-04  Bruno Haible  <bruno@clisp.org>
56858
56859         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
56860         Require gl_HEADER_STRINGS_H_DEFAULTS, not
56861         gl_HEADER_STRING_H_DEFAULTS.
56862
56863 2008-01-04  Eric Blake  <ebb9@byu.net>
56864
56865         Shorten duration of memmem test.
56866         * tests/test-memmem.c (main): Use alarm to declare failure if test
56867         is taking too long.
56868         Reported by Ralf Wildenhues.
56869
56870 2007-12-21  Simon Josefsson  <simon@josefsson.org>
56871
56872         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
56873         string, needed by strerror.
56874
56875 2008-01-03  Colin Watson  <cjwatson@debian.org>
56876             Bruno Haible  <bruno@clisp.org>
56877
56878         * doc/gnulib-tool.texi (Localization): New section.
56879
56880 2008-01-02  Bruno Haible  <bruno@clisp.org>
56881
56882         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
56883         variables to 'unsigned char *' type.
56884         Reported by Paul Eggert.
56885
56886 2008-01-02  Jim Meyering  <jim@meyering.net>
56887
56888         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
56889
56890 2007-12-31  Jim Meyering  <jim@meyering.net>
56891
56892         Avoid use of private FTS type name.
56893         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
56894
56895 2007-12-30  Karl Berry  <karl@gnu.org>
56896
56897         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
56898         work around defect in Texinfo and/or the standalone Info browser.
56899
56900 2007-12-30  Bruno Haible  <bruno@clisp.org>
56901
56902         Unify 5 copies of the KMP code.
56903         * lib/str-kmp.h: New file.
56904         * lib/c-strcasestr.c: Include str-kmp.h.
56905         (knuth_morris_pratt): Remove function.
56906         (c_strcasestr): Update.
56907         * lib/c-strstr.c: Include str-kmp.h.
56908         (knuth_morris_pratt): Remove function.
56909         (c_strcasestr): Update.
56910         * lib/mbscasestr.c: Include str-kmp.h.
56911         (knuth_morris_pratt_unibyte): Remove function.
56912         * lib/mbsstr.c: Include str-kmp.h.
56913         (knuth_morris_pratt_unibyte): Remove function.
56914         * lib/strcasestr.c: Include str-kmp.h.
56915         (knuth_morris_pratt): Remove function.
56916         (strcasestr): Update.
56917         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
56918         * modules/c-strstr (Files): Likewise.
56919         * modules/mbscasestr (Files): Likewise.
56920         * modules/mbsstr (Files): Likewise.
56921         * modules/strcasestr (Files): Likewise.
56922         Suggested by Paul Eggert.
56923
56924 2007-12-30  Bruno Haible  <bruno@clisp.org>
56925
56926         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
56927         defined.
56928
56929 2007-12-30  Bruno Haible  <bruno@clisp.org>
56930
56931         * lib/xmalloca.h: Include xalloc.h.
56932         (xnmalloca): New macro.
56933
56934 2007-12-30  Bruno Haible  <bruno@clisp.org>
56935
56936         * lib/malloca.h (nmalloca): New macro.
56937         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
56938         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
56939         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
56940         knuth_morris_pratt_multibyte): Likewise.
56941         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
56942         knuth_morris_pratt_multibyte): Likewise.
56943         * lib/memmem.c (knuth_morris_pratt): Likewise.
56944         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
56945
56946 2007-12-25  Bruno Haible  <bruno@clisp.org>
56947
56948         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
56949         * lib/glob.c: Don't include openat.h.
56950         (link_exists2_p): Add back the code that deals with the
56951         !GLOB_ALTDIRFUNC case.
56952         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
56953         let it do the filename concatenation.
56954         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
56955         * modules/glob (Depends-on): Remove openat.
56956
56957 2007-12-31  Bruno Haible  <bruno@clisp.org>
56958
56959         * modules/dirfd (License): Change to LGPLv2+.
56960         Approved by Jim Meyering.
56961
56962 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56963
56964         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
56965         when multiplying M by sizeof (size_t).
56966
56967 2007-12-10  Martin Lambers  <marlam@marlam.de>
56968
56969         Override getpagesize on mingw.
56970         * lib/getpagesize.c: New file.
56971         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
56972         * modules/getpagesize (Files): Add lib/getpagesize.c.
56973         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
56974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56975         REPLACE_GETPAGESIZE.
56976         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
56977
56978 2007-12-25  Bruno Haible  <bruno@clisp.org>
56979
56980         * modules/localcharset (Notice): New field.
56981         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
56982         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
56983
56984 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56985             Bruno Haible  <bruno@clisp.org>
56986
56987         Avoid using the syntax symbol() in formatted documentation.
56988         * MODULES.html.sh (func_module): When replacing symbol() with a
56989         hyperlink, remove the parentheses. Show an error if some remain.
56990         Recognize and render the '...' syntax.
56991         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
56992         Rework. Add paragraph about GCC's inlining.
56993         * doc/alloca.texi: Likewise.
56994         * doc/error.texi: Remove parentheses from symbol reference.
56995         * doc/gnulib-intro.texi: Likewise.
56996         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
56997         * modules/fnmatch (Description): Reword to say "the ... function".
56998         * modules/full-read (Description): Likewise.
56999         * modules/full-write (Description): Likewise.
57000         * modules/safe-read (Description): Likewise.
57001         * modules/safe-write (Description): Likewise.
57002         * modules/strchrnul (Description): Likewise.
57003         * modules/trim (Description): Likewise.
57004         * modules/error (Description): Remove parentheses from symbol
57005         references.
57006         * modules/verror (Description): Likewise.
57007         Reported by Karl Berry.
57008
57009 2007-12-25  Bruno Haible  <bruno@clisp.org>
57010
57011         Fixup after 2007-10-16 commit.
57012         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
57013
57014 2007-12-24  Bruno Haible  <bruno@clisp.org>
57015
57016         Make --enable-relocatable work with DESTDIR.
57017         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
57018         to compute installdir from destprog.
57019         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
57020         also set the RELOC_DESTDIR variable.
57021         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57022
57023 2007-12-24  Bruno Haible  <bruno@clisp.org>
57024
57025         Fix link error due to xalloc_die().
57026         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
57027         of xreadlink.
57028         * lib/relocwrapper.c: Update comments.
57029         * build-aux/install-reloc: Remove xreadlink.c from file list.
57030         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
57031         xreadlink.c.
57032         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57033
57034 2007-12-24  Bruno Haible  <bruno@clisp.org>
57035
57036         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
57037         * lib/setenv.h: Remove file.
57038         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
57039         lib/setenv.h.
57040         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
57041         (Depends-on): Add stdlib.
57042         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
57043         gl_FUNC_UNSETENV.
57044         (Include): Replace setenv.h with <stdlib.h>.
57045         * modules/unsetenv: New file.
57046         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
57047         * lib/unsetenv.c: Include <stdlib.h> first.
57048         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
57049         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
57050         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
57051         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
57052         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
57053         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
57055         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57056         * doc/functions/unsetenv.texi: Update.
57057         * modules/xsetenv (Depends-on): Add unsetenv.
57058         * modules/getdate (Depends-on): Likewise.
57059         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
57060         * lib/xsetenv.c: Don't include setenv.h.
57061         * lib/getdate.y: Likewise.
57062         * lib/relocwrapper.c: Likewise.
57063         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
57064         (Depends-on): Add stdlib.
57065         * NEWS: Mention the changes.
57066         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57067
57068 2007-12-23  Bruno Haible  <bruno@clisp.org>
57069
57070         * lib/memmem.c (memmem): Use lowercase variable names. Tab
57071         indentation.
57072
57073 2007-12-23  Bruno Haible  <bruno@clisp.org>
57074
57075         * lib/c-strcasestr.c: Add more comments.
57076         * lib/c-strstr.c: Likewise.
57077         * lib/mbscasestr.c: Likewise.
57078         * lib/mbsstr.c: Likewise.
57079         * lib/strcasestr.c: Likewise.
57080         * lib/memmem.c: Likewise.
57081
57082 2007-12-23  Bruno Haible  <bruno@clisp.org>
57083
57084         * tests/test-memmem.c: Include <string.h> first.
57085
57086 2007-12-22  Bruno Haible  <bruno@clisp.org>
57087
57088         * gnulib-tool (func_create_testdir): Change $auxdir while generating
57089         the contents of $testsbase.
57090         Reported by Ralf Wildenhues.
57091
57092 2007-12-22  Bruno Haible  <bruno@clisp.org>
57093
57094         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
57095         two variables local_ldadd_before, local_ldadd_last.
57096
57097 2007-12-20  Eric Blake  <ebb9@byu.net>
57098
57099         Work around circular library issue when cross-compiling.
57100         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
57101         that progname.o does not need to pull in rpl_memcmp.
57102
57103 2007-12-19  Eric Blake  <ebb9@byu.net>
57104
57105         Fix memmem to avoid O(n^2) worst-case complexity.
57106         * lib/memmem.c (knuth_morris_pratt): New function.
57107         (memmem): Use it if first few naive iterations fail.
57108         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
57109         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
57110         * modules/memchr (License): Likewise.
57111         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
57112         malloca.
57113         * tests/test-memmem.c: Rewrite, borrowing ideas from
57114         test-mbsstr1.c; the old version wouldn't even compile!
57115         * modules/memmem-tests: New file.
57116         * lib/string.in.h (rpl_memmem): Add declaration.
57117         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
57118         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
57119         REPLACE_MEMMEM.
57120
57121 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57122
57123         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
57124         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
57125         before any system include files, and undef after them all.  This
57126         should fix a problem on VMS reported by John E. Malmberg in
57127         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
57128
57129 2007-12-17  Eric Blake  <ebb9@byu.net>
57130
57131         Revert addition of verify, for BSD/OS.
57132         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
57133         can't handle large files, for the sake of obsolete platforms.
57134         * modules/fseeko (Depends-on): Remove verify.
57135         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
57136         * doc/functions/ftello.texi (ftello): Likewise.
57137         * doc/functions/fgetpos.texi (fgetpos): Likewise.
57138         Reported by Larry Jones.
57139
57140 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
57141
57142         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
57143         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
57144
57145 2007-12-17  Jim Meyering  <meyering@redhat.com>
57146
57147         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
57148         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
57149         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
57150         * modules/getcwd (Depends-on): Add openat.
57151         Reported by Petr Salinger.
57152
57153 2007-12-17  Bruno Haible  <bruno@clisp.org>
57154
57155         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
57156         avoid a segmentation fault of the configure test on x86_64 systems.
57157
57158 2007-12-15  Jim Meyering  <meyering@redhat.com>
57159
57160         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
57161
57162 2007-12-13  Eric Blake  <ebb9@byu.net>
57163
57164         Another fseek test.
57165         * tests/test-fseek.c (main): Also test ungetc handling.
57166         * tests/test-fseeko.c (main): Likewise.
57167         * modules/fseeko (Depends-on): Add verify.
57168         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
57169         large.
57170         Reported by Larry Jones.
57171
57172         Fix fseeko on mingw.
57173         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
57174         seek.
57175
57176         Beef up fseek tests.
57177         * tests/test-fseek.c (main): Also test eof handling.
57178         * tests/test-fseeko.c (main): Likewise.
57179         Reported by Larry Jones.
57180
57181 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
57182
57183         Fix fseeko on BSD-based platforms.
57184         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
57185         successful seek.
57186
57187 2007-12-12  Eric Blake  <ebb9@byu.net>
57188
57189         Allow circular dependency of separate libtests.a
57190         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
57191         when use_libtests.
57192
57193 2007-12-11  Eric Blake  <ebb9@byu.net>
57194
57195         Fix bug with -0.0L in previous patch.
57196         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
57197         * tests/test-isnan.c (main): Also test on zeroes.
57198         * tests/test-isnanf.c (main): Likewise.
57199         * tests/test-isnanl.h (main): Likewise.
57200
57201         Detect pseudo-denormals on x86 even when cross-compiling.
57202         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
57203         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
57204         invalid bit patterns that happen to satisfy ==.
57205
57206         Avoid link failures with separate libtests.a.
57207         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
57208         last, to satisfy circular dependencies.
57209
57210 2007-12-11  Eric Blake  <ebb9@byu.net>
57211         and Bruno Haible  <bruno@clisp.org>
57212
57213         Fix OpenBSD 4.0 <float.h> handling of long double.
57214         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
57215         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
57216         * doc/headers/float.texi (float.h): Document OpenBSD bug.
57217
57218 2007-12-11  Jim Meyering  <meyering@redhat.com>
57219
57220         * users.txt: Add libvirt.
57221
57222         Support versions of autoconf prior to 2.59c.
57223         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
57224         if it is not already defined.
57225
57226 2007-12-09  Bruno Haible  <bruno@clisp.org>
57227
57228         Let 'gnulib-tool --import' collect sources needed for the tests in
57229         tests/ rather than in lib/.
57230         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
57231         argument. If true, add rules to generate libtests.a, and put libtests.a
57232         into $(LDADD). Consider source files in subdirectories and set
57233         uses_subdirs.
57234         (func_emit_initmacro_start, func_emit_initmacro_end,
57235         func_emit_initmacro_done): Pass all arguments explicitly.
57236         (func_import): Determine two module lists main_modules,
57237         testsrelated_modules. Determine use_libtests. Determine two variables
57238         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
57239         instead of just sed_transform_lib_file. Determine two variables
57240         main_files and testsrelated_files. Compute 'files' as the union of
57241         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
57242         func_add_or_update. In the generated gnulib-comp.m4, collect the
57243         object files for tests/ in different variables than those for lib/.
57244         Substitute LIBTESTS_LIBDEPS.
57245         (func_create_testdir): Combine the uses_subdirs results from
57246         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
57247
57248 2007-12-09  Bruno Haible  <bruno@clisp.org>
57249
57250         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
57251         the build-aux directory.
57252
57253 2007-12-09  Bruno Haible  <bruno@clisp.org>
57254
57255         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
57256         introduced on 2006-09-09.
57257
57258 2007-12-07  Jim Meyering  <meyering@redhat.com>
57259
57260         Let these macros work also with autoconf-2.59.
57261         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
57262         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
57263         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57264
57265 2007-12-06  Jim Meyering  <meyering@redhat.com>
57266
57267         Avoid a configure-time syntax error in gl_FUNC_ACL.
57268         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
57269         function in each branch, before testing the cache variable.
57270
57271 2007-12-04  Eric Blake  <ebb9@byu.net>
57272
57273         Make scripts executable.
57274         * build-aux/config.guess: Add execute permissions.
57275         * build-aux/config.sub: Likewise.
57276         * build-aux/gendocs.sh: Likewise.
57277
57278         Fix frexp on mingw.
57279         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
57280         cross-compiling.
57281         * doc/functions/frexp.texi (frexp): Document the bug.
57282
57283         Make cygwin fseeko check more reliable.
57284         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
57285         version numbers, rather than unrelated feature check.
57286         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
57287         * doc/functions/ftello.texi (ftello): Likewise.
57288         Reported by Bruno Haible.
57289
57290         * m4/strerror.m4: Bump version number.
57291
57292 2007-12-03  Bruno Haible  <bruno@clisp.org>
57293
57294         * doc/functions/mprotect.texi: Mention the mingw problem.
57295
57296 2007-12-03  Eric Blake  <ebb9@byu.net>
57297
57298         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
57299         REPLACE_STRERROR is initialized before this macro.
57300
57301 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57302
57303         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
57304         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
57305         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
57306         put -lsec in even for programs other than 'ls'.  This fixes a problem
57307         for gettext reported by Bruno Haible in
57308         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
57309         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
57310         Add support for Solaris 10.  This isn't efficient, but should get the
57311         job done for now.
57312
57313 2007-12-03  James Youngman  <jay@gnu.org>
57314
57315         * doc/regexprops-generic.texi: change "an close-group" to "a
57316         close-group" and "illegal" to "not allowed".
57317
57318 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57319
57320         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
57321         pr_byname.h. Needed for the rare case when the maintainer has done
57322         "make maintainer-clean" in the source directory and then attempts a
57323         build outside the source directory.
57324         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
57325         scripts_byname.h.
57326
57327 2007-12-02  Martin Lambers <marlam@marlam.de>
57328             Bruno Haible  <bruno@clisp.org>
57329
57330         * lib/getpagesize.h: Remove file.
57331         * lib/unistd.in.h: Include declaration of getpagesize here.
57332         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
57333         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
57334         HAVE_SYS_PARAM_H.
57335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
57336         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
57337         * modules/getpagesize (Files): Remove lib/getpagesize.h.
57338         (Depends-on): Add unistd.
57339         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57340         (Include): Use <unistd.h> instead of getpagesize.h.
57341         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
57342         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
57343         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
57344         gl_GETPAGESIZE invocation, already handled by module dependency.
57345         * lib/pagealign_alloc.c: Don't include getpagesize.h.
57346
57347 2007-12-02  Bruno Haible  <bruno@clisp.org>
57348
57349         * modules/strings-tests: New file.
57350         * tests/test-strings.c: New file.
57351
57352         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
57353         * lib/strings.in.h: New file.
57354         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
57355         * m4/strings_h.m4: New file.
57356         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
57357         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
57358         * modules/strings: New file.
57359         * modules/string (Makefile.am): Update.
57360         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
57361         Reported by Karl Berry.
57362
57363 2007-12-01  Eric Blake  <ebb9@byu.net>
57364
57365         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
57366         accomodate fix in cygwin 1.5.25.
57367
57368 2007-12-01  Jim Meyering  <meyering@redhat.com>
57369
57370         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
57371         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
57372         that would inhibit utf8-optimization of a regexp containing line-
57373         or buffer-anchors, e.g., `^', `$'.
57374
57375 2007-11-30  Bruno Haible  <bruno@clisp.org>
57376
57377         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
57378         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
57379         glthread_recursive_lock_init.
57380         * lib/lock.c (glthread_recursive_lock_init)
57381         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
57382         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57383
57384 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
57385
57386         New function qset_acl, like set_acl but with syscall semantics.
57387         * lib/acl.h (qset_acl): New decl.
57388         * lib/acl.c (qset_acl): New function.
57389         (set_acl): Use new function.  Use more-consistent diagnostics.
57390
57391 2007-11-28  Jim Meyering  <meyering@redhat.com>
57392
57393         * modules/physmem (License): Change from GPL to LGPLv2+.
57394
57395 2007-11-26  Bruno Haible  <bruno@clisp.org>
57396
57397         * lib/vasnprintf.c (decode_long_double): Don't abort if the
57398         'long double' type has excess precision.
57399         Reported by Jim Meyering in
57400         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
57401
57402 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57403
57404         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
57405         Sync from <http://gnu.org/licenses>.
57406         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
57407         with license text from same location.
57408         * doc/maintain.texi, doc/standards.texi:  Sync from
57409         <http://savannah.gnu.org/projects/gnustandards>.
57410
57411 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
57412         and Jim Meyering  <meyering@redhat.com>
57413
57414         Adjust getdate' grammar to accept a slightly more regular language.
57415         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
57416         Before, the former was rejected.
57417         * lib/getdate.y (digits_to_date_time): New function, factored
57418         out of ...
57419         (number): ...here.  Just call digits_to_date_time.
57420         (hybrid): New non-terminal to handle an <unsigned number,
57421         signed relative offset> sequence consistently.
57422
57423 2007-11-18  Jim Meyering  <meyering@redhat.com>
57424
57425         Pull my changes from coreutils:
57426         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
57427         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
57428         use of $gnulib_tool_option_extras, so that it's separated from the
57429         preceding argument.
57430
57431         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
57432         * build-aux/bootstrap (cp_mark_as_generated): Create any required
57433         parent destination directories before copying a file into place.
57434
57435 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57436
57437         bootstrap: work also with 4-argument variant of AC_INIT
57438         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
57439
57440 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57441
57442         Port test-getaddrinfo to Solaris.
57443         Problem reported by Bruno Haible in
57444         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
57445         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
57446         explanation of setting 'hints'.
57447         Don't reject an implementation merely because it returns EAI_SERVICE.
57448         (EAI_SERVICE): Define to 0 if not defined.
57449
57450 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
57451
57452         The license of gnu-make and posix-shell is now "GPLed build tool".
57453         * modules/gnu-make (License): Likewise.
57454         * modules/posix-shell (License): Likewise.
57455
57456         New module posix-shell, for determining a POSIX shell
57457         or perhaps something that is close enough to a POSIX shell.
57458         * m4/posix-shell.m4: New file.
57459         * modules/posix-shell: New file.
57460
57461         * MODULES.html.sh: Mention new module.
57462
57463         New module gnu-make, for determining whether we're using GNU Make.
57464         * m4/gnu-make.m4: New file.
57465         * modules/gnu-make: New file.
57466         * MODULES.html.sh: Mention new module.
57467
57468 2007-11-14  Jim Meyering  <meyering@redhat.com>
57469
57470         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
57471         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
57472         use this macro to create a function _definition_.
57473         Remove useless "#undef ARGMATCH_DIE".
57474
57475 2007-11-14  Bruno Haible  <bruno@clisp.org>
57476
57477         * lib/config.charset: Update for OpenBSD 4.1.
57478         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
57479
57480 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
57481
57482         Document 64-bit #if problems in stdint.texi.
57483         * doc/headers/stdint.texi (stdint.h): Mention problems with
57484         64-bit-#if, and how to work around them.
57485
57486         Don't insist on 'long long int' support in the preprocessor.  It
57487         breaks too many things.  For example, PRIdMAX still uses a 'long
57488         long int' format with the latest Sun compiler, even though
57489         HAVE_LONG_LONG_INT isn't defined due to that compiler's
57490         preprocessor problem.  This causes the latest coreutils to dump
57491         core on Solaris 10 sparc with the Sun C compiler.
57492         Instead, fix the 2007-10-16 problem in a different way, by evaluating
57493         the troublesome expressions at configure-time, not at #if-time.
57494         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
57495         preprocessor.
57496         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
57497         compile-time C checks, done at 'configure'-time.
57498         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
57499         * modules/inttypes (Makefile): Substitute the new symbols that
57500         gl_INTTYPES_H now generates.
57501         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
57502
57503 2007-11-12  Bruno Haible  <bruno@clisp.org>
57504
57505         Tests for Unicode character classification functions.
57506
57507         * modules/unictype/bidicategory-byname-tests: New file.
57508         * modules/unictype/bidicategory-name-tests: New file.
57509         * modules/unictype/bidicategory-of-tests: New file.
57510         * modules/unictype/bidicategory-test-tests: New file.
57511         * modules/unictype/block-list-tests: New file.
57512         * modules/unictype/block-of-tests: New file.
57513         * modules/unictype/block-test-tests: New file.
57514         * modules/unictype/category-C-tests: New file.
57515         * modules/unictype/category-Cc-tests: New file.
57516         * modules/unictype/category-Cf-tests: New file.
57517         * modules/unictype/category-Cn-tests: New file.
57518         * modules/unictype/category-Co-tests: New file.
57519         * modules/unictype/category-Cs-tests: New file.
57520         * modules/unictype/category-L-tests: New file.
57521         * modules/unictype/category-Ll-tests: New file.
57522         * modules/unictype/category-Lm-tests: New file.
57523         * modules/unictype/category-Lo-tests: New file.
57524         * modules/unictype/category-Lt-tests: New file.
57525         * modules/unictype/category-Lu-tests: New file.
57526         * modules/unictype/category-M-tests: New file.
57527         * modules/unictype/category-Mc-tests: New file.
57528         * modules/unictype/category-Me-tests: New file.
57529         * modules/unictype/category-Mn-tests: New file.
57530         * modules/unictype/category-N-tests: New file.
57531         * modules/unictype/category-Nd-tests: New file.
57532         * modules/unictype/category-Nl-tests: New file.
57533         * modules/unictype/category-No-tests: New file.
57534         * modules/unictype/category-P-tests: New file.
57535         * modules/unictype/category-Pc-tests: New file.
57536         * modules/unictype/category-Pd-tests: New file.
57537         * modules/unictype/category-Pe-tests: New file.
57538         * modules/unictype/category-Pf-tests: New file.
57539         * modules/unictype/category-Pi-tests: New file.
57540         * modules/unictype/category-Po-tests: New file.
57541         * modules/unictype/category-Ps-tests: New file.
57542         * modules/unictype/category-S-tests: New file.
57543         * modules/unictype/category-Sc-tests: New file.
57544         * modules/unictype/category-Sk-tests: New file.
57545         * modules/unictype/category-Sm-tests: New file.
57546         * modules/unictype/category-So-tests: New file.
57547         * modules/unictype/category-Z-tests: New file.
57548         * modules/unictype/category-Zl-tests: New file.
57549         * modules/unictype/category-Zp-tests: New file.
57550         * modules/unictype/category-Zs-tests: New file.
57551         * modules/unictype/category-and-not-tests: New file.
57552         * modules/unictype/category-and-tests: New file.
57553         * modules/unictype/category-byname-tests: New file.
57554         * modules/unictype/category-name-tests: New file.
57555         * modules/unictype/category-none-tests: New file.
57556         * modules/unictype/category-of-tests: New file.
57557         * modules/unictype/category-or-tests: New file.
57558         * modules/unictype/category-test-withtable-tests: New file.
57559         * modules/unictype/combining-class-tests: New file.
57560         * modules/unictype/ctype-alnum-tests: New file.
57561         * modules/unictype/ctype-alpha-tests: New file.
57562         * modules/unictype/ctype-blank-tests: New file.
57563         * modules/unictype/ctype-cntrl-tests: New file.
57564         * modules/unictype/ctype-digit-tests: New file.
57565         * modules/unictype/ctype-graph-tests: New file.
57566         * modules/unictype/ctype-lower-tests: New file.
57567         * modules/unictype/ctype-print-tests: New file.
57568         * modules/unictype/ctype-punct-tests: New file.
57569         * modules/unictype/ctype-space-tests: New file.
57570         * modules/unictype/ctype-upper-tests: New file.
57571         * modules/unictype/ctype-xdigit-tests: New file.
57572         * modules/unictype/decimal-digit-tests: New file.
57573         * modules/unictype/digit-tests: New file.
57574         * modules/unictype/mirror-tests: New file.
57575         * modules/unictype/numeric-tests: New file.
57576         * modules/unictype/property-alphabetic-tests: New file.
57577         * modules/unictype/property-ascii-hex-digit-tests: New file.
57578         * modules/unictype/property-bidi-arabic-digit-tests: New file.
57579         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
57580         * modules/unictype/property-bidi-block-separator-tests: New file.
57581         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
57582         * modules/unictype/property-bidi-common-separator-tests: New file.
57583         * modules/unictype/property-bidi-control-tests: New file.
57584         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
57585         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
57586         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
57587         * modules/unictype/property-bidi-european-digit-tests: New file.
57588         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
57589         * modules/unictype/property-bidi-left-to-right-tests: New file.
57590         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
57591         * modules/unictype/property-bidi-other-neutral-tests: New file.
57592         * modules/unictype/property-bidi-pdf-tests: New file.
57593         * modules/unictype/property-bidi-segment-separator-tests: New file.
57594         * modules/unictype/property-bidi-whitespace-tests: New file.
57595         * modules/unictype/property-byname-tests: New file.
57596         * modules/unictype/property-combining-tests: New file.
57597         * modules/unictype/property-composite-tests: New file.
57598         * modules/unictype/property-currency-symbol-tests: New file.
57599         * modules/unictype/property-dash-tests: New file.
57600         * modules/unictype/property-decimal-digit-tests: New file.
57601         * modules/unictype/property-default-ignorable-code-point-tests: New file.
57602         * modules/unictype/property-deprecated-tests: New file.
57603         * modules/unictype/property-diacritic-tests: New file.
57604         * modules/unictype/property-extender-tests: New file.
57605         * modules/unictype/property-format-control-tests: New file.
57606         * modules/unictype/property-grapheme-base-tests: New file.
57607         * modules/unictype/property-grapheme-extend-tests: New file.
57608         * modules/unictype/property-grapheme-link-tests: New file.
57609         * modules/unictype/property-hex-digit-tests: New file.
57610         * modules/unictype/property-hyphen-tests: New file.
57611         * modules/unictype/property-id-continue-tests: New file.
57612         * modules/unictype/property-id-start-tests: New file.
57613         * modules/unictype/property-ideographic-tests: New file.
57614         * modules/unictype/property-ids-binary-operator-tests: New file.
57615         * modules/unictype/property-ids-trinary-operator-tests: New file.
57616         * modules/unictype/property-ignorable-control-tests: New file.
57617         * modules/unictype/property-iso-control-tests: New file.
57618         * modules/unictype/property-join-control-tests: New file.
57619         * modules/unictype/property-left-of-pair-tests: New file.
57620         * modules/unictype/property-line-separator-tests: New file.
57621         * modules/unictype/property-logical-order-exception-tests: New file.
57622         * modules/unictype/property-lowercase-tests: New file.
57623         * modules/unictype/property-math-tests: New file.
57624         * modules/unictype/property-non-break-tests: New file.
57625         * modules/unictype/property-not-a-character-tests: New file.
57626         * modules/unictype/property-numeric-tests: New file.
57627         * modules/unictype/property-other-alphabetic-tests: New file.
57628         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
57629         * modules/unictype/property-other-grapheme-extend-tests: New file.
57630         * modules/unictype/property-other-id-continue-tests: New file.
57631         * modules/unictype/property-other-id-start-tests: New file.
57632         * modules/unictype/property-other-lowercase-tests: New file.
57633         * modules/unictype/property-other-math-tests: New file.
57634         * modules/unictype/property-other-uppercase-tests: New file.
57635         * modules/unictype/property-paired-punctuation-tests: New file.
57636         * modules/unictype/property-paragraph-separator-tests: New file.
57637         * modules/unictype/property-pattern-syntax-tests: New file.
57638         * modules/unictype/property-pattern-white-space-tests: New file.
57639         * modules/unictype/property-private-use-tests: New file.
57640         * modules/unictype/property-punctuation-tests: New file.
57641         * modules/unictype/property-quotation-mark-tests: New file.
57642         * modules/unictype/property-radical-tests: New file.
57643         * modules/unictype/property-sentence-terminal-tests: New file.
57644         * modules/unictype/property-soft-dotted-tests: New file.
57645         * modules/unictype/property-space-tests: New file.
57646         * modules/unictype/property-terminal-punctuation-tests: New file.
57647         * modules/unictype/property-test-tests: New file.
57648         * modules/unictype/property-titlecase-tests: New file.
57649         * modules/unictype/property-unassigned-code-value-tests: New file.
57650         * modules/unictype/property-unified-ideograph-tests: New file.
57651         * modules/unictype/property-uppercase-tests: New file.
57652         * modules/unictype/property-variation-selector-tests: New file.
57653         * modules/unictype/property-white-space-tests: New file.
57654         * modules/unictype/property-xid-continue-tests: New file.
57655         * modules/unictype/property-xid-start-tests: New file.
57656         * modules/unictype/property-zero-width-tests: New file.
57657         * modules/unictype/scripts-tests: New file.
57658         * modules/unictype/syntax-c-ident-tests: New file.
57659         * modules/unictype/syntax-c-whitespace-tests: New file.
57660         * modules/unictype/syntax-java-ident-tests: New file.
57661         * modules/unictype/syntax-java-whitespace-tests: New file.
57662         * tests/unictype/test-bidi_byname.c: New file.
57663         * tests/unictype/test-bidi_name.c: New file.
57664         * tests/unictype/test-bidi_of.c: New file.
57665         * tests/unictype/test-bidi_test.c: New file.
57666         * tests/unictype/test-block_list.c: New file.
57667         * tests/unictype/test-block_of.c: New file.
57668         * tests/unictype/test-block_test.c: New file.
57669         * tests/unictype/test-categ_and.c: New file.
57670         * tests/unictype/test-categ_and_not.c: New file.
57671         * tests/unictype/test-categ_byname.c: New file.
57672         * tests/unictype/test-categ_name.c: New file.
57673         * tests/unictype/test-categ_none.c: New file.
57674         * tests/unictype/test-categ_of.c: New file.
57675         * tests/unictype/test-categ_or.c: New file.
57676         * tests/unictype/test-categ_test_withtable.c: New file.
57677         * tests/unictype/test-combining.c: New file.
57678         * tests/unictype/test-decdigit.c: New file.
57679         * tests/unictype/test-digit.c: New file.
57680         * tests/unictype/test-mirror.c: New file.
57681         * tests/unictype/test-numeric.c: New file.
57682         * tests/unictype/test-pr_byname.c: New file.
57683         * tests/unictype/test-pr_test.c: New file.
57684         * tests/unictype/test-predicate-part1.h: New file.
57685         * tests/unictype/test-predicate-part2.h: New file.
57686         * tests/unictype/test-scripts.c: New file.
57687         * tests/unictype/test-sy_c_ident.c: New file.
57688         * tests/unictype/test-sy_java_ident.c: New file.
57689
57690         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
57691         for Unicode 5.0.0.
57692         * tests/unictype/test-categ_Cc.c: Likewise.
57693         * tests/unictype/test-categ_Cf.c: Likewise.
57694         * tests/unictype/test-categ_Cn.c: Likewise.
57695         * tests/unictype/test-categ_Co.c: Likewise.
57696         * tests/unictype/test-categ_Cs.c: Likewise.
57697         * tests/unictype/test-categ_L.c: Likewise.
57698         * tests/unictype/test-categ_Ll.c: Likewise.
57699         * tests/unictype/test-categ_Lm.c: Likewise.
57700         * tests/unictype/test-categ_Lo.c: Likewise.
57701         * tests/unictype/test-categ_Lt.c: Likewise.
57702         * tests/unictype/test-categ_Lu.c: Likewise.
57703         * tests/unictype/test-categ_M.c: Likewise.
57704         * tests/unictype/test-categ_Mc.c: Likewise.
57705         * tests/unictype/test-categ_Me.c: Likewise.
57706         * tests/unictype/test-categ_Mn.c: Likewise.
57707         * tests/unictype/test-categ_N.c: Likewise.
57708         * tests/unictype/test-categ_Nd.c: Likewise.
57709         * tests/unictype/test-categ_Nl.c: Likewise.
57710         * tests/unictype/test-categ_No.c: Likewise.
57711         * tests/unictype/test-categ_P.c: Likewise.
57712         * tests/unictype/test-categ_Pc.c: Likewise.
57713         * tests/unictype/test-categ_Pd.c: Likewise.
57714         * tests/unictype/test-categ_Pe.c: Likewise.
57715         * tests/unictype/test-categ_Pf.c: Likewise.
57716         * tests/unictype/test-categ_Pi.c: Likewise.
57717         * tests/unictype/test-categ_Po.c: Likewise.
57718         * tests/unictype/test-categ_Ps.c: Likewise.
57719         * tests/unictype/test-categ_S.c: Likewise.
57720         * tests/unictype/test-categ_Sc.c: Likewise.
57721         * tests/unictype/test-categ_Sk.c: Likewise.
57722         * tests/unictype/test-categ_Sm.c: Likewise.
57723         * tests/unictype/test-categ_So.c: Likewise.
57724         * tests/unictype/test-categ_Z.c: Likewise.
57725         * tests/unictype/test-categ_Zl.c: Likewise.
57726         * tests/unictype/test-categ_Zp.c: Likewise.
57727         * tests/unictype/test-categ_Zs.c: Likewise.
57728         * tests/unictype/test-ctype_alnum.c: Likewise.
57729         * tests/unictype/test-ctype_alpha.c: Likewise.
57730         * tests/unictype/test-ctype_blank.c: Likewise.
57731         * tests/unictype/test-ctype_cntrl.c: Likewise.
57732         * tests/unictype/test-ctype_digit.c: Likewise.
57733         * tests/unictype/test-ctype_graph.c: Likewise.
57734         * tests/unictype/test-ctype_lower.c: Likewise.
57735         * tests/unictype/test-ctype_print.c: Likewise.
57736         * tests/unictype/test-ctype_punct.c: Likewise.
57737         * tests/unictype/test-ctype_space.c: Likewise.
57738         * tests/unictype/test-ctype_upper.c: Likewise.
57739         * tests/unictype/test-ctype_xdigit.c: Likewise.
57740         * tests/unictype/test-decdigit.h: Likewise.
57741         * tests/unictype/test-digit.h: Likewise.
57742         * tests/unictype/test-numeric.h: Likewise.
57743         * tests/unictype/test-pr_alphabetic.c: Likewise.
57744         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
57745         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57746         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
57747         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
57748         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
57749         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
57750         * tests/unictype/test-pr_bidi_control.c: Likewise.
57751         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
57752         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
57753         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57754         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
57755         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57756         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57757         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57758         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57759         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
57760         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
57761         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
57762         * tests/unictype/test-pr_combining.c: Likewise.
57763         * tests/unictype/test-pr_composite.c: Likewise.
57764         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57765         * tests/unictype/test-pr_dash.c: Likewise.
57766         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57767         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
57768         * tests/unictype/test-pr_deprecated.c: Likewise.
57769         * tests/unictype/test-pr_diacritic.c: Likewise.
57770         * tests/unictype/test-pr_extender.c: Likewise.
57771         * tests/unictype/test-pr_format_control.c: Likewise.
57772         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57773         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57774         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57775         * tests/unictype/test-pr_hex_digit.c: Likewise.
57776         * tests/unictype/test-pr_hyphen.c: Likewise.
57777         * tests/unictype/test-pr_id_continue.c: Likewise.
57778         * tests/unictype/test-pr_id_start.c: Likewise.
57779         * tests/unictype/test-pr_ideographic.c: Likewise.
57780         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
57781         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
57782         * tests/unictype/test-pr_ignorable_control.c: Likewise.
57783         * tests/unictype/test-pr_iso_control.c: Likewise.
57784         * tests/unictype/test-pr_join_control.c: Likewise.
57785         * tests/unictype/test-pr_left_of_pair.c: Likewise.
57786         * tests/unictype/test-pr_line_separator.c: Likewise.
57787         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
57788         * tests/unictype/test-pr_lowercase.c: Likewise.
57789         * tests/unictype/test-pr_math.c: Likewise.
57790         * tests/unictype/test-pr_non_break.c: Likewise.
57791         * tests/unictype/test-pr_not_a_character.c: Likewise.
57792         * tests/unictype/test-pr_numeric.c: Likewise.
57793         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57794         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
57795         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
57796         * tests/unictype/test-pr_other_id_continue.c: Likewise.
57797         * tests/unictype/test-pr_other_id_start.c: Likewise.
57798         * tests/unictype/test-pr_other_lowercase.c: Likewise.
57799         * tests/unictype/test-pr_other_math.c: Likewise.
57800         * tests/unictype/test-pr_other_uppercase.c: Likewise.
57801         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
57802         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
57803         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
57804         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
57805         * tests/unictype/test-pr_private_use.c: Likewise.
57806         * tests/unictype/test-pr_punctuation.c: Likewise.
57807         * tests/unictype/test-pr_quotation_mark.c: Likewise.
57808         * tests/unictype/test-pr_radical.c: Likewise.
57809         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57810         * tests/unictype/test-pr_soft_dotted.c: Likewise.
57811         * tests/unictype/test-pr_space.c: Likewise.
57812         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57813         * tests/unictype/test-pr_titlecase.c: Likewise.
57814         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57815         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57816         * tests/unictype/test-pr_uppercase.c: Likewise.
57817         * tests/unictype/test-pr_variation_selector.c: Likewise.
57818         * tests/unictype/test-pr_white_space.c: Likewise.
57819         * tests/unictype/test-pr_xid_continue.c: Likewise.
57820         * tests/unictype/test-pr_xid_start.c: Likewise.
57821         * tests/unictype/test-pr_zero_width.c: Likewise.
57822         * tests/unictype/test-sy_c_whitespace.c: Likewise.
57823         * tests/unictype/test-sy_java_whitespace.c: Likewise.
57824
57825 2007-11-12  Bruno Haible  <bruno@clisp.org>
57826
57827         Unicode character classification functions.
57828         * lib/unictype.h: New file.
57829         * modules/unictype/base: New file.
57830         * modules/unictype/category-L: New file.
57831         * modules/unictype/category-Lu: New file.
57832         * modules/unictype/category-Ll: New file.
57833         * modules/unictype/category-Lt: New file.
57834         * modules/unictype/category-Lm: New file.
57835         * modules/unictype/category-Lo: New file.
57836         * modules/unictype/category-M: New file.
57837         * modules/unictype/category-Mn: New file.
57838         * modules/unictype/category-Mc: New file.
57839         * modules/unictype/category-Me: New file.
57840         * modules/unictype/category-N: New file.
57841         * modules/unictype/category-Nd: New file.
57842         * modules/unictype/category-Nl: New file.
57843         * modules/unictype/category-No: New file.
57844         * modules/unictype/category-P: New file.
57845         * modules/unictype/category-Pc: New file.
57846         * modules/unictype/category-Pd: New file.
57847         * modules/unictype/category-Ps: New file.
57848         * modules/unictype/category-Pe: New file.
57849         * modules/unictype/category-Pi: New file.
57850         * modules/unictype/category-Pf: New file.
57851         * modules/unictype/category-Po: New file.
57852         * modules/unictype/category-S: New file.
57853         * modules/unictype/category-Sm: New file.
57854         * modules/unictype/category-Sc: New file.
57855         * modules/unictype/category-Sk: New file.
57856         * modules/unictype/category-So: New file.
57857         * modules/unictype/category-Z: New file.
57858         * modules/unictype/category-Zs: New file.
57859         * modules/unictype/category-Zl: New file.
57860         * modules/unictype/category-Zp: New file.
57861         * modules/unictype/category-C: New file.
57862         * modules/unictype/category-Cc: New file.
57863         * modules/unictype/category-Cf: New file.
57864         * modules/unictype/category-Cs: New file.
57865         * modules/unictype/category-Co: New file.
57866         * modules/unictype/category-Cn: New file.
57867         * modules/unictype/category-or: New file.
57868         * modules/unictype/category-of: New file.
57869         * modules/unictype/category-test: New file.
57870         * modules/unictype/category-test-withtable: New file.
57871         * modules/unictype/category-byname: New file.
57872         * modules/unictype/category-none: New file.
57873         * modules/unictype/category-and: New file.
57874         * modules/unictype/category-and-not: New file.
57875         * modules/unictype/category-name: New file.
57876         * modules/unictype/combining-class: New file.
57877         * modules/unictype/category-all: New file.
57878         * modules/unictype/bidicategory-all: New file.
57879         * modules/unictype/bidicategory-byname: New file.
57880         * modules/unictype/bidicategory-name: New file.
57881         * modules/unictype/bidicategory-of: New file.
57882         * modules/unictype/bidicategory-test: New file.
57883         * modules/unictype/decimal-digit: New file.
57884         * modules/unictype/digit: New file.
57885         * modules/unictype/numeric: New file.
57886         * modules/unictype/mirror: New file.
57887         * modules/unictype/property-white-space: New file.
57888         * modules/unictype/property-alphabetic: New file.
57889         * modules/unictype/property-other-alphabetic: New file.
57890         * modules/unictype/property-not-a-character: New file.
57891         * modules/unictype/property-default-ignorable-code-point: New file.
57892         * modules/unictype/property-other-default-ignorable-code-point: New
57893         file.
57894         * modules/unictype/property-deprecated: New file.
57895         * modules/unictype/property-logical-order-exception: New file.
57896         * modules/unictype/property-variation-selector: New file.
57897         * modules/unictype/property-private-use: New file.
57898         * modules/unictype/property-unassigned-code-value: New file.
57899         * modules/unictype/property-uppercase: New file.
57900         * modules/unictype/property-other-uppercase: New file.
57901         * modules/unictype/property-lowercase: New file.
57902         * modules/unictype/property-other-lowercase: New file.
57903         * modules/unictype/property-titlecase: New file.
57904         * modules/unictype/property-soft-dotted: New file.
57905         * modules/unictype/property-id-start: New file.
57906         * modules/unictype/property-other-id-start: New file.
57907         * modules/unictype/property-id-continue: New file.
57908         * modules/unictype/property-other-id-continue: New file.
57909         * modules/unictype/property-xid-start: New file.
57910         * modules/unictype/property-xid-continue: New file.
57911         * modules/unictype/property-pattern-white-space: New file.
57912         * modules/unictype/property-pattern-syntax: New file.
57913         * modules/unictype/property-join-control: New file.
57914         * modules/unictype/property-grapheme-base: New file.
57915         * modules/unictype/property-grapheme-extend: New file.
57916         * modules/unictype/property-other-grapheme-extend: New file.
57917         * modules/unictype/property-grapheme-link: New file.
57918         * modules/unictype/property-bidi-control: New file.
57919         * modules/unictype/property-bidi-left-to-right: New file.
57920         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
57921         * modules/unictype/property-bidi-arabic-right-to-left: New file.
57922         * modules/unictype/property-bidi-european-digit: New file.
57923         * modules/unictype/property-bidi-eur-num-separator: New file.
57924         * modules/unictype/property-bidi-eur-num-terminator: New file.
57925         * modules/unictype/property-bidi-arabic-digit: New file.
57926         * modules/unictype/property-bidi-common-separator: New file.
57927         * modules/unictype/property-bidi-block-separator: New file.
57928         * modules/unictype/property-bidi-segment-separator: New file.
57929         * modules/unictype/property-bidi-whitespace: New file.
57930         * modules/unictype/property-bidi-non-spacing-mark: New file.
57931         * modules/unictype/property-bidi-boundary-neutral: New file.
57932         * modules/unictype/property-bidi-pdf: New file.
57933         * modules/unictype/property-bidi-embedding-or-override: New file.
57934         * modules/unictype/property-bidi-other-neutral: New file.
57935         * modules/unictype/property-hex-digit: New file.
57936         * modules/unictype/property-ascii-hex-digit: New file.
57937         * modules/unictype/property-ideographic: New file.
57938         * modules/unictype/property-unified-ideograph: New file.
57939         * modules/unictype/property-radical: New file.
57940         * modules/unictype/property-ids-binary-operator: New file.
57941         * modules/unictype/property-ids-trinary-operator: New file.
57942         * modules/unictype/property-zero-width: New file.
57943         * modules/unictype/property-space: New file.
57944         * modules/unictype/property-non-break: New file.
57945         * modules/unictype/property-iso-control: New file.
57946         * modules/unictype/property-format-control: New file.
57947         * modules/unictype/property-dash: New file.
57948         * modules/unictype/property-hyphen: New file.
57949         * modules/unictype/property-punctuation: New file.
57950         * modules/unictype/property-line-separator: New file.
57951         * modules/unictype/property-paragraph-separator: New file.
57952         * modules/unictype/property-quotation-mark: New file.
57953         * modules/unictype/property-sentence-terminal: New file.
57954         * modules/unictype/property-terminal-punctuation: New file.
57955         * modules/unictype/property-currency-symbol: New file.
57956         * modules/unictype/property-math: New file.
57957         * modules/unictype/property-other-math: New file.
57958         * modules/unictype/property-paired-punctuation: New file.
57959         * modules/unictype/property-left-of-pair: New file.
57960         * modules/unictype/property-combining: New file.
57961         * modules/unictype/property-composite: New file.
57962         * modules/unictype/property-decimal-digit: New file.
57963         * modules/unictype/property-numeric: New file.
57964         * modules/unictype/property-diacritic: New file.
57965         * modules/unictype/property-extender: New file.
57966         * modules/unictype/property-ignorable-control: New file.
57967         * modules/unictype/property-test: New file.
57968         * modules/unictype/property-byname: New file.
57969         * modules/unictype/property-all: New file.
57970         * modules/unictype/scripts: New file.
57971         * modules/unictype/scripts-all: New file.
57972         * modules/unictype/block-of: New file.
57973         * modules/unictype/block-test: New file.
57974         * modules/unictype/block-list: New file.
57975         * modules/unictype/block-all: New file.
57976         * modules/unictype/syntax-c-whitespace: New file.
57977         * modules/unictype/syntax-java-whitespace: New file.
57978         * modules/unictype/syntax-c-ident: New file.
57979         * modules/unictype/syntax-java-ident: New file.
57980         * modules/unictype/ctype-alnum: New file.
57981         * modules/unictype/ctype-alpha: New file.
57982         * modules/unictype/ctype-cntrl: New file.
57983         * modules/unictype/ctype-digit: New file.
57984         * modules/unictype/ctype-graph: New file.
57985         * modules/unictype/ctype-lower: New file.
57986         * modules/unictype/ctype-print: New file.
57987         * modules/unictype/ctype-punct: New file.
57988         * modules/unictype/ctype-space: New file.
57989         * modules/unictype/ctype-upper: New file.
57990         * modules/unictype/ctype-xdigit: New file.
57991         * modules/unictype/ctype-blank: New file.
57992         * lib/unictype/bidi_byname.c: New file.
57993         * lib/unictype/bidi_name.c: New file.
57994         * lib/unictype/bidi_of.c: New file.
57995         * lib/unictype/bidi_test.c: New file.
57996         * lib/unictype/bitmap.h: New file.
57997         * lib/unictype/block_test.c: New file.
57998         * lib/unictype/blocks.c: New file.
57999         * lib/unictype/categ_C.c: New file.
58000         * lib/unictype/categ_Cc.c: New file.
58001         * lib/unictype/categ_Cf.c: New file.
58002         * lib/unictype/categ_Cn.c: New file.
58003         * lib/unictype/categ_Co.c: New file.
58004         * lib/unictype/categ_Cs.c: New file.
58005         * lib/unictype/categ_L.c: New file.
58006         * lib/unictype/categ_Ll.c: New file.
58007         * lib/unictype/categ_Lm.c: New file.
58008         * lib/unictype/categ_Lo.c: New file.
58009         * lib/unictype/categ_Lt.c: New file.
58010         * lib/unictype/categ_Lu.c: New file.
58011         * lib/unictype/categ_M.c: New file.
58012         * lib/unictype/categ_Mc.c: New file.
58013         * lib/unictype/categ_Me.c: New file.
58014         * lib/unictype/categ_Mn.c: New file.
58015         * lib/unictype/categ_N.c: New file.
58016         * lib/unictype/categ_Nd.c: New file.
58017         * lib/unictype/categ_Nl.c: New file.
58018         * lib/unictype/categ_No.c: New file.
58019         * lib/unictype/categ_P.c: New file.
58020         * lib/unictype/categ_Pc.c: New file.
58021         * lib/unictype/categ_Pd.c: New file.
58022         * lib/unictype/categ_Pe.c: New file.
58023         * lib/unictype/categ_Pf.c: New file.
58024         * lib/unictype/categ_Pi.c: New file.
58025         * lib/unictype/categ_Po.c: New file.
58026         * lib/unictype/categ_Ps.c: New file.
58027         * lib/unictype/categ_S.c: New file.
58028         * lib/unictype/categ_Sc.c: New file.
58029         * lib/unictype/categ_Sk.c: New file.
58030         * lib/unictype/categ_Sm.c: New file.
58031         * lib/unictype/categ_So.c: New file.
58032         * lib/unictype/categ_Z.c: New file.
58033         * lib/unictype/categ_Zl.c: New file.
58034         * lib/unictype/categ_Zp.c: New file.
58035         * lib/unictype/categ_Zs.c: New file.
58036         * lib/unictype/categ_and.c: New file.
58037         * lib/unictype/categ_and_not.c: New file.
58038         * lib/unictype/categ_byname.c: New file.
58039         * lib/unictype/categ_name.c: New file.
58040         * lib/unictype/categ_none.c: New file.
58041         * lib/unictype/categ_of.c: New file.
58042         * lib/unictype/categ_or.c: New file.
58043         * lib/unictype/categ_test.c: New file.
58044         * lib/unictype/combining.c: New file.
58045         * lib/unictype/ctype_alnum.c: New file.
58046         * lib/unictype/ctype_alpha.c: New file.
58047         * lib/unictype/ctype_blank.c: New file.
58048         * lib/unictype/ctype_cntrl.c: New file.
58049         * lib/unictype/ctype_digit.c: New file.
58050         * lib/unictype/ctype_graph.c: New file.
58051         * lib/unictype/ctype_lower.c: New file.
58052         * lib/unictype/ctype_print.c: New file.
58053         * lib/unictype/ctype_punct.c: New file.
58054         * lib/unictype/ctype_space.c: New file.
58055         * lib/unictype/ctype_upper.c: New file.
58056         * lib/unictype/ctype_xdigit.c: New file.
58057         * lib/unictype/decdigit.c: New file.
58058         * lib/unictype/digit.c: New file.
58059         * lib/unictype/identsyntaxmap.h: New file.
58060         * lib/unictype/mirror.c: New file.
58061         * lib/unictype/numeric.c: New file.
58062         * lib/unictype/pr_alphabetic.c: New file.
58063         * lib/unictype/pr_ascii_hex_digit.c: New file.
58064         * lib/unictype/pr_bidi_arabic_digit.c: New file.
58065         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
58066         * lib/unictype/pr_bidi_block_separator.c: New file.
58067         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
58068         * lib/unictype/pr_bidi_common_separator.c: New file.
58069         * lib/unictype/pr_bidi_control.c: New file.
58070         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
58071         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
58072         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
58073         * lib/unictype/pr_bidi_european_digit.c: New file.
58074         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
58075         * lib/unictype/pr_bidi_left_to_right.c: New file.
58076         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
58077         * lib/unictype/pr_bidi_other_neutral.c: New file.
58078         * lib/unictype/pr_bidi_pdf.c: New file.
58079         * lib/unictype/pr_bidi_segment_separator.c: New file.
58080         * lib/unictype/pr_bidi_whitespace.c: New file.
58081         * lib/unictype/pr_byname.c: New file.
58082         * lib/unictype/pr_byname.gperf: New file.
58083         * lib/unictype/pr_combining.c: New file.
58084         * lib/unictype/pr_composite.c: New file.
58085         * lib/unictype/pr_currency_symbol.c: New file.
58086         * lib/unictype/pr_dash.c: New file.
58087         * lib/unictype/pr_decimal_digit.c: New file.
58088         * lib/unictype/pr_default_ignorable_code_point.c: New file.
58089         * lib/unictype/pr_deprecated.c: New file.
58090         * lib/unictype/pr_diacritic.c: New file.
58091         * lib/unictype/pr_extender.c: New file.
58092         * lib/unictype/pr_format_control.c: New file.
58093         * lib/unictype/pr_grapheme_base.c: New file.
58094         * lib/unictype/pr_grapheme_extend.c: New file.
58095         * lib/unictype/pr_grapheme_link.c: New file.
58096         * lib/unictype/pr_hex_digit.c: New file.
58097         * lib/unictype/pr_hyphen.c: New file.
58098         * lib/unictype/pr_id_continue.c: New file.
58099         * lib/unictype/pr_id_start.c: New file.
58100         * lib/unictype/pr_ideographic.c: New file.
58101         * lib/unictype/pr_ids_binary_operator.c: New file.
58102         * lib/unictype/pr_ids_trinary_operator.c: New file.
58103         * lib/unictype/pr_ignorable_control.c: New file.
58104         * lib/unictype/pr_iso_control.c: New file.
58105         * lib/unictype/pr_join_control.c: New file.
58106         * lib/unictype/pr_left_of_pair.c: New file.
58107         * lib/unictype/pr_line_separator.c: New file.
58108         * lib/unictype/pr_logical_order_exception.c: New file.
58109         * lib/unictype/pr_lowercase.c: New file.
58110         * lib/unictype/pr_math.c: New file.
58111         * lib/unictype/pr_non_break.c: New file.
58112         * lib/unictype/pr_not_a_character.c: New file.
58113         * lib/unictype/pr_numeric.c: New file.
58114         * lib/unictype/pr_other_alphabetic.c: New file.
58115         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
58116         * lib/unictype/pr_other_grapheme_extend.c: New file.
58117         * lib/unictype/pr_other_id_continue.c: New file.
58118         * lib/unictype/pr_other_id_start.c: New file.
58119         * lib/unictype/pr_other_lowercase.c: New file.
58120         * lib/unictype/pr_other_math.c: New file.
58121         * lib/unictype/pr_other_uppercase.c: New file.
58122         * lib/unictype/pr_paired_punctuation.c: New file.
58123         * lib/unictype/pr_paragraph_separator.c: New file.
58124         * lib/unictype/pr_pattern_syntax.c: New file.
58125         * lib/unictype/pr_pattern_white_space.c: New file.
58126         * lib/unictype/pr_private_use.c: New file.
58127         * lib/unictype/pr_punctuation.c: New file.
58128         * lib/unictype/pr_quotation_mark.c: New file.
58129         * lib/unictype/pr_radical.c: New file.
58130         * lib/unictype/pr_sentence_terminal.c: New file.
58131         * lib/unictype/pr_soft_dotted.c: New file.
58132         * lib/unictype/pr_space.c: New file.
58133         * lib/unictype/pr_terminal_punctuation.c: New file.
58134         * lib/unictype/pr_test.c: New file.
58135         * lib/unictype/pr_titlecase.c: New file.
58136         * lib/unictype/pr_unassigned_code_value.c: New file.
58137         * lib/unictype/pr_unified_ideograph.c: New file.
58138         * lib/unictype/pr_uppercase.c: New file.
58139         * lib/unictype/pr_variation_selector.c: New file.
58140         * lib/unictype/pr_white_space.c: New file.
58141         * lib/unictype/pr_xid_continue.c: New file.
58142         * lib/unictype/pr_xid_start.c: New file.
58143         * lib/unictype/pr_zero_width.c: New file.
58144         * lib/unictype/scripts.c: New file.
58145         * lib/unictype/sy_c_ident.c: New file.
58146         * lib/unictype/sy_c_whitespace.c: New file.
58147         * lib/unictype/sy_java_ident.c: New file.
58148         * lib/unictype/sy_java_whitespace.c: New file.
58149
58150         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
58151         Unicode 5.0.0.
58152         * lib/unictype/blocks.h: Likewise.
58153         * lib/unictype/categ_C.h: Likewise.
58154         * lib/unictype/categ_Cc.h: Likewise.
58155         * lib/unictype/categ_Cf.h: Likewise.
58156         * lib/unictype/categ_Cn.h: Likewise.
58157         * lib/unictype/categ_Co.h: Likewise.
58158         * lib/unictype/categ_Cs.h: Likewise.
58159         * lib/unictype/categ_L.h: Likewise.
58160         * lib/unictype/categ_Ll.h: Likewise.
58161         * lib/unictype/categ_Lm.h: Likewise.
58162         * lib/unictype/categ_Lo.h: Likewise.
58163         * lib/unictype/categ_Lt.h: Likewise.
58164         * lib/unictype/categ_Lu.h: Likewise.
58165         * lib/unictype/categ_M.h: Likewise.
58166         * lib/unictype/categ_Mc.h: Likewise.
58167         * lib/unictype/categ_Me.h: Likewise.
58168         * lib/unictype/categ_Mn.h: Likewise.
58169         * lib/unictype/categ_N.h: Likewise.
58170         * lib/unictype/categ_Nd.h: Likewise.
58171         * lib/unictype/categ_Nl.h: Likewise.
58172         * lib/unictype/categ_No.h: Likewise.
58173         * lib/unictype/categ_P.h: Likewise.
58174         * lib/unictype/categ_Pc.h: Likewise.
58175         * lib/unictype/categ_Pd.h: Likewise.
58176         * lib/unictype/categ_Pe.h: Likewise.
58177         * lib/unictype/categ_Pf.h: Likewise.
58178         * lib/unictype/categ_Pi.h: Likewise.
58179         * lib/unictype/categ_Po.h: Likewise.
58180         * lib/unictype/categ_Ps.h: Likewise.
58181         * lib/unictype/categ_S.h: Likewise.
58182         * lib/unictype/categ_Sc.h: Likewise.
58183         * lib/unictype/categ_Sk.h: Likewise.
58184         * lib/unictype/categ_Sm.h: Likewise.
58185         * lib/unictype/categ_So.h: Likewise.
58186         * lib/unictype/categ_Z.h: Likewise.
58187         * lib/unictype/categ_Zl.h: Likewise.
58188         * lib/unictype/categ_Zp.h: Likewise.
58189         * lib/unictype/categ_Zs.h: Likewise.
58190         * lib/unictype/categ_of.h: Likewise.
58191         * lib/unictype/combining.h: Likewise.
58192         * lib/unictype/ctype_alnum.h: Likewise.
58193         * lib/unictype/ctype_alpha.h: Likewise.
58194         * lib/unictype/ctype_blank.h: Likewise.
58195         * lib/unictype/ctype_cntrl.h: Likewise.
58196         * lib/unictype/ctype_digit.h: Likewise.
58197         * lib/unictype/ctype_graph.h: Likewise.
58198         * lib/unictype/ctype_lower.h: Likewise.
58199         * lib/unictype/ctype_print.h: Likewise.
58200         * lib/unictype/ctype_punct.h: Likewise.
58201         * lib/unictype/ctype_space.h: Likewise.
58202         * lib/unictype/ctype_upper.h: Likewise.
58203         * lib/unictype/ctype_xdigit.h: Likewise.
58204         * lib/unictype/decdigit.h: Likewise.
58205         * lib/unictype/digit.h: Likewise.
58206         * lib/unictype/mirror.h: Likewise.
58207         * lib/unictype/numeric.h: Likewise.
58208         * lib/unictype/pr_alphabetic.h: Likewise.
58209         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
58210         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
58211         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
58212         * lib/unictype/pr_bidi_block_separator.h: Likewise.
58213         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
58214         * lib/unictype/pr_bidi_common_separator.h: Likewise.
58215         * lib/unictype/pr_bidi_control.h: Likewise.
58216         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
58217         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
58218         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
58219         * lib/unictype/pr_bidi_european_digit.h: Likewise.
58220         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
58221         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
58222         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
58223         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
58224         * lib/unictype/pr_bidi_pdf.h: Likewise.
58225         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
58226         * lib/unictype/pr_bidi_whitespace.h: Likewise.
58227         * lib/unictype/pr_combining.h: Likewise.
58228         * lib/unictype/pr_composite.h: Likewise.
58229         * lib/unictype/pr_currency_symbol.h: Likewise.
58230         * lib/unictype/pr_dash.h: Likewise.
58231         * lib/unictype/pr_decimal_digit.h: Likewise.
58232         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
58233         * lib/unictype/pr_deprecated.h: Likewise.
58234         * lib/unictype/pr_diacritic.h: Likewise.
58235         * lib/unictype/pr_extender.h: Likewise.
58236         * lib/unictype/pr_format_control.h: Likewise.
58237         * lib/unictype/pr_grapheme_base.h: Likewise.
58238         * lib/unictype/pr_grapheme_extend.h: Likewise.
58239         * lib/unictype/pr_grapheme_link.h: Likewise.
58240         * lib/unictype/pr_hex_digit.h: Likewise.
58241         * lib/unictype/pr_hyphen.h: Likewise.
58242         * lib/unictype/pr_id_continue.h: Likewise.
58243         * lib/unictype/pr_id_start.h: Likewise.
58244         * lib/unictype/pr_ideographic.h: Likewise.
58245         * lib/unictype/pr_ids_binary_operator.h: Likewise.
58246         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
58247         * lib/unictype/pr_ignorable_control.h: Likewise.
58248         * lib/unictype/pr_iso_control.h: Likewise.
58249         * lib/unictype/pr_join_control.h: Likewise.
58250         * lib/unictype/pr_left_of_pair.h: Likewise.
58251         * lib/unictype/pr_line_separator.h: Likewise.
58252         * lib/unictype/pr_logical_order_exception.h: Likewise.
58253         * lib/unictype/pr_lowercase.h: Likewise.
58254         * lib/unictype/pr_math.h: Likewise.
58255         * lib/unictype/pr_non_break.h: Likewise.
58256         * lib/unictype/pr_not_a_character.h: Likewise.
58257         * lib/unictype/pr_numeric.h: Likewise.
58258         * lib/unictype/pr_other_alphabetic.h: Likewise.
58259         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
58260         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
58261         * lib/unictype/pr_other_id_continue.h: Likewise.
58262         * lib/unictype/pr_other_id_start.h: Likewise.
58263         * lib/unictype/pr_other_lowercase.h: Likewise.
58264         * lib/unictype/pr_other_math.h: Likewise.
58265         * lib/unictype/pr_other_uppercase.h: Likewise.
58266         * lib/unictype/pr_paired_punctuation.h: Likewise.
58267         * lib/unictype/pr_paragraph_separator.h: Likewise.
58268         * lib/unictype/pr_pattern_syntax.h: Likewise.
58269         * lib/unictype/pr_pattern_white_space.h: Likewise.
58270         * lib/unictype/pr_private_use.h: Likewise.
58271         * lib/unictype/pr_punctuation.h: Likewise.
58272         * lib/unictype/pr_quotation_mark.h: Likewise.
58273         * lib/unictype/pr_radical.h: Likewise.
58274         * lib/unictype/pr_sentence_terminal.h: Likewise.
58275         * lib/unictype/pr_soft_dotted.h: Likewise.
58276         * lib/unictype/pr_space.h: Likewise.
58277         * lib/unictype/pr_terminal_punctuation.h: Likewise.
58278         * lib/unictype/pr_titlecase.h: Likewise.
58279         * lib/unictype/pr_unassigned_code_value.h: Likewise.
58280         * lib/unictype/pr_unified_ideograph.h: Likewise.
58281         * lib/unictype/pr_uppercase.h: Likewise.
58282         * lib/unictype/pr_variation_selector.h: Likewise.
58283         * lib/unictype/pr_white_space.h: Likewise.
58284         * lib/unictype/pr_xid_continue.h: Likewise.
58285         * lib/unictype/pr_xid_start.h: Likewise.
58286         * lib/unictype/pr_zero_width.h: Likewise.
58287         * lib/unictype/scripts.h: Likewise.
58288         * lib/unictype/scripts_byname.gperf: Likewise.
58289         * lib/unictype/sy_c_ident.h: Likewise.
58290         * lib/unictype/sy_c_whitespace.h: Likewise.
58291         * lib/unictype/sy_java_ident.h: Likewise.
58292         * lib/unictype/sy_java_whitespace.h: Likewise.
58293
58294         * lib/unictype/Makefile: New file.
58295         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
58296         glibc.
58297         * lib/unictype/3level.h: New file, copied from glibc.
58298         * lib/unictype/3levelbit.h: New file.
58299
58300 2007-11-11  Bruno Haible  <bruno@clisp.org>
58301
58302         * modules/gperf: New file.
58303         * modules/iconv_open (Depends-on): Add it.
58304         (Makefile.am): Remove the GPERF definition.
58305
58306 2007-11-11  Bruno Haible  <bruno@clisp.org>
58307
58308         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
58309         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
58310
58311 2007-11-11  Bruno Haible  <bruno@clisp.org>
58312
58313         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
58314         (usage): Remove function.
58315
58316 2007-11-11  Bruno Haible  <bruno@clisp.org>
58317
58318         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
58319         gl_FUNC_CEILF_LIBS.
58320         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
58321         gl_FUNC_CEIL_LIBS.
58322         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
58323         gl_FUNC_CEILL_LIBS.
58324         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
58325         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
58326         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
58327
58328 2007-11-11  Bruno Haible  <bruno@clisp.org>
58329
58330         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
58331         roundf were declared but do not exist on functions.
58332         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
58333         roundl were declared but do not exist on functions.
58334         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
58335         HAVE_FLOORL_AND_CEILL, respectively.
58336         Needed for Sun C on Solaris 10.
58337
58338 2007-11-11  Bruno Haible  <bruno@clisp.org>
58339
58340         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
58341         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
58342         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
58343         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
58344         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
58345         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
58346         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
58347         HAVE_DECL_ROUNDF.
58348         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
58349         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
58350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
58351         of HAVE_DECL_ROUND*.
58352         * modules/math (Makefile.am): Update.
58353
58354 2007-11-10  Bruno Haible  <bruno@clisp.org>
58355
58356         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
58357         ptrdiff_t as m4/intl.m4.
58358
58359 2007-11-10  Jim Meyering  <meyering@redhat.com>
58360
58361         Avoid link failure for the argmatch test.
58362         * tests/test-argmatch.c (usage): Define function to avoid a link
58363         failure: argmatch_die requires a usage function.
58364
58365 2007-11-09  Bruno Haible  <bruno@clisp.org>
58366
58367         * doc/functions/snprintf.texi: Mention BeOS deficiency.
58368         * doc/functions/vsnprintf.texi: Likewise.
58369         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
58370         with a size argument < 2.
58371
58372 2007-11-09  Bruno Haible  <bruno@clisp.org>
58373
58374         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
58375         buffer. Fixes an inefficiency introduced on 2007-11-03.
58376
58377 2007-11-09  Bruno Haible  <bruno@clisp.org>
58378
58379         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
58380         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
58381
58382 2007-11-08  Jim Meyering  <meyering@redhat.com>
58383
58384         Change cache variable name prefix "jm_" to "gl_" everywhere.
58385         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
58386         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
58387         * m4/uptime.m4: s/gl_/jm_/
58388
58389 2007-11-07  Bruno Haible  <bruno@clisp.org>
58390
58391         Update to GNU gettext 0.17.
58392         * m4/intl.m4: Update to GNU gettext 0.17.
58393         * m4/po.m4: Likewise.
58394         * modules/gettext (Files): Remove m4/ulonglong.m4.
58395         (configure.ac): Require gettext infrastructure from version 0.17.
58396
58397 2007-11-06  Bruno Haible  <bruno@clisp.org>
58398
58399         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
58400         symbolic values are not defined in a public header.
58401         * lib/freadable.c (freadable) [QNX]: Likewise.
58402         * lib/freadahead.c (freadahead) [QNX]: Likewise.
58403         * lib/freading.c (freading) [QNX]: Likewise.
58404         * lib/fseterr.c (fseterr) [QNX]: Likewise.
58405         * lib/fwritable.c (fwritable) [QNX]: Likewise.
58406         * lib/fwriting.c (fwriting) [QNX]: Likewise.
58407         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
58408         Reported by Alain Magloire.
58409
58410         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
58411
58412 2007-11-05  Bruno Haible  <bruno@clisp.org>
58413
58414         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
58415         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
58416         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
58417         Reported by Eric Blake.
58418
58419 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58420             Bruno Haible  <bruno@clisp.org>
58421
58422         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
58423         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
58424         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
58425         (malloc): Undefine also before including <stdlib.h>.
58426         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
58427         Needed on OSF/1 4.0.
58428
58429 2007-11-05  Jim Meyering  <meyering@redhat.com>
58430
58431         git-version-gen: sync from coreutils.
58432         * build-aux/git-version-gen: Add comments.
58433         Change the first '-' to '.' in the snapshot version string,
58434         e.g., 6.9-377-08144 -> 6.9.377-08144
58435         Remove first parameter.
58436         Don't declare a version "-dirty" merely because a time
58437         stamp has changed.
58438
58439 2007-11-04  Bruno Haible  <bruno@clisp.org>
58440
58441         * lib/lock.h: Protect all macro definitions containing an 'if'
58442         statement through a "do { ... } while (0)".
58443         * lib/tls.h: Likewise.
58444
58445 2007-11-04  Bruno Haible  <bruno@clisp.org>
58446
58447         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
58448
58449 2007-11-04  Bruno Haible  <bruno@clisp.org>
58450
58451         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
58452         * modules/fprintf-posix (Depends-on): Add nocrash.
58453         * modules/snprintf-posix (Depends-on): Likewise.
58454         * modules/sprintf-posix (Depends-on): Likewise.
58455         * modules/vasnprintf-posix (Depends-on): Likewise.
58456         * modules/vasprintf-posix (Depends-on): Likewise.
58457         * modules/vfprintf-posix (Depends-on): Likewise.
58458         * modules/vsnprintf-posix (Depends-on): Likewise.
58459         * modules/vsprintf-posix (Depends-on): Likewise.
58460         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58461         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58462         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58463         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58464         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58465         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58466         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58467
58468 2007-11-04  Bruno Haible  <bruno@clisp.org>
58469
58470         * modules/nocrash: New file.
58471         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
58472         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
58473
58474 2007-11-04  Bruno Haible  <bruno@clisp.org>
58475
58476         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
58477         precision handling.
58478         * tests/test-vasprintf-posix.c (test_function): Likewise.
58479         * tests/test-snprintf-posix.h (test_function): Likewise.
58480         * tests/test-sprintf-posix.h (test_function): Likewise.
58481
58482         Fix *printf behaviour for large precisions on mingw and BeOS.
58483         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
58484         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
58485         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
58486         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58487         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58488         gl_PRINTF_PRECISION and test its result. Invoke
58489         gl_PREREQ_VASNPRINTF_PRECISION.
58490         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58491         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58492         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58493         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58494         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58495         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58496         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58497         * doc/functions/fprintf.texi: Update.
58498         * doc/functions/printf.texi: Update.
58499         * doc/functions/snprintf.texi: Update.
58500         * doc/functions/sprintf.texi: Update.
58501         * doc/functions/vfprintf.texi: Update.
58502         * doc/functions/vprintf.texi: Update.
58503         * doc/functions/vsnprintf.texi: Update.
58504         * doc/functions/vsprintf.texi: Update.
58505
58506 2007-11-04  Bruno Haible  <bruno@clisp.org>
58507
58508         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
58509
58510 2007-11-04  Bruno Haible  <bruno@clisp.org>
58511
58512         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
58513         Reported by Sylvain Beucler <beuc@gnu.org>.
58514
58515 2007-11-03  Bruno Haible  <bruno@clisp.org>
58516
58517         * tests/test-fprintf-posix2.sh: New file.
58518         * tests/test-fprintf-posix2.c: New file.
58519         * modules/fprintf-posix-tests (Files): Add them.
58520         (TESTS): Add test-fprintf-posix2.sh.
58521         (configure.ac): Check for getrlimit and setrlimit.
58522         (check_PROGRAMS): Add test-fprintf-posix2.
58523
58524         * tests/test-printf-posix2.sh: New file.
58525         * tests/test-printf-posix2.c: New file.
58526         * modules/printf-posix-tests (Files): Add them.
58527         (TESTS): Add test-printf-posix2.sh.
58528         (configure.ac): Check for getrlimit and setrlimit.
58529         (check_PROGRAMS): Add test-printf-posix2.
58530
58531         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
58532         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
58533         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
58534         (decode_double): New function, copied from decode_long_double.
58535         (scale10_round_decimal_decoded): New function, extracted from
58536         scale10_round_decimal_long_double.
58537         (scale10_round_decimal_long_double): Use it.
58538         (scale10_round_decimal_double): New function.
58539         (floorlog10): New function.
58540         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
58541         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
58542         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58543         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58544         gl_PRINTF_ENOMEM and test its result. Invoke
58545         gl_PREREQ_VASNPRINTF_ENOMEM.
58546         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58547         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58548         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58549         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58550         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58551         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58552         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58553         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
58554         * modules/snprintf-posix (Depends-on): Likewise.
58555         * modules/sprintf-posix (Depends-on): Likewise.
58556         * modules/vasnprintf-posix (Depends-on): Likewise.
58557         * modules/vasprintf-posix (Depends-on): Likewise.
58558         * modules/vfprintf-posix (Depends-on): Likewise.
58559         * modules/vsnprintf-posix (Depends-on): Likewise.
58560         * modules/vsprintf-posix (Depends-on): Likewise.
58561         * doc/functions/fprintf.texi: Update.
58562         * doc/functions/printf.texi: Update.
58563         * doc/functions/snprintf.texi: Update.
58564         * doc/functions/sprintf.texi: Update.
58565         * doc/functions/vfprintf.texi: Update.
58566         * doc/functions/vprintf.texi: Update.
58567         * doc/functions/vsnprintf.texi: Update.
58568         * doc/functions/vsprintf.texi: Update.
58569
58570 2007-11-03  Bruno Haible  <bruno@clisp.org>
58571
58572         * modules/frexp-nolibm-tests: New file.
58573
58574         * modules/frexp-nolibm: New file.
58575         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
58576
58577 2007-11-03  Bruno Haible  <bruno@clisp.org>
58578
58579         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
58580         value is C99 compliant.
58581         Needed for OSF/1 5.1.
58582
58583 2007-11-03  Bruno Haible  <bruno@clisp.org>
58584
58585         Fix out-of-memory handling of vasnprintf.
58586         * lib/printf-parse.c: Include <errno.h>.
58587         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
58588         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
58589         is already set.
58590
58591 2007-11-02  Eric Blake  <ebb9@byu.net>
58592
58593         Fix tests on cygwin.
58594         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
58595
58596 2007-11-01  Bruno Haible  <bruno@clisp.org>
58597
58598         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
58599         warning.
58600         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
58601         needed for POSIX compatibility.
58602
58603 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
58604
58605         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
58606         for compatibility with GNU.
58607
58608 2007-11-01  Bruno Haible  <bruno@clisp.org>
58609
58610         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
58611         (putenv): Renamed from rpl_putenv. Change argument type from
58612         'const char *' to 'char *'.
58613         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
58614         of defining putenv in config.h, just set REPLACE_PUTENV.
58615         * modules/putenv (Depends-on): Add stdlib.
58616         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58617         (Include): Use <stdlib.h>.
58618         * lib/stdlib.in.h (putenv): New declaration.
58619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
58620         REPLACE_PUTENV.
58621         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
58622         REPLACE_PUTENV.
58623         Needed for MacOS X 10.5.0.
58624         Reported by Peter O'Gorman <peter@pogma.com>.
58625
58626 2007-11-01  Jim Meyering  <meyering@redhat.com>
58627
58628         Treat an empty date string exactly like "0".
58629         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
58630         if the remaining date string (to be parsed) is empty, use "0".
58631         Reported by Mischa Molhoek and discussed in this thread:
58632         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
58633
58634 2007-10-31  Bruno Haible  <bruno@clisp.org>
58635
58636         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
58637         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
58638         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
58639         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
58640         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
58641         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
58642
58643 2007-10-31  Bruno Haible  <bruno@clisp.org>
58644
58645         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
58646         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
58647         (AC_TYPE_LONG_LONG_INT): Use it.
58648         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
58649         it as well.
58650         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
58651         to m4/longlong.m4.
58652         * modules/stdint (Files): Remove m4/ulonglong.m4.
58653         * modules/strtoull (Files): Use m4/longlong.m4 instead of
58654         m4/ulonglong.m4.
58655         * modules/strtoumax (Files): Likewise.
58656
58657 2007-10-30  Bruno Haible  <bruno@clisp.org>
58658
58659         * modules/xvasprintf-posix: New file.
58660         Suggested by Eric Blake.
58661
58662 2007-10-30  Bruno Haible  <bruno@clisp.org>
58663
58664         * modules/xprintf-posix-tests: New file.
58665         * tests/test-xprintf-posix.sh: New file.
58666         * tests/test-xprintf-posix.c: New file.
58667         * tests/test-xfprintf-posix.c: New file.
58668
58669         * modules/xprintf-posix: New file.
58670
58671 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58672
58673         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
58674         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
58675         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
58676
58677 2007-10-29  Bruno Haible  <bruno@clisp.org>
58678
58679         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
58680         contain the special marker '_cv_'.
58681         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
58682         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
58683         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
58684         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
58685         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
58686         Reported by Ralf Wildenhues.
58687
58688 2007-10-29  Bruno Haible  <bruno@clisp.org>
58689
58690         * gnulib-tool (func_import): When --lgpl is not specified, set
58691         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
58692         GPLv3.
58693         Reported by Simon Josefsson.
58694
58695 2007-10-28  Bruno Haible  <bruno@clisp.org>
58696
58697         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
58698         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
58699         HAVE_DECL_ISFINITE.
58700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
58701         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
58702         HAVE_DECL_ISFINITE.
58703
58704 2007-10-28  Bruno Haible  <bruno@clisp.org>
58705
58706         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
58707         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
58708
58709 2007-10-28  Bruno Haible  <bruno@clisp.org>
58710
58711         Fix link errors with Sun C 5.0 on Solaris 10.
58712         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
58713         function is declared but not present in the compiler's libm.
58714         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
58715         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
58716         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
58717         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
58718         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
58719         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
58720         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
58721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
58722         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
58723         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
58724         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
58725         HAVE_DECL_FLOORL.
58726
58727 2007-10-28  Bruno Haible  <bruno@clisp.org>
58728
58729         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
58730         gl_FUNC_FLOORL. Cache the result.
58731         (gl_FUNC_FLOORL): Use it.
58732         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
58733         gl_FUNC_CEILL. Cache the result.
58734         (gl_FUNC_CEILL): Use it.
58735
58736         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
58737         gl_FUNC_FLOOR. Cache the result.
58738         (gl_FUNC_FLOOR): Use it.
58739         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
58740         gl_FUNC_CEIL. Cache the result.
58741         (gl_FUNC_CEIL): Use it.
58742
58743         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
58744         gl_FUNC_FLOORF. Cache the result.
58745         (gl_FUNC_FLOORF): Use it.
58746         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
58747         gl_FUNC_CEILF. Cache the result.
58748         (gl_FUNC_CEILF): Use it.
58749
58750 2007-10-28  Bruno Haible  <bruno@clisp.org>
58751
58752         * gnulib-tool: Allow specifying the LGPL version number through
58753         --lgpl=2 or --lgpl=3.
58754         (func_usage): Document --lgpl with argument.
58755         Handle --lgpl=... arguments.
58756         (func_import): Recognize also gl_LGPL calls with an argument. When
58757         --lgpl=2 is used and the module's license is just LGPL, report an
58758         error. Set sed_transform_lib_file according to the lgpl variable. In
58759         the generated files, use --lgpl or gl_LGPL invocations with argument,
58760         if necessary.
58761         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
58762         an LGPv2+ license.
58763         * doc/gnulib-tool.texi (Modified imports): Update explanation of
58764         gl_LGPL macro.
58765
58766 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58767             Bruno Haible  <bruno@clisp.org>
58768
58769         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
58770         (u16_uctomb_aux): Likewise.
58771         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
58772         !HAVE_INLINE.
58773         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
58774
58775 2007-10-28  Bruno Haible  <bruno@clisp.org>
58776
58777         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
58778         Invoke AM_GETTEXT_OPTION if it exists.
58779         * modules/vasprintf: Likewise.
58780         * modules/verror: Likewise.
58781         * modules/xprintf: Likewise.
58782         * modules/xvasprintf: Likewise.
58783
58784 2007-10-27  Ben Pfaff  <blp@gnu.org>
58785
58786         * lib/math.in.h: Define isfinite macro and prototypes for
58787         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
58788         implementations.
58789         * m4/math_h.m4: New substitutions for isfinite module.
58790         * lib/isfinite.c: New file.
58791         * m4/isfinite.m4: New file.
58792         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
58793         * modules/isfinite: New file.
58794         * modules/isfinite-tests: New file.
58795         * tests/tests-isfinite.c: New file.
58796         * doc/functions/isfinite.texi: Mention isfinite module.
58797         * MODULES.html.sh: Mention new module.
58798
58799 2007-10-27  Ben Pfaff  <blp@gnu.org>
58800
58801         Ralf Wildenhues reported that Tru64 4.0D declares the round
58802         functions but does not have definitions.
58803         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
58804         cannot be found in any library, set the output variable to
58805         "missing" instead of "".
58806         * m4/round.m4: Also use our substitute if we cannot find round in
58807         any library, even if it is declared.
58808         * m4/roundf.m4: Likewise for roundf.
58809         * m4/roundl.m4: Likewise for roundl.
58810         * lib/math.in.h: Undefine roundf, round, roundl before defining
58811         their replacements, to allow for hypothetical systems where these
58812         may be defined as macros but not available in libraries.
58813
58814 2007-10-27  Bruno Haible  <bruno@clisp.org>
58815
58816         * doc/gnulib.texi: Invoke @firstparagraphindent.
58817         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
58818         changes in gnulib.
58819         (Source changes): New section.
58820
58821 2007-10-26  Bruno Haible  <bruno@clisp.org>
58822
58823         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
58824         borrowed from autoconf.
58825
58826 2007-10-26  Bruno Haible  <bruno@clisp.org>
58827
58828         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
58829         strerror returned the empty string. Needed on HP-UX 11.00.
58830
58831 2007-10-24  Micah Cowan  <micah@cowan.name>
58832
58833         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
58834         * build-aux/bootstrap: Remove support for now-unnecessary option,
58835         --cvs-user, and envvars CVS_USER, CVS_RSH.
58836
58837 2007-10-24  Jim Meyering  <meyering@redhat.com>
58838
58839         Avoid diagnostics from sha1sum when there is no cached checksum.
58840         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
58841         if the po.s1 file hasn't been created yet.
58842
58843         * build-aux/bootstrap: Sync from coreutils:
58844         2007-10-24  Jim Meyering  <meyering@redhat.com>
58845         Get gnulib from the git repository, not from an obsolete cvs one.
58846         * build-aux/bootstrap: Suggestion from Micah Cowan.
58847         2007-10-04  Jim Meyering  <jim@meyering.net>
58848         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
58849         (update_po_files): Work also when there are no .po files in po/.
58850
58851 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58852
58853         * README: Append ".git" to git and cg examples.
58854         Problem reported by Benoit Sigoure.
58855
58856 2007-10-23  Micah Cowan  <micah@cowan.name>
58857
58858         * users.txt: Add wget.
58859
58860 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58861
58862         Fix linking of some unistdio tests on FreeBSD.
58863         * modules/unistdio/u16-vsnprintf-tests
58864         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
58865         * modules/unistdio/u16-vsprintf-tests
58866         (test_u16_vsnprintf1_LDADD): Likewise.
58867         * modules/unistdio/u32-vsnprintf-tests
58868         (test_u32_vsnprintf1_LDADD): Likewise.
58869         * modules/unistdio/u32-vsprintf-tests
58870         (test_u32_vsprintf1_LDADD): Likewise.
58871         * modules/unistdio/u8-vsnprintf-tests
58872         (test_u8_vsnprintf1_LDADD): Likewise.
58873         * modules/unistdio/u8-vsprintf-tests
58874         (test_u8_vsprintf1_LDADD): Likewise.
58875         * modules/unistdio/ulc-vsnprintf-tests
58876         (test_ulc_vsnprintf1_LDADD): Likewise.
58877         * modules/unistdio/ulc-vsprintf-tests
58878         (test_ulc_vsprintf1_LDADD): Likewise.
58879
58880         Fix linking of some uniconv tests on FreeBSD.
58881         * modules/uniconv/u16-conv-from-enc-tests
58882         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
58883         * modules/uniconv/u16-conv-to-enc-tests
58884         (test_u16_conv_to_enc_LDADD): Likewise.
58885         * modules/uniconv/u16-strconv-from-enc-tests
58886         (test_u16_strconv_from_enc_LDADD): Likewise.
58887         * modules/uniconv/u16-strconv-to-enc-tests
58888         (test_u16_strconv_to_enc_LDADD): Likewise.
58889         * modules/uniconv/u32-conv-from-enc-tests
58890         (test_u32_conv_from_enc_LDADD): Likewise.
58891         * modules/uniconv/u32-conv-to-enc-tests
58892         (test_u32_conv_to_enc_LDADD): Likewise.
58893         * modules/uniconv/u32-strconv-from-enc-tests
58894         (test_u32_strconv_from_enc_LDADD): Likewise.
58895         * modules/uniconv/u32-strconv-to-enc-tests
58896         (test_u32_strconv_to_enc_LDADD): Likewise.
58897         * modules/uniconv/u8-conv-from-enc-tests
58898         (test_u8_conv_from_enc_LDADD): Likewise.
58899         * modules/uniconv/u8-conv-to-enc-tests
58900         (test_u8_conv_to_enc_LDADD): Likewise.
58901         * modules/uniconv/u8-strconv-from-enc-tests
58902         (test_u8_strconv_from_enc_LDADD): Likewise.
58903         * modules/uniconv/u8-strconv-to-enc-tests
58904         (test_u8_strconv_to_enc_LDADD): Likewise.
58905
58906 2007-10-22  Bruno Haible  <bruno@clisp.org>
58907
58908         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
58909         size.
58910
58911 2007-10-22  Eric Blake  <ebb9@byu.net>
58912
58913         Tweak x*printf documentation.
58914         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
58915         variable name and comments.
58916         Suggested by Bruno Haible.
58917
58918 2007-10-22  Bruno Haible  <bruno@clisp.org>
58919
58920         * lib/acl.c (copy_acl): Fix file name in comment.
58921
58922 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
58923
58924         Fix Tru64 problem with stdbool.h.
58925         * lib/stdbool.in.h (false, true):
58926         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
58927         Don't declare as an enum in this situation; it runs afoul of Tru64.
58928         Problem reported by Steven M. Schweda in
58929         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
58930
58931 2007-10-22  Eric Blake  <ebb9@byu.net>
58932
58933         Also wrap vf?printf.
58934         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
58935         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
58936         (xvprintf, xvfprintf): New functions.
58937
58938 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58939
58940         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
58941         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
58942
58943         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
58944         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
58945
58946 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
58947
58948         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
58949         by Bruno Haible.
58950
58951 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58952
58953         * lib/getloadavg.c
58954         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
58955         Undef `sys' after including sys/table.h, for Tru64 4.0D.
58956
58957         * tests/test-i-ring.c: Work for C89.
58958
58959 2007-10-22  Bruno Haible  <bruno@clisp.org>
58960
58961         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
58962         -1u, in preprocessor expression, so that we don't test for the bug
58963         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
58964         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
58965
58966 2007-10-22  Eric Blake  <ebb9@byu.net>
58967
58968         * tests/test-yesno.sh: Silence stderr during test.
58969
58970 2007-10-22  Simon Josefsson  <simon@josefsson.org>
58971
58972         * modules/crypto/gc-camellia: New file.
58973
58974         * m4/gc-camellia.m4: New file.
58975
58976         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
58977
58978         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
58979
58980 2007-10-22  Simon Josefsson  <simon@josefsson.org>
58981
58982         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
58983         --help to stdout.  Reported by sms@antinode.org (Steven
58984         M. Schweda).
58985
58986 2007-10-22  Simon Josefsson  <simon@josefsson.org>
58987
58988         * users.txt: Fix link to libksba.
58989
58990 2007-10-21  Ben Pfaff  <blp@gnu.org>
58991
58992         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
58993         round.c roundf implementation that depends on floorf and ceilf to
58994         be tested unconditionally.
58995
58996 2007-10-21  Ben Pfaff  <blp@gnu.org>
58997
58998         * m4/check-libm-func.m4: Removed.
58999         * m4/check-math-lib.m4: New file.
59000         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
59001         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
59002         definition and lack of AC_LIBOBJ([roundf]).
59003         * m4/roundl.m4: Ditto, and similarly for roundl.
59004         * modules/round: Reference new m4 file.
59005         * modules/roundf: Ditto.
59006         * modules/roundl: Ditto.
59007         * tests/test-round2.c (main): Use ROUND instead of round.
59008         Bug report from Bruno Haible.
59009
59010 2007-10-21  Bruno Haible  <bruno@clisp.org>
59011
59012         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
59013         context.
59014
59015 2007-10-21  Bruno Haible  <bruno@clisp.org>
59016
59017         * tests/test-wcwidth.c (main): Allow negative result for some control
59018         characters.
59019
59020         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
59021         Needed on OSF/1 5.1.
59022
59023 2007-10-21  Bruno Haible  <bruno@clisp.org>
59024
59025         * tests/test-floorf1.c: Include isnanf.h.
59026         (main): Use isnanf() instead of isnan().
59027         * tests/test-ceilf1.c: Include isnanf.h.
59028         (main): Use isnanf() instead of isnan().
59029         * tests/test-truncf1.c: Include isnanf.h.
59030         (main): Use isnanf() instead of isnan().
59031         * tests/test-roundf1.c: Include isnanf.h.
59032         (main): Use isnanf() instead of isnan().
59033
59034 2007-10-21  Eric Blake  <ebb9@byu.net>
59035
59036         * users.txt: Update URL for m4.
59037
59038 2007-10-21  Bruno Haible  <bruno@clisp.org>
59039
59040         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
59041
59042 2007-10-21  Bruno Haible  <bruno@clisp.org>
59043
59044         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
59045         Git's management files if the CVS files are not present.
59046
59047 2007-10-20  Bruno Haible  <bruno@clisp.org>
59048
59049         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
59050         gcc-3.4.x.
59051
59052 2007-10-20  Ben Pfaff  <blp@gnu.org>
59053
59054         * lib/math.in.h: Declare round, roundf, roundl if we are providing
59055         implementations.
59056         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
59057         * lib/round.c: New file.
59058         * lib/roundf.c: New file.
59059         * lib/roundl.c: New file.
59060         * m4/round.m4: New file.
59061         * m4/roundf.m4: New file.
59062         * m4/roundl.m4: New file.
59063         * m4/check-libm-func-m4: New file.
59064         * modules/math: Replace round, roundf, roundl related @VARS@ in
59065         math.in.h.
59066         * modules/round: New file.
59067         * modules/round-tests: New file.
59068         * modules/roundf: New file.
59069         * modules/roundf-tests: New file.
59070         * modules/roundl: New file.
59071         * modules/roundl-tests: New file.
59072         * tests/test-round1.c: New file.
59073         * tests/test-round2.c: New file.
59074         * tests/test-roundf1.c: New file.
59075         * tests/test-roundf2.c: New file.
59076         * tests/test-roundl.c: New file.
59077         * doc/functions/round.texi: Mention round module.
59078         * doc/functions/roundf.texi: Mention roundf module.
59079         * doc/functions/roundl.texi: Mention roundl module.
59080         * MODULES.html.sh: Mention new modules.
59081         Thanks to Bruno Haible for suggestions.
59082
59083 2007-10-20  Jim Meyering  <meyering@redhat.com>
59084
59085         * lib/xprintf.c: Include <config.h> unconditionally.
59086
59087         Change xprintf's license to GPL.
59088         * modules/xprintf (License): s/LGPL/GPL/, since this module
59089         depends on modules (exit and exitfail) which are GPL.
59090         Suggestion from Bruno Haible.
59091
59092         xprintf fixes.
59093         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
59094         Use a clearer diagnostic.
59095         Patch from Bruno Haible.
59096
59097 2007-10-20  Bruno Haible  <bruno@clisp.org>
59098
59099         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
59100         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
59101         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59102
59103 2007-10-20  Bruno Haible  <bruno@clisp.org>
59104
59105         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
59106         precision in the comparison result > x - 1 or similar.
59107         * tests/test-ceilf2.c (correct_result_p): Likewise.
59108         * tests/test-truncf2.c (correct_result_p): Likewise.
59109         * tests/test-trunc2.c (correct_result_p): Likewise.
59110         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59111
59112 2007-10-20  Bruno Haible  <bruno@clisp.org>
59113
59114         * modules/ceil: New file.
59115         * m4/ceil.m4: New file.
59116         * doc/functions/ceil.texi: Mention the 'ceil' module.
59117
59118 2007-10-20  Bruno Haible  <bruno@clisp.org>
59119
59120         * modules/floor: New file.
59121         * m4/floor.m4: New file.
59122         * doc/functions/floor.texi: Mention the 'floor' module.
59123
59124 2007-10-20  Bruno Haible  <bruno@clisp.org>
59125
59126         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
59127         of %a.
59128         * modules/floorf-tests (Depends-on): Likewise.
59129         * modules/truncf-tests (Depends-on): Likewise.
59130         * modules/trunc-tests (Depends-on): Likewise.
59131         Reported by Ben Pfaff.
59132
59133 2007-10-19  Jim Meyering  <meyering@redhat.com>
59134
59135         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
59136         Don't bother testing specific errno values.  Just test ferror.
59137
59138         New module: xprintf
59139         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
59140
59141 2007-10-19  Bruno Haible  <bruno@clisp.org>
59142
59143         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
59144         syntax.
59145         * modules/javaexec (Makefile.am): Likewise.
59146         * modules/relocatable-prog (Makefile.am): Likewise.
59147         Suggested by Jim Meyering.
59148
59149 2007-10-18  Bruno Haible  <bruno@clisp.org>
59150
59151         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
59152         Reported by Jim Meyering.
59153
59154 2007-10-18  Eric Blake  <ebb9@byu.net>
59155
59156         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
59157
59158 2007-10-18  Bruno Haible  <bruno@clisp.org>
59159
59160         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
59161         the format string into writable memory. Needed in Fortify conditions.
59162
59163 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
59164             Bruno Haible  <bruno@clisp.org>
59165
59166         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
59167         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
59168         * modules/trim (Depends-on): Add mbchar.
59169         (configure.ac): Add gl_FUNC_MBRTOWC.
59170         (Makefile.am): Augment lib_SOURCES.
59171
59172 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59173
59174         Modify glob.c to use fstatat and dirfd, to simplify it.
59175         Suggested by Eric Blake.
59176         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
59177         Don't include <stdbool.h>; not used.
59178         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
59179         (link_exists_p): Simplify implementation, since we can now assume
59180         dirfd and fstatat.
59181         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
59182
59183 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59184
59185         * gnulib-tool (func_get_dependencies): Fix sed script to
59186         match only tests.
59187
59188 2007-10-17  Bruno Haible  <bruno@clisp.org>
59189
59190         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
59191         allow locale names without encoding suffix.
59192         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59193         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59194
59195 2007-10-16  Bruno Haible  <bruno@clisp.org>
59196
59197         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
59198         * lib/getgroups.c (getgroups): Likewise.
59199         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
59200
59201 2007-10-16  Bruno Haible  <bruno@clisp.org>
59202
59203         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
59204         * modules/malloc-posix (License): Likewise.
59205         * modules/realloc-posix (License): Likewise.
59206         * modules/calloc-posix (License): Likewise.
59207         * modules/intprops (License): Change from GPL to LGPL, with
59208         Paul Eggert's approval.
59209
59210 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59211
59212         Merge glibc changes into lib/glob.c.
59213
59214         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
59215         2007-10-15 04:59:03 UTC.  Here are the changes:
59216
59217         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
59218
59219         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
59220
59221         * lib/glob.c: Add some branch prediction throughout.
59222
59223         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
59224
59225         [BZ #5103]
59226         * lib/glob.c (glob): Recognize patterns starting \/.
59227
59228         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
59229
59230         [BZ #3996]
59231         * lib/glob.c (attribute_hidden): Define if not defined.
59232         (glob): Unescape dirname, filename or username when needed and not
59233         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
59234         is NULL.  Handle unescaped [ in pattern without closing ].
59235         Don't pass GLOB_CHECK down to recursive glob for directories.
59236         (__glob_pattern_type): New function.
59237         (__glob_pattern_p): Implement using __glob_pattern_type.
59238         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
59239         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
59240         Remove unreachable code.
59241
59242         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
59243
59244         * lib/glob.c (glob_in_dir): Add some comments and asserts to
59245         explain why there are no leaks.
59246
59247         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
59248
59249         [BZ #3253]
59250         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
59251         time, rather allocate increasingly bigger arrays of pointers, if
59252         possible with alloca, if too large with malloc.
59253
59254 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59255
59256         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
59257         Problem reported by H.Merijn Brand in
59258         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
59259         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
59260         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
59261
59262 2007-10-15  Bruno Haible  <bruno@clisp.org>
59263
59264         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
59265         with explicit rpl_ prefix.
59266         * lib/fopen.c (fopen): Likewise.
59267         * lib/freopen.c (freopen): Likewise.
59268         * lib/iconv.c (iconv): Likewise.
59269         * lib/iconv_close.c (iconv_close): Likewise.
59270
59271 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59272
59273         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
59274
59275 2007-10-15  Bruno Haible  <bruno@clisp.org>
59276
59277         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
59278         <stddef.h> instead of <stdlib.h> since we only need NULL.
59279         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59280
59281 2007-10-15  Bruno Haible  <bruno@clisp.org>
59282
59283         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
59284         Replace paragraph talking about LIBOBJS.
59285         Reported by Colin Watson <cjwatson@debian.org>.
59286
59287 2007-10-15  Bruno Haible  <bruno@clisp.org>
59288
59289         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
59290         <stdlib.h> before using NULL.
59291
59292 2007-10-15  Simon Josefsson  <simon@josefsson.org>
59293
59294         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
59295         Reported by Albert Chin <china@thewrittenword.com>.
59296
59297 2007-10-14  Bruno Haible  <bruno@clisp.org>
59298
59299         * modules/iconv_open-utf-tests: New file.
59300         * tests/test-iconv-utf.c: New file.
59301
59302         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
59303         * modules/iconv_open-utf: New file.
59304         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
59305         (iconv, iconv_close): New declarations.
59306         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
59307         be defined.
59308         (iconv_open): Add special handling of conversion between UTF-8 and
59309         UTF-{16,32}{BE,LE}.
59310         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
59311         * lib/iconv_close.c: New file.
59312         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
59313         gl_FUNC_ICONV_OPEN.
59314         (gl_FUNC_ICONV_OPEN): Use it.
59315         (gl_FUNC_ICONV_OPEN_UTF): New macro.
59316         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
59317         and REPLACE_ICONV_UTF.
59318         * modules/iconv_open (Depends-on): Add c-strcase.
59319         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
59320         ICONV_CONST.
59321         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
59322
59323 2007-10-13  Albert Chin  <china@thewrittenword.com>
59324             Bruno Haible  <bruno@clisp.org>
59325
59326         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
59327         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
59328
59329 2007-10-13  Bruno Haible  <bruno@clisp.org>
59330
59331         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
59332         defined, use the ISO C99 inline semantics.
59333         * lib/argp.h (ARGP_EI): Likewise.
59334
59335 2007-10-13  Bruno Haible  <bruno@clisp.org>
59336
59337         Handle 'inline' change in gcc 4.3.0.
59338         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
59339         argp_fmtstream_write, argp_fmtstream_set_lmargin,
59340         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
59341         argp_fmtstream_point): Disable 'extern' declaration if the function
59342         definition is going to be provided inline.
59343         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
59344         semantics, not the ISO C99 inline semantics.
59345         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
59346         'extern' declaration if the function definition is going to be provided
59347         inline.
59348         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
59349         the GNU C inline semantics, not the ISO C99 inline semantics. With
59350         GCC 4.2, avoid a warning.
59351
59352 2007-10-13  Bruno Haible  <bruno@clisp.org>
59353
59354         * lib/freading.h (freading): Enable the use of __freading for
59355         glibc >= 2.7.
59356         * lib/freading.c (freading): Likewise.
59357
59358 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59359
59360         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
59361         "warning: C99 inline functions are not supported; using GNU89".
59362
59363 2007-10-12  Bruno Haible  <bruno@clisp.org>
59364
59365         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
59366         of 2.
59367         * tests/test-ceilf2.c: New file.
59368         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
59369
59370         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
59371         * modules/ceilf-tests: Update.
59372
59373 2007-10-12  Bruno Haible  <bruno@clisp.org>
59374
59375         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
59376         of 2.
59377         * tests/test-floorf2.c: New file.
59378         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
59379
59380         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
59381         * modules/floorf-tests: Update.
59382
59383 2007-10-12  Bruno Haible  <bruno@clisp.org>
59384
59385         * tests/test-trunc2.c: New file.
59386         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
59387
59388         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
59389         * modules/trunc-tests: Update.
59390
59391 2007-10-12  Bruno Haible  <bruno@clisp.org>
59392
59393         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
59394         of 2.
59395         * tests/test-truncf2.c: New file.
59396         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
59397
59398         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
59399         * modules/truncf-tests: Update.
59400
59401 2007-10-11  Eric Blake  <ebb9@byu.net>
59402
59403         Don't claim strerror is broken on Interix.
59404         * doc/functions/strerror.texi (strerror): Known broken systems are
59405         now Solaris 8, and not Interix.
59406         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
59407         Interix on cross-compile.
59408         Reported by Martin Koeppe in
59409         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
59410
59411 2007-10-11  Bruno Haible  <bruno@clisp.org>
59412
59413         * modules/i-ring-tests: New file.
59414         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
59415         instead of assert.
59416
59417 2007-10-11  Bruno Haible  <bruno@clisp.org>
59418
59419         * modules/filenamecat-tests: New file.
59420         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
59421         * lib/filenamecat.c: Remove test code.
59422
59423 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59424
59425         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
59426
59427         * lib/strerror.c: Include <string.h> always, to test interface,
59428         and to remove the need for the dummy.
59429         Include intprops.h to compute width instead of doing it ourselves
59430         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
59431         (strerror): Define it to return NULL if there's no system strerror.
59432         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
59433         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
59434         ancient pre-strerror Unix systems well any more.  Saying "unknown
59435         system error" is enough.
59436         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
59437         simpler strerror.c implementation.
59438         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
59439         Simplify the tests to reflect the simpler strerror implementation.
59440         * modules/strerror (Depends-on): Add intprops.
59441
59442 2007-10-09  Eric Blake  <ebb9@byu.net>
59443
59444         Silence test-fpending.
59445         * modules/fpending-tests (Files): Add wrapper script.
59446         * tests/test-fpending.sh: New file.
59447
59448 2007-10-09  Bruno Haible  <bruno@clisp.org>
59449
59450         * MODULES.html.sh (func_module): Don't create a hyperlink for
59451         function names like 'printf_frexp'.
59452         (Misc): Add crc, memxor.
59453         (Characteristics of floating types): New section.
59454         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
59455         isnanf-nolibm, signbit, trunc, truncf, truncl.
59456         (Enhancements for ISO C 99 functions): New subsection Input/output.
59457         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
59458         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
59459         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
59460         (Compatibility checks for POSIX:2001 functions): Add clock-time.
59461         (Enhancements for POSIX:2001 functions): Add chdir-long.
59462         (File system functions): Add areadlink, chdir-safer, read-file.
59463         Remove cycle-check.
59464         (File system as inode set): New section.
59465         (Date and time): Add gethrxtime.
59466         (Multithreading): Add openmp.
59467         (Internationalization functions): Add localename.
59468         (Unicode string functions): Add unistr/u*-mbsnlen.
59469         (Support for maintaining and releasing projects): Add git-version-gen.
59470         (Lone files): Remove directories.
59471
59472 2007-10-08  Ben Pfaff  <blp@gnu.org>
59473
59474         * lib/xmalloca.h: Fix typo in comment.
59475
59476 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59477
59478         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
59479         when avoiding problems with integer overflow.  Use a portable test
59480         instead.
59481
59482 2007-10-08  Simon Josefsson  <simon@josefsson.org>
59483
59484         * modules/dummy (License): Change to LGPLv2+.
59485         * modules/float (License): Likewise
59486         * modules/realloc (License): Likewise
59487         * modules/stdlib (License): Likewise
59488
59489 2007-10-07  Bruno Haible  <bruno@clisp.org>
59490
59491         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
59492         * floor.c (TWO_MANT_DIG): Likewise.
59493         * ceil.c (TWO_MANT_DIG): Likewise.
59494         Reported by Ben Pfaff.
59495
59496 2007-10-07  Bruno Haible  <bruno@clisp.org>
59497
59498         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
59499         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
59500         * lib/frexp.c (FUNC): Likewise.
59501         * lib/printf-frexp.h (printf_frexp): Likewise.
59502         * lib/printf-frexpl.h (printf_frexpl): Likewise.
59503         * lib/printf-frexp.c (FUNC): Likewise.
59504         Suggested by Jim Meyering.
59505
59506 2007-10-07  Jim Meyering  <meyering@redhat.com>
59507
59508         Make xnanosleep's integer overflow test more robust.
59509         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
59510         so that gcc-4.3.0 doesn't optimize away this test for overflow.
59511
59512 2007-10-07  Bruno Haible  <bruno@clisp.org>
59513
59514         * NEWS: Mention the license change.
59515
59516         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
59517         abbreviations in the modules files.
59518
59519         Change copyright notice from GPLv2+ to GPLv3+.
59520         * README: Change copyright notice.
59521         * MODULES.html.sh: Likewise.
59522         * build-aux/bootstrap.conf: Likewise.
59523         * build-aux/config.libpath: Likewise.
59524         * build-aux/csharpcomp.sh.in: Likewise.
59525         * build-aux/csharpexec.sh.in: Likewise.
59526         * build-aux/install-reloc: Likewise.
59527         * build-aux/javacomp.sh.in: Likewise.
59528         * build-aux/javaexec.sh.in: Likewise.
59529         * build-aux/ldd.sh.in: Likewise.
59530         * build-aux/reloc-ldflags: Likewise.
59531         * build-aux/relocatable.sh.in: Likewise.
59532         * build-aux/x-to-1.in: Likewise.
59533         * check-module: Likewise.
59534         * config/srclistvars.sh: Likewise.
59535         * gnulib-tool: Likewise.
59536         * lib/acl-internal.h: Likewise.
59537         * lib/acl.c: Likewise.
59538         * lib/acl.h: Likewise.
59539         * lib/acl_entries.c: Likewise.
59540         * lib/areadlink-with-size.c: Likewise.
59541         * lib/areadlink.c: Likewise.
59542         * lib/areadlink.h: Likewise.
59543         * lib/argmatch.c: Likewise.
59544         * lib/argmatch.h: Likewise.
59545         * lib/argp-ba.c: Likewise.
59546         * lib/argp-eexst.c: Likewise.
59547         * lib/argp-fmtstream.c: Likewise.
59548         * lib/argp-fmtstream.h: Likewise.
59549         * lib/argp-fs-xinl.c: Likewise.
59550         * lib/argp-help.c: Likewise.
59551         * lib/argp-namefrob.h: Likewise.
59552         * lib/argp-parse.c: Likewise.
59553         * lib/argp-pin.c: Likewise.
59554         * lib/argp-pv.c: Likewise.
59555         * lib/argp-pvh.c: Likewise.
59556         * lib/argp-xinl.c: Likewise.
59557         * lib/argp.h: Likewise.
59558         * lib/at-func.c: Likewise.
59559         * lib/atanl.c: Likewise.
59560         * lib/backupfile.c: Likewise.
59561         * lib/backupfile.h: Likewise.
59562         * lib/basename.c: Likewise.
59563         * lib/binary-io.h: Likewise.
59564         * lib/byteswap.in.h: Likewise.
59565         * lib/c-stack.c: Likewise.
59566         * lib/c-stack.h: Likewise.
59567         * lib/c-strcasestr.c: Likewise.
59568         * lib/c-strcasestr.h: Likewise.
59569         * lib/c-strstr.c: Likewise.
59570         * lib/c-strstr.h: Likewise.
59571         * lib/c-strtod.c: Likewise.
59572         * lib/calloc.c: Likewise.
59573         * lib/canon-host.c: Likewise.
59574         * lib/canon-host.h: Likewise.
59575         * lib/canonicalize-lgpl.c: Likewise.
59576         * lib/canonicalize.c: Likewise.
59577         * lib/canonicalize.h: Likewise.
59578         * lib/ceil.c: Likewise.
59579         * lib/ceilf.c: Likewise.
59580         * lib/ceill.c: Likewise.
59581         * lib/chdir-long.c: Likewise.
59582         * lib/chdir-long.h: Likewise.
59583         * lib/chdir-safer.c: Likewise.
59584         * lib/chdir-safer.h: Likewise.
59585         * lib/chown.c: Likewise.
59586         * lib/classpath.c: Likewise.
59587         * lib/classpath.h: Likewise.
59588         * lib/clean-temp.c: Likewise.
59589         * lib/clean-temp.h: Likewise.
59590         * lib/cloexec.c: Likewise.
59591         * lib/close-stream.c: Likewise.
59592         * lib/closein.c: Likewise.
59593         * lib/closein.h: Likewise.
59594         * lib/closeout.c: Likewise.
59595         * lib/closeout.h: Likewise.
59596         * lib/concat-filename.c: Likewise.
59597         * lib/copy-file.c: Likewise.
59598         * lib/copy-file.h: Likewise.
59599         * lib/count-one-bits.h: Likewise.
59600         * lib/crc.c: Likewise.
59601         * lib/crc.h: Likewise.
59602         * lib/creat-safer.c: Likewise.
59603         * lib/csharpcomp.c: Likewise.
59604         * lib/csharpcomp.h: Likewise.
59605         * lib/csharpexec.c: Likewise.
59606         * lib/csharpexec.h: Likewise.
59607         * lib/cycle-check.c: Likewise.
59608         * lib/cycle-check.h: Likewise.
59609         * lib/diacrit.c: Likewise.
59610         * lib/diacrit.h: Likewise.
59611         * lib/diffseq.h: Likewise.
59612         * lib/dirchownmod.c: Likewise.
59613         * lib/dirent.in.h: Likewise.
59614         * lib/dirfd.c: Likewise.
59615         * lib/dirfd.h: Likewise.
59616         * lib/dirname.c: Likewise.
59617         * lib/dirname.h: Likewise.
59618         * lib/dummy.c: Likewise.
59619         * lib/dup-safer.c: Likewise.
59620         * lib/dup2.c: Likewise.
59621         * lib/eealloc.h: Likewise.
59622         * lib/error.c: Likewise.
59623         * lib/error.h: Likewise.
59624         * lib/euidaccess.c: Likewise.
59625         * lib/exclude.c: Likewise.
59626         * lib/exclude.h: Likewise.
59627         * lib/execute.c: Likewise.
59628         * lib/execute.h: Likewise.
59629         * lib/exitfail.c: Likewise.
59630         * lib/exitfail.h: Likewise.
59631         * lib/expl.c: Likewise.
59632         * lib/fatal-signal.c: Likewise.
59633         * lib/fatal-signal.h: Likewise.
59634         * lib/fbufmode.c: Likewise.
59635         * lib/fbufmode.h: Likewise.
59636         * lib/fchdir.c: Likewise.
59637         * lib/fchmodat.c: Likewise.
59638         * lib/fchownat.c: Likewise.
59639         * lib/fcntl--.h: Likewise.
59640         * lib/fcntl-safer.h: Likewise.
59641         * lib/fcntl.in.h: Likewise.
59642         * lib/fd-safer.c: Likewise.
59643         * lib/fflush.c: Likewise.
59644         * lib/file-has-acl.c: Likewise.
59645         * lib/file-set.c: Likewise.
59646         * lib/file-type.c: Likewise.
59647         * lib/file-type.h: Likewise.
59648         * lib/fileblocks.c: Likewise.
59649         * lib/filemode.c: Likewise.
59650         * lib/filemode.h: Likewise.
59651         * lib/filename.h: Likewise.
59652         * lib/filenamecat.c: Likewise.
59653         * lib/filenamecat.h: Likewise.
59654         * lib/findprog.c: Likewise.
59655         * lib/findprog.h: Likewise.
59656         * lib/float.in.h: Likewise.
59657         * lib/floor.c: Likewise.
59658         * lib/floorf.c: Likewise.
59659         * lib/floorl.c: Likewise.
59660         * lib/fopen-safer.c: Likewise.
59661         * lib/fopen.c: Likewise.
59662         * lib/fpending.c: Likewise.
59663         * lib/fpending.h: Likewise.
59664         * lib/fprintf.c: Likewise.
59665         * lib/fprintftime.h: Likewise.
59666         * lib/fpucw.h: Likewise.
59667         * lib/fpurge.c: Likewise.
59668         * lib/fpurge.h: Likewise.
59669         * lib/freadable.c: Likewise.
59670         * lib/freadable.h: Likewise.
59671         * lib/freadahead.c: Likewise.
59672         * lib/freadahead.h: Likewise.
59673         * lib/freading.c: Likewise.
59674         * lib/freading.h: Likewise.
59675         * lib/free.c: Likewise.
59676         * lib/freopen.c: Likewise.
59677         * lib/frexp.c: Likewise.
59678         * lib/frexpl.c: Likewise.
59679         * lib/fseek.c: Likewise.
59680         * lib/fseterr.c: Likewise.
59681         * lib/fseterr.h: Likewise.
59682         * lib/fstatat.c: Likewise.
59683         * lib/fstrcmp.c: Likewise.
59684         * lib/fstrcmp.h: Likewise.
59685         * lib/fsusage.c: Likewise.
59686         * lib/fsusage.h: Likewise.
59687         * lib/ftell.c: Likewise.
59688         * lib/ftello.c: Likewise.
59689         * lib/fts-cycle.c: Likewise.
59690         * lib/fts.c: Likewise.
59691         * lib/fts_.h: Likewise.
59692         * lib/full-read.c: Likewise.
59693         * lib/full-read.h: Likewise.
59694         * lib/full-write.c: Likewise.
59695         * lib/full-write.h: Likewise.
59696         * lib/fwritable.c: Likewise.
59697         * lib/fwritable.h: Likewise.
59698         * lib/fwriteerror.c: Likewise.
59699         * lib/fwriteerror.h: Likewise.
59700         * lib/fwriting.c: Likewise.
59701         * lib/fwriting.h: Likewise.
59702         * lib/gcd.c: Likewise.
59703         * lib/gcd.h: Likewise.
59704         * lib/getcwd.c: Likewise.
59705         * lib/getdate.h: Likewise.
59706         * lib/getdate.y: Likewise.
59707         * lib/getdomainname.c: Likewise.
59708         * lib/getdomainname.h: Likewise.
59709         * lib/getgroups.c: Likewise.
59710         * lib/gethostname.c: Likewise.
59711         * lib/gethrxtime.c: Likewise.
59712         * lib/gethrxtime.h: Likewise.
59713         * lib/getloadavg.c: Likewise.
59714         * lib/getndelim2.c: Likewise.
59715         * lib/getndelim2.h: Likewise.
59716         * lib/getnline.c: Likewise.
59717         * lib/getnline.h: Likewise.
59718         * lib/getopt.c: Likewise.
59719         * lib/getopt.in.h: Likewise.
59720         * lib/getopt1.c: Likewise.
59721         * lib/getopt_int.h: Likewise.
59722         * lib/getpagesize.h: Likewise.
59723         * lib/getsubopt.c: Likewise.
59724         * lib/gettime.c: Likewise.
59725         * lib/getugroups.c: Likewise.
59726         * lib/getugroups.h: Likewise.
59727         * lib/getusershell.c: Likewise.
59728         * lib/gl_anyavltree_list1.h: Likewise.
59729         * lib/gl_anyavltree_list2.h: Likewise.
59730         * lib/gl_anyhash_list1.h: Likewise.
59731         * lib/gl_anyhash_list2.h: Likewise.
59732         * lib/gl_anylinked_list1.h: Likewise.
59733         * lib/gl_anylinked_list2.h: Likewise.
59734         * lib/gl_anyrbtree_list1.h: Likewise.
59735         * lib/gl_anyrbtree_list2.h: Likewise.
59736         * lib/gl_anytree_list1.h: Likewise.
59737         * lib/gl_anytree_list2.h: Likewise.
59738         * lib/gl_anytree_oset.h: Likewise.
59739         * lib/gl_anytreehash_list1.h: Likewise.
59740         * lib/gl_anytreehash_list2.h: Likewise.
59741         * lib/gl_array_list.c: Likewise.
59742         * lib/gl_array_list.h: Likewise.
59743         * lib/gl_array_oset.c: Likewise.
59744         * lib/gl_array_oset.h: Likewise.
59745         * lib/gl_avltree_list.c: Likewise.
59746         * lib/gl_avltree_list.h: Likewise.
59747         * lib/gl_avltree_oset.c: Likewise.
59748         * lib/gl_avltree_oset.h: Likewise.
59749         * lib/gl_avltreehash_list.c: Likewise.
59750         * lib/gl_avltreehash_list.h: Likewise.
59751         * lib/gl_carray_list.c: Likewise.
59752         * lib/gl_carray_list.h: Likewise.
59753         * lib/gl_linked_list.c: Likewise.
59754         * lib/gl_linked_list.h: Likewise.
59755         * lib/gl_linkedhash_list.c: Likewise.
59756         * lib/gl_linkedhash_list.h: Likewise.
59757         * lib/gl_list.c: Likewise.
59758         * lib/gl_list.h: Likewise.
59759         * lib/gl_oset.c: Likewise.
59760         * lib/gl_oset.h: Likewise.
59761         * lib/gl_rbtree_list.c: Likewise.
59762         * lib/gl_rbtree_list.h: Likewise.
59763         * lib/gl_rbtree_oset.c: Likewise.
59764         * lib/gl_rbtree_oset.h: Likewise.
59765         * lib/gl_rbtreehash_list.c: Likewise.
59766         * lib/gl_rbtreehash_list.h: Likewise.
59767         * lib/gl_sublist.c: Likewise.
59768         * lib/gl_sublist.h: Likewise.
59769         * lib/group-member.c: Likewise.
59770         * lib/group-member.h: Likewise.
59771         * lib/hard-locale.c: Likewise.
59772         * lib/hard-locale.h: Likewise.
59773         * lib/hash-pjw.c: Likewise.
59774         * lib/hash-pjw.h: Likewise.
59775         * lib/hash-triple.c: Likewise.
59776         * lib/hash.c: Likewise.
59777         * lib/hash.h: Likewise.
59778         * lib/human.c: Likewise.
59779         * lib/human.h: Likewise.
59780         * lib/i-ring.c: Likewise.
59781         * lib/i-ring.h: Likewise.
59782         * lib/idcache.c: Likewise.
59783         * lib/imaxabs.c: Likewise.
59784         * lib/imaxdiv.c: Likewise.
59785         * lib/inet_pton.c: Likewise.
59786         * lib/inet_pton.h: Likewise.
59787         * lib/intprops.h: Likewise.
59788         * lib/inttostr.c: Likewise.
59789         * lib/inttostr.h: Likewise.
59790         * lib/inttypes.in.h: Likewise.
59791         * lib/isapipe.c: Likewise.
59792         * lib/isdir.c: Likewise.
59793         * lib/isnan.c: Likewise.
59794         * lib/isnan.h: Likewise.
59795         * lib/isnanf.c: Likewise.
59796         * lib/isnanf.h: Likewise.
59797         * lib/isnanl-nolibm.h: Likewise.
59798         * lib/isnanl.c: Likewise.
59799         * lib/isnanl.h: Likewise.
59800         * lib/javacomp.c: Likewise.
59801         * lib/javacomp.h: Likewise.
59802         * lib/javaexec.c: Likewise.
59803         * lib/javaexec.h: Likewise.
59804         * lib/javaversion.c: Likewise.
59805         * lib/javaversion.h: Likewise.
59806         * lib/javaversion.java: Likewise.
59807         * lib/lbrkprop.h: Likewise.
59808         * lib/lchmod.h: Likewise.
59809         * lib/lchown.c: Likewise.
59810         * lib/ldexpl.c: Likewise.
59811         * lib/linebreak.c: Likewise.
59812         * lib/linebreak.h: Likewise.
59813         * lib/linebuffer.c: Likewise.
59814         * lib/linebuffer.h: Likewise.
59815         * lib/locale.in.h: Likewise.
59816         * lib/logl.c: Likewise.
59817         * lib/long-options.c: Likewise.
59818         * lib/long-options.h: Likewise.
59819         * lib/lstat.c: Likewise.
59820         * lib/lstat.h: Likewise.
59821         * lib/math.in.h: Likewise.
59822         * lib/mbchar.c: Likewise.
59823         * lib/mbchar.h: Likewise.
59824         * lib/mbfile.h: Likewise.
59825         * lib/mbiter.h: Likewise.
59826         * lib/mbscasecmp.c: Likewise.
59827         * lib/mbscasestr.c: Likewise.
59828         * lib/mbschr.c: Likewise.
59829         * lib/mbscspn.c: Likewise.
59830         * lib/mbslen.c: Likewise.
59831         * lib/mbsncasecmp.c: Likewise.
59832         * lib/mbsnlen.c: Likewise.
59833         * lib/mbspbrk.c: Likewise.
59834         * lib/mbspcasecmp.c: Likewise.
59835         * lib/mbsrchr.c: Likewise.
59836         * lib/mbssep.c: Likewise.
59837         * lib/mbsspn.c: Likewise.
59838         * lib/mbsstr.c: Likewise.
59839         * lib/mbstok_r.c: Likewise.
59840         * lib/mbswidth.c: Likewise.
59841         * lib/mbswidth.h: Likewise.
59842         * lib/mbuiter.h: Likewise.
59843         * lib/memcasecmp.c: Likewise.
59844         * lib/memcasecmp.h: Likewise.
59845         * lib/memchr.c: Likewise.
59846         * lib/memcmp.c: Likewise.
59847         * lib/memcoll.c: Likewise.
59848         * lib/memcoll.h: Likewise.
59849         * lib/memcpy.c: Likewise.
59850         * lib/memrchr.c: Likewise.
59851         * lib/mkancesdirs.c: Likewise.
59852         * lib/mkdir-p.c: Likewise.
59853         * lib/mkdir-p.h: Likewise.
59854         * lib/mkdir.c: Likewise.
59855         * lib/mkdirat.c: Likewise.
59856         * lib/mkdtemp.c: Likewise.
59857         * lib/mkstemp-safer.c: Likewise.
59858         * lib/mkstemp.c: Likewise.
59859         * lib/modechange.c: Likewise.
59860         * lib/modechange.h: Likewise.
59861         * lib/mountlist.c: Likewise.
59862         * lib/mountlist.h: Likewise.
59863         * lib/mpsort.c: Likewise.
59864         * lib/nanosleep.c: Likewise.
59865         * lib/obstack.c: Likewise.
59866         * lib/obstack.h: Likewise.
59867         * lib/open-safer.c: Likewise.
59868         * lib/open.c: Likewise.
59869         * lib/openat-die.c: Likewise.
59870         * lib/openat-priv.h: Likewise.
59871         * lib/openat-proc.c: Likewise.
59872         * lib/openat.c: Likewise.
59873         * lib/openat.h: Likewise.
59874         * lib/pagealign_alloc.c: Likewise.
59875         * lib/pagealign_alloc.h: Likewise.
59876         * lib/physmem.c: Likewise.
59877         * lib/physmem.h: Likewise.
59878         * lib/pipe-safer.c: Likewise.
59879         * lib/pipe.c: Likewise.
59880         * lib/pipe.h: Likewise.
59881         * lib/posixtm.c: Likewise.
59882         * lib/posixtm.h: Likewise.
59883         * lib/posixver.c: Likewise.
59884         * lib/printf-frexp.c: Likewise.
59885         * lib/printf-frexp.h: Likewise.
59886         * lib/printf-frexpl.c: Likewise.
59887         * lib/printf-frexpl.h: Likewise.
59888         * lib/printf.c: Likewise.
59889         * lib/progname.c: Likewise.
59890         * lib/progname.h: Likewise.
59891         * lib/progreloc.c: Likewise.
59892         * lib/putenv.c: Likewise.
59893         * lib/quote.c: Likewise.
59894         * lib/quote.h: Likewise.
59895         * lib/quotearg.c: Likewise.
59896         * lib/quotearg.h: Likewise.
59897         * lib/raise.c: Likewise.
59898         * lib/readline.c: Likewise.
59899         * lib/readline.h: Likewise.
59900         * lib/readlink.c: Likewise.
59901         * lib/readtokens.c: Likewise.
59902         * lib/readtokens.h: Likewise.
59903         * lib/readtokens0.c: Likewise.
59904         * lib/readtokens0.h: Likewise.
59905         * lib/readutmp.c: Likewise.
59906         * lib/readutmp.h: Likewise.
59907         * lib/realloc.c: Likewise.
59908         * lib/relocwrapper.c: Likewise.
59909         * lib/rename-dest-slash.c: Likewise.
59910         * lib/rename.c: Likewise.
59911         * lib/rmdir.c: Likewise.
59912         * lib/rpmatch.c: Likewise.
59913         * lib/safe-read.c: Likewise.
59914         * lib/safe-read.h: Likewise.
59915         * lib/safe-write.c: Likewise.
59916         * lib/safe-write.h: Likewise.
59917         * lib/same-inode.h: Likewise.
59918         * lib/same.c: Likewise.
59919         * lib/same.h: Likewise.
59920         * lib/save-cwd.c: Likewise.
59921         * lib/save-cwd.h: Likewise.
59922         * lib/savedir.c: Likewise.
59923         * lib/savedir.h: Likewise.
59924         * lib/savewd.c: Likewise.
59925         * lib/savewd.h: Likewise.
59926         * lib/search.in.h: Likewise.
59927         * lib/setenv.c: Likewise.
59928         * lib/setenv.h: Likewise.
59929         * lib/settime.c: Likewise.
59930         * lib/sh-quote.c: Likewise.
59931         * lib/sh-quote.h: Likewise.
59932         * lib/sig2str.c: Likewise.
59933         * lib/sig2str.h: Likewise.
59934         * lib/signal.in.h: Likewise.
59935         * lib/signbitd.c: Likewise.
59936         * lib/signbitf.c: Likewise.
59937         * lib/signbitl.c: Likewise.
59938         * lib/sigprocmask.c: Likewise.
59939         * lib/sincosl.c: Likewise.
59940         * lib/sleep.c: Likewise.
59941         * lib/sprintf.c: Likewise.
59942         * lib/sqrtl.c: Likewise.
59943         * lib/stat-time.h: Likewise.
59944         * lib/stdio--.h: Likewise.
59945         * lib/stdio-safer.h: Likewise.
59946         * lib/stdlib--.h: Likewise.
59947         * lib/stdlib-safer.h: Likewise.
59948         * lib/stdlib.in.h: Likewise.
59949         * lib/stpcpy.c: Likewise.
59950         * lib/stpncpy.c: Likewise.
59951         * lib/strchrnul.c: Likewise.
59952         * lib/strcspn.c: Likewise.
59953         * lib/strerror.c: Likewise.
59954         * lib/strftime.c: Likewise.
59955         * lib/strftime.h: Likewise.
59956         * lib/striconveh.c: Likewise.
59957         * lib/striconveh.h: Likewise.
59958         * lib/striconveha.c: Likewise.
59959         * lib/striconveha.h: Likewise.
59960         * lib/stripslash.c: Likewise.
59961         * lib/strnlen1.c: Likewise.
59962         * lib/strnlen1.h: Likewise.
59963         * lib/strtod.c: Likewise.
59964         * lib/strtoimax.c: Likewise.
59965         * lib/strtok_r.c: Likewise.
59966         * lib/strtol.c: Likewise.
59967         * lib/strtoll.c: Likewise.
59968         * lib/strtoul.c: Likewise.
59969         * lib/strtoull.c: Likewise.
59970         * lib/sysexits.in.h: Likewise.
59971         * lib/tempname.c: Likewise.
59972         * lib/tempname.h: Likewise.
59973         * lib/timespec.h: Likewise.
59974         * lib/tls.c: Likewise.
59975         * lib/tls.h: Likewise.
59976         * lib/tmpdir.c: Likewise.
59977         * lib/tmpdir.h: Likewise.
59978         * lib/tmpfile-safer.c: Likewise.
59979         * lib/tmpfile.c: Likewise.
59980         * lib/trigl.c: Likewise.
59981         * lib/trigl.h: Likewise.
59982         * lib/trim.c: Likewise.
59983         * lib/trim.h: Likewise.
59984         * lib/trunc.c: Likewise.
59985         * lib/truncf.c: Likewise.
59986         * lib/truncl.c: Likewise.
59987         * lib/tsearch.c: Likewise.
59988         * lib/unicodeio.c: Likewise.
59989         * lib/unicodeio.h: Likewise.
59990         * lib/unistd--.h: Likewise.
59991         * lib/unistd-safer.h: Likewise.
59992         * lib/unistdio/ulc-fprintf.c: Likewise.
59993         * lib/unistdio/ulc-vfprintf.c: Likewise.
59994         * lib/unlinkdir.c: Likewise.
59995         * lib/unlinkdir.h: Likewise.
59996         * lib/unlocked-io.h: Likewise.
59997         * lib/unsetenv.c: Likewise.
59998         * lib/userspec.c: Likewise.
59999         * lib/utime.c: Likewise.
60000         * lib/utimecmp.c: Likewise.
60001         * lib/utimecmp.h: Likewise.
60002         * lib/utimens.c: Likewise.
60003         * lib/verify.h: Likewise.
60004         * lib/verror.c: Likewise.
60005         * lib/verror.h: Likewise.
60006         * lib/version-etc-fsf.c: Likewise.
60007         * lib/version-etc.c: Likewise.
60008         * lib/version-etc.h: Likewise.
60009         * lib/vfprintf.c: Likewise.
60010         * lib/vprintf.c: Likewise.
60011         * lib/vsprintf.c: Likewise.
60012         * lib/w32spawn.h: Likewise.
60013         * lib/wait-process.c: Likewise.
60014         * lib/wait-process.h: Likewise.
60015         * lib/wcwidth.c: Likewise.
60016         * lib/write-any-file.c: Likewise.
60017         * lib/xalloc-die.c: Likewise.
60018         * lib/xalloc.h: Likewise.
60019         * lib/xasprintf.c: Likewise.
60020         * lib/xgetcwd.c: Likewise.
60021         * lib/xgetcwd.h: Likewise.
60022         * lib/xgetdomainname.c: Likewise.
60023         * lib/xgetdomainname.h: Likewise.
60024         * lib/xgethostname.c: Likewise.
60025         * lib/xmalloc.c: Likewise.
60026         * lib/xmalloca.c: Likewise.
60027         * lib/xmalloca.h: Likewise.
60028         * lib/xmemcoll.c: Likewise.
60029         * lib/xnanosleep.c: Likewise.
60030         * lib/xreadlink.c: Likewise.
60031         * lib/xreadlink.h: Likewise.
60032         * lib/xsetenv.c: Likewise.
60033         * lib/xsetenv.h: Likewise.
60034         * lib/xstriconv.c: Likewise.
60035         * lib/xstriconv.h: Likewise.
60036         * lib/xstrndup.c: Likewise.
60037         * lib/xstrndup.h: Likewise.
60038         * lib/xstrtod.c: Likewise.
60039         * lib/xstrtod.h: Likewise.
60040         * lib/xstrtol-error.c: Likewise.
60041         * lib/xstrtol.c: Likewise.
60042         * lib/xstrtol.h: Likewise.
60043         * lib/xtime.h: Likewise.
60044         * lib/xvasprintf.c: Likewise.
60045         * lib/xvasprintf.h: Likewise.
60046         * lib/yesno.c: Likewise.
60047         * lib/yesno.h: Likewise.
60048         * posix-modules: Likewise.
60049         * tests/test-alloca-opt.c: Likewise.
60050         * tests/test-arcfour.c: Likewise.
60051         * tests/test-arctwo.c: Likewise.
60052         * tests/test-argmatch.c: Likewise.
60053         * tests/test-argp-2.sh: Likewise.
60054         * tests/test-argp.c: Likewise.
60055         * tests/test-arpa_inet.c: Likewise.
60056         * tests/test-array_list.c: Likewise.
60057         * tests/test-array_oset.c: Likewise.
60058         * tests/test-atexit.c: Likewise.
60059         * tests/test-avltree_list.c: Likewise.
60060         * tests/test-avltree_oset.c: Likewise.
60061         * tests/test-avltreehash_list.c: Likewise.
60062         * tests/test-base64.c: Likewise.
60063         * tests/test-binary-io.c: Likewise.
60064         * tests/test-byteswap.c: Likewise.
60065         * tests/test-c-ctype.c: Likewise.
60066         * tests/test-c-strcasecmp.c: Likewise.
60067         * tests/test-c-strcasestr.c: Likewise.
60068         * tests/test-c-strncasecmp.c: Likewise.
60069         * tests/test-c-strstr.c: Likewise.
60070         * tests/test-canonicalize-lgpl.c: Likewise.
60071         * tests/test-canonicalize.c: Likewise.
60072         * tests/test-carray_list.c: Likewise.
60073         * tests/test-ceilf.c: Likewise.
60074         * tests/test-ceill.c: Likewise.
60075         * tests/test-count-one-bits.c: Likewise.
60076         * tests/test-crc.c: Likewise.
60077         * tests/test-dirname.c: Likewise.
60078         * tests/test-fbufmode.c: Likewise.
60079         * tests/test-fcntl.c: Likewise.
60080         * tests/test-fflush.c: Likewise.
60081         * tests/test-floorf.c: Likewise.
60082         * tests/test-floorl.c: Likewise.
60083         * tests/test-fopen.c: Likewise.
60084         * tests/test-fprintf-posix.c: Likewise.
60085         * tests/test-fprintf-posix.h: Likewise.
60086         * tests/test-fpurge.c: Likewise.
60087         * tests/test-freadable.c: Likewise.
60088         * tests/test-freadahead.c: Likewise.
60089         * tests/test-freading.c: Likewise.
60090         * tests/test-freopen.c: Likewise.
60091         * tests/test-frexp.c: Likewise.
60092         * tests/test-frexpl.c: Likewise.
60093         * tests/test-fseek.c: Likewise.
60094         * tests/test-fseeko.c: Likewise.
60095         * tests/test-fseterr.c: Likewise.
60096         * tests/test-fstrcmp.c: Likewise.
60097         * tests/test-ftell.c: Likewise.
60098         * tests/test-ftello.c: Likewise.
60099         * tests/test-fwritable.c: Likewise.
60100         * tests/test-fwriting.c: Likewise.
60101         * tests/test-getaddrinfo.c: Likewise.
60102         * tests/test-getpass.c: Likewise.
60103         * tests/test-gettimeofday.c: Likewise.
60104         * tests/test-hmac-md5.c: Likewise.
60105         * tests/test-hmac-sha1.c: Likewise.
60106         * tests/test-iconv.c: Likewise.
60107         * tests/test-iconvme.c: Likewise.
60108         * tests/test-inttypes.c: Likewise.
60109         * tests/test-isnan.c: Likewise.
60110         * tests/test-isnanf.c: Likewise.
60111         * tests/test-isnanl-nolibm.c: Likewise.
60112         * tests/test-isnanl.c: Likewise.
60113         * tests/test-isnanl.h: Likewise.
60114         * tests/test-ldexpl.c: Likewise.
60115         * tests/test-linked_list.c: Likewise.
60116         * tests/test-linkedhash_list.c: Likewise.
60117         * tests/test-locale.c: Likewise.
60118         * tests/test-localename.c: Likewise.
60119         * tests/test-lock.c: Likewise.
60120         * tests/test-lseek.c: Likewise.
60121         * tests/test-malloca.c: Likewise.
60122         * tests/test-math.c: Likewise.
60123         * tests/test-mbscasecmp.c: Likewise.
60124         * tests/test-mbscasestr1.c: Likewise.
60125         * tests/test-mbscasestr2.c: Likewise.
60126         * tests/test-mbscasestr3.c: Likewise.
60127         * tests/test-mbscasestr4.c: Likewise.
60128         * tests/test-mbschr.c: Likewise.
60129         * tests/test-mbscspn.c: Likewise.
60130         * tests/test-mbsncasecmp.c: Likewise.
60131         * tests/test-mbspbrk.c: Likewise.
60132         * tests/test-mbspcasecmp.c: Likewise.
60133         * tests/test-mbsrchr.c: Likewise.
60134         * tests/test-mbsspn.c: Likewise.
60135         * tests/test-mbsstr1.c: Likewise.
60136         * tests/test-mbsstr2.c: Likewise.
60137         * tests/test-mbsstr3.c: Likewise.
60138         * tests/test-md5.c: Likewise.
60139         * tests/test-memmem.c: Likewise.
60140         * tests/test-netinet_in.c: Likewise.
60141         * tests/test-open.c: Likewise.
60142         * tests/test-printf-frexp.c: Likewise.
60143         * tests/test-printf-frexpl.c: Likewise.
60144         * tests/test-printf-posix.c: Likewise.
60145         * tests/test-printf-posix.h: Likewise.
60146         * tests/test-rbtree_list.c: Likewise.
60147         * tests/test-rbtree_oset.c: Likewise.
60148         * tests/test-rbtreehash_list.c: Likewise.
60149         * tests/test-read-file.c: Likewise.
60150         * tests/test-rijndael.c: Likewise.
60151         * tests/test-search.c: Likewise.
60152         * tests/test-signbit.c: Likewise.
60153         * tests/test-sleep.c: Likewise.
60154         * tests/test-snprintf-posix.c: Likewise.
60155         * tests/test-snprintf-posix.h: Likewise.
60156         * tests/test-snprintf.c: Likewise.
60157         * tests/test-sprintf-posix.c: Likewise.
60158         * tests/test-sprintf-posix.h: Likewise.
60159         * tests/test-stat-time.c: Likewise.
60160         * tests/test-stdbool.c: Likewise.
60161         * tests/test-stdint.c: Likewise.
60162         * tests/test-stdio.c: Likewise.
60163         * tests/test-stdlib.c: Likewise.
60164         * tests/test-stpncpy.c: Likewise.
60165         * tests/test-strcasestr.c: Likewise.
60166         * tests/test-striconv.c: Likewise.
60167         * tests/test-striconveh.c: Likewise.
60168         * tests/test-striconveha.c: Likewise.
60169         * tests/test-string.c: Likewise.
60170         * tests/test-sys_select.c: Likewise.
60171         * tests/test-sys_socket.c: Likewise.
60172         * tests/test-sys_stat.c: Likewise.
60173         * tests/test-sys_time.c: Likewise.
60174         * tests/test-sysexits.c: Likewise.
60175         * tests/test-time.c: Likewise.
60176         * tests/test-tls.c: Likewise.
60177         * tests/test-trunc.c: Likewise.
60178         * tests/test-truncf.c: Likewise.
60179         * tests/test-truncl.c: Likewise.
60180         * tests/test-unistd.c: Likewise.
60181         * tests/test-vasnprintf-posix.c: Likewise.
60182         * tests/test-vasnprintf-posix2.c: Likewise.
60183         * tests/test-vasnprintf.c: Likewise.
60184         * tests/test-vasprintf-posix.c: Likewise.
60185         * tests/test-vasprintf.c: Likewise.
60186         * tests/test-verify.c: Likewise.
60187         * tests/test-vfprintf-posix.c: Likewise.
60188         * tests/test-vprintf-posix.c: Likewise.
60189         * tests/test-vsnprintf-posix.c: Likewise.
60190         * tests/test-vsnprintf.c: Likewise.
60191         * tests/test-vsprintf-posix.c: Likewise.
60192         * tests/test-wchar.c: Likewise.
60193         * tests/test-wctype.c: Likewise.
60194         * tests/test-wcwidth.c: Likewise.
60195         * tests/test-xstrtol.c: Likewise.
60196         * tests/test-xvasprintf.c: Likewise.
60197         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
60198         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
60199         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60200         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60201         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60202         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
60203         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60204         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60205         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60206         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
60207         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60208         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60209         * tests/uniname/test-uninames.c: Likewise.
60210         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
60211         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
60212         * tests/unistdio/test-u16-printf1.h: Likewise.
60213         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
60214         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
60215         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
60216         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
60217         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
60218         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
60219         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
60220         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
60221         * tests/unistdio/test-u32-printf1.h: Likewise.
60222         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
60223         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
60224         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
60225         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
60226         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
60227         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
60228         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
60229         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
60230         * tests/unistdio/test-u8-printf1.h: Likewise.
60231         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
60232         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
60233         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
60234         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
60235         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
60236         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
60237         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
60238         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
60239         * tests/unistdio/test-ulc-printf1.h: Likewise.
60240         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
60241         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
60242         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
60243         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
60244         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
60245         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
60246         * tests/uniwidth/test-u16-strwidth.c: Likewise.
60247         * tests/uniwidth/test-u16-width.c: Likewise.
60248         * tests/uniwidth/test-u32-strwidth.c: Likewise.
60249         * tests/uniwidth/test-u32-width.c: Likewise.
60250         * tests/uniwidth/test-u8-strwidth.c: Likewise.
60251         * tests/uniwidth/test-u8-width.c: Likewise.
60252         * tests/uniwidth/test-uc_width.c: Likewise.
60253         * config/srclist-update: Likewise.
60254         (fixlicense): Update to GPLv3+.
60255
60256         Change copyright notice from LGPLv2.1+ to LGPLv3+.
60257         * tests/test-tsearch.c: Change copyright notice.
60258
60259         Change copyright notice from LGPLv2.0+ to LGPLv3+.
60260         * lib/c-strcaseeq.h: Change copyright notice.
60261         * lib/streq.h: Likewise.
60262         * lib/uniconv.h: Likewise.
60263         * lib/uniconv/u-conv-from-enc.h: Likewise.
60264         * lib/uniconv/u-conv-to-enc.h: Likewise.
60265         * lib/uniconv/u-strconv-from-enc.h: Likewise.
60266         * lib/uniconv/u-strconv-to-enc.h: Likewise.
60267         * lib/uniconv/u16-conv-from-enc.c: Likewise.
60268         * lib/uniconv/u16-conv-to-enc.c: Likewise.
60269         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
60270         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
60271         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
60272         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
60273         * lib/uniconv/u32-conv-from-enc.c: Likewise.
60274         * lib/uniconv/u32-conv-to-enc.c: Likewise.
60275         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
60276         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
60277         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
60278         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
60279         * lib/uniconv/u8-conv-from-enc.c: Likewise.
60280         * lib/uniconv/u8-conv-to-enc.c: Likewise.
60281         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
60282         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
60283         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
60284         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
60285         * lib/uniname.h: Likewise.
60286         * lib/uniname/uniname.c: Likewise.
60287         * lib/unistdio.h: Likewise.
60288         * lib/unistdio/u-asnprintf.h: Likewise.
60289         * lib/unistdio/u-asprintf.h: Likewise.
60290         * lib/unistdio/u-printf-args.c: Likewise.
60291         * lib/unistdio/u-printf-args.h: Likewise.
60292         * lib/unistdio/u-printf-parse.h: Likewise.
60293         * lib/unistdio/u-snprintf.h: Likewise.
60294         * lib/unistdio/u-sprintf.h: Likewise.
60295         * lib/unistdio/u-vasprintf.h: Likewise.
60296         * lib/unistdio/u-vsnprintf.h: Likewise.
60297         * lib/unistdio/u-vsprintf.h: Likewise.
60298         * lib/unistdio/u16-asnprintf.c: Likewise.
60299         * lib/unistdio/u16-asprintf.c: Likewise.
60300         * lib/unistdio/u16-printf-parse.c: Likewise.
60301         * lib/unistdio/u16-snprintf.c: Likewise.
60302         * lib/unistdio/u16-sprintf.c: Likewise.
60303         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
60304         * lib/unistdio/u16-u16-asprintf.c: Likewise.
60305         * lib/unistdio/u16-u16-snprintf.c: Likewise.
60306         * lib/unistdio/u16-u16-sprintf.c: Likewise.
60307         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
60308         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
60309         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
60310         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
60311         * lib/unistdio/u16-vasnprintf.c: Likewise.
60312         * lib/unistdio/u16-vasprintf.c: Likewise.
60313         * lib/unistdio/u16-vsnprintf.c: Likewise.
60314         * lib/unistdio/u16-vsprintf.c: Likewise.
60315         * lib/unistdio/u32-asnprintf.c: Likewise.
60316         * lib/unistdio/u32-asprintf.c: Likewise.
60317         * lib/unistdio/u32-printf-parse.c: Likewise.
60318         * lib/unistdio/u32-snprintf.c: Likewise.
60319         * lib/unistdio/u32-sprintf.c: Likewise.
60320         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
60321         * lib/unistdio/u32-u32-asprintf.c: Likewise.
60322         * lib/unistdio/u32-u32-snprintf.c: Likewise.
60323         * lib/unistdio/u32-u32-sprintf.c: Likewise.
60324         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
60325         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
60326         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
60327         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
60328         * lib/unistdio/u32-vasnprintf.c: Likewise.
60329         * lib/unistdio/u32-vasprintf.c: Likewise.
60330         * lib/unistdio/u32-vsnprintf.c: Likewise.
60331         * lib/unistdio/u32-vsprintf.c: Likewise.
60332         * lib/unistdio/u8-asnprintf.c: Likewise.
60333         * lib/unistdio/u8-asprintf.c: Likewise.
60334         * lib/unistdio/u8-printf-parse.c: Likewise.
60335         * lib/unistdio/u8-snprintf.c: Likewise.
60336         * lib/unistdio/u8-sprintf.c: Likewise.
60337         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
60338         * lib/unistdio/u8-u8-asprintf.c: Likewise.
60339         * lib/unistdio/u8-u8-snprintf.c: Likewise.
60340         * lib/unistdio/u8-u8-sprintf.c: Likewise.
60341         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
60342         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
60343         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
60344         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
60345         * lib/unistdio/u8-vasnprintf.c: Likewise.
60346         * lib/unistdio/u8-vasprintf.c: Likewise.
60347         * lib/unistdio/u8-vsnprintf.c: Likewise.
60348         * lib/unistdio/u8-vsprintf.c: Likewise.
60349         * lib/unistdio/ulc-asnprintf.c: Likewise.
60350         * lib/unistdio/ulc-asprintf.c: Likewise.
60351         * lib/unistdio/ulc-printf-parse.c: Likewise.
60352         * lib/unistdio/ulc-snprintf.c: Likewise.
60353         * lib/unistdio/ulc-sprintf.c: Likewise.
60354         * lib/unistdio/ulc-vasnprintf.c: Likewise.
60355         * lib/unistdio/ulc-vasprintf.c: Likewise.
60356         * lib/unistdio/ulc-vsnprintf.c: Likewise.
60357         * lib/unistdio/ulc-vsprintf.c: Likewise.
60358         * lib/unistr.h: Likewise.
60359         * lib/unistr/u-cpy-alloc.h: Likewise.
60360         * lib/unistr/u-cpy.h: Likewise.
60361         * lib/unistr/u-endswith.h: Likewise.
60362         * lib/unistr/u-move.h: Likewise.
60363         * lib/unistr/u-set.h: Likewise.
60364         * lib/unistr/u-startswith.h: Likewise.
60365         * lib/unistr/u-stpcpy.h: Likewise.
60366         * lib/unistr/u-stpncpy.h: Likewise.
60367         * lib/unistr/u-strcat.h: Likewise.
60368         * lib/unistr/u-strcpy.h: Likewise.
60369         * lib/unistr/u-strcspn.h: Likewise.
60370         * lib/unistr/u-strdup.h: Likewise.
60371         * lib/unistr/u-strlen.h: Likewise.
60372         * lib/unistr/u-strncat.h: Likewise.
60373         * lib/unistr/u-strncpy.h: Likewise.
60374         * lib/unistr/u-strnlen.h: Likewise.
60375         * lib/unistr/u-strpbrk.h: Likewise.
60376         * lib/unistr/u-strspn.h: Likewise.
60377         * lib/unistr/u-strstr.h: Likewise.
60378         * lib/unistr/u-strtok.h: Likewise.
60379         * lib/unistr/u16-check.c: Likewise.
60380         * lib/unistr/u16-chr.c: Likewise.
60381         * lib/unistr/u16-cmp.c: Likewise.
60382         * lib/unistr/u16-cpy-alloc.c: Likewise.
60383         * lib/unistr/u16-cpy.c: Likewise.
60384         * lib/unistr/u16-endswith.c: Likewise.
60385         * lib/unistr/u16-mblen.c: Likewise.
60386         * lib/unistr/u16-mbsnlen.c: Likewise.
60387         * lib/unistr/u16-mbtouc-aux.c: Likewise.
60388         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
60389         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
60390         * lib/unistr/u16-mbtouc.c: Likewise.
60391         * lib/unistr/u16-mbtoucr.c: Likewise.
60392         * lib/unistr/u16-move.c: Likewise.
60393         * lib/unistr/u16-next.c: Likewise.
60394         * lib/unistr/u16-prev.c: Likewise.
60395         * lib/unistr/u16-set.c: Likewise.
60396         * lib/unistr/u16-startswith.c: Likewise.
60397         * lib/unistr/u16-stpcpy.c: Likewise.
60398         * lib/unistr/u16-stpncpy.c: Likewise.
60399         * lib/unistr/u16-strcat.c: Likewise.
60400         * lib/unistr/u16-strchr.c: Likewise.
60401         * lib/unistr/u16-strcmp.c: Likewise.
60402         * lib/unistr/u16-strcpy.c: Likewise.
60403         * lib/unistr/u16-strcspn.c: Likewise.
60404         * lib/unistr/u16-strdup.c: Likewise.
60405         * lib/unistr/u16-strlen.c: Likewise.
60406         * lib/unistr/u16-strmblen.c: Likewise.
60407         * lib/unistr/u16-strmbtouc.c: Likewise.
60408         * lib/unistr/u16-strncat.c: Likewise.
60409         * lib/unistr/u16-strncmp.c: Likewise.
60410         * lib/unistr/u16-strncpy.c: Likewise.
60411         * lib/unistr/u16-strnlen.c: Likewise.
60412         * lib/unistr/u16-strpbrk.c: Likewise.
60413         * lib/unistr/u16-strrchr.c: Likewise.
60414         * lib/unistr/u16-strspn.c: Likewise.
60415         * lib/unistr/u16-strstr.c: Likewise.
60416         * lib/unistr/u16-strtok.c: Likewise.
60417         * lib/unistr/u16-to-u32.c: Likewise.
60418         * lib/unistr/u16-to-u8.c: Likewise.
60419         * lib/unistr/u16-uctomb-aux.c: Likewise.
60420         * lib/unistr/u16-uctomb.c: Likewise.
60421         * lib/unistr/u32-check.c: Likewise.
60422         * lib/unistr/u32-chr.c: Likewise.
60423         * lib/unistr/u32-cmp.c: Likewise.
60424         * lib/unistr/u32-cpy-alloc.c: Likewise.
60425         * lib/unistr/u32-cpy.c: Likewise.
60426         * lib/unistr/u32-endswith.c: Likewise.
60427         * lib/unistr/u32-mblen.c: Likewise.
60428         * lib/unistr/u32-mbsnlen.c: Likewise.
60429         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
60430         * lib/unistr/u32-mbtouc.c: Likewise.
60431         * lib/unistr/u32-mbtoucr.c: Likewise.
60432         * lib/unistr/u32-move.c: Likewise.
60433         * lib/unistr/u32-next.c: Likewise.
60434         * lib/unistr/u32-prev.c: Likewise.
60435         * lib/unistr/u32-set.c: Likewise.
60436         * lib/unistr/u32-startswith.c: Likewise.
60437         * lib/unistr/u32-stpcpy.c: Likewise.
60438         * lib/unistr/u32-stpncpy.c: Likewise.
60439         * lib/unistr/u32-strcat.c: Likewise.
60440         * lib/unistr/u32-strchr.c: Likewise.
60441         * lib/unistr/u32-strcmp.c: Likewise.
60442         * lib/unistr/u32-strcpy.c: Likewise.
60443         * lib/unistr/u32-strcspn.c: Likewise.
60444         * lib/unistr/u32-strdup.c: Likewise.
60445         * lib/unistr/u32-strlen.c: Likewise.
60446         * lib/unistr/u32-strmblen.c: Likewise.
60447         * lib/unistr/u32-strmbtouc.c: Likewise.
60448         * lib/unistr/u32-strncat.c: Likewise.
60449         * lib/unistr/u32-strncmp.c: Likewise.
60450         * lib/unistr/u32-strncpy.c: Likewise.
60451         * lib/unistr/u32-strnlen.c: Likewise.
60452         * lib/unistr/u32-strpbrk.c: Likewise.
60453         * lib/unistr/u32-strrchr.c: Likewise.
60454         * lib/unistr/u32-strspn.c: Likewise.
60455         * lib/unistr/u32-strstr.c: Likewise.
60456         * lib/unistr/u32-strtok.c: Likewise.
60457         * lib/unistr/u32-to-u16.c: Likewise.
60458         * lib/unistr/u32-to-u8.c: Likewise.
60459         * lib/unistr/u32-uctomb.c: Likewise.
60460         * lib/unistr/u8-check.c: Likewise.
60461         * lib/unistr/u8-chr.c: Likewise.
60462         * lib/unistr/u8-cmp.c: Likewise.
60463         * lib/unistr/u8-cpy-alloc.c: Likewise.
60464         * lib/unistr/u8-cpy.c: Likewise.
60465         * lib/unistr/u8-endswith.c: Likewise.
60466         * lib/unistr/u8-mblen.c: Likewise.
60467         * lib/unistr/u8-mbsnlen.c: Likewise.
60468         * lib/unistr/u8-mbtouc-aux.c: Likewise.
60469         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
60470         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
60471         * lib/unistr/u8-mbtouc.c: Likewise.
60472         * lib/unistr/u8-mbtoucr.c: Likewise.
60473         * lib/unistr/u8-move.c: Likewise.
60474         * lib/unistr/u8-next.c: Likewise.
60475         * lib/unistr/u8-prev.c: Likewise.
60476         * lib/unistr/u8-set.c: Likewise.
60477         * lib/unistr/u8-startswith.c: Likewise.
60478         * lib/unistr/u8-stpcpy.c: Likewise.
60479         * lib/unistr/u8-stpncpy.c: Likewise.
60480         * lib/unistr/u8-strcat.c: Likewise.
60481         * lib/unistr/u8-strchr.c: Likewise.
60482         * lib/unistr/u8-strcmp.c: Likewise.
60483         * lib/unistr/u8-strcpy.c: Likewise.
60484         * lib/unistr/u8-strcspn.c: Likewise.
60485         * lib/unistr/u8-strdup.c: Likewise.
60486         * lib/unistr/u8-strlen.c: Likewise.
60487         * lib/unistr/u8-strmblen.c: Likewise.
60488         * lib/unistr/u8-strmbtouc.c: Likewise.
60489         * lib/unistr/u8-strncat.c: Likewise.
60490         * lib/unistr/u8-strncmp.c: Likewise.
60491         * lib/unistr/u8-strncpy.c: Likewise.
60492         * lib/unistr/u8-strnlen.c: Likewise.
60493         * lib/unistr/u8-strpbrk.c: Likewise.
60494         * lib/unistr/u8-strrchr.c: Likewise.
60495         * lib/unistr/u8-strspn.c: Likewise.
60496         * lib/unistr/u8-strstr.c: Likewise.
60497         * lib/unistr/u8-strtok.c: Likewise.
60498         * lib/unistr/u8-to-u16.c: Likewise.
60499         * lib/unistr/u8-to-u32.c: Likewise.
60500         * lib/unistr/u8-uctomb-aux.c: Likewise.
60501         * lib/unistr/u8-uctomb.c: Likewise.
60502         * lib/unitypes.h: Likewise.
60503         * lib/uniwidth.h: Likewise.
60504         * lib/uniwidth/cjk.h: Likewise.
60505         * lib/uniwidth/u16-strwidth.c: Likewise.
60506         * lib/uniwidth/u16-width.c: Likewise.
60507         * lib/uniwidth/u32-strwidth.c: Likewise.
60508         * lib/uniwidth/u32-width.c: Likewise.
60509         * lib/uniwidth/u8-strwidth.c: Likewise.
60510         * lib/uniwidth/u8-width.c: Likewise.
60511         * lib/uniwidth/width.c: Likewise.
60512
60513 2007-10-07  Bruno Haible  <bruno@clisp.org>
60514
60515         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
60516         The file is still under LGPL (see modules/inttypes).
60517
60518 2007-10-06  Bruno Haible  <bruno@clisp.org>
60519
60520         * modules/trunc (Dependencies): Add 'extensions'.
60521         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
60522         Reported by Ben Pfaff <blp@gnu.org>.
60523
60524 2007-10-06  Bruno Haible  <bruno@clisp.org>
60525
60526         * modules/freopen-tests: New file.
60527         * tests/test-freopen.c: New file.
60528
60529         * modules/fopen-tests: New file.
60530         * tests/test-fopen.c: New file.
60531
60532         * modules/fopen: New file.
60533         * lib/fopen.c: New file.
60534         * m4/fopen.m4: New file.
60535         * modules/freopen: New file.
60536         * lib/freopen.c: New file.
60537         * m4/freopen.m4: New file.
60538         * lib/stdio.in.h (fopen, freopen): New declarations.
60539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
60540         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
60541         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
60542         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
60543         * doc/functions/fopen.texi: Mention the 'fopen' module.
60544         * doc/functions/freopen.texi: Mention the 'freopen' module.
60545
60546 2007-10-06  Bruno Haible  <bruno@clisp.org>
60547
60548         * modules/open-tests: New file.
60549         * tests/test-open.c: New file.
60550
60551         * modules/open: New file.
60552         * lib/open.c: New file.
60553         * m4/open.m4: New file.
60554         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
60555         lib/open.c does.
60556         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
60557         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
60558         macros.
60559         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
60560         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
60561         REPLACE_OPEN.
60562         * doc/functions/open.texi: Mention the 'open' module.
60563
60564 2007-10-04  Bruno Haible  <bruno@clisp.org>
60565
60566         * modules/ceill-tests: New file.
60567         * tests/test-ceill.c: New file.
60568
60569         * modules/ceill: New file.
60570         * lib/ceill.c: Replace entire file.
60571         * m4/ceill.m4: New file.
60572         * lib/math.in.h (ceill): Replace declaration.
60573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
60574         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
60575         * doc/functions/ceill.texi: Mention the 'ceill' module.
60576         * modules/mathl (Files): Remove lib/ceill.c.
60577         (Depends-on): Add ceill.
60578
60579 2007-10-04  Bruno Haible  <bruno@clisp.org>
60580
60581         * modules/ceilf-tests: New file.
60582         * tests/test-ceilf.c: New file.
60583
60584         * modules/ceilf: New file.
60585         * lib/ceil.c: New file.
60586         * lib/ceilf.c: New file.
60587         * m4/ceilf.m4: New file.
60588         * lib/math.in.h (ceilf): New declaration.
60589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
60590         HAVE_DECL_CEILF.
60591         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
60592         HAVE_DECL_CEILF.
60593         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
60594
60595 2007-10-04  Bruno Haible  <bruno@clisp.org>
60596
60597         * modules/floorl-tests: New file.
60598         * tests/test-floorl.c: New file.
60599
60600         * modules/floorl: New file.
60601         * lib/floorl.c: Replace entire file.
60602         * m4/floorl.m4: New file.
60603         * lib/math.in.h (floorl): Replace declaration.
60604         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
60605         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
60606         * doc/functions/floorl.texi: Mention the 'floorl' module.
60607         * modules/mathl (Files): Remove lib/floorl.c.
60608         (Depends-on): Add floorl.
60609
60610 2007-10-04  Bruno Haible  <bruno@clisp.org>
60611
60612         * modules/floorf-tests: New file.
60613         * tests/test-floorf.c: New file.
60614
60615         * modules/floorf: New file.
60616         * lib/floor.c: New file.
60617         * lib/floorf.c: New file.
60618         * m4/floorf.m4: New file.
60619         * lib/math.in.h (floorf): New declaration.
60620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
60621         HAVE_DECL_FLOORF.
60622         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
60623         HAVE_DECL_FLOORF.
60624         * doc/functions/floorf.texi: Mention the 'floorf' module.
60625
60626 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
60627             Bruno Haible  <bruno@clisp.org>
60628
60629         Advertise for the Git server instead of the CVS server.
60630         * doc/gnulib-intro.texi (Steady Development): Mention the Git
60631         repository instead of the CVS one.
60632         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
60633         about all VCS systems generically.
60634         * doc/gnulib.texi (Introduction): Capitalize `Git'.
60635
60636 2007-10-04  Bruno Haible  <bruno@clisp.org>
60637
60638         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
60639         means.
60640         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
60641
60642 2007-10-04  Bruno Haible  <bruno@clisp.org>
60643
60644         * modules/truncl-tests: New file.
60645         * tests/test-truncl.c: New file.
60646
60647         * modules/truncl: New file.
60648         * lib/truncl.c: New file.
60649         * m4/truncl.m4: New file.
60650         * lib/math.in.h (truncl): New declaration.
60651         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
60652         HAVE_DECL_TRUNCL.
60653         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
60654         HAVE_DECL_TRUNCL.
60655         * doc/functions/truncl.texi: Mention the 'truncl' module.
60656
60657 2007-10-04  Bruno Haible  <bruno@clisp.org>
60658
60659         * modules/truncf-tests: New file.
60660         * tests/test-truncf.c: New file.
60661
60662         * modules/truncf: New file.
60663         * lib/trunc.c: Make paramerizable through USE_* macros.
60664         * lib/truncf.c: New file.
60665         * m4/truncf.m4: New file.
60666         * lib/math.in.h (truncf): New declaration.
60667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
60668         HAVE_DECL_TRUNCF.
60669         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
60670         HAVE_DECL_TRUNCF.
60671         * doc/functions/truncf.texi: Mention the 'truncf' module.
60672
60673 2007-10-03  Bruno Haible  <bruno@clisp.org>
60674
60675         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60676         augmentation also for tests modules.
60677         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
60678         * modules/atexit-tests (Makefile.am): Likewise.
60679         * modules/binary-io-tests (Makefile.am): Likewise.
60680         * modules/c-strcase-tests (Makefile.am): Likewise.
60681         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
60682         * modules/canonicalize-tests (Makefile.am): Likewise.
60683         * modules/closein-tests (Makefile.am): Likewise.
60684         * modules/fprintf-posix-tests (Makefile.am): Likewise.
60685         * modules/freadahead-tests (Makefile.am): Likewise.
60686         * modules/fseek-tests (Makefile.am): Likewise.
60687         * modules/fseeko-tests (Makefile.am): Likewise.
60688         * modules/ftell-tests (Makefile.am): Likewise.
60689         * modules/ftello-tests (Makefile.am): Likewise.
60690         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
60691         * modules/isnanl-tests (Makefile.am): Likewise.
60692         * modules/lseek-tests (Makefile.am): Likewise.
60693         * modules/mbscasecmp-tests (Makefile.am): Likewise.
60694         * modules/mbscasestr-tests (Makefile.am): Likewise.
60695         * modules/mbschr-tests (Makefile.am): Likewise.
60696         * modules/mbscspn-tests (Makefile.am): Likewise.
60697         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
60698         * modules/mbspbrk-tests (Makefile.am): Likewise.
60699         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
60700         * modules/mbsrchr-tests (Makefile.am): Likewise.
60701         * modules/mbsspn-tests (Makefile.am): Likewise.
60702         * modules/mbsstr-tests (Makefile.am): Likewise.
60703         * modules/printf-posix-tests (Makefile.am): Likewise.
60704         * modules/snprintf-posix-tests (Makefile.am): Likewise.
60705         * modules/sprintf-posix-tests (Makefile.am): Likewise.
60706         * modules/tsearch-tests (Makefile.am): Likewise.
60707         * modules/uniname/uniname-tests (Makefile.am): Likewise.
60708         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
60709         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
60710         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
60711         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
60712         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
60713         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
60714         * modules/vprintf-posix-tests (Makefile.am): Likewise.
60715         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
60716         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
60717         * modules/xstrtoimax-tests (Makefile.am): Likewise.
60718         * modules/xstrtol-tests (Makefile.am): Likewise.
60719         * modules/xstrtoumax-tests (Makefile.am): Likewise.
60720         * modules/yesno-tests (Makefile.am): Likewise.
60721
60722 2007-10-03  Bruno Haible  <bruno@clisp.org>
60723
60724         * modules/trunc-tests: New file.
60725         * tests/test-trunc.c: New file.
60726
60727         * modules/trunc: New file.
60728         * lib/trunc.c: New file.
60729         * m4/trunc.m4: New file.
60730         * lib/math.in.h (trunc): New declaration.
60731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
60732         HAVE_DECL_TRUNC.
60733         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
60734         HAVE_DECL_TRUNC.
60735         * doc/functions/trunc.texi: Mention the 'trunc' module.
60736
60737 2007-10-03  Bruno Haible  <bruno@clisp.org>
60738
60739         * tests/test-fpending.c: New file, mostly copied
60740         from coreutils/lib/t-fpending.c.
60741         * modules/fpending-tests: New file.
60742
60743 2007-10-03  Bruno Haible  <bruno@clisp.org>
60744
60745         Port the stdio extensions to QNX (untested).
60746         * lib/fseterr.c (fseterr): Add support for QNX.
60747         * lib/fbufmode.c (fbufmode): Likewise.
60748         * lib/freadable.c (freadable): Likewise.
60749         * lib/fwritable.c (fwritable): Likewise.
60750         * lib/freading.c (freading): Likewise.
60751         * lib/fwriting.c (fwriting): Likewise.
60752         * lib/freadahead.c (freadahed): Likewise.
60753         * lib/fpurge.c (fpurge): Likewise.
60754         * lib/fseeko.c (rpl_fseeko): Likewise.
60755
60756 2007-10-03  Bruno Haible  <bruno@clisp.org>
60757             Jim Meyering  <jim@meyering.net>
60758             Eric Blake  <ebb9@byu.net>
60759
60760         * doc/relocatable.texi: Use @command instead of @program.
60761
60762 2007-10-02  Jim Meyering  <jim@meyering.net>
60763
60764         Perform one more "_.h" -> ".in.h" substitution.
60765         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
60766         instead of unistd_.h here, too.
60767
60768 2007-10-01  Bruno Haible  <bruno@clisp.org>
60769
60770         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
60771         Needed for the alloca-opt module.
60772
60773 2007-09-30  Bruno Haible  <bruno@clisp.org>
60774
60775         * lib/alloca.in.h: Renamed from lib/alloca_.h.
60776         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
60777         alloca_.h.
60778         * lib/argz.in.h: Renamed from lib/argz_.h.
60779         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
60780         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
60781         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
60782         byteswap_.h.
60783         * lib/dirent.in.h: Renamed from lib/dirent_.h.
60784         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
60785         dirent_.h.
60786         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
60787         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
60788         fcntl_.h.
60789         * lib/float.in.h: Renamed from lib/float_.h.
60790         * modules/float (Files, Makefile.am): Use float.in.h instead of
60791         float_.h.
60792         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
60793         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
60794         fnmatch_.h.
60795         * lib/getopt.in.h: Renamed from lib/getopt_.h.
60796         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
60797         getopt_.h.
60798         * lib/glob.in.h: Renamed from lib/glob_.h.
60799         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
60800         * lib/iconv.in.h: Renamed from lib/iconv_.h.
60801         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
60802         iconv_.h.
60803         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
60804         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
60805         inttypes_.h.
60806         * lib/locale.in.h: Renamed from lib/locale_.h.
60807         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
60808         locale_.h.
60809         * lib/math.in.h: Renamed from lib/math_.h.
60810         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
60811         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
60812         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
60813         of netinet_in_.h. Add dependency.
60814         * lib/poll.in.h: Renamed from lib/poll_.h.
60815         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
60816         * lib/search.in.h: Renamed from lib/search_.h.
60817         * modules/search (Files, Makefile.am): Use search.in.h instead of
60818         search_.h.
60819         * lib/signal.in.h: Renamed from lib/signal_.h.
60820         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
60821         _signal.h.
60822         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
60823         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
60824         stdbool_.h.
60825         * lib/stdint.in.h: Renamed from lib/stdint_.h.
60826         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
60827         stdint_.h.
60828         * lib/stdio.in.h: Renamed from lib/stdio_.h.
60829         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
60830         stdio_.h.
60831         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
60832         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
60833         stdlib_.h.
60834         * lib/string.in.h: Renamed from lib/string_.h.
60835         * modules/string (Files, Makefile.am): Use string.in.h instead of
60836         string_.h.
60837         * doc/gnulib-tool.texi (Initial import): Update.
60838         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
60839         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
60840         of sys_select_.h. Add dependency.
60841         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
60842         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
60843         of sys_socket_.h.
60844         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
60845         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
60846         sys_stat_.h.
60847         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
60848         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
60849         sys_time_.h.
60850         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
60851         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
60852         sysexits_.h.
60853         * lib/time.in.h: Renamed from lib/time_.h.
60854         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
60855         * lib/unistd.in.h: Renamed from lib/unistd_.h.
60856         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
60857         unistd_.h.
60858         * lib/wchar.in.h: Renamed from lib/wchar_.h.
60859         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
60860         wchar_.h.
60861         * lib/wctype.in.h: Renamed from lib/wctype_.h.
60862         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
60863         wctype_.h.
60864         * build-aux/bootstrap (slurp): Update.
60865         * lib/.cppi-disable: Update.
60866
60867 2007-09-30  Bruno Haible  <bruno@clisp.org>
60868
60869         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
60870         Needed on BeOS.
60871
60872 2007-09-30  Bruno Haible  <bruno@clisp.org>
60873
60874         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
60875
60876 2007-09-29  Bruno Haible  <bruno@clisp.org>
60877
60878         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
60879
60880 2007-09-29  Bruno Haible  <bruno@clisp.org>
60881
60882         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
60883         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
60884         * build-aux/install-reloc: Compile also areadlink.c.
60885         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
60886
60887 2007-09-29  Bruno Haible  <bruno@clisp.org>
60888
60889         * gnulib-tool (func_emit_initmacro_done): Indentation.
60890
60891 2007-09-29  Bruno Haible  <bruno@clisp.org>
60892
60893         * README: Add CVS checkout update instructions.
60894         Info from Bob Proulx <bob@proulx.com>.
60895
60896 2007-09-28  Eric Blake  <ebb9@byu.net>
60897
60898         Provide move-if-change.
60899         * build-aux/move-if-change: New file, based on best practice
60900         rather than any canonical upstream location.
60901
60902 2007-09-28  Jim Meyering  <jim@meyering.net>
60903
60904         Fix canonicalize loop-detection corner case.
60905         Do not attempt to stat the symlink values stored via seen_triple.
60906         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
60907         on linux-2.6.18, (but not 2.6.22).
60908         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
60909         triple_compare.  The former compares dev,ino,filename, while the latter
60910         would actually stat dirname(filename) when dev and ino were equal.
60911         * lib/hash-triple.c: Install <string.h>.
60912         (STREQ): Define.
60913         (triple_compare_ino_str): New function.
60914         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
60915
60916 2007-09-28  Eric Blake  <ebb9@byu.net>
60917
60918         Enforce that AC_REPLACE_FUNCS files exist.
60919         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
60920         override check for typos.
60921
60922         Fix test-closein on Solaris 10.
60923         * tests/test-closein.c (main): Don't assume stdin can be inherited
60924         closed on all systems.
60925         * tests/test-closein.sh: Likewise.
60926         Reported by Piotr Tarnowski.
60927
60928 2007-09-28  Jim Meyering  <jim@meyering.net>
60929
60930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
60931
60932 2007-09-27  Jim Meyering  <jim@meyering.net>
60933
60934         canonicalize: Avoid a false-positive cycle failure.
60935         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
60936         Sort.  Remove cycle-check.
60937         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
60938         not cycle-check.h.
60939         (seen_triple): New function.
60940         (canonicalize_filename_mode): Use it instead of cycle-check.
60941         * tests/test-canonicalize.c: Add a test for this bug.
60942         * tests/test-canonicalize.sh: Set up and run the test.
60943
60944         New module, file-set, from coreutils.
60945         * modules/file-set: Define it.
60946         * lib/file-set.c, lib/file-set.h: Implement.
60947
60948         New module, hash-triple, from coreutils.
60949         * modules/hash-triple: Define it.
60950         * lib/hash-triple.c, lib/hash-triple.h: Implement.
60951
60952 2007-09-25  Eric Blake  <ebb9@byu.net>
60953
60954         Fix strerror on Interix.
60955         * lib/string_.h (strerror): Declare replacement.
60956         * doc/functions/strerror.texi (strerror): Document the Interix
60957         shortcoming.
60958         * modules/string (Makefile.am): Support new hooks.
60959         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
60960         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
60961         gl_FUNC_STRERROR_SEPARATE.
60962         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
60963         * lib/strerror.c (rpl_strerror): Provide replacement.
60964         * modules/strerror (Depends-on): Add string.
60965         (configure.ac): Detect use of module.
60966         * tests/test-strerror.c: New file.
60967         * modules/strerror-tests: New test module.
60968         * modules/argp (Depends-on): Add strerror.
60969         * modules/error (Depends-on): Likewise.
60970         Reported by Martin Koeppe.
60971
60972 2007-09-24  Bruno Haible  <bruno@clisp.org>
60973
60974         * README: Update git instructions.
60975
60976 2007-09-24  Eric Blake  <ebb9@byu.net>
60977
60978         Revert fpending breakage from 2007-09-08.
60979         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
60980         __fpending.c.
60981
60982 2007-09-24  Jim Meyering  <jim@meyering.net>
60983
60984         filenamecat.c: Add a test.
60985         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
60986         showing how the function works when DIR is the empty string.
60987
60988 2007-09-21  Simon Josefsson  <simon@josefsson.org>
60989
60990         * tests/test-canonicalize.sh: Turn on executable bit.
60991
60992 2007-09-19  Eric Blake  <ebb9@byu.net>
60993
60994         * README: Update CVS instructions.
60995
60996 2007-09-18  Bruno Haible  <bruno@clisp.org>
60997
60998         * modules/areadlink: New file.
60999         * lib/areadlink.h (areadlink): New declaration.
61000         * lib/areadlink.c: New file, based on lib/xreadlink.c.
61001
61002 2007-09-17  Jim Meyering  <jim@meyering.net>
61003
61004         * lib/savewd.c (ESTALE) [!defined]: Define.
61005         Reported to be required on Interix by Martin Koeppe.
61006
61007 2007-09-17  Bruno Haible  <bruno@clisp.org>
61008
61009         * gnulib-tool (func_version): Use $version.
61010
61011 2007-09-16  Bruno Haible  <bruno@clisp.org>
61012
61013         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
61014         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
61015         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
61016         Reported by Greg Schafer <gschafer@zip.com.au>.
61017
61018 2007-09-15  Bruno Haible  <bruno@clisp.org>
61019
61020         * gnulib-tool (sed): Try a little harder to make bash understand the
61021         alias.
61022         Reported by Bruce Korb <bruce.korb@gmail.com>.
61023
61024 2007-09-13  Eric Blake  <ebb9@byu.net>
61025
61026         * ChangeLog: Remove conflict markers.
61027
61028 2007-09-13  Simon Josefsson  <simon@josefsson.org>
61029
61030         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
61031         Reported by Bruno Haible <bruno@clisp.org>.
61032
61033 2007-09-12  Bruno Haible  <bruno@clisp.org>
61034
61035         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
61036         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
61037         is not defined.
61038
61039 2007-09-12  Eric Blake  <ebb9@byu.net>
61040
61041         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
61042         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
61043         Autoconf definition.
61044         * modules/euidaccess (Depends-on): Add extensions, for
61045         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
61046         * modules/fnmatch (Depends-on): Likewise.
61047         * modules/getaddrinfo (Depends-on): Likewise.
61048         * modules/getdelim (Depends-on): Likewise.
61049         * modules/getline (Depends-on): Likewise.
61050         * modules/getsubopt (Depends-on): Likewise.
61051         * modules/gettext (Depends-on): Likewise.
61052         * modules/group-member (Depends-on): Likewise.
61053         * modules/mbchar (Depends-on): Likewise.
61054         * modules/memmem (Depends-on): Likewise.
61055         * modules/mempcpy (Depends-on): Likewise.
61056         * modules/memrchr (Depends-on): Likewise.
61057         * modules/pagealign_alloc (Depends-on): Likewise.
61058         * modules/readutmp (Depends-on): Likewise.
61059         * modules/stpcpy (Depends-on): Likewise.
61060         * modules/stpncpy (Depends-on): Likewise.
61061         * modules/strchrnul (Depends-on): Likewise.
61062         * modules/strndup (Depends-on): Likewise.
61063         * modules/strsep (Depends-on): Likewise.
61064         * modules/strverscmp (Depends-on): Likewise.
61065         * modules/vasprintf (Depends-on): Likewise.
61066         * modules/wcwidth (Depends-on): Likewise.
61067         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
61068         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
61069         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
61070         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
61071         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61072         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61073         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
61074         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61075         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
61076         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
61077         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61078         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61079         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61080         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
61081         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
61082         * m4/readutmp.m4 (gl_READUTMP): Likewise.
61083         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61084         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61085         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61086         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61087         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61088         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61089         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61090         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
61091         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
61092         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61093         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
61094         so that lock.m4 can be used in gettext without extensions module.
61095
61096 2007-09-11  Bruno Haible  <bruno@clisp.org>
61097
61098         * m4/isc-posix.m4: Remove file.
61099         Suggested by Eric Blake.
61100
61101 2007-09-11  Eric Blake  <ebb9@byu.net>
61102
61103         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
61104
61105 2007-09-10  Bruno Haible  <bruno@clisp.org>
61106
61107         * posix-modules: Fix typo in error message.
61108         Reported by Matt <mkraai@beckman.com>.
61109
61110 2007-09-09  Bruno Haible  <bruno@clisp.org>
61111
61112         * doc/functions/getdelim.texi: Update list of platforms lacking the
61113         function.
61114         * doc/functions/getline.texi: Likewise.
61115
61116 2007-09-09  Jim Meyering  <jim@meyering.net>
61117
61118         * lib/hash.c (hash_initialize): Detect calloc failure.
61119         Reported by Bruno Haible.
61120
61121 2007-09-09  Bruno Haible  <bruno@clisp.org>
61122
61123         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
61124         malloc or realloc fails.
61125
61126 2007-09-09  Bruno Haible  <bruno@clisp.org>
61127
61128         * modules/getcwd (Depends-on): Add malloc-posix.
61129         * modules/glob (Depends-on): Likewise.
61130         * modules/putenv (Depends-on): Likewise.
61131         * modules/strdup (Depends-on): Likewise.
61132         * modules/getdelim (Depends-on): Add realloc-posix.
61133         * modules/read-file (Depends-on): Likewise.
61134
61135 2007-09-09  Bruno Haible  <bruno@clisp.org>
61136
61137         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
61138         (gl_FUNC_MALLOC_POSIX): Require it.
61139         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
61140         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
61141         * modules/realloc (Files): Add m4/malloc.m4.
61142         * modules/calloc (Files): Likewise.
61143
61144 2007-09-09  Bruno Haible  <bruno@clisp.org>
61145
61146         * modules/malloc-posix: New file.
61147         * modules/malloc (Depends-on): Add malloc-posix.
61148         * lib/malloc.c: Include errno.h.
61149         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
61150         and a POSIX-compatible malloc into a single function. Set ENOMEM
61151         when returning NULL.
61152         * m4/malloc.m4: New file.
61153         * doc/functions/malloc.texi: Mention the malloc-posix module.
61154         * lib/stdlib_.h (malloc): New declaration.
61155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61156         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
61157         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
61158         and HAVE_MALLOC_POSIX.
61159
61160 2007-09-09  Bruno Haible  <bruno@clisp.org>
61161
61162         * modules/realloc-posix: New file.
61163         * modules/realloc (Depends-on): Add realloc-posix.
61164         * lib/realloc.c: Include errno.h.
61165         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
61166         and a POSIX-compatible realloc into a single function. Set ENOMEM
61167         when returning NULL.
61168         * m4/realloc.m4: New file.
61169         * doc/functions/realloc.texi: Mention the realloc-posix module.
61170         * lib/stdlib_.h (realloc): New declaration.
61171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61172         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
61173         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
61174         and HAVE_REALLOC_POSIX.
61175
61176 2007-09-09  Bruno Haible  <bruno@clisp.org>
61177
61178         * modules/calloc-posix: New file.
61179         * modules/calloc (Depends-on): Add calloc-posix.
61180         * lib/calloc.c: Include errno.h.
61181         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
61182         and a POSIX-compatible calloc into a single function. Set ENOMEM
61183         when returning NULL.
61184         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
61185         * doc/functions/calloc.texi: Mention the calloc-posix module.
61186         * lib/stdlib_.h (calloc): New declaration.
61187         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61188         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
61189         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
61190         and HAVE_CALLOC_POSIX.
61191
61192 2007-09-09  Bruno Haible  <bruno@clisp.org>
61193
61194         Allow for modules to show an arbitrary notice.
61195         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
61196         * gnulib-tool: New option --extract-notice.
61197         (func_usage): Document it.
61198         (sed_extract_prog): Update.
61199         (func_get_notice): New function.
61200         (func_modules_notice): New function.
61201         (func_import, func_create_testdir): Invoke it.
61202         Suggested by Jim Meyering.
61203
61204 2007-09-09  Bruno Haible  <bruno@clisp.org>
61205
61206         * gnulib-tool: New options --verbose, --quiet.
61207         (func_usage): Document them.
61208         (verbose): New variable.
61209         (func_execute_command): New function.
61210         (func_import): Don't show the module list and the file list if
61211         $verbose < 0.
61212         (func_create_testdir): Likewise. Use func_execute_command.
61213         (func_create_megatestdir): Use func_execute_command.
61214
61215 2007-09-08  Bruno Haible  <bruno@clisp.org>
61216
61217         * gnulib-tool (func_import): Prefer rsync over wget when available,
61218         for fetching the PO files.
61219
61220 2007-09-08  Bruno Haible  <bruno@clisp.org>
61221
61222         * posix-modules: New file. Portions copied from gnulib-tool.
61223         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
61224
61225 2007-09-08  Jim Meyering  <jim@meyering.net>
61226
61227         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
61228         * lib/fpending.h: Rename from __fpending.h.
61229         * lib/fpending.c: Rename from __fpending.c.
61230         Include "fpending.h", not "__fpending.h".
61231         * lib/__fpending.h, lib/__fpending.c: Remove files.
61232         * modules/fpending (Files): Reflect new file names.
61233         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
61234
61235 2007-09-08  Bruno Haible  <bruno@clisp.org>
61236
61237         * m4/inttypes-h.m4: Remove stub file.
61238
61239 2007-09-07  Simon Josefsson  <simon@josefsson.org>
61240
61241         * doc/headers/stdint.texi: Discuss #include_next issue.
61242
61243 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61244
61245         * build-aux/bootstrap: Remove obsolete comment about wget --help.
61246
61247 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61248
61249         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
61250         in variable name.
61251
61252 2007-09-03  Jim Meyering  <jim@meyering.net>
61253
61254         New module: git-version-gen.
61255         * modules/git-version-gen: New file.
61256
61257         Import changes from coreutils for bootstrap script.
61258
61259         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
61260
61261         bootstrap: uses rsync to download the .po files
61262         * build-aux/bootstrap (po_download_command_format): New global.
61263         (download_po_files): Use rsync.
61264         (update_po_files): Don't remove .po files after download,
61265         so future rsync runs can take advantage of the copies.
61266
61267         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
61268
61269         Solve the unnecessary-.po-file-regeneration problem once and for all.
61270         * build-aux/bootstrap (download_po_files): New function, renamed from
61271         get_translations.  Now, downloads, but doesn't update LINGUAS.
61272         (update_po_files): New function.
61273
61274         bootstrap: Ignore more.
61275         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
61276         uniwidth to e.g., lib/.gitignore.
61277         (slurp): Handle the sys_stat_.h -> sys mapping, too.
61278
61279         * build-aux/bootstrap: New setting: vc_ignore.
61280         (insert_sorted_if_absent): Create $file if absent.
61281         Adapt to new, possibly empty, list: $vc_ignore.
61282
61283         bootstrap: generate more ignorable names
61284         * build-aux/bootstrap (slurp): When generating ignorable names,
61285         also map .sin to .sed, .gperf to .c, and .y to .c.
61286
61287 2007-09-03  Jim Meyering  <jim@meyering.net>
61288
61289         * build-aux/git-version-gen: New file, from coreutils.  For details, see
61290         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
61291
61292 2007-09-02  Bruno Haible  <bruno@clisp.org>
61293
61294         Fix mis-recognition of 'mcs' on QNX 6.
61295         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
61296         output contains the string "Mono".
61297         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
61298         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
61299
61300 2007-09-01  Bruno Haible  <bruno@clisp.org>
61301
61302         Fix collision between uniwidth/* and linebreak modules.
61303         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
61304         u32_width): Remove declarations.
61305         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
61306         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
61307         streq3, streq2, streq1, streq0): Remove functions.
61308         (STREQ): Remove macro.
61309         (is_cjk_encoding): Remove function.
61310         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
61311         (uc_width, u8_width, u16_width, u32_width): Remove functions.
61312         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
61313         * NEWS: Document the change.
61314
61315 2007-09-01  Bruno Haible  <bruno@clisp.org>
61316
61317         * lib/streq.h: Add double-inclusion guard.
61318
61319 2007-09-01  Karl Berry  <karl@gnu.org>
61320
61321         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
61322
61323 2007-08-28  Jim Meyering  <jim@meyering.net>
61324
61325         Rename mreadlink_with_size to areadlink_with_size.
61326         * NEWS: Document the change.
61327         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
61328         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
61329         * lib/mreadlink.h: Rename this to...
61330         * lib/areadlink.h: ...this.
61331         * modules/mreadlink-with-size: Rename this to...
61332         * modules/areadlink-with-size: ...this.
61333         * lib/canonicalize.c: Reflect the renaming.
61334         * modules/canonicalize: Likewise.
61335
61336 2007-08-26  Bruno Haible  <bruno@clisp.org>
61337
61338         * gnulib-tool (func_import): When deciding which files to remove,
61339         consider also dangling symbolic links.
61340         Reported by Eric Blake.
61341
61342 2007-08-26  Bruno Haible  <bruno@clisp.org>
61343
61344         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
61345
61346 2007-08-23  Simon Josefsson  <simon@josefsson.org>
61347
61348         * lib/readline.c: Don't include getline.h, the prototype is now
61349         found in stdio.h.
61350
61351 2007-08-23  Jim Meyering  <jim@meyering.net>
61352
61353         Getdelim touchup.
61354         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
61355         around the funlockfile call, since funlockfile never sets errno.
61356         Don't set errno upon failed realloc.
61357
61358 2007-08-22  Eric Blake  <ebb9@byu.net>
61359
61360         Getline touchups.
61361         * lib/getdelim.c (getdelim): Revert regression that required *n to
61362         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
61363         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
61364         getdelim, rather than whether implementation is missing.
61365         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
61366         * lib/stdio_.h (getline): Also declare if replacement is
61367         required.
61368         * doc/functions/getdelim.texi: New file.
61369         * doc/functions/getline.texi: Likewise.
61370         * doc/gnulib.texi (Function Substitutes): Add new files.
61371         Reported by Bruno Haible.
61372
61373 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
61374
61375         * users.txt: Add Guile.
61376
61377 2007-08-22  Eric Blake  <ebb9@byu.net>
61378
61379         * tests/test-getdelim.c (main): Use remove, not unlink.
61380         * tests/test-getline.c (main): Likewise.
61381
61382         Move getline and getdelim into stdio.h, per POSIX 200x.
61383         * modules/getline (Files): Remove getline.h.
61384         (Depends-on): Add stdio.
61385         (configure.ac): Add module indicator.
61386         * modules/getdelim (Files): Remove getdelim.h.
61387         (Depends-on): Add stdio.
61388         (configure.ac): Add module indicator.
61389         * modules/stdio (Makefile.am): Work with new indicators.
61390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
61391         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
61392         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61393         * lib/getdelim.h: Delete.
61394         * lib/getline.h: Delete.
61395         * lib/stdio_.h (getdelim, getline): Declare.
61396         * modules/getdelim-tests: New module.
61397         * modules/getline-tests: Likewise.
61398         * tests/test-getdelim.c: New file.
61399         * tests/test-getline.c: Likewise.
61400         * NEWS: Document the change.
61401         * lib/getline.c: Update choice of header.
61402         * lib/csharpcomp.c: Likewise.
61403         * lib/getpass.c: Likewise.
61404         * lib/javacomp.c: Likewise.
61405         * lib/javaversion.c: Likewise.
61406         * lib/yesno.c: Likewise.
61407         * lib/getdelim.c: Likewise.
61408         (getdelim): Set errno on failure, and avoid memory leak.
61409
61410 2007-08-19  Bruno Haible  <bruno@clisp.org>
61411
61412         * modules/closein (Depends-on): Add freadahead.
61413         * lib/closein.c: Include freadahead.h.
61414         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
61415         is zero.
61416
61417 2007-08-19  Bruno Haible  <bruno@clisp.org>
61418
61419         * modules/freadahead-tests: New file.
61420         * tests/test-freadahead.sh: New file.
61421         * tests/test-freadahead.c: New file.
61422
61423         * modules/freadahead: New file.
61424         * lib/freadahead.h: New file.
61425         * lib/freadahead.c: New file.
61426         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
61427         fbufmode, fpurge, freadable, fwritable.
61428
61429 2007-08-19  Eric Blake  <ebb9@byu.net>
61430
61431         Test yesno in combination with closein.
61432         * lib/yesno.c (yesno): Document use of stdin.
61433         * modules/yesno-tests (Files): New module.
61434         * tests/test-yesno.c (main): New file.
61435         * tests/test-yesno.sh: Likewise.
61436
61437 2007-08-19  Bruno Haible  <bruno@clisp.org>
61438
61439         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
61440         * lib/fseeko.c (rpl_fseeko): Likewise.
61441         * lib/fseterr.c (fseterr): Likewise.
61442
61443 2007-08-19  Bruno Haible  <bruno@clisp.org>
61444
61445         * tests/test-lseek.c (main): Disable a test for BeOS.
61446         * doc/functions/lseek.texi: Document the BeOS bug.
61447
61448 2007-08-19  Bruno Haible  <bruno@clisp.org>
61449             Eric Blake  <ebb9@byu.net>
61450
61451         * lib/lseek.c: Include <sys/stat.h>.
61452         (rpl_lseek): Add workaround code also for Unix platforms.
61453         Needed for BeOS.
61454         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
61455         * doc/functions/lseek.texi: Document BeOS definiency.
61456
61457 2007-08-18  Bruno Haible  <bruno@clisp.org>
61458
61459         * modules/fstrcmp-tests: New file.
61460         * tests/test-fstrcmp.c: New file.
61461
61462 2007-08-18  Bruno Haible  <bruno@clisp.org>
61463
61464         * modules/fstrcmp: New file, from GNU gettext with modifications.
61465         * lib/fstrcmp.h: New file, from GNU gettext.
61466         * lib/fstrcmp.c: New file, from GNU gettext.
61467         * MODULES.html.sh (String handling): Add fstrcmp.
61468
61469 2007-08-18  Bruno Haible  <bruno@clisp.org>
61470
61471         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
61472         'bool'.
61473         (diag, compareseq): Remove const from the ctxt argument.
61474         (USE_HEURISTIC): Undefine at the end.
61475
61476 2007-08-18  Jim Meyering  <jim@meyering.net>
61477
61478         New file: lib/idcache.h
61479         * NEWS: Mention the addition.
61480         * modules/idcache (Files): Add lib/idcache.h
61481         * lib/idcache.c: Include "idcache.h".
61482         Don't include <sys/types.h>.
61483         Add a FIXME comment.
61484         Move file-scoped "static" declarations to the top.
61485         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
61486
61487 2007-08-17  Bruno Haible  <bruno@clisp.org>
61488         and Paul Eggert  <eggert@cs.ucla.edu>
61489
61490         * MODULES.html.sh: Add diffseq.
61491         * modules/diffseq: New file.
61492         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
61493         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
61494
61495 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61496
61497         Import changes from coreutils for bootstrap script.
61498
61499         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
61500
61501         * build-aux/bootstrap (slurp): Work even in environments where
61502         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
61503         current code does not slurp files whose names start with ".", and
61504         this looks like it might be a troublesome area.
61505
61506         2007-07-11  Jim Meyering  <jim@meyering.net>
61507
61508         If there's a GPL vN copyright comment, require that N == 3.
61509
61510         2007-07-08  Jim Meyering  <jim@meyering.net>
61511
61512         Run the coreutils-specific code only if tests/Makefile.am.in exists.
61513         * build-aux/bootstrap (mam_template): Move definition out of loop.
61514
61515         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
61516
61517         * build-aux/bootstrap (symlink_to_dir): Rename function from
61518         symlink_to_gnulib.  Add a directory parameter.  Update all
61519         callers.
61520         (cp_mark_as_generated): Also check for -- and link to -- files in
61521         gl/.
61522
61523         2007-07-08  Jim Meyering  <jim@meyering.net>
61524
61525         Adapt to deeper hierarchy in gnulib.
61526         * build-aux/bootstrap (symlink_to_dir): If the destination
61527         directory doesn't exist, create it. This is required at least for
61528         "lib/uniwidth/cjk.h".
61529
61530         2007-05-15  Jim Meyering  <jim@meyering.net>
61531
61532         * build-aux/bootstrap: Now that generated Makefile.am files
61533         are no longer under version control, they must be created at
61534         bootstrap time.
61535
61536 2007-08-14  Ben Pfaff  <blp@gnu.org>
61537
61538         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
61539
61540 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61541
61542         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
61543         given the changes below.
61544         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
61545         even on hosts that have padding bits beyond the supported 64.
61546
61547 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61548
61549         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
61550         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
61551         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
61552         depends on it.
61553         (xstrtol_error): Remove.
61554         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
61555         but with a different signature.
61556         (ATTRIBUTE_NORETURN, __attribute__): New macros.
61557         * lib/xstrtol-error.c: Include exitfail.h.
61558         (xstrtol_fatal): New function, with a different signature from the
61559         old xstrtol_error, so that the caller need not worry about passing
61560         in an exit status, or about storage management of the option argument.
61561         (xstrtol_error): Now a static function.  Redo signature to
61562         implement xstrtol_fatal.  Output the correct number of hyphens in
61563         front of the option so that the caller need not worry about
61564         storage management.
61565         (N_): New macro.
61566         (_): Remove; not used now.
61567         * modules/xstrtol: Depend on getopt.
61568         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
61569         of old STRTOL_FATAL_ERROR macro.
61570         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
61571         of test program.
61572         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
61573         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
61574
61575 2007-08-08  Eric Blake  <ebb9@byu.net>
61576
61577         * lib/xstrtol-error.c: Add missing include.
61578
61579         Move xstrtol messages into gnulib domain, when --pobase is used.
61580         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
61581         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
61582         * modules/xstrtol (Files): Distribute new file.
61583         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
61584         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
61585         * tests/test-xstrtol.c: ...into new file.
61586         * tests/test-xstrtoul.c: Also test xstrtoul.
61587         * tests/test-xstrtoimax.c: Also test xstrtoimax.
61588         * tests/test-xstrtoumax.c: Also test xstrtoumax.
61589         * tests/test-xstrtol.sh: Drive the tests.
61590         * tests/test-xstrtoimax.sh: Likewise.
61591         * tests/test-xstrtoumax.sh: Likewise.
61592         * modules/xstrtol-tests: New module.
61593         * modules/xstrtoimax-tests: Likewise.
61594         * modules/xstrtoumax-tests: Likewise.
61595
61596 2007-08-08  Jim Meyering  <jim@meyering.net>
61597
61598         New function: mfile_name_concat.
61599         * lib/filenamecat.c (mfile_name_concat): New function, just like
61600         file_name_concat, but return NULL upon failure rather than exiting
61601         with a diagnostic.
61602         * lib/filenamecat.h: Declare it.
61603
61604 2007-08-07  Bruno Haible  <bruno@clisp.org>
61605
61606         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
61607         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
61608         warning from gcc.
61609         Reported by Eric Blake.
61610
61611 2007-08-07  Simon Josefsson  <simon@josefsson.org>
61612
61613         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
61614         * modules/crypto/arcfour (License): Likewise.
61615         * modules/crypto/des-tests (License): Likewise.
61616         * modules/crypto/gc-arctwo-tests (License): Likewise.
61617         * modules/crypto/gc-des-tests (License): Likewise.
61618         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
61619         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
61620         * modules/crypto/gc-md2-tests (License): Likewise.
61621         * modules/crypto/gc-md4-tests (License): Likewise.
61622         * modules/crypto/gc-md5-tests (License): Likewise.
61623         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
61624         * modules/crypto/gc-rijndael-tests (License): Likewise.
61625         * modules/crypto/gc-sha1-tests (License): Likewise.
61626         * modules/crypto/gc-tests (License): Likewise.
61627         * modules/crypto/hmac-md5 (License): Likewise.
61628         * modules/crypto/hmac-sha1 (License): Likewise.
61629         * modules/crypto/md2-tests (License): Likewise.
61630         * modules/crypto/md4-tests (License): Likewise.
61631         * modules/crypto/md5 (License): Likewise.
61632         * modules/crypto/rijndael (License): Likewise.
61633         * modules/crypto/sha1 (License): Likewise.
61634         * modules/memxor (License): Likewise.
61635
61636 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61637         and Bruno Haible  <bruno@clisp.org>
61638
61639         * NEWS: Describe interface changes to human, xstrtol.
61640         * lib/human.h: Include <xstrtol.h>.
61641         (human_options): Return enum strtol_error, not int.  Remove
61642         bool arg; take int * instead.
61643         * lib/human.c: Don't include "gettext.h".
61644         (_): Remove; no longer used.
61645         Don't include <xstrtol.h>, since human.h does it.
61646         (human_options): Adjust to abovementioned interface changes.
61647         Do not report error to stderr; that's now the caller's
61648         responsibility.
61649         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
61650         interface change.
61651         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
61652         Str, Argument_type_string.  All uses changed.  Put " argument"
61653         in diagnostics to make them clearer.  Change wording of suffix
61654         message for clarity.
61655         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
61656         Argument_type_string.
61657         (STRTOL_FATAL_WARN): Remove; no longer used.
61658         * modules/human (Depends-on): Remove gettext-h.
61659
61660 2007-08-06  Simon Josefsson  <simon@josefsson.org>
61661
61662         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
61663
61664 2007-07-31  Bruno Haible  <bruno@clisp.org>
61665
61666         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
61667         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
61668         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
61669
61670 2007-07-31  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
61673         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
61674
61675 2007-07-30  Bruno Haible  <bruno@clisp.org>
61676
61677         * modules/base64 (License): Use the synonymous term "LGPLv2+".
61678         * modules/c-ctype (License): Likewise.
61679         * modules/c-strcase (License): Likewise.
61680         * modules/check-version (License): Likewise.
61681         * modules/iconv (License): Likewise.
61682         * modules/iconv_open (License): Likewise.
61683         * modules/read-file (License): Likewise.
61684         * modules/striconv (License): Likewise.
61685         * modules/strverscmp (License): Likewise.
61686         * modules/vasprintf (License): Likewise.
61687         * modules/crypto/des (License): Likewise.
61688         * modules/crypto/gc (License): Likewise.
61689         * modules/crypto/gc-arcfour (License): Likewise.
61690         * modules/crypto/gc-arctwo (License): Likewise.
61691         * modules/crypto/gc-des (License): Likewise.
61692         * modules/crypto/gc-hmac-md5 (License): Likewise.
61693         * modules/crypto/gc-hmac-sha1 (License): Likewise.
61694         * modules/crypto/gc-md2 (License): Likewise.
61695         * modules/crypto/gc-md4 (License): Likewise.
61696         * modules/crypto/gc-md5 (License): Likewise.
61697         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
61698         * modules/crypto/gc-random (License): Likewise.
61699         * modules/crypto/gc-rijndael (License): Likewise.
61700         * modules/crypto/gc-sha1 (License): Likewise.
61701         * modules/crypto/md2 (License): Likewise.
61702         * modules/crypto/md4 (License): Likewise.
61703
61704 2007-07-30  Jim Meyering  <jim@meyering.net>
61705
61706         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
61707         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
61708         it has valid stat data.  This bug would cause du not to count the
61709         sizes of inaccessible directories.
61710         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
61711         in <http://bugzilla.redhat.com/250077>.
61712
61713 2007-07-25  Peter O'Gorman  <peter@pogma.com>
61714             Bruno Haible  <bruno@clisp.org>
61715
61716         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
61717         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
61718         #include_next, gives a diagnostic about it, but reports no error in
61719         the exit code.
61720         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
61721
61722 2007-07-24  Ben Pfaff  <blp@gnu.org>
61723
61724         Improve name: "count-one-bits" is better than "popcount".
61725         * MODULES.html.sh: Update name.
61726         * lib/popcount.h: Renamed lib/count-one-bits.h.
61727         (popcount): Renamed count_one_bits.
61728         (popcountl): Renamed count_one_bits_l.
61729         (popcountll): Renamed count_one_bits_ll.
61730         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
61731         * modules/popcount: Renamed module/count-one-bits.
61732         * modules/popcount-tests: Renamed module/count-one-bits-tests.
61733         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
61734
61735 2007-07-23  Ben Pfaff  <blp@gnu.org>
61736
61737         * lib/popcount.h (popcount32): Reduce size of constants, to allow
61738         better code generation, and add U to large constants to avoid
61739         warnings, in non-GCC case.
61740         Suggested by Bruno Haible.
61741
61742 2007-07-23  Ben Pfaff  <blp@gnu.org>
61743
61744         * lib/popcount.h: Use verify_true instead of if...abort.
61745         * modules/popcount: Depend on verify module.
61746         Suggested by Jim Meyering.
61747
61748 2007-07-23  Bruno Haible  <bruno@clisp.org>
61749
61750         * gnulib-tool (func_import): Create a .cvsignore file also when the
61751         directory is not yet in CVS but the toplevel directory is. When
61752         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
61753         Reported by Karl Berry.
61754
61755 2007-07-22  Ben Pfaff  <blp@gnu.org>
61756
61757         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
61758         case.
61759         Suggested by Eric Blake.
61760
61761 2007-07-22  Ben Pfaff  <blp@gnu.org>
61762
61763         New module: popcount.
61764         * MODULES.html.sh: Add popcount.
61765         * modules/popcount: New file.
61766         * modules/popcount-tests: New file.
61767         * tests/test-popcount.c: New file.
61768         * lib/popcount.h: New file.
61769         * m4/popcount.m4: New file.
61770
61771 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61772
61773         * build-aux/announce-gen: Update to GPLv3.
61774
61775         * build-aux/config.guess: Update from config.
61776
61777 2007-07-21  Bruno Haible  <bruno@clisp.org>
61778
61779         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
61780         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
61781
61782 2007-07-20  Jim Meyering  <jim@meyering.net>
61783
61784         * check-module: Diagnose a self-dependency.
61785
61786 2007-07-19  Bruno Haible  <bruno@clisp.org>
61787
61788         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
61789         empty.
61790         Reported by Eric Blake.
61791
61792 2007-07-18  Bruno Haible  <bruno@clisp.org>
61793
61794         * gnulib-tool: New options --po-base, --po-domain.
61795         (func_usage): Document them.
61796         (pobase, po_domain): New variables.
61797         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
61798         DEFAULT_TEXT_DOMAIN.
61799         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
61800         (func_import): Consider pobase and po_domain. Create a po/ directory.
61801         (func_create_testdir): Set pobase and po_domain to empty.
61802         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
61803         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
61804
61805 2007-07-18  Bruno Haible  <bruno@clisp.org>
61806
61807         * gnulib-tool (func_get_automake_snippet): Synthesize also an
61808         EXTRA_DIST augmentation for files in build-aux/.
61809
61810 2007-07-16  Bruno Haible  <bruno@clisp.org>
61811
61812         * modules/lseek (License): Use the synonymous term "LGPLv2+".
61813         * modules/getdelim (License): Likewise.
61814
61815 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61816
61817         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
61818         * modules/d-type (License): Likewise.
61819         * modules/extensions (License): Likewise.
61820         * modules/fnmatch (License): Likewise.
61821         * modules/fseeko (License): Likewise.
61822         * modules/getaddrinfo (License): Likewise.
61823         * modules/getline (License): Likewise.
61824         * modules/getlogin_r (License): Likewise.
61825         * modules/getpass (License): Likewise.
61826         * modules/gettimeofday (License): Likewise.
61827         * modules/glob (License): Likewise.
61828         * modules/inet_ntop (License): Likewise.
61829         * modules/malloc (License): Likewise.
61830         * modules/malloca (License): Likewise.
61831         * modules/memmem (License): Likewise.
61832         * modules/mempcpy (License): Likewise.
61833         * modules/memset (License): Likewise.
61834         * modules/minmax (License): Likewise.
61835         * modules/mktime (License): Likewise.
61836         * modules/netinet_in (License): Likewise.
61837         * modules/pathmax (License): Likewise.
61838         * modules/poll (License): Likewise.
61839         * modules/regex (License): Likewise.
61840         * modules/snprintf (License): Likewise.
61841         * modules/stdbool (License): Likewise.
61842         * modules/stdint (License): Likewise.
61843         * modules/stdio (License): Likewise.
61844         * modules/strcase (License): Likewise.
61845         * modules/strcasestr (License): Likewise.
61846         * modules/strdup (License): Likewise.
61847         * modules/string (License): Likewise.
61848         * modules/strndup (License): Likewise.
61849         * modules/strnlen (License): Likewise.
61850         * modules/strpbrk (License): Likewise.
61851         * modules/strptime (License): Likewise.
61852         * modules/strsep (License): Likewise.
61853         * modules/sys_select (License): Likewise.
61854         * modules/sys_socket (License): Likewise.
61855         * modules/sys_stat (License): Likewise.
61856         * modules/sys_time (License): Likewise.
61857         * modules/time (License): Likewise.
61858         * modules/time_r (License): Likewise.
61859         * modules/timegm (License): Likewise.
61860         * modules/unistd (License): Likewise.
61861         * modules/vsnprintf (License): Likewise.
61862         * modules/wctype (License): Likewise.
61863
61864 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61865
61866         * modules/argz (License): LGPLv2+.
61867
61868 2007-07-15  Karl Berry  <karl@gnu.org>
61869
61870         * doc/gnulib.texi: revise node structure per new fdl.texi.
61871
61872 2007-07-14  Bruno Haible  <bruno@clisp.org>
61873
61874         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
61875         the output file.
61876         * lib/uniname/uninames.h: Regenerated.
61877
61878 2007-07-14  Karl Berry  <karl@gnu.org>
61879
61880         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
61881         omitting sectioning and index commands.
61882
61883 2007-07-13  Bruno Haible  <bruno@clisp.org>
61884
61885         New gnulib-tool option --more-symlinks.
61886         * gnulib-tool (func_usage): Document --more-symlinks.
61887         (do_copyrights): New variable.
61888         Recognize option --more-symlinks.
61889         (func_import): Don't add a copyright notice transform to
61890         sed_transform_lib_file if do_copyrights is empty.
61891
61892 2007-07-13  Bruno Haible  <bruno@clisp.org>
61893
61894         * lib/vasnprintf.c (decimal_point_char): Define also if
61895         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
61896         && !NEED_PRINTF_DIRECTIVE_A.
61897         Reported by Clemens Koller <clemens.koller@anagramm.de> via
61898         Gary V. Vaughan <gary@gnu.org>.
61899
61900 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
61901
61902         * lib/inttypes_.h: Undo previous change, since it was fixed
61903         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
61904
61905 2007-07-13  Bruno Haible  <bruno@clisp.org>
61906
61907         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
61908         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
61909
61910 2007-07-13  Jim Meyering  <jim@meyering.net>
61911
61912         df: Don't fail for Tru64's "file-on-file mount".
61913         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
61914         so we fall through and use statfs instead.  Details here:
61915         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
61916         Reported by Albert Chin.
61917
61918 2007-07-13  Bruno Haible  <bruno@clisp.org>
61919
61920         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
61921         * modules/configmake (License): Likewise.
61922         * modules/gettext (License): Likewise.
61923         * modules/gettext-h (License): Likewise.
61924         * modules/include_next (License): Likewise.
61925         * modules/link-warning (License): Likewise.
61926         * modules/localcharset (License): Likewise.
61927         * modules/localename (License): Likewise.
61928         * modules/lock (License): Likewise.
61929         * modules/relocatable-lib-lgpl (License): Likewise.
61930         * modules/size_max (License): Likewise.
61931         * modules/vasnprintf (License): Likewise.
61932         * modules/wchar (License): Likewise.
61933         * modules/xsize (License): Likewise.
61934
61935 2007-07-13  Bruno Haible  <bruno@clisp.org>
61936
61937         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
61938         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
61939
61940 2007-07-12  Bruno Haible  <bruno@clisp.org>
61941
61942         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
61943         in the modules files.
61944
61945 2007-07-11  Karl Berry  <karl@gnu.org>
61946
61947         * MODULES.html.sh (func_module): use
61948          sed -e '\|^'"${includefile}"'$|d'
61949          instead of /.../d, to avoid errors on $includefile's containing /.
61950
61951 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61952
61953         * gnulib-tool (func_import): Avoid duplication of --avoid
61954         statements
61955         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
61956         names to `_' in variable names.
61957
61958 2007-07-10  Eric Blake  <ebb9@byu.net>
61959
61960         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
61961         * NEWS: Document this change.
61962
61963 2007-07-08  Bruno Haible  <bruno@clisp.org>
61964
61965         Update to Unicode 5.0.
61966         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
61967         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
61968         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
61969         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
61970         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
61971         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
61972         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
61973         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
61974         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
61975         U+10A3F, U+1D242..U+1D244.
61976         (nonspacing_table_ind): Update.
61977         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
61978         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
61979
61980 2007-07-08  Bruno Haible  <bruno@clisp.org>
61981
61982         Update to Unicode 5.0.
61983         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
61984         code transform. Extend the name index field of unicode_name_to_code and
61985         unicode_code_to_name from 16 to 24 bits.
61986         * lib/uniname/uniname.c (unicode_character_name,
61987         unicode_name_character): Add the range 0x12xxx to the code transform.
61988         * lib/uniname/uninames.h: Regenerated.
61989         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
61990
61991 2007-07-07  Bruno Haible  <bruno@clisp.org>
61992
61993         * modules/wcwidth-tests: New file.
61994         * tests/test-wcwidth.c: New file.
61995
61996         Work around MacOS X wcwidth() bug.
61997         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
61998         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
61999         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
62000         original wcwidth in non-UTF-8 locales.
62001         * modules/wcwidth (Depends-on): Add localcharset, streq,
62002         uniwidth/width.
62003         * doc/functions/wcwidth.texi: Update.
62004
62005 2007-07-07  Bruno Haible  <bruno@clisp.org>
62006
62007         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
62008         (wcwidth): New declaration.
62009         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
62010         macros.
62011         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
62012         here. Prepare for creating <wchar.h> unconditionally.
62013         * modules/wchar (Depends-on): Add link-warning.
62014         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
62015         REPLACE_WCWIDTH, and GL_LINK_WARNING.
62016         * lib/wcwidth.h: Remove file.
62017         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
62018         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
62019         * modules/wcwidth (Files): Remove lib/wcwidth.h.
62020         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
62021         (Include): Replace wcwidth.h with <wchar.h>.
62022         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
62023         * lib/mbchar.h: Don't include wcwidth.h.
62024         * lib/mbswidth.c: Likewise.
62025         * NEWS: Mention the change.
62026
62027 2007-07-07  Bruno Haible  <bruno@clisp.org>
62028
62029         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
62030         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
62031         definition with an external declaration.
62032         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
62033         defined as a function. Remove AC_C_INLINE requirement.
62034         * modules/wcwidth (Files): Add lib/wcwidth.c.
62035         (Makefile.am): Remove redundant statement.
62036
62037 2007-07-07  Bruno Haible  <bruno@clisp.org>
62038
62039         * MODULES.html.sh (Unicode string functions): Add the new modules.
62040
62041         * tests/uniwidth/test-u32-strwidth.c: New file.
62042         * modules/uniwidth/u32-strwidth-tests: New file.
62043
62044         * lib/uniwidth/u32-strwidth.c: New file.
62045         * modules/uniwidth/u32-strwidth: New file.
62046
62047         * tests/uniwidth/test-u16-strwidth.c: New file.
62048         * modules/uniwidth/u16-strwidth-tests: New file.
62049
62050         * lib/uniwidth/u16-strwidth.c: New file.
62051         * modules/uniwidth/u16-strwidth: New file.
62052
62053         * tests/uniwidth/test-u8-strwidth.c: New file.
62054         * modules/uniwidth/u8-strwidth-tests: New file.
62055
62056         * lib/uniwidth/u8-strwidth.c: New file.
62057         * modules/uniwidth/u8-strwidth: New file.
62058
62059         * tests/uniwidth/test-u32-width.c: New file.
62060         * modules/uniwidth/u32-width-tests: New file.
62061
62062         * lib/uniwidth/u32-width.c: New file.
62063         * modules/uniwidth/u32-width: New file.
62064
62065         * tests/uniwidth/test-u16-width.c: New file.
62066         * modules/uniwidth/u16-width-tests: New file.
62067
62068         * lib/uniwidth/u16-width.c: New file.
62069         * modules/uniwidth/u16-width: New file.
62070
62071         * tests/uniwidth/test-u8-width.c: New file.
62072         * modules/uniwidth/u8-width-tests: New file.
62073
62074         * lib/uniwidth/u8-width.c: New file.
62075         * modules/uniwidth/u8-width: New file.
62076
62077         * tests/uniwidth/test-uc_width.c: New file.
62078         * modules/uniwidth/width-tests: New file.
62079
62080         * lib/uniwidth/width.c: New file, from GNU libiconv.
62081         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
62082         * modules/uniwidth/width: New file.
62083
62084         * lib/uniwidth.h: New file, from GNU libiconv.
62085         * modules/uniwidth/base: New file.
62086
62087 2007-07-07  Bruno Haible  <bruno@clisp.org>
62088
62089         * lib/uniname.h: New file, from GNU gettext.
62090         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
62091         * lib/uniname/uninames.h: New file, from GNU gettext.
62092         * lib/uniname/uniname.c: New file, from GNU gettext.
62093         * tests/uniname/test-uninames.sh: New file.
62094         * tests/uniname/test-uninames.c: New file, from GNU gettext.
62095         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
62096         * modules/uniname/base: New file.
62097         * modules/uniname/uniname: New file.
62098         * modules/uniname/uniname-tests: New file.
62099         * MODULES.html.sh (Unicode string functions): Add the new modules.
62100
62101 2007-07-06  Bruno Haible  <bruno@clisp.org>
62102
62103         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
62104
62105 2007-07-06  Bruno Haible  <bruno@clisp.org>
62106
62107         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
62108         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
62109         includes <cygwin/sys_time.h> which includes <sys/select.h> which
62110         include <sys/time.h>.
62111         Reported by Eric Blake.
62112
62113 2007-07-06  Eric Blake  <ebb9@byu.net>
62114
62115         Fix testing canonicalize on cygwin.
62116         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
62117         Revert patch from 2007-06-19.
62118         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
62119         canonicalize module is also in use.
62120         * tests/test-canonicalize.c: New file.
62121         * tests/test-canonicalize.sh: Likewise.
62122         * modules/canonicalize-tests: Likewise.
62123
62124 2007-07-06  Jim Meyering  <jim@meyering.net>
62125
62126         * lib/getugroups.c (getugroups): Detect getgrent failure.
62127         Adjust comment to reflect reality: this function may return -1.
62128
62129 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
62130
62131         * build-aux/bootstrap (TP_URL,get_translations): Update to use
62132         the new TP address.
62133         (usage): Fix typo
62134         (gnulib_mk): New variable.
62135
62136 2007-07-05  Jim Meyering  <jim@meyering.net>
62137
62138         Don't let endgrent clobber errno, no matter how improbable.
62139         * lib/getugroups.c (getugroups): Save and restore errno around
62140         endgrent call.
62141
62142         Close the group DB even when failing with 2^31 or more members.
62143         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
62144
62145 2007-07-04  Jim Meyering  <jim@meyering.net>
62146
62147         * lib/getugroups.h: New file.
62148         * lib/getugroups.c: Include "getugroups.h".
62149         Remove uses of "register" keyword.
62150         Move local variable, "cp", down into scope where used.
62151         Give "username" parameter the "const" attribute.
62152         * modules/getugroups (Files): Add lib/getugroups.h
62153
62154 2007-07-04  Karl Berry  <karl@gnu.org>
62155
62156         * MODULES.html.sh (func_all_modules): Complete rename of
62157         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
62158
62159 2007-07-02  Bruno Haible  <bruno@clisp.org>
62160
62161         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
62162         mode, when inttypes.h comes from gnulib.
62163         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62164
62165 2007-07-02  Simon Josefsson  <simon@josefsson.org>
62166
62167         * NEWS: Mention lgpl module name change.
62168
62169         * modules/lgpl-2.1: Renamed from lgpl.
62170
62171         * NEWS: Mention gpl module name change.
62172
62173         * modules/gpl-3.0: New file, based on gpl-2.0.
62174
62175         * modules/gpl-2.0: Renamed from gpl.
62176
62177         * modules/gpl: Fix filename, doc/gpl.texi is now found at
62178         doc/gpl-2.0.texi.
62179
62180 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62181
62182         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
62183         #define __STDC_LIMIT_MACROS temporarily while including
62184         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
62185         Problem reported by Joel E. Denny in
62186         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
62187
62188 2007-07-01  Bruno Haible  <bruno@clisp.org>
62189
62190         * lib/unistdio.h: New file.
62191         * lib/unistdio/u-asnprintf.h: New file.
62192         * lib/unistdio/u-asprintf.h: New file.
62193         * lib/unistdio/u-printf-args.c: New file.
62194         * lib/unistdio/u-printf-args.h: New file.
62195         * lib/unistdio/u-printf-parse.h: New file.
62196         * lib/unistdio/u-snprintf.h: New file.
62197         * lib/unistdio/u-sprintf.h: New file.
62198         * lib/unistdio/u-vasprintf.h: New file.
62199         * lib/unistdio/u-vsnprintf.h: New file.
62200         * lib/unistdio/u-vsprintf.h: New file.
62201         * lib/unistdio/ulc-asnprintf.c: New file.
62202         * lib/unistdio/ulc-asprintf.c: New file.
62203         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
62204         * lib/unistdio/ulc-printf-parse.c: New file.
62205         * lib/unistdio/ulc-snprintf.c: New file.
62206         * lib/unistdio/ulc-sprintf.c: New file.
62207         * lib/unistdio/ulc-vasnprintf.c: New file.
62208         * lib/unistdio/ulc-vasprintf.c: New file.
62209         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
62210         * lib/unistdio/ulc-vsnprintf.c: New file.
62211         * lib/unistdio/ulc-vsprintf.c: New file.
62212         * lib/unistdio/u8-asnprintf.c: New file.
62213         * lib/unistdio/u8-asprintf.c: New file.
62214         * lib/unistdio/u8-printf-parse.c: New file.
62215         * lib/unistdio/u8-snprintf.c: New file.
62216         * lib/unistdio/u8-sprintf.c: New file.
62217         * lib/unistdio/u8-vasnprintf.c: New file.
62218         * lib/unistdio/u8-vasprintf.c: New file.
62219         * lib/unistdio/u8-vsnprintf.c: New file.
62220         * lib/unistdio/u8-vsprintf.c: New file.
62221         * lib/unistdio/u8-u8-asnprintf.c: New file.
62222         * lib/unistdio/u8-u8-asprintf.c: New file.
62223         * lib/unistdio/u8-u8-snprintf.c: New file.
62224         * lib/unistdio/u8-u8-sprintf.c: New file.
62225         * lib/unistdio/u8-u8-vasnprintf.c: New file.
62226         * lib/unistdio/u8-u8-vasprintf.c: New file.
62227         * lib/unistdio/u8-u8-vsnprintf.c: New file.
62228         * lib/unistdio/u8-u8-vsprintf.c: New file.
62229         * lib/unistdio/u16-asnprintf.c: New file.
62230         * lib/unistdio/u16-asprintf.c: New file.
62231         * lib/unistdio/u16-printf-parse.c: New file.
62232         * lib/unistdio/u16-snprintf.c: New file.
62233         * lib/unistdio/u16-sprintf.c: New file.
62234         * lib/unistdio/u16-vasnprintf.c: New file.
62235         * lib/unistdio/u16-vasprintf.c: New file.
62236         * lib/unistdio/u16-vsnprintf.c: New file.
62237         * lib/unistdio/u16-vsprintf.c: New file.
62238         * lib/unistdio/u16-u16-asnprintf.c: New file.
62239         * lib/unistdio/u16-u16-asprintf.c: New file.
62240         * lib/unistdio/u16-u16-snprintf.c: New file.
62241         * lib/unistdio/u16-u16-sprintf.c: New file.
62242         * lib/unistdio/u16-u16-vasnprintf.c: New file.
62243         * lib/unistdio/u16-u16-vasprintf.c: New file.
62244         * lib/unistdio/u16-u16-vsnprintf.c: New file.
62245         * lib/unistdio/u16-u16-vsprintf.c: New file.
62246         * lib/unistdio/u32-asnprintf.c: New file.
62247         * lib/unistdio/u32-asprintf.c: New file.
62248         * lib/unistdio/u32-printf-parse.c: New file.
62249         * lib/unistdio/u32-snprintf.c: New file.
62250         * lib/unistdio/u32-sprintf.c: New file.
62251         * lib/unistdio/u32-vasnprintf.c: New file.
62252         * lib/unistdio/u32-vasprintf.c: New file.
62253         * lib/unistdio/u32-vsnprintf.c: New file.
62254         * lib/unistdio/u32-vsprintf.c: New file.
62255         * lib/unistdio/u32-u32-asnprintf.c: New file.
62256         * lib/unistdio/u32-u32-asprintf.c: New file.
62257         * lib/unistdio/u32-u32-snprintf.c: New file.
62258         * lib/unistdio/u32-u32-sprintf.c: New file.
62259         * lib/unistdio/u32-u32-vasnprintf.c: New file.
62260         * lib/unistdio/u32-u32-vasprintf.c: New file.
62261         * lib/unistdio/u32-u32-vsnprintf.c: New file.
62262         * lib/unistdio/u32-u32-vsprintf.c: New file.
62263         * tests/unistdio/test-ulc-asnprintf1.c: New file.
62264         * tests/unistdio/test-ulc-asnprintf1.h: New file.
62265         * tests/unistdio/test-ulc-printf1.h: New file.
62266         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
62267         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
62268         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
62269         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
62270         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
62271         * tests/unistdio/test-ulc-vasprintf1.c: New file.
62272         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
62273         * tests/unistdio/test-ulc-vsprintf1.c: New file.
62274         * tests/unistdio/test-u8-asnprintf1.c: New file.
62275         * tests/unistdio/test-u8-asnprintf1.h: New file.
62276         * tests/unistdio/test-u8-printf1.h: New file.
62277         * tests/unistdio/test-u8-vasnprintf1.c: New file.
62278         * tests/unistdio/test-u8-vasnprintf2.c: New file.
62279         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
62280         * tests/unistdio/test-u8-vasnprintf3.c: New file.
62281         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
62282         * tests/unistdio/test-u8-vasprintf1.c: New file.
62283         * tests/unistdio/test-u8-vsnprintf1.c: New file.
62284         * tests/unistdio/test-u8-vsprintf1.c: New file.
62285         * tests/unistdio/test-u16-asnprintf1.c: New file.
62286         * tests/unistdio/test-u16-asnprintf1.h: New file.
62287         * tests/unistdio/test-u16-printf1.h: New file.
62288         * tests/unistdio/test-u16-vasnprintf1.c: New file.
62289         * tests/unistdio/test-u16-vasnprintf2.c: New file.
62290         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
62291         * tests/unistdio/test-u16-vasnprintf3.c: New file.
62292         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
62293         * tests/unistdio/test-u16-vasprintf1.c: New file.
62294         * tests/unistdio/test-u16-vsnprintf1.c: New file.
62295         * tests/unistdio/test-u16-vsprintf1.c: New file.
62296         * tests/unistdio/test-u32-asnprintf1.c: New file.
62297         * tests/unistdio/test-u32-asnprintf1.h: New file.
62298         * tests/unistdio/test-u32-printf1.h: New file.
62299         * tests/unistdio/test-u32-vasnprintf1.c: New file.
62300         * tests/unistdio/test-u32-vasnprintf2.c: New file.
62301         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
62302         * tests/unistdio/test-u32-vasnprintf3.c: New file.
62303         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
62304         * tests/unistdio/test-u32-vasprintf1.c: New file.
62305         * tests/unistdio/test-u32-vsnprintf1.c: New file.
62306         * tests/unistdio/test-u32-vsprintf1.c: New file.
62307         * modules/unistdio/base: New file.
62308         * modules/unistdio/u-printf-args: New file.
62309         * modules/unistdio/ulc-asnprintf: New file.
62310         * modules/unistdio/ulc-asprintf: New file.
62311         * modules/unistdio/ulc-fprintf: New file.
62312         * modules/unistdio/ulc-printf-parse: New file.
62313         * modules/unistdio/ulc-snprintf: New file.
62314         * modules/unistdio/ulc-sprintf: New file.
62315         * modules/unistdio/ulc-vasnprintf: New file.
62316         * modules/unistdio/ulc-vasprintf: New file.
62317         * modules/unistdio/ulc-vfprintf: New file.
62318         * modules/unistdio/ulc-vsnprintf: New file.
62319         * modules/unistdio/ulc-vsprintf: New file.
62320         * modules/unistdio/u8-asnprintf: New file.
62321         * modules/unistdio/u8-asprintf: New file.
62322         * modules/unistdio/u8-printf-parse: New file.
62323         * modules/unistdio/u8-snprintf: New file.
62324         * modules/unistdio/u8-sprintf: New file.
62325         * modules/unistdio/u8-vasnprintf: New file.
62326         * modules/unistdio/u8-vasprintf: New file.
62327         * modules/unistdio/u8-vsnprintf: New file.
62328         * modules/unistdio/u8-vsprintf: New file.
62329         * modules/unistdio/u8-u8-asnprintf: New file.
62330         * modules/unistdio/u8-u8-asprintf: New file.
62331         * modules/unistdio/u8-u8-snprintf: New file.
62332         * modules/unistdio/u8-u8-sprintf: New file.
62333         * modules/unistdio/u8-u8-vasnprintf: New file.
62334         * modules/unistdio/u8-u8-vasprintf: New file.
62335         * modules/unistdio/u8-u8-vsnprintf: New file.
62336         * modules/unistdio/u8-u8-vsprintf: New file.
62337         * modules/unistdio/u16-asnprintf: New file.
62338         * modules/unistdio/u16-asprintf: New file.
62339         * modules/unistdio/u16-printf-parse: New file.
62340         * modules/unistdio/u16-snprintf: New file.
62341         * modules/unistdio/u16-sprintf: New file.
62342         * modules/unistdio/u16-vasnprintf: New file.
62343         * modules/unistdio/u16-vasprintf: New file.
62344         * modules/unistdio/u16-vsnprintf: New file.
62345         * modules/unistdio/u16-vsprintf: New file.
62346         * modules/unistdio/u16-u16-asnprintf: New file.
62347         * modules/unistdio/u16-u16-asprintf: New file.
62348         * modules/unistdio/u16-u16-snprintf: New file.
62349         * modules/unistdio/u16-u16-sprintf: New file.
62350         * modules/unistdio/u16-u16-vasnprintf: New file.
62351         * modules/unistdio/u16-u16-vasprintf: New file.
62352         * modules/unistdio/u16-u16-vsnprintf: New file.
62353         * modules/unistdio/u16-u16-vsprintf: New file.
62354         * modules/unistdio/u32-asnprintf: New file.
62355         * modules/unistdio/u32-asprintf: New file.
62356         * modules/unistdio/u32-printf-parse: New file.
62357         * modules/unistdio/u32-snprintf: New file.
62358         * modules/unistdio/u32-sprintf: New file.
62359         * modules/unistdio/u32-vasnprintf: New file.
62360         * modules/unistdio/u32-vasprintf: New file.
62361         * modules/unistdio/u32-vsnprintf: New file.
62362         * modules/unistdio/u32-vsprintf: New file.
62363         * modules/unistdio/u32-u32-asnprintf: New file.
62364         * modules/unistdio/u32-u32-asprintf: New file.
62365         * modules/unistdio/u32-u32-snprintf: New file.
62366         * modules/unistdio/u32-u32-sprintf: New file.
62367         * modules/unistdio/u32-u32-vasnprintf: New file.
62368         * modules/unistdio/u32-u32-vasprintf: New file.
62369         * modules/unistdio/u32-u32-vsnprintf: New file.
62370         * modules/unistdio/u32-u32-vsprintf: New file.
62371         * modules/unistdio/ulc-asnprintf-tests: New file.
62372         * modules/unistdio/ulc-vasnprintf-tests: New file.
62373         * modules/unistdio/ulc-vasprintf-tests: New file.
62374         * modules/unistdio/ulc-vsnprintf-tests: New file.
62375         * modules/unistdio/ulc-vsprintf-tests: New file.
62376         * modules/unistdio/u8-asnprintf-tests: New file.
62377         * modules/unistdio/u8-vasnprintf-tests: New file.
62378         * modules/unistdio/u8-vasprintf-tests: New file.
62379         * modules/unistdio/u8-vsnprintf-tests: New file.
62380         * modules/unistdio/u8-vsprintf-tests: New file.
62381         * modules/unistdio/u16-asnprintf-tests: New file.
62382         * modules/unistdio/u16-vasnprintf-tests: New file.
62383         * modules/unistdio/u16-vasprintf-tests: New file.
62384         * modules/unistdio/u16-vsnprintf-tests: New file.
62385         * modules/unistdio/u16-vsprintf-tests: New file.
62386         * modules/unistdio/u32-asnprintf-tests: New file.
62387         * modules/unistdio/u32-vasnprintf-tests: New file.
62388         * modules/unistdio/u32-vasprintf-tests: New file.
62389         * modules/unistdio/u32-vsnprintf-tests: New file.
62390         * modules/unistdio/u32-vsprintf-tests: New file.
62391         * MODULES.html.sh (Unicode string functions): Add the new modules.
62392
62393 2007-07-01  Bruno Haible  <bruno@clisp.org>
62394
62395         * lib/sprintf.c (sprintf): Limit the available length estimation,
62396         to avoid address wraparound.
62397         * lib/vsprintf.c (vsprintf): Likewise.
62398         * modules/sprintf-posix (Dependencies): Add stdint.
62399         * modules/vsprintf-posix (Dependencies): Likewise.
62400
62401 2007-07-01  Bruno Haible  <bruno@clisp.org>
62402
62403         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
62404         Windows PATH as well. Conservative double-quoting. Comments.
62405
62406 2007-07-01  Bruno Haible  <bruno@clisp.org>
62407             Eric Blake  <ebb9@byu.net>
62408             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62409
62410         * gnulib-tool (self_abspathname): Fix algorithm to cope with
62411         empty components in $PATH, denoting '.'.
62412
62413 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62414
62415         * gnulib-tool: Fix indentation.
62416         (func_create_megatestdir): Likewise.
62417         Report by Bruno Haible.
62418
62419 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62420
62421         Sync from Automake.
62422         * build-aux/gnupload: Fix shell portability issues with for loops.
62423         Report by Karl Berry.
62424
62425 2007-06-29  Simon Josefsson  <simon@josefsson.org>
62426
62427         * build-aux/maint.mk (POURL): Use translationproject.org.
62428
62429 2007-06-27  Simon Josefsson  <simon@josefsson.org>
62430             Bruno Haible  <bruno@clisp.org>
62431
62432         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
62433         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
62434         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
62435         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
62436         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
62437
62438 2007-06-27  Bruno Haible  <bruno@clisp.org>
62439
62440         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
62441         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
62442
62443 2007-06-26  Karl Berry  <karl@gnu.org>
62444
62445         * MODULES.html.sh: remove xreadlink-with-size.
62446
62447 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62448
62449         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
62450         method that I hope also handles the double-include problem noted
62451         by Bruno Haible in
62452         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
62453
62454 2007-06-23  Bruno Haible  <bruno@clisp.org>
62455
62456         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62457         Don't let the 'mostlyclean' target fail if the last subdirectory could
62458         not be removed.
62459         Reported by Karl Berry.
62460
62461 2007-06-23  Bruno Haible  <bruno@clisp.org>
62462
62463         * gnulib-tool (echo): Add a speedier workaround for ksh.
62464         * tests/test-echo.sh: Likewise.
62465
62466 2007-06-23  Bruno Haible  <bruno@clisp.org>
62467
62468         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
62469         * tests/test-echo.sh: Likewise.
62470
62471 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62472
62473         * gnulib-tool (IFS): Initialize early, so we don't set it to
62474         empty later.
62475         (self_abspathname): Rewrite algorithm to set it, reindent.
62476         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
62477         (func_create_megatestdir): Merge some sed scripts.
62478
62479 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62480
62481         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
62482         exposed by Sun Studio 11 cc on Solaris 8.
62483
62484 2007-06-22  Bruno Haible  <bruno@clisp.org>
62485
62486         * gnulib-tool (echo): Ensure the echo primitive does not interpret
62487         backslashes.
62488         * tests/test-echo.sh: New file.
62489
62490 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62491
62492         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
62493         simplify `sed_replace_build_aux' scripts, they are portable but
62494         echoing them with `echo' is not.
62495         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
62496
62497 2007-06-21  Karl Berry  <karl@gnu.org>
62498
62499         * config/srclist.txt: guess we can't handle the licenses via
62500         srclist at the moment.
62501
62502 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62503
62504         * MODULES.html.sh: Add include_next.
62505         * modules/include_next: New file.
62506
62507 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62508
62509         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
62510         INCLUDE_NEXT.
62511         (gl_CHECK_NEXT_HEADERS): New macro.
62512         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
62513         the obsolescent gl_ABSOLUTE_HEADER.
62514         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
62515         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
62516         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
62517         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
62518         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
62519         * m4/math_h.m4 (gl_MATH_H): Likewise.
62520         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
62521         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
62522         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
62523         * m4/stdint.m4 (gl_STDINT_H): Likewise.
62524         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
62525         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
62526         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
62527         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
62528         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
62529         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
62530         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
62531         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
62532         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
62533         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
62534         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
62535         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62536         * m4/inttypes.m4 (gl_INTTYPES_H): Define
62537         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
62538         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
62539         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
62540         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
62541         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
62542         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
62543         * lib/float_.h: Likewise.
62544         * lib/inttypes_.h: Likewise.
62545         * lib/math_.h: Likewise.
62546         * lib/search_.h: Likewise.
62547         * lib/signal_.h: Likewise.
62548         * lib/stdint_.h: Likewise.
62549         * lib/stdio_.h: Likewise.
62550         * lib/stdlib_.h: Likewise.
62551         * lib/string_.h: Likewise.
62552         * lib/sys_stat_.h: Likewise.
62553         * lib/sys_time_.h: Likewise.
62554         * lib/time_.h: Likewise.
62555         * lib/unistd_.h: Likewise.
62556         * lib/wchar_.h: Likewise.
62557         * lib/wctype_.h: Likewise.
62558         * lib/dirent_.h: Likewise.
62559         * lib/iconv_.h: Likewise.
62560         * lib/locale_.h: Likewise.
62561         * lib/netinet_in_.h: Likewise.
62562         * lib/sys_select_.h: Likewise.
62563         * lib/sys_socket_.h: Likewise.
62564         * lib/sysexits_.h: Likewise.
62565         * modules/fcntl (Depends-on): Depend on include_next, not
62566         absolute_header.
62567         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
62568         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
62569         * modules/fchdir: Likewise.
62570         * modules/float: Likewise.
62571         * modules/iconv_open: Likewise.
62572         * modules/inttypes: Likewise.
62573         * modules/locale: Likewise.
62574         * modules/math: Likewise.
62575         * modules/netinet_in: Likewise.
62576         * modules/search: Likewise.
62577         * modules/signal: Likewise.
62578         * modules/stdint: Likewise.
62579         * modules/stdio: Likewise.
62580         * modules/stdlib: Likewise.
62581         * modules/string: Likewise.
62582         * modules/sys_select: Likewise.
62583         * modules/sys_socket: Likewise.
62584         * modules/sys_stat: Likewise.
62585         * modules/sys_time: Likewise.
62586         * modules/sysexits: Likewise.
62587         * modules/time: Likewise.
62588         * modules/unistd: Likewise.
62589         * modules/wchar: Likewise.
62590         * modules/wctype: Likewise.
62591         * modules/sys_stat: Change maintainer to "all".
62592         * modules/unistd: Likewise.
62593
62594 2007-06-20  Karl Berry  <karl@gnu.org>
62595
62596         * config/srclist.txt: track www changes in license files.
62597
62598 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
62599
62600         * build-aux/bootstrap: Remove stray dot.
62601         Make sure build_aux settings are honored when linking
62602         gnulib_extra_files.
62603
62604 2007-06-19  Eric Blake  <ebb9@byu.net>
62605
62606         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
62607         Allow compilation on cygwin.
62608
62609 2007-06-19  Jim Meyering  <jim@meyering.net>
62610
62611         xreadlink-with-size: Remove module.  No longer used.
62612         Ex-callers now use xreadlink or mreadlink-with-size.
62613         * modules/xreadlink-with-size: Remove module.
62614         * lib/xreadlink-with-size.c: Remove file.
62615         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
62616         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
62617         just before the function definition *is* accurate.
62618
62619         Eliminate one way canonicalize_filename_mode could exit.
62620         * lib/canonicalize.c (canonicalize_filename_mode):
62621         Use mreadlink_with_size, not xreadlink_with_size.
62622
62623 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
62624
62625         Detect porting problems to FreeBSD/arm, which has time_t wider than
62626         long int.  Original problem reported for GNU diff by Xin Li in
62627         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
62628         * modules/getdate (Depends-on): Add intprops, verify.
62629         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
62630         is an integer type no wider than long int.
62631
62632 2007-06-18  Jim Meyering  <jim@meyering.net>
62633
62634         New module: mreadlink-with-size.
62635         * MODULES.html.sh: Add mreadlink-with-size.
62636         * modules/mreadlink-with-size: New module
62637         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
62638         not xreadlink-with-size.
62639         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
62640
62641 2007-06-16  Bruno Haible  <bruno@clisp.org>
62642
62643         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
62644         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
62645         Reported by Gary V. Vaughan <gary@gnu.org>.
62646
62647 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
62648
62649         Revamp lchown so that it lives in unistd.h where it belongs.
62650         * lib/lchown.h: Remove.
62651         * lib/dirchownmod.c: Don't include lib/lchown.h.
62652         * lib/fchownat.c: Likewise.
62653         * lib/openat.c: Likewise.
62654         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
62655         does not follow symlinks.
62656         (EOPNOTSUPP): Define if not defined.
62657         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
62658         is defined to 0.
62659         (lchown): New decl.
62660         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
62661         Do not check for lchown decl.
62662         Set REPLACE_LCHOWN.
62663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
62664         REPLACE_LCHOWN.
62665         * modules/chown: Make it clear it follows symlinks.
62666         * modules/lchown: Make it clear it doesn't follow symlinks.
62667         (Files): Remove lib/lchown.h
62668         (Depends-on): Add unistd.
62669         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
62670         (Include): Include <unistd.h>, not "lchown.h".
62671         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
62672         REPLACE_LCHOWN.
62673
62674 2007-06-15  Jim Meyering  <jim@meyering.net>
62675
62676         Change license (GPL to LGPL) of fsusage and dependents.
62677         * modules/fsusage (License): Change to LGPL.
62678         * modules/full-read (License): Likewise.
62679         * modules/full-write (License): Likewise.
62680         * modules/safe-read (License): Likewise.
62681         * modules/safe-write (License): Likewise.
62682
62683 2007-06-14  Ben Pfaff  <blp@gnu.org>
62684
62685         Missing part of allocsa -> malloca transition.
62686         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
62687         gl_MALLOCA.
62688
62689 2007-06-12  Bruno Haible  <bruno@clisp.org>
62690
62691         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
62692         to ia64, x86_64, i386.
62693         Reported by Eric Blake.
62694
62695 2007-06-12  Bruno Haible  <bruno@clisp.org>
62696
62697         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
62698         cross-compiling to x86_64.
62699
62700 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
62701
62702         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
62703         glitch reported by Ralf Wildenhues in
62704         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
62705
62706         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
62707         Vin Shelton.
62708
62709 2007-06-11  Bruno Haible  <bruno@clisp.org>
62710
62711         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
62712         replacement string.
62713         Reported by Eric Blake.
62714
62715 2007-06-10  Bruno Haible  <bruno@clisp.org>
62716
62717         Prepare vasnprintf code for use with Unicode strings.
62718         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
62719         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
62720         TYPE_U32_STRING.
62721         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
62722         a_u32_string variants.
62723         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
62724         * lib/printf-args.c: Don't include config.h and the specification
62725         header if PRINTF_FETCHARGS is already defined.
62726         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
62727         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
62728         TYPE_U16_STRING, TYPE_U32_STRING.
62729         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
62730         u16_directive, u16_directives, u32_directive, u32_directives): New
62731         types.
62732         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
62733         New declarations.
62734         * lib/printf-parse.c: Don't include config.h and the specification
62735         header if PRINTF_PARSE is already defined. Eliminate the set of
62736         parameters for WIDE_CHAR_VERSION; the user of this file must provide
62737         them now. Include c-ctype.h.
62738         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
62739         directive and CHAR_T_ONLY_ASCII.
62740         * lib/vasnprintf.c: Don't include config.h and the specification header
62741         if VASNPRINTF is already defined.
62742         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
62743         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
62744         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
62745         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
62746         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
62747         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
62748         code accordingly.
62749         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
62750         pad_ourselves also in this case, with the 'c' and 's' directives, and
62751         with a different notion of "width".
62752         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
62753
62754 2007-06-10  Bruno Haible  <bruno@clisp.org>
62755
62756         * modules/unistr/u32-mbsnlen: New file.
62757         * lib/unistr/u32-mbsnlen.c: New file.
62758
62759         * modules/unistr/u16-mbsnlen: New file.
62760         * lib/unistr/u16-mbsnlen.c: New file.
62761
62762         * modules/unistr/u8-mbsnlen: New file.
62763         * lib/unistr/u8-mbsnlen.c: New file.
62764
62765         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
62766         declarations.
62767
62768 2007-06-10  Bruno Haible  <bruno@clisp.org>
62769
62770         * lib/string_.h (mbsnlen): New declaration.
62771         * lib/mbsnlen.c: New file.
62772         * m4/mbsnlen.m4: New file.
62773         * modules/mbsnlen: New file.
62774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
62775         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
62776         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
62777
62778 2007-06-10  Bruno Haible  <bruno@clisp.org>
62779
62780         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
62781
62782 2007-06-10  Bruno Haible  <bruno@clisp.org>
62783
62784         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
62785         * lib/mbuiter.h: Likewise.
62786
62787 2007-06-10  Bruno Haible  <bruno@clisp.org>
62788
62789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
62790         declaration.
62791
62792 2007-06-10  Karl Berry  <karl@gnu.org>
62793
62794         * config/srclist.txt: remove gettext entries, Bruno prefers
62795         to update individually.
62796
62797 2007-06-10  Bruno Haible  <bruno@clisp.org>
62798
62799         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
62800         'maxlen'. Ensure only length + width bytes are allocated, not
62801         length + 1 + width.
62802
62803 2007-06-09  Bruno Haible  <bruno@clisp.org>
62804
62805         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
62806         (CHAR_T): Remove macro.
62807         (VASNPRINTF): Update.
62808
62809 2007-06-09  Bruno Haible  <bruno@clisp.org>
62810
62811         * MODULES.html.sh (Unicode string functions): Add the new modules.
62812
62813         * modules/uniconv/u32-conv-to-enc: New file.
62814         * lib/uniconv/u32-conv-to-enc.c: New file.
62815         * modules/uniconv/u32-conv-to-enc-tests: New file.
62816         * tests/uniconv/test-u32-conv-to-enc.c: New file.
62817
62818         * modules/uniconv/u16-conv-to-enc: New file.
62819         * lib/uniconv/u16-conv-to-enc.c: New file.
62820         * lib/uniconv/u-conv-to-enc.h: New file.
62821         * modules/uniconv/u16-conv-to-enc-tests: New file.
62822         * tests/uniconv/test-u16-conv-to-enc.c: New file.
62823
62824         * modules/uniconv/u8-conv-to-enc: New file.
62825         * lib/uniconv/u8-conv-to-enc.c: New file.
62826         * modules/uniconv/u8-conv-to-enc-tests: New file.
62827         * tests/uniconv/test-u8-conv-to-enc.c: New file.
62828
62829         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
62830         u32_conv_to_encoding): New declarations.
62831
62832 2007-06-09  Bruno Haible  <bruno@clisp.org>
62833
62834         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
62835
62836 2007-06-09  Bruno Haible  <bruno@clisp.org>
62837
62838         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
62839         * modules/malloca: Renamed from modules/allocsa, updated.
62840         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
62841         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
62842         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
62843         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
62844         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
62845         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
62846         * modules/xmalloca: Renamed from modules/xallocsa, updated.
62847         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
62848         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
62849         * modules/c-strcasestr (Depends-on): Update.
62850         * lib/c-strcasestr.c: Update.
62851         * modules/c-strstr (Depends-on): Update.
62852         * lib/c-strstr.c: Update.
62853         * modules/canonicalize-lgpl (Depends-on): Update.
62854         * lib/canonicalize-lgpl.c: Update.
62855         * modules/clean-temp (Depends-on): Update.
62856         * lib/clean-temp.c: Update.
62857         * modules/csharpcomp (Depends-on): Update.
62858         * lib/csharpcomp.c: Update.
62859         * modules/csharpexec (Depends-on): Update.
62860         * lib/csharpexec.c: Update.
62861         * modules/javacomp (Depends-on): Update.
62862         * lib/javacomp.c: Update.
62863         * modules/javaexec (Depends-on): Update.
62864         * lib/javaexec.c: Update.
62865         * modules/mbscasestr (Depends-on): Update.
62866         * lib/mbscasestr.c: Update.
62867         * modules/mbsstr (Depends-on): Update.
62868         * lib/mbsstr.c: Update.
62869         * modules/setenv (Depends-on): Update.
62870         * lib/setenv.c: Update.
62871         * modules/strcasestr (Depends-on): Update.
62872         * lib/strcasestr.c: Update.
62873         * modules/striconveha (Depends-on): Update.
62874         * lib/striconveha.c: Update.
62875         * modules/relocatable-prog-wrapper (Files): Update.
62876         * lib/relocwrapper.c: Update.
62877         * build-aux/install-reloc: Update.
62878         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
62879
62880 2007-06-08  Bruno Haible  <bruno@clisp.org>
62881
62882         Port to uClibc.
62883         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
62884         * lib/fpurge.c (fpurge): Likewise.
62885         * lib/freading.c (freading): Likewise.
62886         * lib/fseeko.c (rpl_fseeko): Likewise.
62887         * lib/fseterr.c (fseterr): Likewise.
62888         * lib/fwriting.c (fwriting): Likewise.
62889         * tests/test-fflush.c (main): Avoid a failure on uClibc.
62890
62891 2007-06-08  Bruno Haible  <bruno@clisp.org>
62892
62893         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
62894         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
62895         * modules/gettext (Files): Add m4/intlmacosx.m4.
62896
62897 2007-06-07  Bruno Haible  <bruno@clisp.org>
62898
62899         * modules/localename-tests: New file.
62900         * tests/test-localename.c: New file.
62901
62902         New module 'localename'.
62903         * lib/localename.h: New file.
62904         * lib/localename.c: New file, from GNU gettext.
62905         * m4/localename.m4: New file.
62906         * modules/localename: New file.
62907
62908 2007-06-07  Bruno Haible  <bruno@clisp.org>
62909
62910         Work around the lack of <wchar.h> on some builds of uClibc.
62911         * doc/headers/wchar.texi: Update.
62912         * lib/wchar_.h: Include <wchar.h> only if it exists.
62913         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
62914         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
62915         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
62916         doesn't exist.
62917         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
62918         * modules/mbfile (Depends-on): Add wchar.
62919         * modules/mbiter (Depends-on): Likewise.
62920         * modules/mbuiter (Depends-on): Likewise.
62921         Reported by Simon Josefsson.
62922
62923 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
62924
62925         Work around problem reported by Steven M. Schweda in
62926         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
62927         Tru64 5.1B with the Compaq compiler environment installed declares
62928         an 'isblank' function but does not define it in the C library.
62929         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
62930         * lib/regex_internal.h (isblank): Likewise.
62931         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
62932         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62933
62934 2007-06-05  Bruno Haible  <bruno@clisp.org>
62935
62936         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
62937         ia64.
62938         * modules/printf-safe: New file.
62939         * modules/fprintf-posix (Depends-on): Add printf-safe.
62940         * modules/printf-posix (Depends-on): Likewise.
62941         * modules/snprintf-posix (Depends-on): Likewise.
62942         * modules/sprintf-posix (Depends-on): Likewise.
62943         * modules/vasnprintf-posix (Depends-on): Likewise.
62944         * modules/vasprintf-posix (Depends-on): Likewise.
62945         * modules/vfprintf-posix (Depends-on): Likewise.
62946         * modules/vprintf-posix (Depends-on): Likewise.
62947         * modules/vsnprintf-posix (Depends-on): Likewise.
62948         * modules/vsprintf-posix (Depends-on): Likewise.
62949         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
62950         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
62951         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
62952         "no" on i386, x86_64, ia64.
62953         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
62954         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
62955         on i386, x86_64, ia64.
62956         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
62957         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
62958         on i386, x86_64, ia64.
62959         * tests/test-vasnprintf-posix.c: Include float.h.
62960         (LDBL80_WORDS): New macro.
62961         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
62962         on i386, x86_64, ia64.
62963         * tests/test-vasprintf-posix.c: Include float.h.
62964         (LDBL80_WORDS): New macro.
62965         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
62966         on i386, x86_64, ia64.
62967         * tests/test-snprintf-posix.c: Include float.h.
62968         * tests/test-sprintf-posix.c: Likewise.
62969         * tests/test-vsnprintf-posix.c: Likewise.
62970         * tests/test-vsprintf-posix.c: Likewise.
62971
62972 2007-06-05  Bruno Haible  <bruno@clisp.org>
62973
62974         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
62975         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
62976         non-IEEE numbers on i386, x86_64, ia64.
62977         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
62978         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
62979         * tests/test-isnanl.h: Include float.h.
62980         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
62981
62982 2007-06-05  Bruno Haible  <bruno@clisp.org>
62983
62984         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
62985         also the %a / %A. Handle the %a / %A code before this extra handling.
62986
62987 2007-06-05  Bruno Haible  <bruno@clisp.org>
62988
62989         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
62990         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
62991
62992 2007-06-05  Bruno Haible  <bruno@clisp.org>
62993
62994         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
62995         typo in variable name.
62996
62997 2007-06-05  Eric Blake  <ebb9@byu.net>
62998
62999         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
63000         Reported by Simon Josefsson.
63001
63002 2007-06-04  Bruno Haible  <bruno@clisp.org>
63003
63004         Avoid test failures on some PowerPC platforms.
63005         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
63006         Define differently for PowerPC.
63007         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
63008         Reported by Gary V. Vaughan <gary@gnu.org>.
63009
63010 2007-06-02  Bruno Haible  <bruno@clisp.org>
63011
63012         Fix test-stdint failure on FreeBSD/ia64.
63013         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
63014         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
63015         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
63016         * doc/headers/stdint.texi: Update.
63017
63018 2007-06-01  Bruno Haible  <bruno@clisp.org>
63019
63020         * tests/test-binary-io.c (main): Pass a third argument to open().
63021         Reported by Gary V. Vaughan <gary@gnu.org>.
63022
63023 2007-06-01  Bruno Haible  <bruno@clisp.org>
63024
63025         * doc/functions/frexpl.texi: Update for mingw.
63026
63027 2007-06-01  Bruno Haible  <bruno@clisp.org>
63028
63029         * tests/test-lseek.c (main): Disable test of errno for invalid third
63030         argument.
63031         * doc/functions/lseek.texi: Update.
63032         Reported by Gary V. Vaughan <gary@gnu.org>.
63033
63034 2007-05-28  Bruno Haible  <bruno@clisp.org>
63035
63036         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
63037
63038 2007-05-31  Eric Blake  <ebb9@byu.net>
63039
63040         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
63041         cross compiling.
63042
63043 2007-05-30  Eric Blake  <ebb9@byu.net>
63044         and Bruno Haible  <bruno@clisp.org>
63045
63046         Work around mingw test failures exposed by m4-1.4.9b.
63047         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
63048         * tests/test-unistd.c: Disable uid_t and git_t tests for the
63049         moment.
63050
63051 2007-05-30  Bruno Haible  <bruno@clisp.org>
63052
63053         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
63054         assuming that they are closed. Needed on HP-UX 11.
63055
63056 2007-05-29  Bruno Haible  <bruno@clisp.org>
63057
63058         Fix a problem with #include_next.
63059         * lib/dirent_.h: Split the double-inclusion guard.
63060         * lib/fcntl_.h: Likewise.
63061         * lib/float_.h: Likewise.
63062         * lib/iconv_.h: Likewise.
63063         * lib/inttypes_.h: Likewise.
63064         * lib/locale_.h: Likewise.
63065         * lib/math_.h: Likewise.
63066         * lib/netinet_in_.h: Likewise.
63067         * lib/search_.h: Likewise.
63068         * lib/signal_.h: Likewise.
63069         * lib/stdint_.h: Likewise.
63070         * lib/stdio_.h: Likewise.
63071         * lib/stdlib_.h: Likewise.
63072         * lib/string_.h: Likewise.
63073         * lib/sys_select_.h: Likewise.
63074         * lib/sys_socket_.h: Likewise.
63075         * lib/sys_stat_.h: Likewise.
63076         * lib/sys_time_.h: Likewise.
63077         * lib/sysexits_.h: Likewise.
63078         * lib/time_.h: Likewise.
63079         * lib/unistd_.h: Likewise.
63080         * lib/wchar_.h: Likewise.
63081         * lib/wctype_.h: Likewise.
63082
63083 2007-05-29  Bruno Haible  <bruno@clisp.org>
63084
63085         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
63086         for the moment.
63087
63088 2007-05-29  Bruno Haible  <bruno@clisp.org>
63089
63090         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
63091         invocation.
63092         Reported by Eric Blake.
63093
63094 2007-05-29  Bruno Haible  <bruno@clisp.org>
63095
63096         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
63097         compiling case.
63098
63099 2007-05-29  Eric Blake  <ebb9@byu.net>
63100             Bruno Haible  <bruno@clisp.org>
63101
63102         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
63103         cross compiles.
63104
63105 2007-05-28  Eric Blake  <ebb9@byu.net>
63106
63107         * modules/closein-tests (test_closein_LDADD): Support test on
63108         cygwin with libtool.
63109
63110 2007-05-28  Bruno Haible  <bruno@clisp.org>
63111
63112         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
63113         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63114         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63115         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63116         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63117         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63118         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63119         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63120         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63121
63122 2007-05-28  Eric Blake  <ebb9@byu.net>
63123
63124         Unconditionally include <config.h> in unit tests.
63125         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
63126         * tests/test-allocsa.c, tests/test-arcfour.c,
63127         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
63128         tests/test-array_list.c, tests/test-array_oset.c,
63129         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
63130         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
63131         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
63132         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
63133         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
63134         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
63135         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
63136         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
63137         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
63138         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
63139         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
63140         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
63141         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
63142         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
63143         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
63144         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
63145         test-md5.c, test-memmem.c, test-printf-posix.c,
63146         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
63147         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
63148         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
63149         test-strcasestr.c, test-striconv.c, test-striconveh.c,
63150         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
63151         test-vasnprintf-posix2.c, test-vasnprintf.c,
63152         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
63153         test-vfprintf-posix.c, test-vprintf-posix.c,
63154         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
63155         test-xvasprintf.c: Likewise.
63156
63157 2007-05-28  Bruno Haible  <bruno@clisp.org>
63158
63159         * gnulib-tool (func_import): Remember the --with-tests command-line
63160         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
63161         Reported by Eric Blake.
63162
63163 2007-05-28  Bruno Haible  <bruno@clisp.org>
63164
63165         * modules/ftell-tests: New file.
63166         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
63167         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
63168
63169         * lib/ftell.c: New file.
63170         * modules/ftell: New file.
63171         * m4/ftell.m4: New file.
63172         * doc/functions/ftell.texi: Update.
63173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
63174         REPLACE_FTELL.
63175         * lib/stdio_.h (rpl_ftell): New declaration.
63176         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
63177         REPLACE_FTELL.
63178
63179 2007-05-28  Eric Blake  <ebb9@byu.net>
63180
63181         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
63182
63183 2007-05-28  Bruno Haible  <bruno@clisp.org>
63184
63185         * modules/fseek-tests: New file.
63186         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
63187         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
63188
63189         * lib/fseek.c: New file.
63190         * modules/fseek: New file.
63191         * m4/fseek.m4: New file.
63192         * doc/functions/fseek.texi: Update.
63193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
63194         REPLACE_FSEEK.
63195         * lib/stdio_.h (rpl_fseek): New declaration.
63196         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
63197         REPLACE_FSEEK.
63198
63199 2007-05-28  Bruno Haible  <bruno@clisp.org>
63200
63201         * lib/stdio_.h (fflush): More comments.
63202
63203 2007-05-28  Bruno Haible  <bruno@clisp.org>
63204
63205         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
63206         runtime test.
63207
63208 2007-05-28  Eric Blake  <ebb9@byu.net>
63209
63210         Improve lseek module.
63211         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
63212         * lib/unistd_.h (lseek): Scale back link warning message.
63213         * tests/test-lseek.c: Beef up test.
63214         * tests/test-lseek.sh: Exercise more facets of lseek.
63215         Reported by Bruno Haible.
63216
63217 2007-05-28  Bruno Haible  <bruno@clisp.org>
63218
63219         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
63220         to define.
63221
63222 2007-05-27  Bruno Haible  <bruno@clisp.org>
63223
63224         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
63225
63226 2007-05-27  Bruno Haible  <bruno@clisp.org>
63227
63228         * modules/openmp: New file.
63229         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
63230         Noah Misch.
63231
63232 2007-05-26  Bruno Haible  <bruno@clisp.org>
63233
63234         * modules/chdir-long (Depends-on): Add fchdir.
63235         * modules/chdir-safer (Depends-on): Likewise.
63236         * modules/fts (Depends-on): Likewise.
63237         * modules/fts-lgpl (Depends-on): Likewise.
63238         * modules/openat (Depends-on): Likewise.
63239         * modules/savewd (Depends-on): Likewise.
63240
63241 2007-05-24  Eric Blake  <ebb9@byu.net>
63242
63243         Fix lseek on mingw.
63244         * modules/lseek: New module.
63245         * m4/lseek.m4: New file.
63246         * lib/lseek.c: New file.
63247         * modules/lseek-tests: New file.
63248         * tests/test-lseek.c: New file.
63249         * tests/test-lseek.sh: New file.
63250         * MODULES.html.sh: Document lseek module.
63251         * modules/fflush (Depends-on): Add lseek, fseeko.
63252         * modules/fseeko (Depends-on): Likewise.
63253         * modules/ftello (Depends-on): Likewise.
63254         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
63255         broken.
63256         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
63257         broken.
63258         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
63259         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
63260         * lib/ftello.c (rpl_ftello): Likewise.
63261         * tests/test-fseeko.c (main): Test this.
63262         * tests/test-fseeko.sh: Likewise.
63263         * tests/test-ftello.c (main): Likewise.
63264         * tests/test-ftello.sh: Likewise.
63265         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
63266         implies replacing fseek.
63267         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
63268         HAVE_FTELLO.
63269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
63270         * modules/unistd (Makefile.am): Likewise.
63271         * lib/unistd_.h (lseek): Declare a replacement.
63272         * doc/functions/lseek.texi (lseek): Document this fix.
63273         * doc/functions/fseek.texi (fseek): Likewise.
63274         * doc/functions/ftell.texi (ftell): Likewise.
63275
63276 2007-05-24  Bruno Haible  <bruno@clisp.org>
63277
63278         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
63279         in the printed representation of a NaN.
63280         * tests/test-vasprintf-posix.c (test_function): Likewise.
63281         * tests/test-snprintf-posix.h (test_function): Likewise.
63282         * tests/test-sprintf-posix.h (test_function): Likewise.
63283         Reported by Eric Blake.
63284
63285 2007-05-23  Eric Blake  <ebb9@byu.net>
63286
63287         Fix fseeko/ftello on cygwin 1.5.24.
63288         * doc/functions/fseeko.texi (fseeko): Document the fix.
63289         * doc/functions/ftello.texi (ftello): Document the fix.
63290         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
63291         * doc/functions/stdout.text (stdout): New file.
63292         * doc/functions/stderr.text (stderr): New file.
63293         * doc/gnulib.texi (Function Substitutes): Use new files.
63294         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
63295         prior to 1.7.0.
63296         * tests/test-ftello.c (main): Likewise for ftello.
63297         * tests/test-fseeko.sh: New file.
63298         * tests/test-ftello.sh: New file.
63299         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
63300         with seekable stdin.
63301         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
63302         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
63303         (gl_REPLACE_FSEEKO): New macro.
63304         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
63305         * modules/fseeko (Files): Distribute fseeko.c.
63306         * modules/ftello (Files): Distribute ftello.c.
63307         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
63308         mode.
63309         * lib/ftello.c (rpl_ftello): New file.
63310         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
63311         fseeko, ftello.
63312         (gl_STDIN_LARGE_OFFSET): New macro.
63313         * modules/stdio (Makefile.am): Perform the replacement.
63314         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
63315
63316 2007-05-23  Bruno Haible  <bruno@clisp.org>
63317
63318         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
63319         GNULIB_POSIXCHECK is defined.
63320
63321 2007-05-21  Bruno Haible  <bruno@clisp.org>
63322
63323         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
63324         Check also the output for NaN arguments. When cross-compiling, guess
63325         no on IRIX.
63326         * lib/vasnprintf.c: Update comments.
63327         * tests/test-vasnprintf-posix.c (strisnan): New function.
63328         (test_function): Use it.
63329         * tests/test-vasprintf-posix.c (strisnan): New function.
63330         (test_function): Use it.
63331         * tests/test-snprintf-posix.h (strisnan): New function.
63332         (test_function): Use it.
63333         * tests/test-sprintf-posix.h (strisnan): New function.
63334         (test_function): Use it.
63335         Reported by Eric Blake.
63336
63337 2007-05-20  Bruno Haible  <bruno@clisp.org>
63338
63339         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
63340         numbers that fails on BeOS.
63341         * doc/functions/frexpl.texi: Update.
63342
63343 2007-05-20  Jim Meyering  <jim@meyering.net>
63344
63345         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
63346         forced upon us by glibc-2.6.
63347
63348 2007-05-20  Bruno Haible  <bruno@clisp.org>
63349
63350         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
63351         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
63352         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
63353         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
63354         NEED_PRINTF_INFINITE.
63355         (is_infinitel): New function.
63356         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
63357         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
63358         gl_PREREQ_VASNPRINTF_INFINITE.
63359         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
63360         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63361         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
63362         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
63363         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
63364         gl_PREREQ_VASNPRINTF_INFINITE.
63365         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63366         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63367         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63368         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63369         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63370         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63371         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63372         * doc/functions/fprintf.texi: Update.
63373         * doc/functions/printf.texi: Update.
63374         * doc/functions/snprintf.texi: Update.
63375         * doc/functions/sprintf.texi: Update.
63376         * doc/functions/vfprintf.texi: Update.
63377         * doc/functions/vprintf.texi: Update.
63378         * doc/functions/vsnprintf.texi: Update.
63379         * doc/functions/vsprintf.texi: Update.
63380
63381 2007-05-20  Bruno Haible  <bruno@clisp.org>
63382
63383         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
63384         was not found in libc.
63385         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63386
63387 2007-05-20  Bruno Haible  <bruno@clisp.org>
63388
63389         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
63390         printed as "-nan" instead of "nan".
63391         * tests/test-vasprintf-posix.c (test_function): Likewise.
63392         * tests/test-snprintf-posix.h (test_function): Likewise.
63393         * tests/test-sprintf-posix.h (test_function): Likewise.
63394         Needed for HP-UX 11.
63395
63396 2007-05-20  Jim Meyering  <jim@meyering.net>
63397
63398         Fix buggy test for the fchownat-deref bug.
63399         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
63400         symlink required for the run-test.  Without it, this test would
63401         always declare that fchownat doesn't work, and client code would
63402         unnecessarily use the replacement function with fixed libc.
63403         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
63404         Reported by Greg Schafer.
63405
63406 2007-05-19  Bruno Haible  <bruno@clisp.org>
63407
63408         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
63409         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
63410         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
63411         Needed for IRIX 6.5 and Solaris 2.5.1.
63412
63413 2007-05-19  Bruno Haible  <bruno@clisp.org>
63414
63415         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
63416         (test_function): Skip tests involving -0.0 on platforms where
63417         -0.0 = 0.0.
63418         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
63419         (test_function): Skip tests involving -0.0 on platforms where
63420         -0.0 = 0.0.
63421         * tests/test-snprintf-posix.h (have_minus_zero): New function.
63422         (test_function): Skip tests involving -0.0 on platforms where
63423         -0.0 = 0.0.
63424         * tests/test-sprintf-posix.h (have_minus_zero): New function.
63425         (test_function): Skip tests involving -0.0 on platforms where
63426         -0.0 = 0.0.
63427         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
63428         tests.
63429         * tests/test-printf-posix.h (test_function): Likewise.
63430         * tests/test-printf-posix.output: Remove all -0.0 related results.
63431         Needed for IRIX 6.5.
63432
63433 2007-05-19  Bruno Haible  <bruno@clisp.org>
63434
63435         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
63436         printed as "nan0x7fffffff" instead of "nan".
63437         * tests/test-vasprintf-posix.c (test_function): Likewise.
63438         * tests/test-snprintf-posix.h (test_function): Likewise.
63439         * tests/test-sprintf-posix.h (test_function): Likewise.
63440         * tests/test-fprintf-posix.h (NaN): Remove macro.
63441         (test_function): Remove all NaN related tests.
63442         * tests/test-printf-posix.h (NaN): Remove macro.
63443         (test_function): Remove all NaN related tests.
63444         * tests/test-printf-posix.output: Remove all NaN related results.
63445         Needed for IRIX 6.5.
63446
63447 2007-05-19  Bruno Haible  <bruno@clisp.org>
63448
63449         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
63450         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
63451
63452 2007-05-19  Bruno Haible  <bruno@clisp.org>
63453
63454         * lib/float_.h: New file.
63455         * m4/float_h.m4: New file.
63456         * modules/float: New file.
63457         * modules/isnanl (Dependencies): Add float.
63458         * modules/isnanl-nolibm (Dependencies): Likewise.
63459         * modules/mathl (Dependencies): Likewise.
63460         * modules/printf-frexpl (Dependencies): Likewise.
63461         * modules/signbit (Dependencies): Likewise.
63462         * modules/vasnprintf (Dependencies): Likewise.
63463         * doc/headers/float.texi: Update.
63464
63465 2007-05-19  Jim Meyering  <jim@meyering.net>
63466
63467         * lib/utimens.c (gl_futimens): Rename from futimens,
63468         now that glibc-2.6 declares futimens.
63469         * lib/utimens.h: Likewise.
63470
63471 2007-05-19  Bruno Haible  <bruno@clisp.org>
63472
63473         Avoid test failures on mingw.
63474         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
63475         * tests/test-printf-posix.sh: Likewise.
63476         * tests/test-vfprintf-posix.sh: Likewise.
63477         * tests/test-vprintf-posix.sh: Likewise.
63478
63479 2007-05-19  Bruno Haible  <bruno@clisp.org>
63480
63481         Fix *printf result for NaN, Inf, -0.0 on mingw.
63482         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
63483         * lib/vasnprintf.c: Include math.h and isnan.h.
63484         (is_infinite_or_zero): New function.
63485         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
63486         values in the %f, %F, %e, %E, %g, %G directives.
63487         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
63488         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63489         gl_PRINTF_INFINITE and test its result. Invoke
63490         gl_PREREQ_VASNPRINTF_INFINITE.
63491         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63492         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63493         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63494         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63495         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63496         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63497         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63498         * doc/functions/fprintf.texi: Update.
63499         * doc/functions/printf.texi: Update.
63500         * doc/functions/snprintf.texi: Update.
63501         * doc/functions/sprintf.texi: Update.
63502         * doc/functions/vfprintf.texi: Update.
63503         * doc/functions/vprintf.texi: Update.
63504         * doc/functions/vsnprintf.texi: Update.
63505         * doc/functions/vsprintf.texi: Update.
63506
63507 2007-05-19  Bruno Haible  <bruno@clisp.org>
63508
63509         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
63510         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
63511         Instead of multiplying with 10^k, set extra_zeroes to k.
63512         (scale10_round_long_double): Remove function.
63513
63514 2007-05-18  Bruno Haible  <bruno@clisp.org>
63515
63516         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
63517         introduced on 2007-05-06.
63518
63519 2007-05-18  Bruno Haible  <bruno@clisp.org>
63520
63521         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
63522         %g directives.
63523         * tests/test-vasprintf-posix.c (test_function): Likewise.
63524         * tests/test-snprintf-posix.h (test_function): Likewise.
63525         * tests/test-sprintf-posix.h (test_function): Likewise.
63526
63527 2007-05-18  Bruno Haible  <bruno@clisp.org>
63528
63529         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
63530         (strmatch): New function.
63531         (test_function): Test the %f directive on numbers of various exponents.
63532         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
63533         (strmatch): New function.
63534         (test_function): Test the %f directive on numbers of various exponents.
63535         * tests/test-snprintf-posix.h (strmatch): New function.
63536         (test_function): Test the %f directive on numbers of various exponents.
63537         * tests/test-sprintf-posix.h (strmatch): New function.
63538         (test_function): Test the %f directive on numbers of various exponents.
63539         * tests/test-snprintf-posix.c (SIZEOF): New macro.
63540         * tests/test-sprintf-posix.c (SIZEOF): New macro.
63541         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
63542         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
63543
63544 2007-05-18  Bruno Haible  <bruno@clisp.org>
63545
63546         Add support for 'long double' number output.
63547         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
63548         * lib/vasnprintf.c: Include math.h and float+.h.
63549         (mp_limb_t): New type.
63550         (GMP_LIMB_BITS): New macro.
63551         (mp_twolimb_t): New type.
63552         (GMP_TWOLIMB_BITS): New macro.
63553         (mpn_t): New type.
63554         (multiply, divide, convert_to_decimal, decode_long_double,
63555         scale10_round_long_double, scale10_round_decimal_long_double,
63556         floorlog10l): New functions.
63557         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
63558         for the %f, %F, %e, %E, %g, %G directives.
63559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
63560         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63561         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
63562         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
63563         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63564         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63565         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63566         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63567         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63568         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63569         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63570         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
63571         * modules/snprintf-posix (Depends-on): Likewise.
63572         * modules/sprintf-posix (Depends-on): Likewise.
63573         * modules/vasnprintf-posix (Depends-on): Likewise.
63574         * modules/vasprintf-posix (Depends-on): Likewise.
63575         * modules/vfprintf-posix (Depends-on): Likewise.
63576         * modules/vsnprintf-posix (Depends-on): Likewise.
63577         * modules/vsprintf-posix (Depends-on): Likewise.
63578         * modules/vasnprintf (Files): Add lib/float+.h.
63579         * doc/functions/fprintf.texi: Update.
63580         * doc/functions/printf.texi: Update.
63581         * doc/functions/snprintf.texi: Update.
63582         * doc/functions/sprintf.texi: Update.
63583         * doc/functions/vfprintf.texi: Update.
63584         * doc/functions/vprintf.texi: Update.
63585         * doc/functions/vsnprintf.texi: Update.
63586         * doc/functions/vsprintf.texi: Update.
63587
63588 2007-05-18  Bruno Haible  <bruno@clisp.org>
63589
63590         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
63591
63592 2007-05-18  Bruno Haible  <bruno@clisp.org>
63593
63594         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
63595         for printing 64-bit integers. Needed for mingw.
63596
63597 2007-05-18  Bruno Haible  <bruno@clisp.org>
63598
63599         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63600         gl_FUNC_FREXPL_WORKS.
63601         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
63602
63603 2007-05-18  Bruno Haible  <bruno@clisp.org>
63604
63605         * modules/frexpl-nolibm-tests: New file.
63606
63607         * modules/frexpl-nolibm: New file.
63608         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
63609
63610 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63611
63612         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
63613         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
63614         GCC 4.2, which otherwise issues a lot of warnings.
63615         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
63616         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
63617         Likewise.
63618         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
63619         * modules/iconv_open (iconv.h): Likewise.
63620         * modules/locale (locale.h): Likewise.
63621         * modules/netinet_in (netinet/in.h): Likewise.
63622         * modules/sys_select (sys_select.h): Likewise.
63623         * modules/sys_socket (sys/socket.h): Likewise.
63624         * modules/sys_stat (sys/stat.h): Likewise.
63625         * modules/sysexits (sysexits.h): Likewise.
63626         * modules/unistd (unistd.h): Likewise.
63627
63628 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63629
63630         * modules/closein-tests (Makefile.am): Distribute
63631         `test-closein.sh'.
63632
63633 2007-05-17  Bruno Haible  <bruno@clisp.org>
63634
63635         * tests/test-printf-posix.output: Renamed from
63636         tests/test-fprintf-posix.out.
63637         * modules/fprintf-posix-tests: Update.
63638         * modules/printf-posix-tests: Update.
63639         * modules/vfprintf-posix-tests: Update.
63640         * modules/vprintf-posix-tests: Update.
63641         * tests/test-fprintf-posix.sh: Update.
63642         * tests/test-printf-posix.sh: Update.
63643         * tests/test-vfprintf-posix.sh: Update.
63644         * tests/test-vprintf-posix.sh: Update.
63645         Reported by Ralf Wildenhues.
63646
63647 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63648
63649         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
63650         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
63651         GCC 4.2, which otherwise issues a lot of warnings.
63652         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
63653         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
63654         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
63655         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
63656         it should no longer be needed.
63657         * lib/string_.h: Likewise.
63658         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
63659         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
63660         * modules/inttypes (inttypes.h): Likewise.
63661         * modules/math (math.h): Likewise.
63662         * modules/search (search.h): Likewise.
63663         * modules/signal (signal.h): Likewise.
63664         * modules/stdint (stdint.h): Likewise.
63665         * modules/stdio (stdio.h): Likewise.
63666         * modules/stdlib (stdlib.h): Likewise.
63667         * modules/string (string.h): Likewise.
63668         * modules/sys_time (sys/time.h): Likewise.
63669         * modules/time (time.h): Likewise.
63670         * modules/wchar (wchar.h): Likewise.
63671         * modules/wctype (wtype.h): Likewise.
63672
63673 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63674
63675         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
63676
63677 2007-05-13  Bruno Haible  <bruno@clisp.org>
63678
63679         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
63680         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63681         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
63682         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63683         (gl_PREREQ_STRTOK_R): Don't require it here.
63684
63685 2007-05-13  Bruno Haible  <bruno@clisp.org>
63686
63687         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
63688         when used in C++ mode.
63689
63690 2007-05-12  Bruno Haible  <bruno@clisp.org>
63691
63692         * lib/linebuffer.h: Tweak doc.
63693         * lib/linebuffer.c: Likewise.
63694
63695 2007-05-12  James Youngman  <jay@gnu.org>
63696
63697         * lib/linebuffer.c (readlinebuffer_delim): New function,
63698         like readlinebuffer, but use a caller-specified delimiter.
63699         (readlinebuffer): Just call readlinebuffer_delim with '\n'
63700         as the delimiter.
63701         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
63702
63703 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63704
63705         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
63706         * modules/openat (Files): Remove openat-die.c.
63707         (Depends-on): Add openat-die.
63708         * modules/openat-die: New module.
63709
63710 2007-05-06  Bruno Haible  <bruno@clisp.org>
63711
63712         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
63713         Update with info about Cygwin.
63714         * doc/functions/fprintf.texi: Update.
63715         * doc/functions/printf.texi: Update.
63716         * doc/functions/snprintf.texi: Update.
63717         * doc/functions/sprintf.texi: Update.
63718         * doc/functions/vfprintf.texi: Update.
63719         * doc/functions/vprintf.texi: Update.
63720         * doc/functions/vsnprintf.texi: Update.
63721         * doc/functions/vsprintf.texi: Update.
63722         Reported by Eric Blake.
63723
63724 2007-05-06  Bruno Haible  <bruno@clisp.org>
63725
63726         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
63727         padding ourselves for the floating-point directives.
63728         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
63729         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
63730         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63731         gl_PRINTF_FLAG_ZERO and test its result. Invoke
63732         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
63733         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63734         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
63735         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63736         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63737         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63738         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63739         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63740         * tests/test-snprintf-posix.h (test_function): Also check the width
63741         and some flags in the %f directive.
63742         * tests/test-sprintf-posix.h (test_function): Likewise.
63743         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63744         * tests/test-vasprintf-posix.c (test_function): Likewise.
63745         * doc/functions/fprintf.texi: Update.
63746         * doc/functions/printf.texi: Update.
63747         * doc/functions/snprintf.texi: Update.
63748         * doc/functions/sprintf.texi: Update.
63749         * doc/functions/vfprintf.texi: Update.
63750         * doc/functions/vprintf.texi: Update.
63751         * doc/functions/vsnprintf.texi: Update.
63752         * doc/functions/vsprintf.texi: Update.
63753
63754 2007-05-06  Bruno Haible  <bruno@clisp.org>
63755
63756         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
63757         pass the ' flag character to sprintf or snprintf.
63758         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
63759         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
63760         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63761         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
63762         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
63763         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63764         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
63765         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63766         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63767         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63768         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63769         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63770         * tests/test-snprintf-posix.h (test_function): Also check the grouping
63771         flag.
63772         * tests/test-sprintf-posix.h (test_function): Likewise.
63773         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63774         * tests/test-vasprintf-posix.c (test_function): Likewise.
63775         * doc/functions/fprintf.texi: Update.
63776         * doc/functions/printf.texi: Update.
63777         * doc/functions/snprintf.texi: Update.
63778         * doc/functions/sprintf.texi: Update.
63779         * doc/functions/vfprintf.texi: Update.
63780         * doc/functions/vprintf.texi: Update.
63781         * doc/functions/vsnprintf.texi: Update.
63782         * doc/functions/vsprintf.texi: Update.
63783
63784 2007-05-01  Bruno Haible  <bruno@clisp.org>
63785
63786         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
63787
63788 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
63789
63790         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
63791         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
63792
63793 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63794
63795         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
63796         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
63797         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
63798
63799 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
63800
63801         * lib/argp-help.c (struct hol_entry): New member `ord'.
63802         (HOL_ENTRY_PTRCMP): Use ord for comparison
63803         (hol_sort): Initialize ord.
63804
63805 2007-05-01  Bruno Haible  <bruno@clisp.org>
63806
63807         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
63808         Reported by Eric Blake.
63809         * doc/gnulib.texi (Function Substitutes): Update.
63810
63811 2007-05-01  Bruno Haible  <bruno@clisp.org>
63812
63813         * doc/functions.texi: Remove file, now redundant through
63814         doc/functions/*.texi.
63815
63816 2007-05-01  Bruno Haible  <bruno@clisp.org>
63817
63818         * modules/argp (Depends-on): Add sleep.
63819
63820 2007-05-01  Bruno Haible  <bruno@clisp.org>
63821
63822         * modules/sleep-tests: New file.
63823         * tests/test-sleep.c: New file.
63824
63825         * modules/sleep: New file.
63826         * lib/sleep.c: New file.
63827         * m4/sleep.m4: New file.
63828         * lib/unistd_.h (sleep): New declaration.
63829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
63830         HAVE_SLEEP.
63831         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
63832         * doc/functions/sleep.texi: Document the sleep module.
63833
63834 2007-05-01  Bruno Haible  <bruno@clisp.org>
63835
63836         * lib/sigprocmask.h: Remove file.
63837         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
63838         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
63839         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
63840         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
63841         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
63842         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
63843         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
63844         HAVE_SIGSET_T as a shell variable.
63845         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
63846         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
63847         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
63848         (Depends-on): Add signal. Remove verify.
63849         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
63850         (Include): Mention <signal.h> instead of sigprocmask.h.
63851         * NEWS: Mention the change.
63852         * lib/fatal-signal.c: Don't include sigprocmask.h.
63853
63854 2007-05-01  Bruno Haible  <bruno@clisp.org>
63855
63856         * modules/signal: New file.
63857         * lib/signal_.h: New file.
63858         * m4/signal_h.m4: New file.
63859
63860 2007-05-01  Bruno Haible  <bruno@clisp.org>
63861
63862         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
63863         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
63864         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
63865         HAVE_WCTYPE_CTMP_BUG into wctype.h.
63866
63867 2007-05-01  Bruno Haible  <bruno@clisp.org>
63868
63869         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
63870         configure time.
63871         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
63872         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
63873         * modules/sys_stat (Makefile.am): Substitute their values into
63874         sys/stat.h.
63875
63876 2007-05-01  Bruno Haible  <bruno@clisp.org>
63877
63878         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
63879         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
63880         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
63881
63882 2007-05-01  Bruno Haible  <bruno@clisp.org>
63883
63884         * doc/header/assert.texi: Undo last change: don't mention the gnulib
63885         'assert' module here.
63886
63887 2007-05-01  Bruno Haible  <bruno@clisp.org>
63888
63889         * doc/functions/*.texi: New files.
63890         * doc/functions/google-ranking.txt: New file.
63891         * doc/gnulib.texi (Function Substitutes): New chapter.
63892         (ctime, inet_ntoa): Remove sections.
63893         * doc/ctime.texi: Remove file.
63894         * doc/inet_ntoa.texi: Remove file.
63895         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
63896         dependencies.
63897         (%.info): New rule, specifying a --reference-limit.
63898
63899 2007-05-01  Bruno Haible  <bruno@clisp.org>
63900
63901         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
63902
63903 2007-05-01  Bruno Haible  <bruno@clisp.org>
63904
63905         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
63906         the portability of 'mkdir' to mingw systems.
63907
63908 2007-05-01  Bruno Haible  <bruno@clisp.org>
63909
63910         * doc/headers/google-ranking.txt: New file.
63911
63912 2007-04-30  Eric Blake  <ebb9@byu.net>
63913
63914         Prefer fseeko to fseek.
63915         * modules/getpass (Depends-on): Add fseeko.
63916         * lib/getpass.c (getpass): Use fseeko, not fseek.
63917
63918 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
63919
63920         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
63921         assumes the sorting is stable, while most qsort implementations
63922         are not.  Use argument addresses to ensure they never compare as
63923         equal.
63924
63925         * tests/test-argp-2.sh (usage-indent test): Fix output
63926         (func_compare): Restore diff options
63927         * tests/test-argp.c: Restore #include "progname.h"
63928
63929 2007-04-29  Bruno Haible  <bruno@clisp.org>
63930
63931         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
63932         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63933         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
63934         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63935         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
63936         (configure.ac): Define CHECK_SNPRINTF_POSIX.
63937         (TESTS, check_PROGRAMS): Add test-snprintf.
63938         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
63939         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
63940         (TESTS, check_PROGRAMS): Add test-vsnprintf.
63941         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
63942         assertions that fail on HP-UX, OSF/1, or IRIX.
63943         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
63944
63945 2007-04-29  Bruno Haible  <bruno@clisp.org>
63946
63947         * MODULES.html.sh (posix_functions): Remove 'contents'.
63948
63949 2007-04-29  Karl Berry  <karl@gnu.org>
63950
63951         * config/srclist.txt (gendocs_template_min): new entry.
63952
63953 2007-04-29  Bruno Haible  <bruno@clisp.org>
63954
63955         Work around fpurge bug on BSD systems.
63956         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
63957         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
63958         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
63959         fpurge to rpl_fpurge if the system already has this function.
63960         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
63961         the case where the system already has this function. Correct invariants
63962         on BSD systems.
63963         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
63964         BSD systems.
63965
63966 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
63967
63968         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
63969         proposed by Sven Verdoolaege.
63970
63971         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
63972         options.
63973         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
63974         (usage and help tests): Update
63975
63976 2007-04-29  Bruno Haible  <bruno@clisp.org>
63977
63978         * tests/test-fflush.c (main): Use a file of size 17, not 10.
63979         Print more information in case of failure. Disable a test on BeOS.
63980
63981 2007-04-29  Bruno Haible  <bruno@clisp.org>
63982
63983         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
63984         This helps debugging on systems on which no gdb is available.
63985
63986 2007-04-29  Bruno Haible  <bruno@clisp.org>
63987
63988         * lib/freading.h: Improve comments.
63989         * lib/fwriting.h: Likewise.
63990         * tests/test-freading.c (main): Don't check freading immediately after
63991         repositioning. Needed for glibc.
63992
63993 2007-04-29  Bruno Haible  <bruno@clisp.org>
63994
63995         * lib/freading.c (freading): Trivial simplification.
63996
63997 2007-04-28  Bruno Haible  <bruno@clisp.org>
63998
63999         * tests/test-fwriting.c (main): Also test the interaction between
64000         fflush and fwriting.
64001         * modules/fwriting-tests (Depends-on): Add fflush.
64002
64003         * tests/test-freading.c (main): Also test the interaction between
64004         fflush and freading.
64005         * modules/freading-tests (Depends-on): Add fflush.
64006
64007 2007-04-28  Bruno Haible  <bruno@clisp.org>
64008
64009         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
64010         fseeko and ftello.
64011         Suggested by Eric Blake.
64012
64013 2007-04-28  Jim Meyering  <jim@meyering.net>
64014
64015         Avoid false-negative in gl_STDINT_H's C99 conformance test.
64016         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
64017         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
64018
64019 2007-04-27  Eric Blake  <ebb9@byu.net>
64020
64021         * doc/headers/assert.texi (assert.h): Document assert module use.
64022
64023 2007-04-27  Bruno Haible  <bruno@clisp.org>
64024
64025         * doc/headers/*.texi: New files.
64026         * doc/gnulib.texi (Header File Substitutes): New chapter.
64027         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
64028         dependencies.
64029         (standards.info ,standards.html, standards.dvi): Update dependencies.
64030         (mostlyclean, clean): New targets.
64031
64032 2007-04-27  Bruno Haible  <bruno@clisp.org>
64033
64034         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
64035         * modules/sysexits (Files, Makefile.am): Update.
64036
64037         * lib/sys_socket_.h: Renamed from lib/socket_.h.
64038         * modules/sys_socket (Files, Makefile.am): Update.
64039
64040         * lib/sys_stat_.h: Renamed from lib/stat_.h.
64041         * modules/sys_stat (Files, Makefile.am): Update.
64042
64043 2007-04-27  Eric Blake  <ebb9@byu.net>
64044
64045         * lib/freading.h: Improve comments.
64046         * lib/fwriting.h: Likewise.
64047         * lib/fflush.c: Likewise.
64048
64049         Fix closein for mingw.
64050         * modules/closein-tests: Add tests for closein.
64051         * tests/test-closein.c: New file.
64052         * tests/test-closein.sh: Likewise.
64053         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
64054         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
64055
64056 2007-04-27  Bruno Haible  <bruno@clisp.org>
64057
64058         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
64059         version is < 6.
64060         * lib/math_.h [__DECC]: Likewise.
64061         * lib/stdio_.h [__DECC]: Likewise.
64062         * lib/stdlib_.h [__DECC]: Likewise.
64063         * lib/string_.h [__DECC]: Likewise.
64064         * lib/time_.h [__DECC]: Likewise.
64065         * lib/wchar_.h [__DECC]: Likewise.
64066         * lib/wctype_.h [__DECC]: Likewise.
64067
64068 2007-04-27  Bruno Haible  <bruno@clisp.org>
64069
64070         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
64071
64072 2007-04-27  Bruno Haible  <bruno@clisp.org>
64073
64074         * lib/fflush.c: Add comments.
64075         * modules/fpurge-tests (Depends-on): Add fflush.
64076         * modules/freadable-tests (Depends-on): Likewise.
64077         * modules/fwritable-tests (Depends-on): Likewise.
64078
64079 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
64080
64081         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
64082         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
64083         Report by Bruno Haible <bruno@clisp.org>.
64084
64085 2007-04-26  Eric Blake  <ebb9@byu.net>
64086
64087         Fix fflush on mingw.
64088         * modules/fflush (Depends-on): Add freading.
64089         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
64090         but unread data.
64091
64092 2007-04-26  Eric Blake  <ebb9@byu.net>
64093         and Bruno Haible  <bruno@clisp.org>
64094
64095         Implement freading and fwriting.
64096         * lib/freading.c: New file.
64097         * lib/freading.h: Likewise.
64098         * m4/freading.m4: Likewise.
64099         * modules/freading: Likewise.
64100         * modules/freading-tests: Likewise.
64101         * tests/test-freading.c: Likewise.
64102         * lib/fwriting.c: New file.
64103         * lib/fwriting.h: Likewise.
64104         * m4/fwriting.m4: Likewise.
64105         * modules/fwriting: Likewise.
64106         * modules/fwriting-tests: Likewise.
64107         * tests/test-fwriting.c: Likewise.
64108         * MODULES.html.sh (File stream based Input/Output): Mention them.
64109
64110 2007-04-26  Bruno Haible  <bruno@clisp.org>
64111
64112         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
64113         'long' when we assume it.
64114         Suggested by Eric Blake.
64115
64116 2007-04-26  Bruno Haible  <bruno@clisp.org>
64117
64118         Ensure fseeko, ftello are declared on glibc systems.
64119         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
64120         * modules/fseeko (configure.ac-early): Likewise.
64121         * modules/ftello (configure.ac-early): Likewise.
64122         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
64123         AC_FUNC_FSEEKO for this.
64124         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
64125         (gl_CHECK_FSEEKO): Remove macro.
64126
64127 2007-04-26  Bruno Haible  <bruno@clisp.org>
64128
64129         * tests/test-fflush.c (main): Also check the ftell result after
64130         fflush and fseek/fseeko.
64131         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
64132         file descriptor position cache in the stream.
64133         * lib/fseeko.c (rpl_fseeko): Likewise.
64134
64135 2007-04-26  Bruno Haible  <bruno@clisp.org>
64136
64137         * modules/fflush-tests (Depends-on): Add fseeko.
64138
64139 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
64140             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64141
64142         * lib/argz_.h: ensure error_t definition is obtained in same
64143         mechanism system argz.h would have.
64144         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
64145         argz facilities are known bad.  Err on the side of caution if
64146         cross-compiling.
64147
64148 2007-04-25  Eric Blake  <ebb9@byu.net>
64149
64150         * lib/fpurge.c (includes): Use stdlib.h for free.
64151         * tests/test-fflush.c (main): Also test fflush-fseeko.
64152
64153 2007-04-25  Bruno Haible  <bruno@clisp.org>
64154
64155         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
64156         * lib/fseeko.c: New file.
64157         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
64158         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
64159         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
64160         gl_FUNC_FSEEKO.
64161         (gl_FUNC_FSEEKO): Invoke it.
64162         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
64163         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
64164         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
64165
64166 2007-04-25  Bruno Haible  <bruno@clisp.org>
64167
64168         * modules/fflush (Depends-on): Add ftello.
64169
64170 2007-04-25  Bruno Haible  <bruno@clisp.org>
64171
64172         * modules/ftello-tests: New file.
64173         * tests/test-ftello.c: New file.
64174
64175         * modules/ftello: New file.
64176         * m4/ftello.m4: New file.
64177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
64178         HAVE_FTELLO.
64179         * lib/stdio_.h (ftello): New declaration.
64180         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
64181         HAVE_FTELLO.
64182
64183 2007-04-25  Bruno Haible  <bruno@clisp.org>
64184
64185         * modules/fseeko-tests: New file.
64186         * tests/test-fseeko.c: New file.
64187
64188         * modules/fseeko: New file.
64189         * m4/fseeko.m4: New file.
64190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
64191         HAVE_FSEEKO.
64192         * lib/stdio_.h (fseeko): New declaration.
64193         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
64194         HAVE_FSEEKO.
64195
64196 2007-04-25  Bruno Haible  <bruno@clisp.org>
64197
64198         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
64199
64200 2007-04-25  Bruno Haible  <bruno@clisp.org>
64201
64202         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
64203         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
64204         * tests/test-unistd.c: Likewise.
64205         * tests/test-fcntl.c: Likewise.
64206
64207 2007-04-23  Eric Blake  <ebb9@byu.net>
64208
64209         * lib/fflush.c: Fix missing include.
64210         Reported by Bruno Haible.
64211
64212 2007-04-23  Bruno Haible  <bruno@clisp.org>
64213
64214         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
64215         Reported by Eric Blake.
64216
64217 2007-04-23  Bruno Haible  <bruno@clisp.org>
64218
64219         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
64220
64221 2007-04-23  Bruno Haible  <bruno@clisp.org>
64222
64223         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
64224
64225 2007-04-23  Bruno Haible  <bruno@clisp.org>
64226
64227         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
64228         Needed on HP-UX 11.
64229
64230 2007-04-16  Eric Blake  <ebb9@byu.net>
64231
64232         Make fflush rely on fpurge.
64233         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
64234         open coding all variants.
64235         * modules/fflush (Depends-on): Add fpurge and unistd.
64236         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
64237         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
64238
64239         Fix --with-tests compilation on cygwin.
64240         * modules/argmatch-tests (Makefile.am): List gnulib library first
64241         in LDADD.
64242         * modules/argp-tests (Makefile.am): Likewise.
64243         * modules/array-list-tests (Makefile.am): Likewise.
64244         * modules/array-oset-tests (Makefile.am): Likewise.
64245         * modules/avltree-list-tests (Makefile.am): Likewise.
64246         * modules/avltree-oset-tests (Makefile.am): Likewise.
64247         * modules/avltreehash-list-tests (Makefile.am): Likewise.
64248         * modules/carray-list-tests (Makefile.am): Likewise.
64249         * modules/dirname-tests (Makefile.am): Likewise.
64250         * modules/frexp-tests (Makefile.am): Likewise.
64251         * modules/isnanl-tests (Makefile.am): Likewise.
64252         * modules/linked-list-tests (Makefile.am): Likewise.
64253         * modules/linkedhash-list-tests (Makefile.am): Likewise.
64254         * modules/lock-tests (Makefile.am): Likewise.
64255         * modules/rbtree-list-tests (Makefile.am): Likewise.
64256         * modules/rbtree-oset-tests (Makefile.am): Likewise.
64257         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
64258         * modules/tls-tests (Makefile.am): Likewise.
64259         * modules/tsearch-tests (Makefile.am): Likewise.
64260         * modules/xvasprintf-tests (Makefile.am): Likewise.
64261
64262         Fix fpurge for cygwin.
64263         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
64264         value.
64265         * modules/fpurge-tests (Depends-on): Clean up trash.
64266
64267 2007-04-16  Simon Josefsson  <simon@josefsson.org>
64268
64269         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
64270
64271         * m4/autobuild.m4: Re-indent.
64272
64273 2007-04-13  Bruno Haible  <bruno@clisp.org>
64274
64275         * modules/fpurge-tests: New file.
64276         * tests/test-fpurge.c: New file.
64277
64278         * modules/fpurge: New file.
64279         * lib/fpurge.h: New file.
64280         * lib/fpurge.c: New file.
64281         * m4/fpurge.m4: New file.
64282
64283 2007-04-13  Bruno Haible  <bruno@clisp.org>
64284
64285         * modules/fbufmode-tests: New file.
64286         * tests/test-fbufmode.c: New file.
64287
64288         * modules/fbufmode: New file.
64289         * lib/fbufmode.h: New file.
64290         * lib/fbufmode.c: New file.
64291         * m4/fbufmode.m4: New file.
64292
64293 2007-04-13  Bruno Haible  <bruno@clisp.org>
64294
64295         * modules/fwritable-tests: New file.
64296         * tests/test-fwritable.c: New file.
64297
64298         * modules/fwritable: New file.
64299         * lib/fwritable.h: New file.
64300         * lib/fwritable.c: New file.
64301         * m4/fwritable.m4: New file.
64302
64303 2007-04-13  Bruno Haible  <bruno@clisp.org>
64304
64305         * modules/freadable-tests: New file.
64306         * tests/test-freadable.c: New file.
64307
64308         * modules/freadable: New file.
64309         * lib/freadable.h: New file.
64310         * lib/freadable.c: New file.
64311         * m4/freadable.m4: New file.
64312
64313 2007-04-13  Bruno Haible  <bruno@clisp.org>
64314
64315         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
64316         MOSTLYCLEANFILES.
64317
64318 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64319
64320         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
64321         gzip bootstrap.conf to avoid dragging in i18n machinery.
64322         (gnulib_tool_option): Use it.
64323
64324 2007-04-13  Bruno Haible  <bruno@clisp.org>
64325
64326         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
64327         %F directives.
64328         * tests/test-vasprintf-posix.c (test_function): Likewise.
64329         * tests/test-snprintf-posix.h (test_function): Likewise.
64330         * tests/test-sprintf-posix.h (test_function): Likewise.
64331         * tests/test-fprintf-posix.h (test_function): Likewise.
64332         * tests/test-printf-posix.h (test_function): Likewise.
64333         * tests/test-fprintf-posix.out: Likewise.
64334
64335 2007-04-13  Bruno Haible  <bruno@clisp.org>
64336
64337         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
64338         * modules/tls-tests (configure.ac): Likewise.
64339         Reported by Arto C. Nirkko <anirkko@insel.ch>.
64340
64341 2007-04-13  Bruno Haible  <bruno@clisp.org>
64342
64343         * lib/tls.c (glthread_tls_get): Fix return type.
64344         Patch by Arto C. Nirkko <anirkko@insel.ch>.
64345
64346 2007-04-12  Eric Blake  <ebb9@byu.net>
64347
64348         * modules/gettime (Depends-on): Remove gettime.
64349         Reported by Dmitry V. Levin.
64350
64351 2007-04-12  Bruno Haible  <bruno@clisp.org>
64352
64353         * modules/fflush (Include): Mention <stdio.h>.
64354         * modules/strtoimax (Include): Mention <inttypes.h>.
64355         * modules/strtoumax (Include): Likewise.
64356
64357 2007-04-12  Eric Blake  <ebb9@byu.net>
64358
64359         * .cvsignore: New file.
64360         * .gitignore: Likewise.
64361
64362 2007-04-12  Bruno Haible  <bruno@clisp.org>
64363
64364         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
64365         not before, since $(LDADD) often contains libgnu.a.
64366         * modules/striconv-tests (test_striconv_LDADD): Likewise.
64367         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
64368         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
64369         Needed on Cygwin.
64370
64371 2007-04-12  Eric Blake  <ebb9@byu.net>
64372
64373         Work around glibc's failure to flush stdin on fclose.
64374         * lib/closein.c (close_stdin): Flush stdin before closing.
64375
64376         Work around glibc's failure to reset seekable stdin on exit.
64377         * modules/closein: New module.
64378         * lib/closein.c: New file.
64379         * lib/closein.h: Likewise.
64380         * m4/closein.m4: Likewise.
64381         * MODULES.html.sh (File stream based Input/Output): Document it.
64382
64383 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64384
64385         * gnulib-tool: Rename generated 'autobuild' script to
64386         'do-autobuild' in --create-megatestdir output.
64387
64388         * doc/gnulib.texi (Build robot for gnulib): Fix.
64389
64390 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64391
64392         * modules/sysexits (Depends-on): Add absolute-header.
64393
64394 2007-04-12  Eric Blake  <ebb9@byu.net>
64395
64396         No need to preserve errno on success.
64397         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
64398         Reported by Bruno Haible.
64399
64400 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64401
64402         * MODULES.html.sh (Support for maintaining and releasing
64403         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
64404
64405 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64406
64407         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
64408
64409 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64410
64411         * modules/autobuild: New module.
64412
64413         * m4/autobuild.m4: New file.
64414
64415 2007-04-11  Bruno Haible  <bruno@clisp.org>
64416
64417         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
64418         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
64419         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
64420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
64421         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64422         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64423         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64424         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64425         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64426         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64427         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
64428         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64429         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64430         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
64431         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64432         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64433         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
64434         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64435         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64436         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
64437         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64438         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64439         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
64440         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64441         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64442         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
64443         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64444         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64445         Reported by Eric Blake.
64446
64447 2007-04-11  Bruno Haible  <bruno@clisp.org>
64448
64449         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
64450
64451 2007-04-10  Bruno Haible  <bruno@clisp.org>
64452
64453         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
64454         for NaN and Infinity. Needed on FreeBSD 6.1.
64455         * tests/test-vasnprintf-posix.c (test_function): Undo last change
64456         regarding results for "%010a" of Infinity and NaN.
64457         * tests/test-vasprintf-posix.c (test_function): Likewise.
64458         * tests/test-snprintf-posix.h (test_function): Likewise.
64459         * tests/test-sprintf-posix.h (test_function): Likewise.
64460         * tests/test-fprintf-posix.h (test_function): Likewise.
64461         * tests/test-printf-posix.h (test_function): Likewise.
64462         * tests/test-fprintf-posix.out: Likewise.
64463
64464 2007-04-10  Bruno Haible  <bruno@clisp.org>
64465
64466         * modules/locale-tests: New file.
64467         * tests/test-locale.c: New file.
64468
64469         * modules/locale: New file.
64470         * lib/locale_.h: New file.
64471         * m4/locale_h.m4: New file.
64472
64473 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
64474             Bruno Haible  <bruno@clisp.org>
64475
64476         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
64477         be determined, test for availability of the copysignf, copysign,
64478         copysignl functions.
64479         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
64480         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
64481         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
64482
64483 2007-04-09  Eric Blake  <ebb9@byu.net>
64484
64485         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
64486         * modules/stdio (Makefile.am): Support fflush.
64487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64488         * modules/fflush: New file.
64489         * lib/fflush.c: Likewise.
64490         * m4/fflush.m4: Likewise.
64491         * modules/fflush-tests: New test.
64492         * tests/test-fflush.c: Likewise.
64493         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
64494
64495 2007-04-06  Bruno Haible  <bruno@clisp.org>
64496
64497         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
64498         (VASNPRINTF): Use signbit for faster determination whether to print a
64499         minus sign.
64500         * modules/vasnprintf (Files): Remove lib/float+.h.
64501         * modules/fprintf-posix (Depends-on): Add signbit.
64502         * modules/snprintf-posix (Depends-on): Likewise.
64503         * modules/sprintf-posix (Depends-on): Likewise.
64504         * modules/vasnprintf-posix (Depends-on): Likewise.
64505         * modules/vasprintf-posix (Depends-on): Likewise.
64506         * modules/vfprintf-posix (Depends-on): Likewise.
64507         * modules/vsnprintf-posix (Depends-on): Likewise.
64508         * modules/vsprintf-posix (Depends-on): Likewise.
64509
64510 2007-04-06  Bruno Haible  <bruno@clisp.org>
64511
64512         * tests/test-frexp.c (main): Test also the sign bit of zero results.
64513         * tests/test-frexpl.c (main): Likewise.
64514         * tests/test-ldexpl.c (main): Likewise.
64515         * modules/frexp-tests (Depends-on): Add signbit.
64516         * modules/frexpl-tests (Depdends-on): Likewise.
64517         * modules/ldexpl-tests (Depdends-on): Likewise.
64518
64519 2007-04-06  Bruno Haible  <bruno@clisp.org>
64520
64521         * modules/signbit-tests: New file.
64522         * tests/test-signbit.c: New file.
64523
64524         * modules/signbit: New file.
64525         * lib/signbitf.c: New file.
64526         * lib/signbitd.c: New file.
64527         * lib/signbitl.c: New file.
64528         * m4/signbit.m4: New file.
64529         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
64530         (signbit): New macro.
64531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
64532         REPLACE_SIGNBIT.
64533         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
64534         REPLACE_FREXPL into math.h.
64535
64536 2007-04-06  Bruno Haible  <bruno@clisp.org>
64537
64538         * modules/isnanf-nolibm-tests: New file.
64539         * tests/test-isnanf.c: New file.
64540
64541         * modules/isnanf-nolibm: New file.
64542         * lib/isnanf.h: New file.
64543         * lib/isnanf.c: New file.
64544         * lib/isnan.c: Consider the USE_FLOAT macro.
64545         * m4/isnanf.m4: New file.
64546
64547 2007-04-06  Bruno Haible  <bruno@clisp.org>
64548
64549         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
64550         (Link): New section.
64551
64552         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
64553
64554 2007-04-06  Bruno Haible  <bruno@clisp.org>
64555
64556         Assume the 'long double' type.
64557         * m4/longdouble.m4: Remove file.
64558         * config/srclist.txt: Don't mention longdouble.m4.
64559         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
64560         * lib/float+.h: Likewise.
64561         * lib/frexp.c: Likewise.
64562         * lib/printf-args.h: Likewise.
64563         * lib/printf-args.c: Likewise.
64564         * lib/printf-frexp.c: Likewise.
64565         * lib/printf-parse.c: Likewise.
64566         * lib/vasnprintf.c: Likewise.
64567         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
64568         * m4/intl.m4: Likewise.
64569         * m4/isnanl.m4: Likewise.
64570         * m4/printf.m4: Likewise.
64571         * m4/printf-frexpl.m4: Likewise.
64572         * m4/vasnprintf.m4: Likewise.
64573         * modules/allocsa (Files): Remove m4/longdouble.m4.
64574         * modules/gettext (Files): Likewise.
64575         * modules/relocatable-prog-wrapper (Files): Likewise.
64576         * modules/vasnprintf (Files): Likewise.
64577         * modules/isnanl (Files): Likewise.
64578         (Include): Simplify.
64579         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
64580         (Include): Simplify.
64581         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
64582         (Include): Simplify.
64583         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
64584         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64585         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
64586         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64587         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
64588         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64589         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
64590         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64591         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
64592         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64593         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
64594         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64595         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
64596         * tests/test-isnanl.c: Likewise.
64597         * tests/test-snprintf-posix.h: Likewise.
64598         * tests/test-sprintf-posix.h: Likewise.
64599         * tests/test-vasnprintf-posix.c: Likewise.
64600         * tests/test-vasnprintf-posix2.c: Likewise.
64601         * tests/test-vasprintf-posix.c: Likewise.
64602
64603 2007-04-06  Bruno Haible  <bruno@clisp.org>
64604
64605         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
64606         * lib/math_.h [__DECC]: Include the overridden include file through
64607         #include_next, outside the double-inclusion guard.
64608         * lib/stdio_.h [__DECC]: Likewise.
64609         * lib/stdlib_.h [__DECC]: Likewise.
64610         * lib/string_.h [__DECC]: Likewise.
64611         * lib/time_.h [__DECC]: Likewise.
64612         * lib/wchar_.h [__DECC]: Likewise.
64613         * lib/wctype_.h [__DECC]: Likewise.
64614         * lib/inttypes_.h [__DECC]: Likewise.
64615         Reported by Albert Chin <china@thewrittenword.com> in
64616         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
64617
64618 2007-04-04  Eric Blake  <ebb9@byu.net>
64619
64620         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
64621         1.5.x.
64622
64623 2007-04-04  Bruno Haible  <bruno@clisp.org>
64624
64625         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
64626         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
64627
64628 2007-04-04  Bruno Haible  <bruno@clisp.org>
64629
64630         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
64631         results for "%010a" of Infinity and NaN.
64632         * tests/test-vasprintf-posix.c (test_function): Likewise.
64633         * tests/test-snprintf-posix.h (test_function): Likewise.
64634         * tests/test-sprintf-posix.h (test_function): Likewise.
64635         * tests/test-fprintf-posix.h (test_function): Remove these tests.
64636         * tests/test-printf-posix.h (test_function): Likewise.
64637         * tests/test-fprintf-posix.out: Update.
64638         Needed for FreeBSD 6.1.
64639
64640 2007-04-04  Bruno Haible  <bruno@clisp.org>
64641
64642         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
64643         directly used by the gnulib modules nor by gnulib-tool.
64644
64645 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
64646
64647         * DEPENDENCIES: Give overall description of version dependency
64648         desirability.  Use more-typical names for apps.
64649         Add shell, coreutils, diffutils, grep, tar, gzip.
64650
64651 2007-04-04  Simon Josefsson  <simon@josefsson.org>
64652
64653         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
64654
64655 2007-04-04  Karl Berry  <karl@gnu.org>
64656
64657         * MODULES.html.sh (func_module): missing '.
64658
64659 2007-04-03  Bruno Haible  <bruno@clisp.org>
64660
64661         * modules/argmatch-tests (Makefile.am): New variable
64662         test_argmatch_LDADD.
64663         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
64664         * modules/array-list-tests (Makefile.am): New variable
64665         test_array_list_LDADD.
64666         * modules/array-oset-tests (Makefile.am): New variable
64667         test_array_oset_LDADD.
64668         * modules/avltree-list-tests (Makefile.am): New variable
64669         test_avltree_list_LDADD.
64670         * modules/avltree-oset-tests (Makefile.am): New variable
64671         test_avltree_oset_LDADD.
64672         * modules/avltreehash-list-tests (Makefile.am): New variable
64673         test_avltreehash_list_LDADD.
64674         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
64675         test_canonicalize_lgpl_LDADD.
64676         * modules/carray-list-tests (Makefile.am): New variable
64677         test_carray_list_LDADD.
64678         * modules/dirname-tests (Makefile.am): New variable
64679         test_dirname_LDADD.
64680         * modules/linked-list-tests (Makefile.am): New variable
64681         test_linked_list_LDADD.
64682         * modules/linkedhash-list-tests (Makefile.am): New variable
64683         test_linkedhash_list_LDADD.
64684         * modules/rbtree-list-tests (Makefile.am): New variable
64685         test_rbtree_list_LDADD.
64686         * modules/rbtree-oset-tests (Makefile.am): New variable
64687         test_rbtree_oset_LDADD.
64688         * modules/rbtreehash-list-tests (Makefile.am): New variable
64689         test_rbtreehash_list_LDADD.
64690         * modules/xvasprintf-tests (Makefile.am): New variable
64691         test_xvasprintf_LDADD.
64692         Reported by Eric Blake.
64693
64694 2007-04-03  Eric Blake  <ebb9@byu.net>
64695
64696         * DEPENDENCIES: Weaken m4 requirements.
64697
64698 2007-04-03  Bruno Haible  <bruno@clisp.org>
64699
64700         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
64701         * modules/isnanl-tests (configure.ac): Likewise.
64702
64703 2007-04-03  Ben Pfaff  <blp@gnu.org>
64704
64705         * modules/iconv_open: Add $(srcdir)/ to source directory
64706         references in Makefile fragments that call gperf, to fix VPATH
64707         builds.
64708
64709 2007-04-03  Bruno Haible  <bruno@clisp.org>
64710
64711         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
64712         * lib/ldexpl.c: Undo last change.
64713
64714 2007-04-03  Bruno Haible  <bruno@clisp.org>
64715
64716         * modules/printf-frexpl (Depends-on): Undo last change.
64717         (Files): Add m4/ldexpl.m4.
64718
64719 2007-04-03  Bruno Haible  <bruno@clisp.org>
64720
64721         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
64722         * modules/isnanl (Link): New section.
64723
64724         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
64725         * modules/frexp (Link): New section.
64726
64727         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
64728         * modules/frexpl (Link): New section.
64729
64730         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
64731         * modules/ldexpl (Link): New section.
64732
64733 2007-04-03  Bruno Haible  <bruno@clisp.org>
64734
64735         * modules/TEMPLATE-EXTENDED: New file.
64736         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
64737
64738 2007-04-03  Bruno Haible  <bruno@clisp.org>
64739
64740         * DEPENDENCIES: New file.
64741         Suggested by Simon Josefsson.
64742
64743 2007-04-03  Bruno Haible  <bruno@clisp.org>
64744
64745         * doc/gnulib.texi: Escape @.
64746
64747 2007-04-03  James Youngman  <jay@gnu.org>
64748         and Paul Eggert  <eggert@cs.ucla.edu>
64749
64750         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
64751         birthtime on all systems that have birthtime, not just those which
64752         use st_birthtimensec rather than st_birthtim.  Putting zero in
64753         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
64754         that the birth time is not available for files on an NFS mount.
64755
64756 2007-04-03  Simon Josefsson  <simon@josefsson.org>
64757
64758         * modules/memxor: Move back from crypto/, suggested by Bruno.
64759         * modules/crypto/hmac-sha1: Fix memxor dependency.
64760
64761         * modules/crypto/gc: Moved from ../.
64762
64763 2007-04-02  Eric Blake  <ebb9@byu.net>
64764
64765         * lib/ldexpl.c (includes): Avoid libm.
64766
64767         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
64768
64769 2007-04-02  Bruno Haible  <bruno@clisp.org>
64770
64771         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
64772         on IRIX.
64773
64774 2007-04-02  Bruno Haible  <bruno@clisp.org>
64775
64776         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
64777         x86 or x86_64 platforms running MacOS X.
64778         Reported by Ryan Schmidt <@ryandesign.com>.
64779
64780 2007-04-02  Bruno Haible  <bruno@clisp.org>
64781
64782         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
64783         i386.
64784
64785 2007-04-01  Simon Josefsson  <simon@josefsson.org>
64786
64787         * modules/crypto/arcfour: Moved from ../.
64788         * modules/crypto/arcfour-tests: Moved from ../.
64789         * modules/crypto/arctwo: Moved from ../.
64790         * modules/crypto/arctwo-tests: Moved from ../.
64791         * modules/crypto/des: Moved from ../.
64792         * modules/crypto/des-tests: Moved from ../.
64793         * modules/crypto/gc-arcfour: Moved from ../.
64794         * modules/crypto/gc-arcfour-tests: Moved from ../.
64795         * modules/crypto/gc-arctwo: Moved from ../.
64796         * modules/crypto/gc-arctwo-tests: Moved from ../.
64797         * modules/crypto/gc-des: Moved from ../.
64798         * modules/crypto/gc-des-tests: Moved from ../.
64799         * modules/crypto/gc-hmac-md5: Moved from ../.
64800         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
64801         * modules/crypto/gc-hmac-sha1: Moved from ../.
64802         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
64803         * modules/crypto/gc-md2: Moved from ../.
64804         * modules/crypto/gc-md2-tests: Moved from ../.
64805         * modules/crypto/gc-md4: Moved from ../.
64806         * modules/crypto/gc-md4-tests: Moved from ../.
64807         * modules/crypto/gc-md5: Moved from ../.
64808         * modules/crypto/gc-md5-tests: Moved from ../.
64809         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
64810         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
64811         * modules/crypto/gc-random: Moved from ../.
64812         * modules/crypto/gc-rijndael: Moved from ../.
64813         * modules/crypto/gc-rijndael-tests: Moved from ../.
64814         * modules/crypto/gc-sha1: Moved from ../.
64815         * modules/crypto/gc-sha1-tests: Moved from ../.
64816         * modules/crypto/gc-tests: Moved from ../.
64817         * modules/crypto/hmac-md5: Moved from ../.
64818         * modules/crypto/hmac-md5-tests: Moved from ../.
64819         * modules/crypto/hmac-sha1: Moved from ../.
64820         * modules/crypto/hmac-sha1-tests: Moved from ../.
64821         * modules/crypto/md2: Moved from ../.
64822         * modules/crypto/md2-tests: Moved from ../.
64823         * modules/crypto/md4: Moved from ../.
64824         * modules/crypto/md4-tests: Moved from ../.
64825         * modules/crypto/md5: Moved from ../.
64826         * modules/crypto/md5-tests: Moved from ../.
64827         * modules/crypto/memxor: Moved from ../.
64828         * modules/crypto/rijndael: Moved from ../.
64829         * modules/crypto/rijndael-tests: Moved from ../.
64830         * modules/crypto/sha1: Moved from ../.
64831
64832 2007-03-30  James Youngman  <jay@gnu.org>
64833
64834         * tests/test-stat-time.c (prepare_test): use chmod() rather than
64835         rename() to change the ctime of a file (because ctime is unaffected
64836         by rename on jfs2 on AIX 5.1).
64837         (main): Start by doing cleanup, in case a previous run failed leaving
64838         test files behind.
64839
64840 2007-03-31  Bruno Haible  <bruno@clisp.org>
64841
64842         Support old proprietary implementations of iconv.
64843         * modules/iconv_open: New file.
64844         * lib/iconv_.h: New file.
64845         * m4/iconv_h.m4: New file.
64846         * lib/iconv_open.c: New file.
64847         * lib/iconv_open-aix.gperf: New file.
64848         * lib/iconv_open-hpux.gperf: New file.
64849         * lib/iconv_open-irix.gperf: New file.
64850         * lib/iconv_open-osf.gperf: New file.
64851         * m4/iconv_open.m4: New file.
64852         * modules/linebreak (Depends-on): Add iconv_open.
64853         * modules/striconv (Depends-on): Likewise.
64854         * modules/striconveh (Depends-on): Likewise.
64855         * modules/unicodeio (Depends-on): Likewise.
64856         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
64857         (iconv_t)(-1).
64858         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
64859         conversion if cd is (iconv_t)(-1).
64860         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
64861         is not possible.
64862
64863 2007-03-31  Bruno Haible  <bruno@clisp.org>
64864
64865         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
64866         work on Solaris either. Protect also second use of "autodetect_jp".
64867
64868 2007-03-31  Bruno Haible  <bruno@clisp.org>
64869
64870         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
64871         the function is not present.
64872
64873 2007-03-31  Bruno Haible  <bruno@clisp.org>
64874
64875         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
64876         the function is not present.
64877
64878 2007-03-31  Bruno Haible  <bruno@clisp.org>
64879
64880         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
64881         a bug in HP-UX iconv_open().
64882
64883 2007-03-31  Bruno Haible  <bruno@clisp.org>
64884
64885         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
64886         (Mathematics <math.h>): New section, add fpieee.
64887         (Input/output <stdio.h>): Add fseterr.
64888         (Mathematics <math.h>): New section, add printf-frexp.
64889         (Container data structures): Add sublist.
64890         (Core language properties): Add fpucw, inline.
64891         (Functions for greatest-width integer types <inttypes.h>): Add
64892         imaxabs, imaxdiv, inttypes.
64893         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
64894         isnanl-nolibm, ldexp.
64895         (Mathematics <math.h>): New section, add printf-frexpl.
64896         (Support for systems lacking POSIX:2001): Add fprintf-posix,
64897         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
64898         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
64899         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
64900         (Unicode string functions): Add unistr/u*-mbtoucr.
64901         (Java): Add javacomp-script, javaexec-script.
64902         (C#): Add csharpcomp-script, csharpexec-script.
64903         (Support for building libraries and executables): Add havelib,
64904         relocatable-*.
64905         (Support for maintaining and releasing projects): Renamed from
64906         'Support for maintaining and release projects'. Add announce-gen.
64907
64908 2007-03-31  Bruno Haible  <bruno@clisp.org>
64909
64910         * README: Talk primarily about git.
64911         (git and CVS): Renamed from CVS.
64912         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
64913         gnulib is available through git.
64914         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
64915
64916 2007-03-30  Bruno Haible  <bruno@clisp.org>
64917
64918         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
64919         * lib/poll_.h: Likewise.
64920         * lib/stat_.h: Likewise.
64921         * lib/sys_time_.h: Likewise.
64922         * lib/sysexit_.h: Likewise.
64923         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
64924         * lib/stdbool_.h: Likewise.
64925         * lib/byteswap_.h: Add double-inclusion guard.
64926
64927 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
64928
64929         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
64930
64931 2007-03-30  Karl Berry  <karl@gnu.org>
64932
64933         * config/srclist-update: double space after USA in the license
64934         substitution, since that's how it's usually (?) written.
64935
64936 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
64937
64938         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
64939         reported by Bruno Haible.
64940
64941 2007-03-29  Bruno Haible  <bruno@clisp.org>
64942
64943         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
64944         a bug in AIX iconv().
64945
64946 2007-03-29  Bruno Haible  <bruno@clisp.org>
64947
64948         * modules/ldexpl-tests: New file.
64949         * tests/test-ldexpl.c: New file.
64950
64951 2007-03-29  Bruno Haible  <bruno@clisp.org>
64952
64953         * lib/ldexpl.c: Include fpucw.h.
64954         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
64955         multiplication.
64956         * modules/ldexpl (Depends-on): Add fpucw.
64957
64958 2007-03-29  Bruno Haible  <bruno@clisp.org>
64959
64960         * modules/ldexpl: New file.
64961         * m4/ldexpl.m4: New file.
64962         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
64963         set.
64964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
64965         REPLACE_LDEXPL.
64966         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
64967         REPLACE_LDEXPL.
64968         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64969         gl_FUNC_LDEXPL_WORKS.
64970         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
64971         * modules/mathl (Files): Remove lib/ldexpl.c.
64972         (Depends-on): Add ldexpl.
64973
64974 2007-03-29  Bruno Haible  <bruno@clisp.org>
64975
64976         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
64977
64978 2007-03-29  Bruno Haible  <bruno@clisp.org>
64979
64980         * tests/test-striconveh.c (main): Don't assume that a direct conversion
64981         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
64982         and possibly also HP-UX.
64983         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
64984         work on AIX, IRIX, HP-UX, OSF/1.
64985         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
64986         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
64987         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
64988         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
64989         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
64990         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
64991
64992 2007-03-29  Bruno Haible  <bruno@clisp.org>
64993
64994         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
64995
64996 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
64997
64998         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
64999         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
65000
65001 2007-03-29  Eric Blake  <ebb9@byu.net>
65002
65003         * lib/acl-internal.h: Remove redundant include.
65004         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
65005         Cygwin when a file is locked.
65006
65007 2007-03-29  Bruno Haible  <bruno@clisp.org>
65008
65009         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
65010         file.
65011         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
65012
65013 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65014
65015         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
65016         try to remove a parent directory if the child couldn't be removed
65017         (except for the first rmdir, which could fail because the child
65018         doesn't exist).  Problem reported by Jeff Blaine in
65019         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
65020
65021 2007-03-28  Bruno Haible  <bruno@clisp.org>
65022
65023         * lib/striconveh.c (utf8conv_carefully): New function.
65024         (mem_cd_iconveh_internal): Invoke it.
65025
65026 2007-03-28  Bruno Haible  <bruno@clisp.org>
65027
65028         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
65029         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
65030         input.
65031         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
65032         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
65033         unistr/u8-uctomb.
65034
65035 2007-03-28  Bruno Haible  <bruno@clisp.org>
65036
65037         * modules/unistr/u8-mbtoucr: New file.
65038         * lib/unistr/u8-mbtoucr.c: New file.
65039         * modules/unistr/u16-mbtoucr: New file.
65040         * lib/unistr/u16-mbtoucr.c: New file.
65041         * modules/unistr/u16-mbtoucr: New file.
65042         * lib/unistr/u16-mbtoucr.c: New file.
65043         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
65044
65045 2007-03-27  Simon Josefsson  <simon@josefsson.org>
65046             Bruno Haible  <bruno@clisp.org>
65047
65048         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
65049         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
65050         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
65051
65052         * m4/stdio_h.m4: Add stubs for vasprintf too.
65053
65054         * modules/stdio: Support vasprintf in sed command.
65055
65056         * modules/vasprintf: Depend on stdio for prototypes.  Remove
65057         vasprintf.h.  Add stdio module indicator.
65058
65059         * lib/stdio_.h: Declare asprintf and vasprintf, based on
65060         vasprintf.h.
65061
65062         * lib/vasprintf.h: File removed.
65063
65064         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
65065         * lib/vasprintf.c: Ditto.
65066         * lib/xvasprintf.c: Ditto.
65067         * tests/test-vasprintf-posix.c: Ditto.
65068         * tests/test-vasprintf.c: Ditto.
65069
65070 2007-03-27  Bruno Haible  <bruno@clisp.org>
65071
65072         Make vasnprintf multithread-safe.
65073         * lib/vasnprintf.c (decimal_point_char): New function.
65074         (VASNPRINTF): Use it.
65075         Suggested by Simon Josefsson.
65076
65077 2007-03-27  Eric Blake  <ebb9@byu.net>
65078
65079         Support sub-second birthtime on cygwin.
65080         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
65081         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
65082         (get_stat_birthtime): Also work with st_birthtim.
65083
65084 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
65085
65086         * lib/stat-time.h (USE_BIRTHTIME): Remove.
65087         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
65088         (get_stat_birthtime_ns): Do not try to use "spare" fields.
65089         (get_stat_birthtime_ns): Simplify compile-time tests.
65090         (get_stat_birthtime): Change the API to look like
65091         get_stat_mtime etc., except return a negative tv_nsec on error.
65092         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
65093         Don't check for "spare" fields.
65094         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
65095         or for struct stat.st_birthtime, as these tests aren't used.
65096         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
65097
65098 2007-03-27  Bruno Haible  <bruno@clisp.org>
65099
65100         * lib/stat-time.h: Include <sys/stat.h>.
65101
65102 2007-03-27  James Youngman  <jay@gnu.org>
65103
65104         * lib/stat-time.h (get_stat_birthtime): New function for
65105           retrieving st_birthtime as provided by UFS2 (hence *BSD).
65106         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
65107           and its variants.
65108         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
65109         * modules/stat-time-test: New file.
65110         * tests/test-stat-time.c: New test, devised by Bruno Haible.
65111
65112 2007-03-26  Bruno Haible  <bruno@clisp.org>
65113
65114         Better support of signalling NaNs.
65115         * lib/atanl.c: Include isnanl.h.
65116         (atanl): Perform test for NaN at the beginning of the function and
65117         through a call to isnanl.
65118         * lib/cosl.c: Include isnanl.h.
65119         (cosl): Perform test for NaN at the beginning of the function and
65120         through a call to isnanl.
65121         * lib/ldexpl.c: Include isnanl.h.
65122         (ldexpl): Perform test for NaN through a call to isnanl.
65123         * lib/logl.c: Include isnanl.h.
65124         (logl): Perform test for NaN at the beginning of the function and
65125         through a call to isnanl.
65126         * lib/sinl.c: Include isnanl.h.
65127         (sinl): Perform test for NaN at the beginning of the function and
65128         through a call to isnanl.
65129         * lib/sqrtl.c: Include isnanl.h.
65130         (sqrtl): Perform test for NaN at the beginning of the function and
65131         through a call to isnanl.
65132         * lib/tanl.c: Include isnanl.h.
65133         (tanl): Perform test for NaN at the beginning of the function and
65134         through a call to isnanl.
65135         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
65136         * modules/mathl (Depends-on): Add isnanl.
65137
65138 2007-03-26  Eric Blake  <ebb9@byu.net>
65139
65140         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
65141         regression in logic sense of previous patch.
65142
65143 2007-03-26  Bruno Haible  <bruno@clisp.org>
65144
65145         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
65146         unportable shell command "if ! ...".
65147         Reported by Ralf Wildenhues.
65148
65149 2007-03-25  Bruno Haible  <bruno@clisp.org>
65150
65151         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
65152         <sysexits.h> file, and only add EX_CONFIG.
65153         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
65154         absolute file name and whether it is sufficient. Substitute also
65155         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
65156         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
65157         ABSOLUTE_SYSEXITS_H into sysexits.h.
65158
65159 2007-03-25  Bruno Haible  <bruno@clisp.org>
65160
65161         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
65162         hints is NULL.
65163
65164 2007-03-25  Bruno Haible  <bruno@clisp.org>
65165
65166         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
65167         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
65168
65169 2007-03-25  Bruno Haible  <bruno@clisp.org>
65170
65171         * lib/vasnprintf.c: Include langinfo.h.
65172         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
65173         multithread-safe.
65174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
65175         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
65176         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65177         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65178         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65179         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65180         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
65182         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65183         Reported by Simon Josefsson.
65184
65185 2007-03-25  Bruno Haible  <bruno@clisp.org>
65186
65187         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
65188         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
65189         * modules/vasnprintf (Depends-on): Add stdint.
65190
65191 2007-03-25  Bruno Haible  <bruno@clisp.org>
65192
65193         * modules/fpieee: New file.
65194         * m4/fpieee.m4: New file.
65195         * modules/isnan-nolibm (Depends-on): Add fpieee.
65196         * modules/isnanl-nolibm (Depends-on): Add fpieee.
65197         * modules/isnanl (Depends-on): Add fpieee.
65198
65199 2007-03-25  Bruno Haible  <bruno@clisp.org>
65200
65201         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
65202
65203 2007-03-25  Bruno Haible  <bruno@clisp.org>
65204
65205         Avoid test failures on IRIX 6.5.
65206         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
65207         (main): Use it.
65208         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
65209         macros.
65210         (main): Use them.
65211
65212 2007-03-25  Bruno Haible  <bruno@clisp.org>
65213
65214         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
65215         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
65216         exists but doesn't work.
65217         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
65218         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
65219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
65220         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
65221         math.h.
65222
65223 2007-03-25  Bruno Haible  <bruno@clisp.org>
65224
65225         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
65226         returns inf. Needed on IRIX 6.5.
65227
65228 2007-03-25  Bruno Haible  <bruno@clisp.org>
65229
65230         * tests/test-frexpl.c: Include isnanl-nolibm.h.
65231         (main): Use isnanl instead of x != x idiom.
65232         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
65233
65234         * tests/test-frexp.c: Include isnan.h.
65235         (main): Use isnan instead of x != x idiom.
65236         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
65237
65238 2007-03-25  Bruno Haible  <bruno@clisp.org>
65239
65240         * tests/test-frexp.c (NaN): New function/macro.
65241         (main): Use it instead of 0.0 / 0.0.
65242         * tests/test-isnan.c (NaN): New function/macro.
65243         (main): Use it instead of 0.0 / 0.0.
65244         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
65245         (test_function): Use it instead of 0.0 / 0.0.
65246         * tests/test-vasprintf-posix.c (NaN): New function/macro.
65247         (test_function): Use it instead of 0.0 / 0.0.
65248         * tests/test-snprintf-posix.h (NaN): New function/macro.
65249         (test_function): Use it instead of 0.0 / 0.0.
65250         * tests/test-sprintf-posix.h (NaN): New function/macro.
65251         (test_function): Use it instead of 0.0 / 0.0.
65252         * tests/test-fprintf-posix.h (NaN): New function/macro.
65253         (test_function): Use it instead of 0.0 / 0.0.
65254         * tests/test-printf-posix.h (NaN): New function/macro.
65255         (test_function): Use it instead of 0.0 / 0.0.
65256
65257         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
65258
65259 2007-03-25  Bruno Haible  <bruno@clisp.org>
65260
65261         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
65262
65263 2007-03-25  Bruno Haible  <bruno@clisp.org>
65264
65265         * lib/regexec.c (merge_state_with_log): Make static.
65266
65267 2007-03-25  Bruno Haible  <bruno@clisp.org>
65268
65269         * lib/trigl.c (kernel_rem_pio2): Make static.
65270
65271 2007-03-25  Bruno Haible  <bruno@clisp.org>
65272
65273         * lib/sincosl.c (sincosl_table): Make static.
65274
65275 2007-03-25  Bruno Haible  <bruno@clisp.org>
65276
65277         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
65278         if the compiler does not support C99.
65279
65280 2007-03-25  Bruno Haible  <bruno@clisp.org>
65281
65282         * modules/time (Makefile.am): Ensure all rule action lines start with a
65283         tab.
65284
65285 2007-03-24  Bruno Haible  <bruno@clisp.org>
65286
65287         * modules/tsearch-tests: New file.
65288         * tests/test-tsearch.sh: New file.
65289         * tests/test-tsearch.c: New file, mostly copied from glibc.
65290
65291         * modules/search-tests: New file.
65292         * tests/test-search.c: New file.
65293
65294         * modules/search: New file.
65295         * lib/search_.h: New file, incorporating lib/tsearch.h.
65296         * m4/search_h.m4: New file.
65297         * lib/tsearch.h: Remove file.
65298         * lib/tsearch.c: Include search.h instead of tsearch.h.
65299         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
65300         HAVE_TSEARCH.
65301         * modules/tsearch (Files): Remove lib/tsearch.h.
65302         (Depends-on): Add search.
65303         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
65304         (Include): Change tsearch.h into search.h.
65305
65306 2007-03-24  Bruno Haible  <bruno@clisp.org>
65307
65308         * modules/fpucw: New file.
65309         * lib/fpucw.h: New file.
65310         * lib/frexp.c: Include fpucw.h.
65311         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
65312         (FUNC): Use them.
65313         * lib/printf-frexp.c: Include fpucw.h.
65314         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
65315         (FUNC): Use them.
65316         * lib/vasnprintf.c: Include fpucw.h.
65317         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
65318         'long double' calculations.
65319         * tests/test-frexpl.c: Include fpucw.h.
65320         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
65321         * tests/test-printf-frexpl.c: Include fpucw.h.
65322         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
65323         * modules/frexpl (Depends-on): Add fpucw.
65324         * modules/printf-frexpl (Depends-on): Likewise.
65325         * modules/fprintf-posix (Depends-on): Likewise.
65326         * modules/snprintf-posix (Depends-on): Likewise.
65327         * modules/sprintf-posix (Depends-on): Likewise.
65328         * modules/vasnprintf-posix (Depends-on): Likewise.
65329         * modules/vasprintf-posix (Depends-on): Likewise.
65330         * modules/vfprintf-posix (Depends-on): Likewise.
65331         * modules/vsnprintf-posix (Depends-on): Likewise.
65332         * modules/vsprintf-posix (Depends-on): Likewise.
65333         * modules/frexpl-tests (Depends-on): Likewise.
65334         * modules/printf-frexpl-tests (Depends-on): Likewise.
65335
65336 2007-03-24  Bruno Haible  <bruno@clisp.org>
65337
65338         * lib/float+.h: New file.
65339         * lib/isnan.c: Include float+.h.
65340         (SIZE): New macro.
65341         (FUNC): Compare only SIZE bytes of the value.
65342         * lib/vasnprintf.c: Include float+.h.
65343         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
65344         SIZEOF_LDBL or SIZEOF_DBL bytes.
65345         * modules/isnan-nolibm (Files): Add lib/float+.h.
65346         * modules/isnanl-nolibm (Files): Add lib/float+.h.
65347         * modules/isnanl (Files): Add lib/float+.h.
65348         * modules/vasnprintf (Files): Add lib/float+.h.
65349
65350 2007-03-24  Bruno Haible  <bruno@clisp.org>
65351
65352         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
65353         include isnanl-nolibm.h.
65354
65355 2007-03-24  Bruno Haible  <bruno@clisp.org>
65356
65357         * tests/test-read-file.c (main): Don't produce spurious output for
65358         expected situations. Make the test fail if it encountered unexpected
65359         results.
65360
65361 2007-03-24  Bruno Haible  <bruno@clisp.org>
65362
65363         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
65364         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
65365
65366 2007-03-24  Bruno Haible  <bruno@clisp.org>
65367
65368         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
65369
65370 2007-03-24  Bruno Haible  <bruno@clisp.org>
65371
65372         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
65373         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
65374
65375         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
65376         * modules/utf8-ucs4: Turn into a symbolic link to module
65377         unistr/u8-mbtouc.
65378
65379         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
65380         utf8-ucs4-unsafe.
65381         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
65382         unistr/u8-mbtouc-unsafe.
65383
65384         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
65385         * modules/utf16-ucs4: Turn into a symbolic link to module
65386         unistr/u16-mbtouc.
65387
65388         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
65389         utf16-ucs4-unsafe.
65390         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
65391         unistr/u16-mbtouc-unsafe.
65392
65393         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
65394         * modules/ucs4-utf8: Turn into a symbolic link to module
65395         unistr/u8-ubtomb.
65396
65397         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
65398         * modules/ucs4-utf16: Turn into a symbolic link to module
65399         unistr/u16-ubtomb.
65400
65401 2007-03-24  Bruno Haible  <bruno@clisp.org>
65402
65403         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
65404         Enable the function only if HAVE_INLINE.
65405         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
65406         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
65407         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
65408         Enable the function only if HAVE_INLINE.
65409         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
65410         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
65411         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
65412         Enable the function only if HAVE_INLINE.
65413         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
65414         Enable the function only if HAVE_INLINE.
65415         * modules/utf8-ucs4: Update.
65416         * modules/utf8-ucs4-unsafe: Update.
65417         * modules/utf16-ucs4: Update.
65418         * modules/utf16-ucs4-unsafe: Update.
65419         * modules/ucs4-utf8: Update.
65420         * modules/ucs4-utf16: Update.
65421
65422 2007-03-24  Bruno Haible  <bruno@clisp.org>
65423
65424         * lib/utf8-ucs4.h: Remove file.
65425         * lib/utf8-ucs4-unsafe.h: Remove file.
65426         * lib/utf16-ucs4.h: Remove file.
65427         * lib/utf16-ucs4-unsafe.h: Remove file.
65428         * lib/ucs4-utf8.h: Remove file.
65429         * lib/ucs4-utf16.h: Remove file.
65430         * lib/unistr.h: Include their previous contents.
65431         * m4/utf-ucs4.m4: Remove file.
65432         * m4/ucs4-utf.m4: Remove file.
65433         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
65434         (Depends-on): Add unistr/base.
65435         (configure.ac): Remove gl_UTF_UCS4.
65436         (Makefile.am): Update.
65437         (Include): Change to unistr.h.
65438         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
65439         (Depends-on): Add unistr/base.
65440         (configure.ac): Remove gl_UTF_UCS4.
65441         (Makefile.am): Update.
65442         (Include): Change to unistr.h.
65443         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
65444         (Depends-on): Add unistr/base.
65445         (configure.ac): Remove gl_UTF_UCS4.
65446         (Makefile.am): Update.
65447         (Include): Change to unistr.h.
65448         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
65449         (Depends-on): Add unistr/base.
65450         (configure.ac): Remove gl_UTF_UCS4.
65451         (Makefile.am): Update.
65452         (Include): Change to unistr.h.
65453         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
65454         (Depends-on): Add unistr/base.
65455         (configure.ac): Remove gl_UCS4_UTF.
65456         (Makefile.am): Update.
65457         (Include): Change to unistr.h.
65458         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
65459         (Depends-on): Add unistr/base.
65460         (configure.ac): Remove gl_UCS4_UTF.
65461         (Makefile.am): Update.
65462         (Include): Change to unistr.h.
65463         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
65464         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
65465         utf8-ucs4-unsafe.h.
65466         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
65467         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
65468         utf16-ucs4-unsafe.h.
65469         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
65470         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
65471         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
65472         * lib/unistr/u8-strchr.c: Likewise.
65473         * lib/unistr/u8-strrchr.c: Likewise.
65474         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
65475         * lib/unistr/u16-strchr.c: Likewise.
65476         * lib/unistr/u16-strrchr.c: Likewise.
65477         * lib/striconveh.c: Update.
65478         * lib/linebreak.c: Update.
65479
65480 2007-03-24  Bruno Haible  <bruno@clisp.org>
65481
65482         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
65483         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
65484
65485 2007-03-22  Bruno Haible  <bruno@clisp.org>
65486
65487         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
65488
65489 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
65490
65491         * MODULES.html.sh (File system functions): New module write-any-file.
65492         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
65493         * m4/write-any-file.m4: New files.
65494
65495 2007-03-23  Eric Blake  <ebb9@byu.net>
65496
65497         * gnulib-tool: Rearrange space-tab sequences, since some editors
65498         like to eat them.
65499
65500 2007-03-23  Eric Blake  <ebb9@byu.net>
65501
65502         * lib/version-etc.c (version_etc_va): Update license wording to
65503         be more concise.  Recommended by Richard Stallman.
65504
65505 2007-03-22  Bruno Haible  <bruno@clisp.org>
65506
65507         * lib/poll.c (MSG_PEEK): New fallback definition.
65508
65509 2007-03-22  Bruno Haible  <bruno@clisp.org>
65510
65511         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
65512         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
65513         (main): Update.
65514         Fixes a compilation error on BeOS.
65515
65516 2007-03-22  Bruno Haible  <bruno@clisp.org>
65517
65518         * modules/frexpl-tests: New file.
65519         * tests/test-frexpl.c: New file.
65520
65521         * modules/frexpl: New file.
65522         * m4/frexpl.m4: New file.
65523         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
65524         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
65525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
65526         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
65527         (Depends-on): Add frexpl. Remove isnanl-nolibm.
65528         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
65529
65530 2007-03-22  Bruno Haible  <bruno@clisp.org>
65531
65532         * lib/frexpl.c: Share code with lib/frexp.c.
65533         * modules/mathl (Files): Add lib/frexp.c.
65534         (Depends-on): Add isnanl-nolibm.
65535
65536 2007-03-22  Bruno Haible  <bruno@clisp.org>
65537
65538         * modules/printf-frexp (Files): Add m4/frexp.m4.
65539         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
65540         only if the found frexp function actually works.
65541
65542 2007-03-22  Bruno Haible  <bruno@clisp.org>
65543
65544         * lib/frexp.c: Remove older implementation that uses divisions.
65545
65546 2007-03-21  Bruno Haible  <bruno@clisp.org>
65547
65548         * modules/frexp-tests: New file.
65549         * tests/test-frexp.c: New file.
65550
65551         * modules/frexp: New file.
65552         * lib/frexp.c: New file.
65553         * m4/frexp.m4: New file.
65554         * lib/math_.h (frexp): New declaration.
65555         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
65556         REPLACE_FREXP.
65557         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
65558
65559 2007-03-21  Bruno Haible  <bruno@clisp.org>
65560
65561         * modules/isnanl-tests: New file.
65562         * tests/test-isnanl.c: New file.
65563
65564         * modules/isnanl: New file.
65565         * lib/isnanl.h: New file.
65566         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
65567         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
65568         gl_FUNC_ISNANL_WORKS.
65569         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
65570         New macros.
65571
65572 2007-03-21  Bruno Haible  <bruno@clisp.org>
65573
65574         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
65575         lib/isnanl.h.
65576         (Include): Update.
65577         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
65578         * lib/vasnprintf.c: Update.
65579         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
65580         tests/test-isnanl.h, remove tests/test-isnanl.c.
65581         (Makefile.am): Update.
65582         * tests/test-isnanl-nolibm.c: New file.
65583         * tests/test-isnanl.h: New file.
65584         * tests/test-isnanl.c: Remove file.
65585
65586 2007-03-21  Jim Meyering  <jim@meyering.net>
65587
65588         When trying to open ".", treat ESTALE like EACCES.
65589         * lib/savewd.c (savewd_save): Resort to forking not just upon
65590         failure with EACCES, but also when errno is ESTALE.
65591
65592 2007-03-20  Bruno Haible  <bruno@clisp.org>
65593
65594         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
65595         Needed on AIX 5.1. Reported by Matthew Woehlke.
65596
65597 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
65598
65599         Suggestions by Bruno Haible:
65600         * lib/acl-internal.h: Include "gettext.h" rather than rolling
65601         our own.
65602         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
65603         * modules/acl (Depends-on): Add gettext.
65604
65605 2007-03-19  Bruno Haible  <bruno@clisp.org>
65606
65607         * modules/iconvme: Remove file.
65608         * lib/iconvme.h: Remove file.
65609         * lib/iconvme.c: Remove file.
65610         * m4/iconvme.m4: Remove file.
65611
65612 2007-03-19  Bruno Haible  <bruno@clisp.org>
65613
65614         * doc/relocatable-maint.texi: Break long shell script line.
65615         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
65616
65617 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
65618
65619         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
65620         handle file_has_acl.
65621         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
65622         * lib/acl.c: Move header inclusions and related macro defns into
65623         lib/acl-internal.h.
65624         (S_ISLNK): Remove defn, since that's now done for us.
65625         (file_has_acl): Move to lib/file-has-acl.c.
65626         Call acl_trivial if available.  This is the crucial part of the fix.
65627         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
65628         shared within the library.  Rewrite a bit, partly to make it compatible
65629         with the GNU coding style.
65630         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
65631         Remove unnecessary double-quotes.
65632         Don't test for acl_to_text; the build will catch that.
65633         Replace acl_entries if it doesn't exist and it is needed.
65634         Check for -lsec and acl_trivial (as used on Solaris 10).
65635         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
65636         lib/file-has-acl.c.
65637         (Depends-on): Add sys_stat, for S_ISLNK.
65638
65639 2007-03-19  Ben Pfaff  <blp@gnu.org>
65640
65641         * doc/gnulib.texi: Fix typos.
65642         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
65643
65644 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
65645
65646         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
65647         If size is zero here, buf must be zero.
65648
65649 2007-03-19  Simon Josefsson  <simon@josefsson.org>
65650
65651         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
65652         <bruno@clisp.org>.
65653
65654 2007-03-18  Bruno Haible  <bruno@clisp.org>
65655
65656         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
65657         Suggested by Eric Blake.
65658
65659 2007-03-18  Ben Pfaff  <blp@gnu.org>
65660
65661         * doc/relocatable.texi: Recommend using as prefix a directory
65662         that does not exist and will never be created.  Based on
65663         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
65664         and others.
65665
65666 2007-03-17  Bruno Haible  <bruno@clisp.org>
65667
65668         * lib/fchownat.c: Include lchown.h.
65669
65670 2007-03-17  Bruno Haible  <bruno@clisp.org>
65671
65672         Fix endless loop when the given allocated size was > INT_MAX.
65673         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
65674         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
65675         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
65676         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
65677         * lib/sprintf.c (sprintf): Likewise.
65678
65679 2007-03-17  Bruno Haible  <bruno@clisp.org>
65680
65681         * tests/test-argp-2.sh (func_compare): Output a context diff.
65682
65683 2007-03-17  Bruno Haible  <bruno@clisp.org>
65684
65685         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
65686         locale's decimal-point character.
65687
65688 2007-03-17  Bruno Haible  <bruno@clisp.org>
65689
65690         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
65691         before comparing it. Needed because on some platforms (e.g. x86) a
65692         'long double' occupies less bytes than sizeof (long double).
65693
65694 2007-03-17  Bruno Haible  <bruno@clisp.org>
65695
65696         * tests/test-crc.c (main): Make printf statements 64-bit clean.
65697         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
65698         * tests/test-getaddrinfo.c (simple): Likewise.
65699         * tests/test-read-file.c (main): Likewise.
65700
65701 2007-03-17  Bruno Haible  <bruno@clisp.org>
65702
65703         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
65704
65705 2007-03-17  Bruno Haible  <bruno@clisp.org>
65706
65707         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
65708         unused variable.
65709
65710 2007-03-17  Bruno Haible  <bruno@clisp.org>
65711
65712         * tests/test-c-strcasecmp.c: Include c-strcase.h.
65713         * tests/test-c-strncasecmp.c: Likewise.
65714
65715 2007-03-17  Bruno Haible  <bruno@clisp.org>
65716
65717         * modules/stdlib (Depends-on): Add unistd.
65718         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
65719         Needed for MacOS X 10.3.
65720
65721 2007-03-17  Bruno Haible  <bruno@clisp.org>
65722
65723         * lib/unistr/u-strdup.h: Include <stdlib.h>.
65724
65725 2007-03-17  Bruno Haible  <bruno@clisp.org>
65726
65727         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
65728
65729 2007-03-17  Bruno Haible  <bruno@clisp.org>
65730
65731         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
65732         to reflect files copied from gnulib (with or without modifications).
65733         Suggested by Jim Meyering.
65734
65735 2007-03-17  Eric Blake  <ebb9@byu.net>
65736
65737         * NEWS: Document stdlib change from 2007-02-18.
65738
65739 2007-03-17  Jim Meyering  <jim@meyering.net>
65740
65741         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
65742         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
65743         someone uses a name containing shell meta-characters.
65744         Reported by Alfred M. Szmidt.
65745
65746         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
65747
65748 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
65749
65750         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
65751         and copy gettext configuration files only if configure.ac contains
65752         a use of AM_GNU_GETTEXT_VERSION.
65753
65754 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
65755
65756         * build-aux/bootstrap (gnulib_name): New variable.
65757         (gnulib_tool_options): Use it.
65758
65759 2007-03-13  Simon Josefsson  <simon@josefsson.org>
65760
65761         * tests/test-des.c: Use new namespace.
65762
65763 2007-03-15  Bruno Haible  <bruno@clisp.org>
65764
65765         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
65766         Reported by James Youngman <jay@gnu.org>.
65767
65768 2007-03-15  Bruno Haible  <bruno@clisp.org>
65769
65770         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
65771         declared prototype. Needed with cc on OSF/1 5.1.
65772
65773 2007-03-15  Bruno Haible  <bruno@clisp.org>
65774
65775         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
65776         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
65777         (struct gl_list_implementation): Add dispose_fn argument to the
65778         'create_empty', 'create' methods.
65779         (struct gl_list_impl_base): Add field 'dispose_fn'.
65780         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
65781         argument.
65782         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
65783         dispose_fn argument.
65784         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
65785         dispose_fn on the dropped values.
65786         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
65787         dispose_fn argument.
65788         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
65789         dropped values.
65790         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
65791         (gl_tree_remove_node): Call dispose_fn on the dropped value.
65792         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
65793         (gl_tree_remove_node): Call dispose_fn on the dropped value.
65794         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
65795         argument.
65796         (gl_tree_list_free): Call dispose_fn on the dropped values.
65797         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
65798         the dropped values.
65799         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65800         Add dispose_fn argument.
65801         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
65802         Call dispose_fn on the dropped values.
65803         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
65804         Add dispose_fn argument.
65805         (gl_sublist_create): Initialize the 'dispose_fn' field.
65806         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
65807         * tests/test-array_list.c (main): Update.
65808         * tests/test-carray_list.c (main): Update.
65809         * tests/test-avltree_list.c (main): Update.
65810         * tests/test-rbtree_list.c (main): Update.
65811         * tests/test-avltreehash_list.c (main): Update.
65812         * tests/test-rbtreehash_list.c (main): Update.
65813         * tests/test-linked_list.c (main): Update.
65814         * tests/test-linkedhash_list.c (main): Update.
65815         * tests/test-array_oset.c (main): Update.
65816
65817 2007-03-15  Bruno Haible  <bruno@clisp.org>
65818
65819         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
65820         (gl_oset_create_empty): Add dispose_fn argument.
65821         (struct gl_oset_implementation): Add dispose_fn argument to
65822         'create_empty' method.
65823         (struct gl_oset_impl_base): Add dispose_fn field.
65824         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
65825         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
65826         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
65827         values.
65828         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
65829         (gl_tree_oset_free): Call dispose_fn on the dropped values.
65830         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
65831         dropped value.
65832         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
65833         dropped value.
65834         * tests/test-array_oset.c (main): Update.
65835         * tests/test-avltree_oset.c (main): Update.
65836         * tests/test-rbtree_oset.c (main): Update.
65837         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
65838
65839 2007-03-13  Bruno Haible  <bruno@clisp.org>
65840
65841         * tests/test-stdbool.c (i): Update after last patch.
65842
65843 2007-03-12  Bruno Haible  <bruno@clisp.org>
65844
65845         * lib/quotearg.c: Include <wctype.h> early, before the definition of
65846         the iswprint macro. Needed on Solaris 2.5.1.
65847
65848 2007-03-12  Bruno Haible  <bruno@clisp.org>
65849
65850         * tests/test-printf-frexp.c (main): Declare x as volatile.
65851
65852 2007-03-12  Simon Josefsson  <simon@josefsson.org>
65853
65854         * doc/gnulib.texi (Build robot for gnulib): New section.
65855
65856 2007-03-12  Jim Meyering  <jim@meyering.net>
65857
65858         * build-aux/bootstrap: New file.
65859         * build-aux/bootstrap.conf: New file, from coreutils.
65860
65861 2007-03-11  Bruno Haible  <bruno@clisp.org>
65862
65863         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
65864
65865 2007-03-12  Simon Josefsson  <simon@josefsson.org>
65866
65867         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
65868         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
65869         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
65870
65871 2007-03-11  Bruno Haible  <bruno@clisp.org>
65872
65873         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
65874         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
65875
65876 2007-03-11  Bruno Haible  <bruno@clisp.org>
65877
65878         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
65879         formula. Needed for SunPRO C 5.0.
65880
65881 2007-03-11  Bruno Haible  <bruno@clisp.org>
65882
65883         * modules/long-options (Depends-on): Add getopt.
65884
65885 2007-03-11  Bruno Haible  <bruno@clisp.org>
65886
65887         * modules/modechange (Depends-on): Add stdbool.
65888
65889 2007-03-11  Bruno Haible  <bruno@clisp.org>
65890
65891         * modules/i-ring (Depends-on): Add stdbool.
65892
65893 2007-03-11  Bruno Haible  <bruno@clisp.org>
65894
65895         * modules/gc-des (Depends-on): Add stdbool.
65896
65897 2007-03-11  Bruno Haible  <bruno@clisp.org>
65898
65899         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
65900
65901 2007-03-11  Bruno Haible  <bruno@clisp.org>
65902
65903         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
65904
65905 2007-03-11  Bruno Haible  <bruno@clisp.org>
65906
65907         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
65908
65909 2007-03-11  Bruno Haible  <bruno@clisp.org>
65910
65911         * lib/vasnprintf.c (sprintf): Undefine.
65912
65913 2007-03-11  Bruno Haible  <bruno@clisp.org>
65914
65915         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
65916         initializers in SunPRO C and Compaq C compilers.
65917
65918 2007-03-11  Bruno Haible  <bruno@clisp.org>
65919
65920         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
65921         decrementing code ANSI C compliant.
65922
65923 2007-03-11  Bruno Haible  <bruno@clisp.org>
65924
65925         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
65926         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
65927
65928 2007-03-11  Bruno Haible  <bruno@clisp.org>
65929
65930         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
65931         <stdbool.h> substitute doesn't pass.
65932
65933 2007-03-11  Bruno Haible  <bruno@clisp.org>
65934
65935         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
65936
65937 2007-03-11  Bruno Haible  <bruno@clisp.org>
65938
65939         * gnulib-tool (func_create_megatestdir): Create also an autobuild
65940         script, for submission to autobuild.josefsson.org.
65941
65942 2007-03-10  Bruno Haible  <bruno@clisp.org>
65943
65944         * modules/canonicalize-lgpl-tests: New file.
65945         * tests/test-canonicalize-lgpl.sh: New file.
65946         * tests/test-canonicalize-lgpl.c: New file.
65947
65948         * modules/c-strcase-tests: New file.
65949         * tests/test-c-strcase.sh: New file.
65950         * tests/test-c-strcasecmp.c: New file.
65951         * tests/test-c-strncasecmp.c: New file.
65952
65953         * modules/atexit-tests: New file.
65954         * tests/test-atexit.sh: New file.
65955         * tests/test-atexit.c: New file.
65956
65957 2007-03-10  Bruno Haible  <bruno@clisp.org>
65958
65959         * tests/test-binary-io.sh: Use temporary filenames that are not so
65960         likely to clash with those of other tests (in a parallel make).
65961         * tests/test-binary-io.c: Likewise.
65962
65963 2007-03-10  Bruno Haible  <bruno@clisp.org>
65964
65965         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
65966         fallback; use #error instead.
65967         Suggested by Simon Josefsson.
65968
65969 2007-03-10  Bruno Haible  <bruno@clisp.org>
65970
65971         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
65972         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
65973         first and the last.
65974
65975 2007-03-10  Bruno Haible  <bruno@clisp.org>
65976
65977         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
65978
65979 2007-03-10  Bruno Haible  <bruno@clisp.org>
65980
65981         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
65982         "make distcheck".
65983         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
65984         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
65985         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
65986
65987 2007-03-10  Bruno Haible  <bruno@clisp.org>
65988
65989         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
65990         variable.
65991         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
65992         variable.
65993
65994 2007-03-09  Eric Blake  <ebb9@byu.net>
65995         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
65996
65997         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
65998         types are not being provided by gnulib.
65999         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
66000         types are supported.
66001
66002 2007-03-10  Bruno Haible  <bruno@clisp.org>
66003
66004         * lib/stdio_.h (__attribute__): New macro.
66005         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
66006         vsprintf): Specify __attribute__ __format__ for GCC.
66007         Suggested by Eric Blake.
66008
66009 2007-03-09  Bruno Haible  <bruno@clisp.org>
66010
66011         * modules/printf-posix-tests: New file.
66012         * tests/test-printf-posix.sh: New file.
66013         * tests/test-printf-posix.c: New file.
66014
66015         * modules/printf-posix: New file.
66016         * lib/printf.c: New file.
66017         * m4/printf-posix-rpl.m4: New file.
66018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
66019         REPLACE_PRINTF.
66020         * lib/stdio_.h (printf): New declaration.
66021         (format, __format__, ____printf____, ____scanf____, ____strftime____,
66022         ____strfmon____): New macros.
66023         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
66024         REPLACE_PRINTF.
66025
66026 2007-03-09  Bruno Haible  <bruno@clisp.org>
66027
66028         * tests/test-vasnprintf-posix2.sh: New file.
66029         * tests/test-vasnprintf-posix2.c: New file.
66030         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
66031         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
66032         (Makefile.am): Activate test-vasnprintf-posix2.sh.
66033
66034         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
66035         a locale dependent decimal point, rather than always '.'.
66036
66037 2007-03-09  Eric Blake  <ebb9@byu.net>
66038
66039         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
66040         spite of platforms like Tandem/NSK that define it to -1.
66041
66042 2007-03-08  Bruno Haible  <bruno@clisp.org>
66043
66044         * modules/vprintf-posix-tests: New file.
66045         * tests/test-vprintf-posix.sh: New file.
66046         * tests/test-vprintf-posix.c: New file.
66047         * tests/test-printf-posix.h: New file.
66048
66049         * modules/vprintf-posix: New file.
66050         * lib/vprintf.c: New file.
66051         * m4/vprintf-posix.m4: New file.
66052         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
66053         REPLACE_VPRINTF.
66054         * lib/stdio_.h (vprintf): New declaration.
66055         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
66056         REPLACE_VPRINTF.
66057
66058 2007-03-08  Bruno Haible  <bruno@clisp.org>
66059
66060         * modules/fprintf-posix-tests: New file.
66061         * tests/test-fprintf-posix.sh: New file.
66062         * tests/test-fprintf-posix.c: New file.
66063
66064         * modules/fprintf-posix: New file.
66065         * lib/fprintf.c: New file.
66066         * m4/fprintf-posix.m4: New file.
66067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
66068         REPLACE_FPRINTF.
66069         * lib/stdio_.h (fprintf): New declaration.
66070         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
66071         REPLACE_FPRINTF.
66072
66073 2007-03-08  Bruno Haible  <bruno@clisp.org>
66074
66075         * modules/vfprintf-posix-tests: New file.
66076         * tests/test-vfprintf-posix.sh: New file.
66077         * tests/test-vfprintf-posix.c: New file.
66078         * tests/test-fprintf-posix.h: New file.
66079         * tests/test-fprintf-posix.out: New file.
66080
66081         * modules/vfprintf-posix: New file.
66082         * lib/vfprintf.c: New file.
66083         * m4/vfprintf-posix.m4: New file.
66084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
66085         REPLACE_VFPRINTF.
66086         * lib/stdio_.h (vfprintf): New declaration.
66087         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
66088         REPLACE_VFPRINTF.
66089
66090 2007-03-08  Bruno Haible  <bruno@clisp.org>
66091
66092         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
66093
66094 2007-03-08  Bruno Haible  <bruno@clisp.org>
66095
66096         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
66097         instead of 'expr' invocations.
66098         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66099         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66100         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66101         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66102         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66103         Suggested by Paul Eggert.
66104
66105 2007-03-08  Bruno Haible  <bruno@clisp.org>
66106
66107         * modules/fseterr-tests: New file.
66108         * tests/test-fseterr.c: New file.
66109
66110         * modules/fseterr: New file.
66111         * lib/fseterr.h: New file.
66112         * lib/fseterr.c: New file.
66113
66114 2007-03-08  Bruno Haible  <bruno@clisp.org>
66115
66116         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
66117         * lib/getopt_.h: Likewise.
66118         * lib/mbswidth.h: Likewise.
66119         * lib/setenv.h: Likewise.
66120         * lib/vasnprintf.h: Likewise.
66121         * lib/vasprintf.h: Likewise.
66122         * lib/verror.h: Likewise.
66123         * lib/xsetenv.h: Likewise.
66124         * lib/xvasprintf.h: Likewise.
66125
66126 2007-03-08  Jim Meyering  <jim@meyering.net>
66127
66128         * users.txt: Add parted.
66129
66130         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
66131
66132 2007-03-07  Bruno Haible  <bruno@clisp.org>
66133
66134         * m4/printf.m4: Make the shell script snippets copy&pastable.
66135
66136 2007-03-02  Bruno Haible  <bruno@clisp.org>
66137
66138         * lib/netinet_in_.h: New file.
66139         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
66140         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
66141         * modules/netinet_in (Files): Add lib/netinet_in_.h.
66142         (Depends-on): Add absolute-header.
66143         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
66144         into netinet/in.h.
66145
66146 2007-03-03  Bruno Haible  <bruno@clisp.org>
66147
66148         * lib/sys_select_.h: New file.
66149         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
66150         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
66151         * modules/sys_select (Files): Add lib/sys_select_.h.
66152         (Depends-on): Add absolute-header.
66153         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
66154         into sys/select.h.
66155
66156 2007-03-02  Bruno Haible  <bruno@clisp.org>
66157
66158         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
66159         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
66160         values.
66161         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
66162         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
66163         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
66164         * modules/sys_socket (Depends-on): Add absolute-header.
66165         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
66166         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
66167         (Include): Remove requirement of inclusion of <sys/types.h>.
66168
66169 2007-03-02  Bruno Haible  <bruno@clisp.org>
66170
66171         * lib/byteswap_.h (bswap_32): Fix formula.
66172
66173 2007-03-06  Bruno Haible  <bruno@clisp.org>
66174
66175         * modules/sprintf-posix-tests: New file.
66176         * tests/test-sprintf-posix.c: New file.
66177
66178         * modules/sprintf-posix: New file.
66179         * lib/sprintf.c: New file.
66180         * m4/sprintf-posix.m4: New file.
66181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
66182         REPLACE_SPRINTF.
66183         * lib/stdio_.h (sprintf): New declaration.
66184         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
66185         REPLACE_SPRINTF.
66186
66187 2007-03-06  Bruno Haible  <bruno@clisp.org>
66188
66189         * modules/vsprintf-posix-tests: New file.
66190         * tests/test-vsprintf-posix.c: New file.
66191         * tests/test-sprintf-posix.h: New file.
66192
66193         * modules/vsprintf-posix: New file.
66194         * lib/vsprintf.c: New file.
66195         * m4/vsprintf-posix.m4: New file.
66196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
66197         REPLACE_VSPRINTF.
66198         * lib/stdio_.h (vsprintf): New declaration.
66199         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
66200         REPLACE_VSPRINTF.
66201
66202 2007-03-06  Bruno Haible  <bruno@clisp.org>
66203
66204         * modules/vsnprintf (Depend-on): Remove minmax.
66205
66206 2007-03-06  Bruno Haible  <bruno@clisp.org>
66207
66208         * modules/snprintf-posix-tests: New file.
66209         * tests/test-snprintf-posix.c: New file.
66210
66211         * modules/snprintf-posix: New file.
66212         * m4/snprintf-posix.m4: New file.
66213         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
66214         gl_FUNC_SNPRINTF.
66215         (gl_FUNC_SNPRINTF): Invoke it.
66216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
66217         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
66218         is set.
66219         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
66220
66221 2007-03-06  Bruno Haible  <bruno@clisp.org>
66222
66223         * modules/vsnprintf-posix-tests: New file.
66224         * tests/test-vsnprintf-posix.c: New file.
66225         * tests/test-snprintf-posix.h: New file.
66226
66227         * modules/vsnprintf-posix: New file.
66228         * m4/vsnprintf-posix.m4: New file.
66229         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
66230         gl_FUNC_VSNPRINTF.
66231         (gl_FUNC_VSNPRINTF): Invoke it.
66232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
66233         * lib/stdio_.h (vsnprintf): Define as a replacement if
66234         REPLACE_VSNPRINTF is set.
66235         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
66236
66237 2007-03-06  Bruno Haible  <bruno@clisp.org>
66238
66239         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
66240         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
66241
66242 2007-03-06  Bruno Haible  <bruno@clisp.org>
66243
66244         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
66245         (asinl): Declare also if HAVE_DECL_ASINL is set.
66246         (atanl): Declare also if HAVE_DECL_ATANL is set.
66247         (ceill): Declare also if HAVE_DECL_CEILL is set.
66248         (cosl): Declare also if HAVE_DECL_COSL is set.
66249         (expl): Declare also if HAVE_DECL_EXPL is set.
66250         (floorl): Declare also if HAVE_DECL_FLOORL is set.
66251         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
66252         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
66253         (logl): Declare also if HAVE_DECL_LOGL is set.
66254         (sinl): Declare also if HAVE_DECL_SINL is set.
66255         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
66256         (tanl): Declare also if HAVE_DECL_TANL is set.
66257         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
66258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
66259         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
66260         declaration of frexpl, ldexpl.
66261         * modules/printf-frexpl (Depends-on): Add math.
66262         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
66263
66264 2007-03-05  Bruno Haible  <bruno@clisp.org>
66265
66266         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
66267         frexpl and ldexpl are declared.
66268         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
66269
66270 2007-03-05  Bruno Haible  <bruno@clisp.org>
66271
66272         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
66273         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
66274
66275 2007-03-05  Bruno Haible  <bruno@clisp.org>
66276
66277         * lib/stdio_.h: Include <stddef.h>.
66278
66279 2007-03-05  Bruno Haible  <bruno@clisp.org>
66280
66281         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
66282
66283 2007-03-05  Bruno Haible  <bruno@clisp.org>
66284
66285         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
66286         NetBSD 4, from Ralf Wildenhues.
66287
66288 2007-03-04  Bruno Haible  <bruno@clisp.org>
66289
66290         * lib/vasprintf.h: Update #if logic for the case when the functions
66291         exist but are overridden.
66292
66293 2007-03-04  Bruno Haible  <bruno@clisp.org>
66294
66295         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
66296         implementations: glibc-2.4 and MacOS X 10.3.
66297         * tests/test-vasnprintf-posix.c (test_function): Test also the case
66298         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
66299         * tests/test-vasprintf-posix.c (test_function): Likewise.
66300
66301 2007-03-04  Bruno Haible  <bruno@clisp.org>
66302
66303         * modules/vasprintf-posix-tests: New file.
66304         * tests/test-vasprintf-posix.c: New file.
66305
66306         * modules/vasprintf-posix: New file.
66307         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
66308         defined.
66309         * m4/vasprintf-posix.m4: New file.
66310         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
66311         gl_FUNC_VASPRINTF.
66312         (gl_FUNC_VASPRINTF): Invoke it.
66313         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
66314         here.
66315         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
66316
66317 2007-03-04  Bruno Haible  <bruno@clisp.org>
66318
66319         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
66320         REPLACE_GETTIMEOFDAY.
66321         * modules/sys_time (Makefile.am): Likewise.
66322         * m4/sys_time_h.m4: Likewise.
66323         * m4/gettimeofday.m4: Likewise.
66324
66325 2007-03-04  Bruno Haible  <bruno@clisp.org>
66326
66327         * modules/vasnprintf-posix-tests: New file.
66328         * tests/test-vasnprintf-posix.c: New file.
66329
66330         * modules/vasnprintf-posix: New file.
66331         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
66332         printf-frexpl.h.
66333         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
66334         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
66335         REPLACE_VASNPRINTF is defined.
66336         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
66337         gl_FUNC_VASNPRINTF.
66338         (gl_FUNC_VASNPRINTF): Invoke it.
66339         * m4/vasnprintf-posix.m4: New file.
66340         * m4/printf.m4: New file.
66341
66342 2007-03-04  Bruno Haible  <bruno@clisp.org>
66343
66344         Compile progreloc.c only if --enable-relocatable is specified.
66345         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
66346         if --enable-relocatable was specified.
66347         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
66348         lib_SOURCES.
66349
66350 2007-03-04  Jim Meyering  <jim@meyering.net>
66351
66352         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
66353         Use it consistently, rather than enumerating errno constants.
66354
66355 2007-03-04  Bruno Haible  <bruno@clisp.org>
66356
66357         * modules/xvasprintf-tests: New file.
66358         * tests/test-xvasprintf.c: New file.
66359
66360         * modules/vasprintf-tests: New file.
66361         * tests/test-vasprintf.c: New file.
66362
66363         * modules/vasnprintf-tests: New file.
66364         * tests/test-vasnprintf.c: New file.
66365
66366         * modules/vsnprintf-tests: New file.
66367         * tests/test-vsnprintf.c: New file.
66368
66369         * modules/snprintf-tests: New file.
66370         * tests/test-snprintf.c: New file.
66371
66372 2007-03-04  Bruno Haible  <bruno@clisp.org>
66373
66374         Compile relocatable.c only if --enable-relocatable is specified.
66375         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
66376         gl_RELOCATABLE_LIBRARY.
66377         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
66378         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
66379         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
66380         gl_RELOCATABLE_LIBRARY.
66381         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
66382         (Makefile.am): Remove lib_SOURCES.
66383         * modules/relocatable-lib-lgpl (configure.ac): Invoke
66384         gl_RELOCATABLE_LIBRARY.
66385         (Makefile.am): Remove lib_SOURCES.
66386         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
66387         always.
66388         * modules/relocatable-prog-wrapper (configure.ac): Invoke
66389         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
66390
66391 2007-03-04  Bruno Haible  <bruno@clisp.org>
66392
66393         * modules/argmatch-tests: New file.
66394         * tests/test-argmatch.c: New file.
66395
66396         * tests/test-allocsa.c (main): Halve the number of loop runs.
66397
66398         * modules/alloca-opt-tests: New file.
66399         * tests/test-alloca-opt.c: New file.
66400
66401 2007-03-04  Jim Meyering  <jim@meyering.net>
66402
66403         Work around difference between Linux ACLs and Solaris 10 ZFS.
66404         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
66405         for EINVAL.
66406
66407 2007-03-03  Bruno Haible  <bruno@clisp.org>
66408
66409         * modules/relocatable-prog (Depends-on): Add back progreloc's
66410         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
66411
66412 2007-03-03  Bruno Haible  <bruno@clisp.org>
66413
66414         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
66415         * modules/relocatable-lib: New file.
66416
66417 2007-03-03  Bruno Haible  <bruno@clisp.org>
66418
66419         * modules/relocatable-prog: Renamed from modules/relocatable.
66420         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
66421
66422 2007-03-03  Bruno Haible  <bruno@clisp.org>
66423
66424         * modules/relocatable-script (Files): Add doc/relocatable.texi,
66425         m4/relocatable-lib.m4.
66426         (Depends-on): Remove 'relocatable'.
66427         (configure.ac): Add gl_RELOCATABLE_NOP.
66428
66429 2007-03-03  Bruno Haible  <bruno@clisp.org>
66430
66431         * modules/relocatable-prog-wrapper: New file.
66432         * modules/relocatable (Depends-on): Add it. Remove all other
66433         dependencies except progname.
66434         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
66435
66436         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
66437         (gl_FUNC_STRERROR): Nop.
66438         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
66439
66440         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
66441         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
66442
66443         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
66444         (gl_FUNC_READLINK): Update.
66445
66446         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
66447
66448 2007-03-03  Bruno Haible  <bruno@clisp.org>
66449
66450         * lib/xreadlink.c: Include <unistd.h> unconditionally.
66451         * modules/xreadlink (Depends-on): Add unistd.
66452         * modules/xreadlink-with-size (Depends-on): Likewise.
66453
66454 2007-03-03  Bruno Haible  <bruno@clisp.org>
66455
66456         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
66457         extracted from gt_FUNC_SETENV.
66458         (gt_FUNC_SETENV): Remove macro.
66459         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
66460         remove gt_FUNC_SETENV.
66461
66462 2007-03-03  Bruno Haible  <bruno@clisp.org>
66463
66464         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
66465         ENABLE_RELOCATABLE here.
66466         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
66467
66468 2007-03-03  Bruno Haible  <bruno@clisp.org>
66469
66470         * modules/rbtreehash-list-tests (Depends-on): Add progname.
66471         * tests/test-rbtreehash_list.c: Include progname.h.
66472         (main): Call set_program_name.
66473
66474         * modules/rbtree-oset-tests (Depends-on): Add progname.
66475         * tests/test-rbtree_oset.c: Include progname.h.
66476         (main): Call set_program_name.
66477
66478         * modules/rbtree-list-tests (Depends-on): Add progname.
66479         * tests/test-rbtree_list.c: Include progname.h.
66480         (main): Call set_program_name.
66481
66482         * modules/linked-list-tests (Depends-on): Add progname.
66483         * tests/test-linked_list.c: Include progname.h.
66484         (main): Call set_program_name.
66485
66486 2007-03-03  Bruno Haible  <bruno@clisp.org>
66487
66488         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
66489         All uses of __restrict changed to _Restrict_.
66490         * lib/glob_.h (__restrict): Remove macro.
66491
66492 2007-03-02  Bruno Haible  <bruno@clisp.org>
66493
66494         * modules/gettext (configure.ac): Require gettext infrastructure
66495         from version 0.16.1.
66496
66497 2007-03-02  Bruno Haible  <bruno@clisp.org>
66498
66499         * modules/linkedhash-list-tests (Depends-on): Add progname.
66500         * tests/test-linkedhash_list.c: Include progname.h.
66501         (main): Call set_program_name.
66502
66503         * modules/carray-list-tests (Depends-on): Add progname.
66504         * tests/test-carray_list.c: Include progname.h.
66505         (main): Call set_program_name.
66506
66507         * modules/avltreehash-list-tests (Depends-on): Add progname.
66508         * tests/test-avltreehash_list.c: Include progname.h.
66509         (main): Call set_program_name.
66510
66511         * modules/avltree-oset-tests (Depends-on): Add progname.
66512         * tests/test-avltree_oset.c: Include progname.h.
66513         (main): Call set_program_name.
66514
66515         * modules/avltree-list-tests (Depends-on): Add progname.
66516         * tests/test-avltree_list.c: Include progname.h.
66517         (main): Call set_program_name.
66518
66519         * modules/array-oset-tests (Depends-on): Add progname.
66520         * tests/test-array_oset.c: Include progname.h.
66521         (main): Call set_program_name.
66522
66523         * modules/array-list-tests (Depends-on): Add progname.
66524         * tests/test-array_list.c: Include progname.h.
66525         (main): Call set_program_name.
66526
66527         * modules/argp-tests (Depends-on): Add progname.
66528         * tests/test-argp.c: Include argp.h first. Include progname.h.
66529         (main): Call set_program_name.
66530
66531 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
66532
66533         * doc/gnulib-tool.texi (Initial import): Reword description of
66534         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
66535         limited effect even if defined after the first system include.
66536
66537 2007-03-01  Bruno Haible  <bruno@clisp.org>
66538
66539         * build-aux/config.libpath: Update to libtool-1.5.22.
66540         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
66541
66542 2007-03-01  Bruno Haible  <bruno@clisp.org>
66543
66544         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
66545         foo_CFLAGS.
66546         Reported by Ralf Wildenhues.
66547
66548 2007-03-01  Bruno Haible  <bruno@clisp.org>
66549
66550         * build-aux/install-reloc: Remove object files left over by some
66551         compilers.
66552         Reported by Ralf Wildenhues.
66553
66554 2007-03-01  Bruno Haible  <bruno@clisp.org>
66555
66556         * build-aux/install-reloc: Break long lines.
66557
66558 2007-03-01  Bruno Haible  <bruno@clisp.org>
66559
66560         * doc/relocatable.texi: Document that it may not work on OpenBSD.
66561         Reported by Ralf Wildenhues.
66562
66563 2007-03-01  Bruno Haible  <bruno@clisp.org>
66564
66565         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
66566         include ordering constraints.
66567
66568 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66569
66570         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
66571         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
66572         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
66573         as another example.
66574         * lib/time_.h: Fix misspelling.
66575         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66576         Require gl_HEADER_TIME_H_DEFAULTS.
66577         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
66578         * m4/time_r.m4 (gl_TIME_R): Likewise.
66579         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
66580
66581 2007-03-01  Bruno Haible  <bruno@clisp.org>
66582
66583         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
66584         * m4/utimens.m4 (gl_UTIMENS): Likewise.
66585
66586 2007-03-01  Jim Meyering  <jim@meyering.net>
66587
66588         * modules/xreadlink (Maintainer): Add my name.
66589         * modules/xreadlink-with-size (Depends-on): Alphabetize.
66590
66591 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
66592             Bruno Haible  <bruno@clisp.org>
66593
66594         * build-aux/install-reloc: Compile also c-ctype.c.
66595         * build-aux/relocatable.sh.in: New file.
66596         * doc/relocatable.texi: New file.
66597         * doc/relocatable-maint.texi: New file.
66598         * doc/gnulib.texi: Include relocatable-maint.texi.
66599         * lib/progreloc.c: Include unistd.h unconditionally.
66600         * lib/relocwrapper.c: Include unistd.h unconditionally.
66601         Include c-ctype.h.
66602         (add_dotbin): Use c_tolower.
66603         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
66604         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
66605         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
66606         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
66607         to m4/relocatable-lib.m4.
66608         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
66609         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
66610         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
66611         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
66612         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
66613         * modules/relocatable: New file.
66614         * modules/relocatable-lib: New file.
66615         * modules/relocatable-script: New file.
66616
66617 2007-02-28  Bruno Haible  <bruno@clisp.org>
66618
66619         Import --enable-relocatable infrastructure.
66620         * build-aux/config.libpath: New file, from GNU gettext.
66621         * build-aux/install-reloc: New file, from GNU gettext.
66622         * build-aux/reloc-ldflags: New file, from GNU gettext.
66623         * lib/relocatable.h: New file, from GNU gettext.
66624         * lib/relocatable.c: New file, from GNU gettext.
66625         * lib/relocwrapper.c: New file, from GNU gettext.
66626         * m4/relocatable.m4: New file, from GNU gettext.
66627
66628 2007-02-28  Bruno Haible  <bruno@clisp.org>
66629
66630         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
66631
66632         * modules/xreadlink: New file, from GNU gettext with modifications.
66633         * lib/xreadlink.c: New file, from GNU gettext.
66634         * lib/xreadlink.h: Add comments.
66635         (xreadlink): New declaration.
66636
66637         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
66638         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
66639         lib/xreadlink-with-size.c.
66640         (configure.ac): Remove gl_XREADLINK invocation.
66641         (Makefile.am): Augment lib_SOURCES.
66642         * m4/xreadlink.m4: Remove file.
66643         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
66644         (xreadlink_with_size): Renamed from xreadink.
66645         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
66646         * modules/canonicalize (Depends-on): Replace xreadlink with
66647         xreadlink-with-size.
66648         * lib/canonicalize.c (canonicalize_filename_mode): Update.
66649
66650 2007-02-25  Jim Meyering  <jim@meyering.net>
66651
66652         * build-aux/announce-gen: When complaining about excess arguments,
66653         list them.
66654
66655 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66656
66657         * README: Document signed integer overflow situation more
66658         accurately.
66659
66660 2007-02-25  Bruno Haible  <bruno@clisp.org>
66661
66662         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
66663         'a' or 'A' conversion.
66664
66665 2007-02-25  Bruno Haible  <bruno@clisp.org>
66666
66667         * modules/filename: Renamed from modules/pathname.
66668         (Files): Replace lib/pathname.h with lib/filename.h. Replace
66669         lib/concatpath.c with lib/concat-filename.c.
66670         (Makefile.am): Update.
66671         (Include): Replace pathname.h with filename.h.
66672         * lib/filename.h: Renamed from lib/pathname.h.
66673         (concatenated_filename): Renamed from concatenated_pathname.
66674         * lib/concat-filename.c: Renamed from lib/concatpath.c.
66675         (concatenated_filename): Renamed from concatenated_pathname.
66676         * lib/findprog.c: Include filename.h instead of pathname.h.
66677         (find_in_path): Update.
66678         * lib/javacomp.c: Include filename.h instead of pathname.h.
66679         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
66680         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
66681         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
66682         is_oldgcj_14_13_usable, is_javac_usable): Update.
66683         * lib/javaexec.c: Include filename.h instead of pathname.h.
66684         (execute_java_class): Update.
66685         * modules/findprog: Update.
66686         * modules/javacomp: Update.
66687         * modules/javaexec: Update.
66688         * MODULES.html.sh (File system functions): Add 'filename', remove
66689         'pathname'.
66690
66691 2007-02-25  Bruno Haible  <bruno@clisp.org>
66692
66693         * modules/printf-frexpl-tests: New file.
66694         * tests/test-printf-frexpl.c: New file.
66695
66696         * modules/printf-frexpl: New file.
66697         * lib/printf-frexpl.h: New file.
66698         * lib/printf-frexpl.c: New file.
66699         * m4/printf-frexpl.m4: New file.
66700
66701 2007-02-25  Bruno Haible  <bruno@clisp.org>
66702
66703         * modules/printf-frexp-tests: New file.
66704         * tests/test-printf-frexp.c: New file.
66705
66706         * modules/printf-frexp: New file.
66707         * lib/printf-frexp.h: New file.
66708         * lib/printf-frexp.c: New file.
66709         * m4/printf-frexp.m4: New file.
66710
66711 2007-02-25  Bruno Haible  <bruno@clisp.org>
66712
66713         Assume automake >= 1.10 for the tests.
66714         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
66715         * modules/arctwo-tests: Likewise.
66716         * modules/argp-tests: Likewise.
66717         * modules/avltree-list-tests: Likewise.
66718         * modules/avltree-oset-tests: Likewise.
66719         * modules/avltreehash-list-tests: Likewise.
66720         * modules/carray-list-tests: Likewise.
66721         * modules/crc-tests: Likewise.
66722         * modules/des-tests: Likewise.
66723         * modules/gc-arcfour-tests: Likewise.
66724         * modules/gc-arctwo-tests: Likewise.
66725         * modules/gc-des-tests: Likewise.
66726         * modules/gc-hmac-md5-tests: Likewise.
66727         * modules/gc-hmac-sha1-tests: Likewise.
66728         * modules/gc-md2-tests: Likewise.
66729         * modules/gc-md4-tests: Likewise.
66730         * modules/gc-md5-tests: Likewise.
66731         * modules/gc-pbkdf2-sha1-tests: Likewise.
66732         * modules/gc-rijndael-tests: Likewise.
66733         * modules/gc-sha1-tests: Likewise.
66734         * modules/gc-tests: Likewise.
66735         * modules/getaddrinfo-tests: Likewise.
66736         * modules/hmac-md5-tests: Likewise.
66737         * modules/hmac-sha1-tests: Likewise.
66738         * modules/linked-list-tests: Likewise.
66739         * modules/linkedhash-list-tests: Likewise.
66740         * modules/lock-tests: Likewise.
66741         * modules/md2-tests: Likewise.
66742         * modules/md4-tests: Likewise.
66743         * modules/md5-tests: Likewise.
66744         * modules/rbtree-list-tests: Likewise.
66745         * modules/rbtree-oset-tests: Likewise.
66746         * modules/rbtreehash-list-tests: Likewise.
66747         * modules/read-file-tests: Likewise.
66748         * modules/rijndael-tests: Likewise.
66749         * modules/stdint-tests: Likewise.
66750         * modules/tls-tests: Likewise.
66751
66752 2007-02-24  Bruno Haible  <bruno@clisp.org>
66753
66754         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
66755         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
66756         function; instead check whether isnan with a double argument links.
66757         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
66758         function; instead check whether isnan with a 'long double' argument
66759         links.
66760         Reported by Eric Blake <ebb9@byu.net>.
66761
66762 2007-02-24  Bruno Haible  <bruno@clisp.org>
66763
66764         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
66765         defined.
66766         * lib/isnanl.c: Remove all code. Just include isnan.c.
66767         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
66768
66769 2007-02-25  Jim Meyering  <jim@meyering.net>
66770
66771         Avoid conflicting types for 'unsetenv' on FreeBSD.
66772         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
66773         conflicting with FreeBSD's (5.0 and 6.1) function declaration
66774         in stdlib.h.
66775
66776 2007-02-24  Bruno Haible  <bruno@clisp.org>
66777
66778         * modules/isnanl-nolibm-tests: New file.
66779         * tests/test-isnanl.c: New file.
66780
66781         * modules/isnanl-nolibm: New file.
66782         * lib/isnanl.h: New file.
66783         * lib/isnanl.c: New file.
66784         * m4/isnanl.m4: New file.
66785
66786 2007-02-24  Bruno Haible  <bruno@clisp.org>
66787
66788         * modules/isnan-nolibm-tests: New file.
66789         * tests/test-isnan.c: New file.
66790
66791         * modules/isnan-nolibm: New file.
66792         * lib/isnan.h: New file.
66793         * lib/isnan.c: New file.
66794         * m4/isnan.m4: New file.
66795
66796 2007-02-24  Bruno Haible  <bruno@clisp.org>
66797
66798         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
66799         assume that an exponent fits in 20 bits.
66800
66801 2007-02-24  Jim Meyering  <jim@meyering.net>
66802
66803         * m4/regex.m4: Update the description of the configure-time option,
66804         --without-included-regex, to state accurately what the defaults are,
66805         and perhaps to give people an idea why using this option is risky.
66806
66807 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66808
66809         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
66810         loops on small arguments.  This attempts to avoid the problem
66811         Bruno Haible reported for AIX 4.3.2 in
66812         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
66813
66814 2007-02-23  Bruno Haible  <bruno@clisp.org>
66815
66816         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
66817         Needed for help2man.
66818
66819 2007-02-23  Karl Berry  <karl@gnu.org>
66820
66821         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
66822         exists, foo.h should be cvs-ignored, not committed.
66823
66824 2007-02-23  Eric Blake  <ebb9@byu.net>
66825
66826         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
66827         * lib/stat-time.h (includes): Likewise.
66828         * lib/utimecmp.c (includes): Likewise.
66829         * lib/utimens.h (includes): Likewise.
66830         * lib/getdate.y (includes): Also include "timespec.h" for use
66831         internal to the module.
66832         * modules/utimens (Depends-on): Revert yesterday's patch.
66833         * modules/nanosleep (Depends-on): Add missing dependency.
66834
66835 2007-02-22  Bruno Haible  <bruno@clisp.org>
66836
66837         * lib/glob.c: Don't include getlogin_r.h.
66838
66839 2007-02-22  Jim Meyering  <jim@meyering.net>
66840
66841         * modules/utimens (Depends-on): Add timespec, required for
66842         utimens.h's inclusion of timespec.h.
66843
66844 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
66845
66846         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
66847         long unreadable paths in GNU/Linux.  Problem reported by Andreas
66848         Schwab in
66849         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
66850         I'll try to think of a better way to fix the Solaris problem.
66851
66852         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
66853         like glibc; on Solaris 10, it fails with errno == EINVAL.
66854         POSIX says the behavior is unspecified if the first argument is NULL,
66855         so play it safe and never pass NULL to the system getcwd.
66856
66857 2007-02-21  Jim Meyering  <jim@meyering.net>
66858
66859         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
66860         of gettimeofday.  It would conflict with the one now always
66861         provided via sys_time_.h.  Reported by Matthew Woehlke, as
66862         an IRIX 6.5 build failure.
66863
66864 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66865
66866         Minor fixups to port to Solaris 10 with Sun C 5.8.
66867         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
66868         * modules/getcwd (Depends-on): Add dirfd.
66869         * lib/putenv.c (putenv): #undef it.
66870         (rpl_putenv): New decl.
66871         (malloc, free): Include <stdlib.h> rather than prototyping separately.
66872
66873 2007-02-20  Bruno Haible  <bruno@clisp.org>
66874
66875         * modules/stdio-tests: New file.
66876         * tests/test-stdio.c: New file.
66877
66878         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
66879         (Depends-on): Add stdio.
66880         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
66881         (Include): Use <stdio.h> instead of vsnprintf.h.
66882         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
66883         HAVE_DECL_VSNPRINTF.
66884         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
66885
66886         * modules/snprintf (Files): Remove lib/snprintf.h.
66887         (Depends-on): Add stdio.
66888         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
66889         (Include): Use <stdio.h> instead of snprintf.h.
66890         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
66891         HAVE_DECL_SNPRINTF.
66892         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
66893         * lib/getaddrinfo.c: Likewise.
66894
66895         * modules/stdio: New file.
66896         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
66897         * lib/snprintf.h: Remove file.
66898         * lib/vsnprintf.h: Remove file.
66899         * lib/.cppi-disable: Remove snprintf.h.
66900         * m4/stdio_h.m4: New file.
66901         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
66902
66903 2007-02-20  Jim Meyering  <jim@meyering.net>
66904
66905         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
66906         used by e.g., mingw.  From Bruno Haible.
66907
66908 2007-02-19  Bruno Haible  <bruno@clisp.org>
66909
66910         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
66911         warnings.
66912         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66913
66914 2007-02-19  Bruno Haible  <bruno@clisp.org>
66915
66916         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
66917         from mingw users.
66918
66919 2007-02-19  Bruno Haible  <bruno@clisp.org>
66920
66921         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
66922         warnings.
66923         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
66924
66925 2007-02-19  Jim Meyering  <jim@meyering.net>
66926
66927         Don't use FD after a successful "fdopendir (fd)".
66928         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
66929         Reset it by calling dirfd on the just-obtained DIR*.
66930
66931         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
66932         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
66933
66934 2007-02-18  Bruno Haible  <bruno@clisp.org>
66935
66936         * lib/readlink.c: Include <unistd.h>.
66937         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
66938         HAVE_READLINK.
66939         * modules/readlink (Depends-on): Add unistd.
66940         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66941         (Include): Add <unistd.h>.
66942
66943         * lib/getlogin_r.h: Remove file.
66944         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
66945         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
66946         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
66947         HAVE_DECL_GETLOGIN_R.
66948         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
66949         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66950         (Include): Use <unistd.h> instead of getlogin_r.h.
66951
66952         * lib/getcwd.h: Remove file.
66953         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
66954         * lib/xgetcwd.c: Likewise.
66955         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
66956         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
66957         * modules/getcwd (Files): Remove lib/getcwd.h.
66958         (Depends-on): Add unistd.
66959         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66960         (Include): Use <unistd.h> instad of getcwd.h.
66961
66962         * lib/ftruncate.c: Include <unistd.h> first.
66963         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
66964         Set HAVE_FTRUNCATE.
66965         * modules/ftruncate (Depends-on): Add unistd.
66966         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66967
66968         * lib/fchdir.c: Include <unistd.h> first.
66969         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
66970         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
66971         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
66972         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66973         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
66974
66975         * lib/dup2.c: Include <unistd.h> first.
66976         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
66977         HAVE_DUP2.
66978         * modules/dup2 (Depends-on): Add unistd.
66979         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66980
66981         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
66982         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
66983         REPLACE_CHOWN. Don't define chown as a macro here.
66984         * modules/chown (Depends-on): Add unistd.
66985         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66986
66987         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
66988         Add definition for GL_LINK_WARNING.
66989         (chown, dup2): New declarations.
66990         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
66991         link warning.
66992         (ftruncate): New declaration.
66993         (getcwd): New declaration, taken from old getcwd.h.
66994         (getlogin_r): New declaration, taken from old getlogin_r.h.
66995         (readlink): New declaration.
66996         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
66997         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
66998         (gl_PREREQ_UNISTD): Remove macro.
66999         (gl_UNISTD_MODULE_INDICATOR): New macro.
67000         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
67001         many new variables. Don't set UNISTD_H.
67002         * modules/unistd (Description): Change.
67003         (Depends-on): Add link-warning.
67004         (configure.ac): Update.
67005         (Makefile.am): Create unistd.h always. Substitute many new variables
67006         into it.
67007
67008 2007-02-18  Bruno Haible  <bruno@clisp.org>
67009
67010         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
67011         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
67012         HAVE_GETSUBOPT.
67013         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
67014         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
67015         * lib/getsubopt.h: Remove file.
67016         * modules/getsubopt (Files): Remove lib/getsubopt.h.
67017         (Depends-on): Add stdlib.
67018         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67019         (Includes): Use <stdlib.h> instead of getsubopt.h.
67020         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
67021         Set HAVE_GETSUBOPT.
67022         * lib/getsubopt.c: Don't include getsubopt.h.
67023
67024 2007-02-18  Bruno Haible  <bruno@clisp.org>
67025
67026         * modules/fchdir (Depends-on): Add dup2.
67027
67028 2007-02-18  Bruno Haible  <bruno@clisp.org>
67029
67030         * lib/stdlib_.h: Handle glibc's special invocation convention
67031         specially.
67032
67033 2007-02-18  Bruno Haible  <bruno@clisp.org>
67034
67035         * modules/stdlib-tests: New file.
67036         * tests/test-stdlib.c: New file.
67037
67038         * modules/mkstemp (Files): Remove lib/mkstemp.h.
67039         (Depends-on): Add stdlib.
67040         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67041         (Includes): Use <stdlib.h> instead of mkstemp.h.
67042         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67043         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
67044         * lib/mkstemp.c: Don't include mkstemp.h.
67045         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
67046         * lib/stdlib--.h: Don't include mkstemp.h.
67047
67048         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
67049         (Depends-on): Add stdlib.
67050         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67051         (Includes): Use <stdlib.h> instead of mkdtemp.h.
67052         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67053         HAVE_MKDTEMP.
67054         * lib/mkdtemp.c: Don't include mkdtemp.h.
67055         * lib/clean-temp.c: Don't include mkdtemp.h.
67056
67057         * modules/exit (Files): Remove lib/exit.h.
67058         (Depends-on): Add stdlib.
67059         (Makefile.am): Remove lib_SOURCES.
67060         (Include): Use <stdlib.h> instead of exit.h.
67061         * lib/argmatch.c: Don't include exit.h.
67062         * lib/execute.c: Likewise.
67063         * lib/pagealign_alloc.c: Likewise.
67064         * lib/pipe.c: Likewise.
67065         * lib/wait-process.c: Likewise.
67066         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
67067         * lib/exitfail.c: Likewise.
67068         * lib/savewd.c: Likewise.
67069         * lib/xsetenv.c: Likewise.
67070
67071         * modules/stdlib: New file.
67072         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
67073         and extra comments about mkstemp().
67074         * lib/exit.h: Remove file.
67075         * lib/mkdtemp.h: Remove file.
67076         * lib/mkstemp.h: Remove file.
67077         * m4/stdlib_h.m4: New file.
67078         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
67079
67080 2007-02-18  Bruno Haible  <bruno@clisp.org>
67081
67082         * modules/math-tests: New file.
67083         * tests/test-math.c: New file.
67084
67085         * modules/math: New file.
67086         * modules/mathl (Files): Remove lib/mathl.h.
67087         (Depends-on): Add math.
67088         (Makefile.am): Don't mention mathl.h.
67089         (Include): Use <math.h> instead of mathl.h.
67090         * lib/math_.h: New file.
67091         * lib/mathl.h: Remove file.
67092         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
67093         mathl.h.
67094         * lib/asinl.c: Likewise.
67095         * lib/atanl.c: Likewise.
67096         * lib/ceill.c: Likewise.
67097         * lib/cosl.c: Likewise.
67098         * lib/expl.c: Likewise.
67099         * lib/floorl.c: Likewise.
67100         * lib/frexpl.c: Likewise.
67101         * lib/ldexpl.c: Likewise.
67102         * lib/logl.c: Likewise.
67103         * lib/sincosl.c: Likewise.
67104         * lib/sinl.c: Likewise.
67105         * lib/sqrtl.c: Likewise.
67106         * lib/tanl.c: Likewise.
67107         * lib/trigl.c: Likewise.
67108         * m4/math_h.m4: New file.
67109         * MODULES.html.sh (Mathematics): Add math.
67110
67111 2007-02-17  Bruno Haible  <bruno@clisp.org>
67112
67113         * modules/wctype-tests: New file.
67114         * tests/test-wctype.c: New file.
67115
67116         * modules/wchar-tests: New file.
67117         * tests/test-wchar.c: New file.
67118
67119         * modules/unistd-tests: New file.
67120         * tests/test-unistd.c: New file.
67121
67122         * modules/time-tests: New file.
67123         * tests/test-time.c: New file.
67124
67125         * modules/sysexits-tests: New file.
67126         * tests/test-sysexits.c: New file.
67127
67128         * modules/sys_time-tests: New file.
67129         * tests/test-sys_time.c: New file.
67130
67131         * modules/sys_stat-tests: New file.
67132         * tests/test-sys_stat.c: New file.
67133
67134         * modules/sys_socket-tests: New file.
67135         * tests/test-sys_socket.c: New file.
67136
67137         * modules/sys_select-tests: New file.
67138         * tests/test-sys_select.c: New file.
67139
67140         * modules/string-tests: New file.
67141         * tests/test-string.c: New file.
67142
67143         * modules/stdbool-tests: New file.
67144         * tests/test-stdbool.c: New file.
67145
67146         * modules/netinet_in-tests: New file.
67147         * tests/test-netinet_in.c: New file.
67148
67149         * modules/inttypes-tests: New file.
67150         * tests/test-inttypes.c: New file.
67151
67152         * modules/fcntl-tests: New file.
67153         * tests/test-fcntl.c: New file.
67154
67155         * modules/byteswap-tests: New file.
67156         * tests/test-byteswap.c: New file.
67157
67158         * modules/arpa_inet-tests: New file.
67159         * tests/test-arpa_inet.c: New file.
67160
67161 2007-02-17  Bruno Haible  <bruno@clisp.org>
67162
67163         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
67164         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
67165         if the corresponding module is not enabled. Emit link warnings if
67166         the function is used nevertheless.
67167         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
67168         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
67169         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
67170         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
67171         * modules/inttypes (Depends-on): Add link-warning.
67172         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67173         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
67174         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
67175         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
67176         * modules/imaxdiv (configure.ac): Likewise.
67177         * modules/strtoimax (configure.ac): Likewise.
67178         * modules/strtoumax (configure.ac): Likewise.
67179
67180 2007-02-17  Bruno Haible  <bruno@clisp.org>
67181
67182         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
67183         gl_STRING_MODULE_INDICATOR_DEFAULTS.
67184         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
67185         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
67186
67187 2007-02-17  Bruno Haible  <bruno@clisp.org>
67188
67189         * modules/link-warning: New file.
67190         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
67191         * lib/string_.h (GL_LINK_WARNING): Remove definition.
67192         * modules/string (Depends-on): Add link-warning.
67193         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67194         string.h.
67195         * MODULES.html.sh (Support for building libraries and executables): Add
67196         link-warning.
67197
67198 2007-02-17  Bruno Haible  <bruno@clisp.org>
67199
67200         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
67201         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
67202         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
67203         long lines.
67204
67205 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
67206             Bruno Haible  <bruno@clisp.org>
67207
67208         * modules/tmpfile: New file.
67209         * lib/tmpfile.c: New file.
67210         * m4/tmpfile.m4: New file.
67211         * MODULES.html.sh (func_all_modules): New section "Input/output".
67212
67213 2007-02-15  Bruno Haible  <bruno@clisp.org>
67214
67215         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
67216         (supports_delete_on_close): New function.
67217         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
67218
67219 2007-02-14  Bruno Haible  <bruno@clisp.org>
67220
67221         * modules/mbspcasecmp-tests: New file.
67222         * tests/test-mbspcasecmp.sh: New file.
67223         * tests/test-mbspcasecmp.c: New file.
67224
67225         New module mbspcasecmp.
67226         * modules/mbspcasecmp: New file.
67227         * lib/mbspcasecmp.c: New file.
67228         * lib/string_.h (strncasecmp): Change warning message.
67229         (mbspcasecmp): New declaration.
67230         * m4/mbspcasecmp.m4: New file.
67231         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67232         GNULIB_MBSPCASECMP.
67233         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
67234         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
67235
67236 2007-02-14  Bruno Haible  <bruno@clisp.org>
67237
67238         * modules/mbsncasecmp-tests: New file.
67239         * tests/test-mbsncasecmp.sh: New file.
67240         * tests/test-mbsncasecmp.c: New file.
67241
67242         New module mbsncasecmp.
67243         * modules/mbsncasecmp: New file.
67244         * lib/mbsncasecmp.c: New file.
67245         * lib/string_.h (mbsncasecmp): New declaration.
67246         * m4/mbsncasecmp.m4: New file.
67247         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67248         GNULIB_MBSNCASECMP.
67249         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
67250         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
67251
67252 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67253
67254         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
67255         Verify that it doesn't overlap with our flags.
67256         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
67257         do not have the desired effect in multibyte locales; instead, use
67258         mbscasecmp.
67259         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
67260         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
67261         we don't require GNU fnmatch ourselves (if our users require it, they
67262         should do so explicitly).
67263
67264         Fix regex code so it doesn't rely on strcasecmp.
67265         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
67266         Otherwise, include gnulib's langinfo.h.
67267         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
67268         undesirable behavior in non-C locales.  Instead, rely on localecharset.
67269         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
67270         * modules/regex (FILES): Remove m4/codeset.m4.
67271         (Depends-on): Add localcharset.  Remove strcase.
67272
67273 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67274
67275         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
67276         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
67277
67278 2007-02-13  Bruno Haible  <bruno@clisp.org>
67279
67280         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
67281         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67282
67283 2007-02-12  Bruno Haible  <bruno@clisp.org>
67284
67285         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
67286         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
67287         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
67288         time warning rather than a link error.
67289
67290 2007-02-12  Bruno Haible  <bruno@clisp.org>
67291
67292         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
67293         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
67294         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67295
67296 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
67297
67298         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
67299         args, not 2.
67300
67301 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
67302
67303         New module 'time', so that apps can include <time.h> as per
67304         POSIX and GNU instead of separate include files like time_r.h
67305         and timegm.h.  This implementation tries out a simpler approach
67306         for replacing decls in standard include files (as compared to
67307         the string module), somewhat as an experiment.
67308
67309         * config/srclist.txt: Comment out mktime.c for now.
67310         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
67311         since it doesn't apply any more.  Use generic wording instead.
67312         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
67313         'time'.
67314         * lib/time_.h, m4/time_h.m4, modules/time: New files.
67315         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
67316         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
67317         Don't include <sys/types.h>; no longer needed since we assume C89.
67318         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
67319         * lib/strftime.c: Likewise.
67320         * lib/time_r.c: Likewise.
67321         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
67322         * lib/nanosleep.c: Include <time.h> first, to check interface.
67323         * lib/strptime.c: Likewise.
67324         * lib/time_r.c: Likewise.
67325         * lib/timegm.c: Likewise.
67326         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
67327         needed.
67328         * lib/timegm.c: Don't include timegm.h; no longer needed.
67329         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
67330         time.h now handles any problems in that area.
67331         (struct timespec, nanosleep): Remove; time.h now arranges for these.
67332         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
67333         that time.h defines struct timespec.
67334         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
67335         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
67336         handles that.
67337         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
67338         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
67339         needed.  Set REPLACE_LOCALTIME.
67340         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
67341         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
67342         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
67343         nanosleep; time_h.m4 now does that.  Don't require
67344         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
67345         module handles this now.
67346         * modules/getdate (Depends-on): Remove timespec.  Add time.
67347         * modules/nanosleep (Depends-on): Likewise.
67348         * modules/stat-time (Depends-on): Likewise.
67349         * modules/nanosleep (Include): Include time.h, not timespec.h.
67350         * modules/strptime (Files): Remove lib/strptime.h.
67351         (Depends-on): Add extensions, time.
67352         (Include): Include time.h, not strptime.h.
67353         * modules/time_r (Files): Remove lib/time_r.h.
67354         (Depends-on): Add time.
67355         (Include): Include time.h, not time_r.h.
67356         * modules/timegm: Likewise.
67357         * modules/timespec (Description): Now does timespec-related decls
67358         of our own, instead of struct timespec itself.
67359         (Depends-on): Add time; remove extensions.
67360         (Maintainer): Add self.
67361         * modules/utimecmp (Depends-on): Add time; remove timespec.
67362         * modules/utimens (Depends-on): Likewise.
67363         * modules/xnanosleep (Depends-on): Likewise.
67364
67365 2007-02-11  Bruno Haible  <bruno@clisp.org>
67366
67367         * lib/c-strstr.c: Include allocsa.h.
67368         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67369         * lib/c-strcasestr.c: Include allocsa.h.
67370         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67371         * lib/strcasestr.c: Include allocsa.h.
67372         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67373         * lib/mbsstr.c: Include allocsa.h.
67374         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
67375         allocsa/freesa instead of malloc/free.
67376         * lib/mbscasestr.c: Include allocsa.h.
67377         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
67378         allocsa/freesa instead of malloc/free.
67379         * modules/c-strstr (Depends-on): Add allocsa.
67380         * modules/c-strcasestr (Depends-on): Likewise.
67381         * modules/strcasestr (Depends-on): Likewise.
67382         * modules/mbsstr (Depends-on): Likewise.
67383         * modules/mbscasestr (Depends-on): Likewise.
67384
67385 2007-02-11  Bruno Haible  <bruno@clisp.org>
67386
67387         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
67388
67389         * modules/mbsspn-tests: New file.
67390         * tests/test-mbsspn.sh: New file.
67391         * tests/test-mbsspn.c: New file.
67392
67393 2007-02-11  Bruno Haible  <bruno@clisp.org>
67394
67395         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
67396
67397         * modules/mbspbrk-tests: New file.
67398         * tests/test-mbspbrk.sh: New file.
67399         * tests/test-mbspbrk.c: New file.
67400
67401 2007-02-11  Bruno Haible  <bruno@clisp.org>
67402
67403         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
67404         unneeded cast.
67405
67406         * modules/mbscspn-tests: New file.
67407         * tests/test-mbscspn.sh: New file.
67408         * tests/test-mbscspn.c: New file.
67409
67410 2007-02-11  Bruno Haible  <bruno@clisp.org>
67411
67412         * modules/mbscasecmp-tests: New file.
67413         * tests/test-mbscasecmp.sh: New file.
67414         * tests/test-mbscasecmp.c: New file.
67415
67416 2007-02-11  Bruno Haible  <bruno@clisp.org>
67417
67418         Ensure O(n) worst-case complexity of mbscasestr.
67419         * lib/mbscasestr.c: Include stdbool.h.
67420         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
67421         functions.
67422         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
67423         the bookkeeping indicates that it's worth it.
67424         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
67425
67426         * modules/mbscasestr-tests: New file.
67427         * tests/test-mbscasestr1.c: New file.
67428         * tests/test-mbscasestr2.sh: New file.
67429         * tests/test-mbscasestr2.c: New file.
67430         * tests/test-mbscasestr3.sh: New file.
67431         * tests/test-mbscasestr3.c: New file.
67432         * tests/test-mbscasestr4.sh: New file.
67433         * tests/test-mbscasestr4.c: New file.
67434         * m4/locale-tr.m4: New file.
67435
67436 2007-02-11  Bruno Haible  <bruno@clisp.org>
67437
67438         Ensure O(n) worst-case complexity of mbsstr.
67439         * lib/mbsstr.c: Include stdbool.h.
67440         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
67441         functions.
67442         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
67443         bookkeeping indicates that it's worth it.
67444         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
67445
67446         * modules/mbsstr-tests: New file.
67447         * tests/test-mbsstr1.c: New file.
67448         * tests/test-mbsstr2.sh: New file.
67449         * tests/test-mbsstr2.c: New file.
67450         * tests/test-mbsstr3.sh: New file.
67451         * tests/test-mbsstr3.c: New file.
67452         * m4/locale-fr.m4: New file.
67453
67454 2007-02-11  Bruno Haible  <bruno@clisp.org>
67455
67456         * lib/mbsrchr.c (mbsrchr): Fix bug.
67457
67458         * modules/mbsrchr-tests: New file.
67459         * tests/test-mbsrchr.sh: New file.
67460         * tests/test-mbsrchr.c: New file.
67461
67462 2007-02-11  Bruno Haible  <bruno@clisp.org>
67463
67464         * lib/mbschr.c (mbschr): Fix bug.
67465
67466         * modules/mbschr-tests: New file.
67467         * tests/test-mbschr.sh: New file.
67468         * tests/test-mbschr.c: New file.
67469         * m4/locale-zh.m4: New file.
67470
67471 2007-02-11  Bruno Haible  <bruno@clisp.org>
67472
67473         Support for copying multibyte string iterators.
67474         * lib/mbiter.h: Include <string.h>.
67475         (mbiter_multi_copy): New function.
67476         (mbi_copy): New macro.
67477         * lib/mbuiter.h: Include <string.h>.
67478         (mbuiter_multi_copy): New function.
67479         (mbui_copy): New macro.
67480
67481 2007-02-11  Bruno Haible  <bruno@clisp.org>
67482
67483         New module mbslen.
67484         * modules/mbslen: New file.
67485         * lib/mbslen.c: New file.
67486         * lib/string_.h (mbslen): New declaration.
67487         * m4/mbslen.m4: New file.
67488         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67489         GNULIB_MBSLEN.
67490         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
67491         * MODULES.html.sh (Internationalization functions): Add mbslen.
67492
67493 2007-02-11  Bruno Haible  <bruno@clisp.org>
67494
67495         Ensure O(n) worst-case complexity of strcasestr substitute.
67496         * lib/strcasestr.c: Include stdbool.h.
67497         (knuth_morris_pratt): New function.
67498         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
67499         bookkeeping indicates that it's worth it.
67500         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
67501
67502         * modules/strcasestr-tests: New file.
67503         * tests/test-strcasestr.c: New file.
67504
67505 2007-02-11  Bruno Haible  <bruno@clisp.org>
67506
67507         Ensure O(n) worst-case complexity of c_strcasestr.
67508         * lib/c-strcasestr.c: Include stdbool.h, string.h.
67509         (knuth_morris_pratt): New function.
67510         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
67511         the bookkeeping indicates that it's worth it.
67512         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
67513
67514         * modules/c-strcasestr-tests: New file.
67515         * tests/test-c-strcasestr.c: New file.
67516
67517 2007-02-11  Bruno Haible  <bruno@clisp.org>
67518
67519         Ensure O(n) worst-case complexity of c_strstr.
67520         * lib/c-strstr.c: Include stdbool.h, string.h.
67521         (knuth_morris_pratt): New function.
67522         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
67523         bookkeeping indicates that it's worth it.
67524         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
67525
67526         * lib/c-strstr.c: Complete rewrite for maintainability.
67527
67528         * modules/c-strstr-tests: New file.
67529         * tests/test-c-strstr.c: New file.
67530
67531 2007-02-11  Bruno Haible  <bruno@clisp.org>
67532
67533         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
67534         5.2.1 and earlier, whereby \055 was treated just like the range
67535         delimiter '-'.
67536         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67537
67538 2007-02-08  Bruno Haible  <bruno@clisp.org>
67539
67540         * modules/regex (Depends-on): Add stdbool.
67541         Reported by Dalibor Topic <robilad@kaffe.org>.
67542
67543 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67544
67545         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
67546         Prefer returning from main to exiting from it.
67547         Remove unnecessary parens after sizeof.
67548
67549 2007-02-05  Bruno Haible  <bruno@clisp.org>
67550
67551         New module mbssep.
67552         * modules/mbssep: New file.
67553         * lib/mbssep.c: New file.
67554         * lib/string_.h (strsep): Add a conditional link warning.
67555         (mbssep): New declaration.
67556         * m4/mbssep.m4: New file.
67557         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67558         GNULIB_MBSSEP.
67559         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
67560         * MODULES.html.sh (Internationalization functions): Add mbssep.
67561
67562 2007-02-05  Bruno Haible  <bruno@clisp.org>
67563
67564         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
67565         Optimize search in case of 1 delimiter.
67566
67567 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
67568
67569         * lib/acl.h: Include sys/types.h before sys/acl.h.
67570
67571 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
67572
67573         Merge upstream fix for glibc bugzilla #3957:
67574
67575         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
67576
67577         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
67578         bit for RE_HAT_LISTS_NOT_NEWLINE.
67579         (build_charclass_op): Remove bogus comment.
67580
67581 2007-02-05  Simon Josefsson  <simon@josefsson.org>
67582
67583         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
67584
67585 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
67586
67587         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
67588         * lib/memmem.c [!defined _LIBC]: Include config.h.
67589
67590 2007-02-04  Bruno Haible  <bruno@clisp.org>
67591
67592         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
67593         warning message.
67594
67595 2007-02-04  Bruno Haible  <bruno@clisp.org>
67596
67597         New module mbstok_r.
67598         * modules/mbstok_r: New file.
67599         * lib/mbstok_r.c: New file.
67600         * lib/string_.h (strtok_r): Change argument names to match the
67601         comments. Add a conditional link warning.
67602         (mbstok_r): New declaration.
67603         * m4/mbstok_r.m4: New file.
67604         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67605         GNULIB_MBSTOK_R.
67606         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
67607         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
67608
67609 2007-02-04  Bruno Haible  <bruno@clisp.org>
67610
67611         New module mbsspn.
67612         * modules/mbsspn: New file.
67613         * lib/mbsspn.c: New file.
67614         * lib/string_.h (strspn): Add a conditional link warning.
67615         (mbsspn): New declaration.
67616         * m4/mbsspn.m4: New file.
67617         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67618         GNULIB_MBSSPN.
67619         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
67620         * MODULES.html.sh (Internationalization functions): Add mbsspn.
67621
67622 2007-02-04  Bruno Haible  <bruno@clisp.org>
67623
67624         New module mbspbrk.
67625         * modules/mbspbrk: New file.
67626         * lib/mbspbrk.c: New file.
67627         * lib/string_.h (strpbrk): Add a conditional link warning.
67628         (mbspbrk): New declaration.
67629         * m4/mbspbrk.m4: New file.
67630         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67631         GNULIB_MBSPBRK.
67632         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
67633         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
67634
67635 2007-02-04  Bruno Haible  <bruno@clisp.org>
67636
67637         New module mbscspn.
67638         * modules/mbscspn: New file.
67639         * lib/mbscspn.c: New file.
67640         * lib/string_.h (strcspn): Add a conditional link warning.
67641         (mbscspn): New declaration.
67642         * m4/mbscspn.m4: New file.
67643         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67644         GNULIB_MBSCSPN.
67645         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
67646         * MODULES.html.sh (Internationalization functions): Add mbscspn.
67647
67648 2007-02-04  Bruno Haible  <bruno@clisp.org>
67649
67650         New module mbscasestr, reduced goal of strcasestr.
67651         * modules/mbscasestr: New file.
67652         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
67653         (mbscasestr): Renamed from strcasestr.
67654         * lib/strcasestr.c: Don't include mbuiter.h.
67655         (strcasestr): Remove support for multibyte locales.
67656         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
67657         Change the conditional link warning.
67658         (mbscasestr): New declaration.
67659         * m4/mbscasestr.m4: New file.
67660         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
67661         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
67662         REPLACE_STRCASESTR.
67663         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
67664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
67665         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
67666         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
67667         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
67668         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
67669         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
67670         (Depends-on): Remove mbuiter.
67671         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
67672
67673 2007-02-04  Bruno Haible  <bruno@clisp.org>
67674
67675         Simplify handling of strncasecmp.
67676         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
67677         the conditional link warning.
67678         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
67679         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
67680         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
67681         * modules/strcase (configure.ac): Don't invoke
67682         gl_STRING_MODULE_INDICATOR.
67683         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
67684
67685 2007-02-04  Bruno Haible  <bruno@clisp.org>
67686
67687         New module mbscasecmp, reduced goal of strcasecmp.
67688         * modules/mbscasecmp: New file.
67689         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
67690         (mbscasecmp): Renamed from strcasecmp.
67691         * lib/strcasecmp.c: Don't include mbuiter.h.
67692         (strcasecmp): Remove support for multibyte locales.
67693         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
67694         Change the conditional link warning.
67695         (mbscasecmp): New declaration.
67696         * m4/mbscasecmp.m4: New file.
67697         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
67698         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
67699         REPLACE_STRCASECMP.
67700         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
67701         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67702         GNULIB_MBSCASECMP.
67703         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
67704         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
67705         * modules/strcase (Files): Remove m4/mbrtowc.m4.
67706         (Depends-on): Remove mbuiter.
67707         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
67708
67709 2007-02-04  Bruno Haible  <bruno@clisp.org>
67710
67711         New module mbsstr. Remove module strstr.
67712         * modules/mbsstr: New file.
67713         * modules/strstr: Remove file.
67714         * lib/mbsstr.c: Renamed from lib/strstr.c.
67715         (mbsstr): Renamed from strstr.
67716         * lib/string_.h (strstr): Remove declaration. Change the conditional
67717         link warning.
67718         (mbsstr): New declaration.
67719         * m4/mbsstr.m4: New file.
67720         * m4/strstr.m4: Remove file.
67721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
67722         REPLACE_STRSTR.
67723         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
67724         Don't initialize GNULIB_STRSTR.
67725         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
67726         substitute GNULIB_STRSTR and REPLACE_STRSTR.
67727         * MODULES.html.sh (Internationalization functions): Add mbsstr.
67728         (Support for systems lacking ANSI C 89): Remove strstr.
67729
67730 2007-02-04  Bruno Haible  <bruno@clisp.org>
67731
67732         New module mbsrchr.
67733         * modules/mbsrchr: New file.
67734         * lib/mbsrchr.c: New file.
67735         * lib/string_.h (strrchr): Add a conditional link warning.
67736         (mbsrchr): New declaration.
67737         * m4/mbsrchr.m4: New file.
67738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67739         GNULIB_MBSRCHR.
67740         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
67741         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
67742
67743 2007-02-04  Bruno Haible  <bruno@clisp.org>
67744
67745         New module mbschr.
67746         * modules/mbschr: New file.
67747         * lib/mbschr.c: New file.
67748         * lib/string_.h (strchr): Add a conditional link warning.
67749         (mbschr): New declaration.
67750         * m4/mbschr.m4: New file.
67751         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67752         GNULIB_MBSCHR.
67753         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
67754         * MODULES.html.sh (Internationalization functions): Add mbschr.
67755
67756 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
67757
67758         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
67759
67760         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
67761
67762 2007-02-04  Bruno Haible  <bruno@clisp.org>
67763
67764         New module description section 'configure.ac-early'.
67765         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
67766         (func_get_autoconf_early_snippet): New function.
67767         (func_import, func_create_testdir): Use it. Remove special cases for
67768         modules 'extensions' and 'lock'.
67769         * modules/extensions (configure.ac-early): Require
67770         gl_USE_SYSTEM_EXTENSIONS.
67771         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
67772
67773 2007-02-04  Bruno Haible  <bruno@clisp.org>
67774
67775         Make use of gcj-4.3's -fsource and -ftarget option.
67776         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
67777         and if so try the options -fsource and -ftarget.
67778         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
67779         source_version, ftarget_option, target_version arguments.
67780         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
67781         (is_envjavac_oldgcj_14_14_usable): Renamed from
67782         is_envjavac_gcj_14_14_usable.
67783         (is_envjavac_oldgcj_14_13_usable): Renamed from
67784         is_envjavac_gcj_14_13_usable.
67785         (is_gcj_present): Update.
67786         (is_gcj_43, is_gcj43_usable): New functions.
67787         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
67788         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
67789         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
67790         try the options -fsource and -ftarget.
67791
67792 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67793
67794         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
67795         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
67796         larger value.
67797
67798 2007-02-03  Jim Meyering  <jim@meyering.net>
67799
67800         Give tools a better chance to allocate space for very large buffers.
67801         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
67802
67803         Make pwd and readlink work also when run with an unreadable parent dir
67804         on systems with openat support.
67805         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
67806         provided getcwd function, even when we have openat support.
67807         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
67808
67809 2007-02-02  Bruno Haible  <bruno@clisp.org>
67810
67811         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
67812         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
67813         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
67814         portability problems if one of these functions is only used on specific
67815         platforms.
67816         Reported by Paul Eggert.
67817
67818 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
67819
67820         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
67821         is causing more trouble than it's curing.
67822         * lib/regex_internal.h (__mempcpy): Remove.
67823         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
67824         (and make the code a tad smaller to boot).
67825         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
67826
67827 2007-02-02  Jim Meyering  <jim@meyering.net>
67828
67829         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
67830         section, not in the Makefile.am: one.
67831
67832 2007-02-02  Eric Blake  <ebb9@byu.net>
67833
67834         * lib/strchrnul.c: Always include config.h first.
67835
67836         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
67837         gnulib strstr is not necessary here.
67838
67839 2007-02-02  Simon Josefsson  <simon@josefsson.org>
67840
67841         * m4/socklen.m4: Fix typo.
67842
67843 2007-02-02  Eric Blake  <ebb9@byu.net>
67844
67845         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
67846         * modules/netinet_in (Makefile.am): Likewise.
67847
67848 2007-02-01  Bruno Haible  <bruno@clisp.org>
67849
67850         * lib/string_.h (GL_LINK_WARNING): New macro.
67851         (strcasecmp, strstr, strcasestr): If provided by the system,
67852         conditionally define as a macro that leads to a warning instead of to
67853         an error.
67854         (strncasecmp): Conditionally define as a macro that leads to a warning.
67855
67856 2007-02-01  Karl Berry  <karl@gnu.org>
67857
67858         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
67859
67860 2007-02-01  Bruno Haible  <bruno@clisp.org>
67861
67862         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
67863         renamings.
67864
67865 2007-02-01  Eric Blake  <ebb9@byu.net>
67866
67867         * modules/regex (Depends-on): Revert dependence on mempcpy.
67868         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
67869         module's definition of mempcpy.
67870         Reported by Paul Eggert.
67871
67872 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67873
67874         * lib/string_.h: If the gnulib module XYZ is not present, undefine
67875         the symbol XYZ before redefining it.  This fixes a problem with
67876         programs that don't use XYZ, when compiled on systems that define
67877         XYZ to something else.
67878
67879 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
67880
67881         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
67882         occurs when "mkdir -m foo" creates a setgid directory that is (1)
67883         writeable to group or other and (2) is intended to have a special
67884         mode bit that is set or cleared.  In such a case, the directory
67885         should be neither group- nor other-writeable until the special
67886         mode bits are right.
67887
67888 2007-01-31  Eric Blake  <ebb9@byu.net>
67889
67890         * modules/mountlist (Depends-on): Add strstr.
67891
67892         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
67893         bug.
67894         * modules/string (Makefile.am): Remove redundant replacement.
67895         * modules/regex (Depends-on): Add mempcpy.
67896
67897 2007-01-31  Bruno Haible  <bruno@clisp.org>
67898
67899         New module description field 'Link'.
67900         * gnulib-tool (func_usage): Document --extract-link-directive.
67901         (sed_extract_prog): Recognize 'Link' directive.
67902         (func_get_link_directive): New function.
67903         (func_import): Show summary of link directives.
67904         Handle --extract-link-directive option.
67905         * modules/acl (Link): New section.
67906         * modules/clock-time (Link): New section.
67907         * modules/euidaccess (Link): New section.
67908         * modules/gettext (Link): New section.
67909         * modules/iconv (Link): New section.
67910         * modules/lock (Link): New section.
67911         * modules/nanosleep (Link): New section.
67912         * modules/readline (Link): New section.
67913
67914 2007-01-27  Bruno Haible  <bruno@clisp.org>
67915
67916         Enforce the use of gnulib modules for unportable <string.h> functions.
67917         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
67918         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
67919         (gl_HEADER_STRING_H_BODY): Require it.
67920         * lib/string_.h: If the gnulib module XYZ is not present, redefine
67921         the symbol XYZ to one that gives a link error.
67922         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
67923         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
67924         * modules/mempcpy (configure.ac): Likewise.
67925         * modules/memrchr (configure.ac): Likewise.
67926         * modules/stpcpy (configure.ac): Likewise.
67927         * modules/stpncpy (configure.ac): Likewise.
67928         * modules/strcase (configure.ac): Likewise.
67929         * modules/strcasestr (configure.ac): Likewise.
67930         * modules/strchrnul (configure.ac): Likewise.
67931         * modules/strdup (configure.ac): Likewise.
67932         * modules/strndup (configure.ac): Likewise.
67933         * modules/strnlen (configure.ac): Likewise.
67934         * modules/strpbrk (configure.ac): Likewise.
67935         * modules/strsep (configure.ac): Likewise.
67936         * modules/strstr (configure.ac): Likewise.
67937         * modules/strtok_r (configure.ac): Likewise.
67938
67939 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
67940
67941         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
67942
67943 2007-01-30  Jim Meyering  <jim@meyering.net>
67944
67945         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
67946
67947 2007-01-29  Bruno Haible  <bruno@clisp.org>
67948
67949         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
67950         * lib/execute.c: Likewise.
67951         * lib/pipe.c: Likewise.
67952         * lib/printf-args.h: Likewise.
67953         * lib/printf-args.c: Likewise.
67954         * lib/printf-parse.c: Likewise.
67955         * lib/vasnprintf.c: Likewise.
67956
67957 2007-01-29  Eric Blake  <ebb9@byu.net>
67958
67959         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
67960         declaration.
67961
67962 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
67963
67964         * lib/strptime.h (strptime): Use 'restrict' for args where
67965         POSIX requires this.
67966         * lib/strptime.c (strptime): Likewise.
67967         Change license notice from LGPL to GPL, since gnulib-tool will
67968         change this as needed.
67969         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
67970         defined.
67971         Include "strptime.h" first, to check interface.
67972         Do not #undef _LIBC and _NL_CURRENT.
67973         Do not include <stdlib.h>; no longer needed.
67974         Include "time_r.h" and declare ptime_locale_status
67975         only if _LIBC is not defined.
67976         (__P): Remove unused macro.
67977         (match_string): Bring back glibc version, but use it only if _LIBC
67978         is defined.
67979         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
67980         Remove unnecessary assertion and abort() call.
67981         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
67982         * m4/strptime.m4: Fix serial number comment.
67983         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
67984         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
67985         (Depends-on): Add time_r.
67986
67987 2007-01-29  Bruno Haible  <bruno@clisp.org>
67988
67989         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67990         strptime.
67991         * modules/strptime (Depends-on): Add stdbool.
67992         * lib/strptime.h: Include <time.h> always. Add comments.
67993
67994 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67995
67996         * modules/strptime: New file.
67997         * lib/strptime.h: New file.
67998         * lib/strptime.c: New file.
67999         * m4/strptime.m4: New file.
68000
68001 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68002
68003         * MODULES.html.sh: New module mpsort.
68004         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
68005
68006         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
68007         a circularity problem with HP-UX ia64 reported by Bob Proulx in
68008         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
68009         All uses changed.
68010         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
68011         All uses changed.
68012         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
68013         to _Restrict_.
68014         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
68015         the parameter matches the prototype.
68016
68017 2007-01-28  Jim Meyering  <jim@meyering.net>
68018
68019         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
68020         sys/time.h here, reverting that part of the previous patch:
68021         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
68022
68023 2007-01-28  Bruno Haible  <bruno@clisp.org>
68024
68025         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
68026         value of $(SYS_TIME_H).
68027         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
68028         remove it conditionally, too. [added by Jim Meyering]
68029         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
68030         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68031         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
68032         GETTIMEOFDAY_REPLACEMENT to 1.
68033
68034 2007-01-28  Bruno Haible  <bruno@clisp.org>
68035
68036         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
68037         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
68038         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
68039         Set UNISTD_H instead of UNISTD_H2.
68040         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
68041
68042 2007-01-28  Bruno Haible  <bruno@clisp.org>
68043
68044         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
68045         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
68046
68047 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68048
68049         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
68050         (func_create_testdir): Ensure C locale for `grep' and `tr'
68051         character ranges.
68052         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
68053         ACLOCAL_AMFLAGS parsing state machine.
68054
68055 2007-01-27  Bruno Haible  <bruno@clisp.org>
68056
68057         * modules/unistr/base: Update.
68058
68059 2007-01-27  Bruno Haible  <bruno@clisp.org>
68060
68061         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
68062         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
68063         * modules/unistr/u32-mbtouc-unsafe: Renamed from
68064         modules/unistr/u32-mbtouc.
68065         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
68066         * lib/unistr.h: Update.
68067         * lib/linebreak.c: Update.
68068         * modules/unistr/u32-mbtouc: Renamed from
68069         modules/unistr/u32-mbtouc-safe.
68070         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
68071         * lib/unistr.h: Update.
68072         * lib/unistr/u32-to-u8.c: Update.
68073         * lib/unistr/u32-to-u16.c: Update.
68074
68075 2007-01-27  Bruno Haible  <bruno@clisp.org>
68076
68077         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
68078         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
68079         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
68080         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
68081         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
68082         * modules/unistr/u16-mbtouc-unsafe: Renamed from
68083         modules/unistr/u16-mbtouc.
68084         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
68085         * lib/unistr.h: Update.
68086         * lib/linebreak.c: Update.
68087         * modules/linebreak: Update.
68088         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
68089         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
68090         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
68091         * modules/unistr/u16-mbtouc: Renamed from
68092         modules/unistr/u16-mbtouc-safe.
68093         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
68094         * lib/unistr.h: Update.
68095         * lib/unistr/u16-to-u8.c: Update.
68096         * modules/unistr/u16-to-u8: Update.
68097         * lib/unistr/u16-to-u32.c: Update.
68098         * modules/unistr/u16-to-u32: Update.
68099
68100 2007-01-27  Bruno Haible  <bruno@clisp.org>
68101
68102         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
68103         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
68104         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
68105         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
68106         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
68107         * modules/unistr/u8-mbtouc-unsafe: Renamed from
68108         modules/unistr/u8-mbtouc.
68109         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
68110         * lib/unistr.h: Update.
68111         * lib/striconveh.c: Update.
68112         * modules/striconveh: Update.
68113         * lib/linebreak.c: Update.
68114         * modules/linebreak: Update.
68115         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
68116         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
68117         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
68118         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
68119         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
68120         * lib/unistr.h: Update.
68121         * lib/striconveh.c: Update.
68122         * modules/striconveh: Update.
68123         * lib/unistr/u8-to-u16.c: Update.
68124         * modules/unistr/u8-to-u16: Update.
68125         * lib/unistr/u8-to-u32.c: Update.
68126         * modules/unistr/u8-to-u32: Update.
68127
68128 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68129
68130         Sync from Libtool.
68131         * lib/argz.c: Do not include strings.h nor memory.h, include
68132         string.h unconditionally.  Patch by Simon Josefsson.
68133
68134 2007-01-27  Bruno Haible  <bruno@clisp.org>
68135
68136         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
68137         from gl_HEADER_STRING_H_BODY.
68138         (gl_HEADER_STRING_H_BODY): Require it.
68139         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
68140         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68141         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68142         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68143         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68144         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
68145         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
68146         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68147         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
68148         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68149         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68150         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
68151         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68152         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
68153         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68154
68155 2007-01-27  Bruno Haible  <bruno@clisp.org>
68156
68157         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
68158         check_PROGRAMS into noinst_PROGRAMS.
68159         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
68160         check_PROGRAMS in this case.
68161         (func_import): Set for_test to false.
68162         (func_create_testdir): Set for_test to true.
68163
68164 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
68165             Bruno Haible  <bruno@clisp.org>
68166
68167         * modules/strcasestr (Files): Remove lib/strcasestr.h.
68168         (Depends-on): Add string.
68169         (Includes): Use <string.h> instead of strcasestr.h.
68170         * modules/string (Makefile.am): Also substitute the value of
68171         REPLACE_STRCASESTR.
68172         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
68173         assume strcasestr is declared in <string.h> not <strings.h>. Also
68174         set REPLACE_STRCASESTR.
68175         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
68176         REPLACE_STRCASESTR.
68177         * lib/strcasestr.h: Remove file.
68178         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
68179         * lib/string_.h (strcasestr): New declaration.
68180
68181 2007-01-27  Bruno Haible  <bruno@clisp.org>
68182
68183         * lib/string_.h: Use 'extern'.
68184
68185 2007-01-27  Jim Meyering  <jim@meyering.net>
68186
68187         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
68188         of set-but-not-used local, "q".
68189
68190         * lib/mempcpy.c: Include <config.h> before <string.h>.
68191         This fixes a compilation error on HP-UX, due to the system's
68192         "restrict"-using mempcpy prototype.
68193
68194 2007-01-26  Bruno Haible  <bruno@clisp.org>
68195
68196         Small optimization.
68197         * lib/javacomp.c: Include c-strstr.h.
68198          (is_envjavac_gcj): Use c_strstr instead of strstr.
68199         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
68200
68201 2007-01-26  Bruno Haible  <bruno@clisp.org>
68202
68203         * MODULES.html.sh (Unicode string functions): Add the new modules.
68204
68205         * modules/uniconv/u32-strconv-to-locale: New file.
68206         * lib/uniconv/u32-strconv-to-locale.c: New file.
68207
68208         * modules/uniconv/u16-strconv-to-locale: New file.
68209         * lib/uniconv/u16-strconv-to-locale.c: New file.
68210
68211         * modules/uniconv/u8-strconv-to-locale: New file.
68212         * lib/uniconv/u8-strconv-to-locale.c: New file.
68213
68214         * modules/uniconv/u32-strconv-from-locale: New file.
68215         * lib/uniconv/u32-strconv-from-locale.c: New file.
68216
68217         * modules/uniconv/u16-strconv-from-locale: New file.
68218         * lib/uniconv/u16-strconv-from-locale.c: New file.
68219
68220         * modules/uniconv/u8-strconv-from-locale: New file.
68221         * lib/uniconv/u8-strconv-from-locale.c: New file.
68222
68223         * modules/uniconv/u32-strconv-to-enc: New file.
68224         * lib/uniconv/u32-strconv-to-enc.c: New file.
68225         * modules/uniconv/u32-strconv-to-enc-tests: New file.
68226         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
68227
68228         * modules/uniconv/u16-strconv-to-enc: New file.
68229         * lib/uniconv/u16-strconv-to-enc.c: New file.
68230         * lib/uniconv/u-strconv-to-enc.h: New file.
68231         * modules/uniconv/u16-strconv-to-enc-tests: New file.
68232         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
68233
68234         * modules/uniconv/u8-strconv-to-enc: New file.
68235         * lib/uniconv/u8-strconv-to-enc.c: New file.
68236         * modules/uniconv/u8-strconv-to-enc-tests: New file.
68237         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
68238
68239         * modules/uniconv/u32-strconv-from-enc: New file.
68240         * lib/uniconv/u32-strconv-from-enc.c: New file.
68241         * modules/uniconv/u32-strconv-from-enc-tests: New file.
68242         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
68243
68244         * modules/uniconv/u16-strconv-from-enc: New file.
68245         * lib/uniconv/u16-strconv-from-enc.c: New file.
68246         * modules/uniconv/u16-strconv-from-enc-tests: New file.
68247         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
68248
68249         * modules/uniconv/u8-strconv-from-enc: New file.
68250         * lib/uniconv/u8-strconv-from-enc.c: New file.
68251         * lib/uniconv/u-strconv-from-enc.h: New file.
68252         * modules/uniconv/u8-strconv-from-enc-tests: New file.
68253         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
68254
68255         * modules/uniconv/u32-conv-from-enc: New file.
68256         * lib/uniconv/u32-conv-from-enc.c: New file.
68257         * modules/uniconv/u32-conv-from-enc-tests: New file.
68258         * tests/uniconv/test-u32-conv-from-enc.c: New file.
68259
68260         * modules/uniconv/u16-conv-from-enc: New file.
68261         * lib/uniconv/u16-conv-from-enc.c: New file.
68262         * lib/uniconv/u-conv-from-enc.h: New file.
68263         * modules/uniconv/u16-conv-from-enc-tests: New file.
68264         * tests/uniconv/test-u16-conv-from-enc.c: New file.
68265
68266         * modules/uniconv/u8-conv-from-enc: New file.
68267         * lib/uniconv/u8-conv-from-enc.c: New file.
68268         * modules/uniconv/u8-conv-from-enc-tests: New file.
68269         * tests/uniconv/test-u8-conv-from-enc.c: New file.
68270
68271         * modules/uniconv/base: New file.
68272         * lib/uniconv.h: New file.
68273
68274 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68275
68276         * doc/gnulib-tool.texi (Initial import): Update to match current
68277         behavior with strdup module.
68278         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
68279         * lib/memmem.h: Remove; all uses removed.  This is now done
68280         by <string.h>.
68281         * lib/mempcpy.h: Likewise.
68282         * lib/memrchr.h: Likewise.
68283         * lib/stpcpy.h: Likewise.
68284         * lib/stpncpy.h: Likewise.
68285         * lib/strcase.h: Likewise.
68286         * lib/strchrnul.h: Likewise.
68287         * lib/strdup.h: Likewise.
68288         * lib/strndup.h: Likewise.
68289         * lib/strnlen.h: Likewise.
68290         * lib/strpbrk.h: Likewise.
68291         * lib/strsep.h: Likewise.
68292         * lib/strstr.h: Likewise.
68293         * lib/strtok_r.h: Likewise.
68294         * lib/string_.h: New file.
68295         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
68296         Rely on <string.h> instead.
68297         * lib/canon-host.c: Likewise.
68298         * lib/chdir-long.c: Likewise.
68299         * lib/concatpath.c: Likewise.
68300         * lib/exclude.c: Likewise.
68301         * lib/fchdir.c: Likewise.
68302         * lib/getaddrinfo.c: Likewise.
68303         * lib/getcwd.c: Likewise.
68304         * lib/getsubopt.c: Likewise.
68305         * lib/glob.c: Likewise.
68306         * lib/hard-locale.c: Likewise.
68307         * lib/iconvme.c: Likewise.
68308         * lib/javacomp.c: Likewise.
68309         * lib/mempcpy.c: Likewise.
68310         * lib/memrchr.c: Likewise.
68311         * lib/regex_internal.h: Likewise.
68312         * lib/stpncpy.c: Likewise.
68313         * lib/strcasecmp.c: Likewise.
68314         * lib/strchrnul.c: Likewise.
68315         * lib/strdup.c: Likewise.
68316         * lib/striconv.c: Likewise.
68317         * lib/striconveh.c: Likewise.
68318         * lib/striconveha.c: Likewise.
68319         * lib/strncasecmp.c: Likewise.
68320         * lib/strndup.c: Likewise.
68321         * lib/strnlen.c: Likewise.
68322         * lib/strsep.c: Likewise.
68323         * lib/strstr.c: Likewise.
68324         * lib/strtok_r.c: Likewise.
68325         * lib/userspec.c: Likewise.
68326         * lib/w32spawn.h: Likewise.
68327         * lib/xstrndup.c: Likewise.
68328         * lib/mountlist.c (strstr): Remove decl.
68329         * m4/string_h.m4: New file.
68330         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
68331         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
68332         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
68333         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
68334         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
68335         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
68336         Set REPLACE_STRCASECMP if necessary.
68337         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
68338         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
68339         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
68340         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
68341         HAVE_DECL_STRDUP if necessary.
68342         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
68343         since gl_FUNC_STRNDUP does that now.
68344         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
68345         Check for decl here...
68346         (gl_PREREQ_STRNLEN): ... not here.
68347         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
68348         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
68349         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
68350         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
68351         necessary.
68352         * modules/string: New file.
68353         * modules/memmem (Files): Remove special-purpose include file.
68354         (Depends-on): Add string.
68355         (Include): Include <string.h>, not the removed file.
68356         * modules/mempcpy: Likewise.
68357         * modules/memrchr: Likewise.
68358         * modules/stpcpy: Likewise.
68359         * modules/stpncpy: Likewise.
68360         * modules/strcase: Likewise.
68361         * modules/strchrnul: Likewise.
68362         * modules/strdup: Likewise.
68363         * modules/strndup: Likewise.
68364         * modules/strnlen: Likewise.
68365         * modules/strpbrk: Likewise.
68366         * modules/strsep: Likewise.
68367         * modules/strstr: Likewise.
68368         * modules/strtok_r: Likewise.
68369         * tests/test-dirname.c: Don't include "strdup.h", since
68370         <string.h> now suffices.
68371         * tests/test-memmem.c: Don't include "memmem.h", since
68372         <string.h> now suffices.
68373
68374 2007-01-25  Bruno Haible  <bruno@clisp.org>
68375
68376         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
68377         *resultp is 0.
68378
68379         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
68380         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
68381         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
68382         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
68383
68384         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
68385         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
68386         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
68387         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
68388         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
68389         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
68390
68391 2007-01-24  Bruno Haible  <bruno@clisp.org>
68392
68393         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
68394         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
68395         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
68396         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
68397         gl_FUNC_FTS_CORE.
68398         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
68399         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
68400         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68401         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
68402         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
68403         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
68404         gl_FUNC_FCHOWNAT.
68405         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
68406         gl_FUNC_STRFTIME.
68407         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
68408         Reported by Ralf Wildenhues.
68409
68410 2007-01-24  Bruno Haible  <bruno@clisp.org>
68411
68412         Drop AC_REQUIRE calls that are redundant with the module dependencies.
68413         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
68414         gl_GETADDRINFO.
68415         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
68416         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
68417         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
68418
68419 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
68420
68421         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
68422         Don't use 'exit'; just return from 'main'.
68423         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
68424
68425         * lib/fnmatch_.h: Readjust white space and comments to match
68426         glibc, to avoid spurious diffs.
68427
68428 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68429
68430         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
68431         2004-12-01 change by Jakub Jelinek, since this code won't compile
68432         if !LIBC.  Problem reported by Bob Proulx.
68433
68434 2007-01-23  Bruno Haible  <bruno@clisp.org>
68435
68436         * lib/striconveh.c: Include c-strcaseeq.h.
68437         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
68438         * modules/striconveh (Depends-on): Add c-strcaseeq.
68439
68440 2007-01-23  Bruno Haible  <bruno@clisp.org>
68441
68442         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
68443
68444         * modules/c-strcaseeq: New file.
68445         * lib/c-strcaseeq.h: New file.
68446
68447         * modules/streq: New file.
68448         * lib/streq.h: New file.
68449
68450 2007-01-23  Bruno Haible  <bruno@clisp.org>
68451
68452         * modules/striconveha-tests: New file.
68453         * tests/test-striconveha.c: New file.
68454
68455         * lib/striconveha.h: Include <stdbool.h>.
68456         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
68457         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
68458         (mem_iconveha_notranslit): Renamed from mem_iconveha.
68459         (mem_iconveha): New function.
68460         (str_iconveha_notranslit): Renamed from str_iconveha.
68461         (str_iconveha): New function.
68462         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
68463         c-strcase.
68464
68465 2007-01-23  Bruno Haible  <bruno@clisp.org>
68466
68467         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
68468         encodings without forgiving before trying any encoding with handler.
68469         (str_iconveha): Try all encodings without forgiving before trying any
68470         encoding with handler.
68471
68472 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68473
68474         Import the following changes from libc.
68475
68476         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68477
68478         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
68479
68480         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
68481
68482         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
68483         normal_bracket label.
68484
68485         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
68486
68487         [BZ #361]
68488         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
68489         to normal_bracket after fetching the next character.
68490
68491 2007-01-22  Bruno Haible  <bruno@clisp.org>
68492
68493         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
68494         argument.
68495         * lib/striconveh.c (iconv_carefully_1): New function.
68496         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
68497         argument.
68498         (str_cd_iconveh): Update.
68499         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
68500         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
68501         * tests/test-striconveh.c (MAGIC): New macro.
68502         (new_offsets): New function.
68503         (main): Test call with and without offsets.
68504
68505 2007-01-22  Bruno Haible  <bruno@clisp.org>
68506
68507         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
68508         * modules/sys_select (Makefile.am): Likewise.
68509         * modules/sys_socket (Makefile.am): Likewise.
68510         * modules/sys_time (Makefile.am): Likewise.
68511
68512 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
68513
68514         * modules/gettimeofday (License): Change from GPL to LGPL, since
68515         gettimeofday is a library function.
68516
68517 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68518
68519         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
68520
68521 2007-01-21  Bruno Haible  <bruno@clisp.org>
68522
68523         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
68524
68525 2007-01-21  Bruno Haible  <bruno@clisp.org>
68526
68527         * modules/striconveha: New file.
68528         * lib/striconveha.h: New file.
68529         * lib/striconveha.c: New file.
68530         * MODULES.html.sh (Internationalization functions): Add striconveha.
68531         * lib/striconv.c (str_iconv): Optimize the case of an empty input
68532         string.
68533         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
68534
68535 2007-01-21  Bruno Haible  <bruno@clisp.org>
68536
68537         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
68538         * lib/striconveh.c (str_iconveh): Likewise.
68539
68540 2007-01-21  Bruno Haible  <bruno@clisp.org>
68541
68542         * lib/striconveh.h (mem_iconveh): New declaration.
68543         * lib/striconveh.c (mem_iconveh): New function.
68544         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
68545
68546 2007-01-21  Bruno Haible  <bruno@clisp.org>
68547
68548         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
68549
68550         * lib/striconveh.h (mem_cd_iconveh): Change specification.
68551         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
68552         original result buffer.
68553         (str_cd_iconveh): Update.
68554         * tests/test-striconveh.c (main): Update.
68555
68556         * lib/striconv.h (mem_cd_iconv): Change specification.
68557         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
68558         result buffer.
68559         (str_cd_iconv): Update.
68560         * tests/test-striconv.c (main): Update.
68561
68562 2007-01-21  Bruno Haible  <bruno@clisp.org>
68563
68564         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
68565
68566 2007-01-20  Jim Meyering  <jim@meyering.net>
68567
68568         * lib/userspec.c (parse_with_separator): If a user or group string
68569         starts with "+", skip the corresponding name-to-ID look-up, since
68570         such a look-up must fail: user and group names may not include "+".
68571
68572 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68573
68574         * lib/poll.c: Include sys/time.h and time.h unconditionally,
68575         since we now assume the sys_time module.
68576         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
68577         check for sys/time.h; no longer needed.
68578         * modules/poll (Depends-on): Depend on sys_time.
68579
68580 2007-01-18  Bruno Haible  <bruno@clisp.org>
68581
68582         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
68583         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
68584
68585         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
68586         gettimeofday.
68587
68588         * tests/test-gettimeofday.c: Include <time.h>.
68589         (dummy): Remove variable.
68590
68591         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
68592         gl_HEADER_SYS_TIME_H.
68593         (gl_HEADER_SYS_TIME_H): New macro.
68594
68595         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
68596         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68597         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
68598         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
68599         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68600         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
68601         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
68602         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68603         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
68604         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
68605         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68606
68607         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
68608         last change; it caused a compilation error when cross-compiling to
68609         Cygwin.
68610
68611 2007-01-18  Jim Meyering  <jim@meyering.net>
68612
68613         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
68614         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
68615         than the race-prone "test -d sys || mkdir sys".
68616         (configure.ac): Use AC_PROG_MKDIR_P.
68617         * modules/sys_select: Likewise.
68618         * modules/sys_socket: Likewise.
68619         * modules/sys_time: Likewise.
68620
68621 2007-01-18  Eric Blake  <ebb9@byu.net>
68622
68623         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
68624         replace gettimeofday.
68625         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
68626         name, to avoid infinite recursion.
68627
68628 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
68629
68630         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
68631         module sys_time.
68632         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
68633         assume timespec.h defines struct timeval.
68634         * lib/settime.c: Likewise.
68635         * lib/utimens.c: Likewise.
68636         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
68637         since we now assume the gettimeofday module.
68638         * lib/tempname.c (__gen_tempname): Likewise.
68639         * lib/gettimeofday.h: Remove.
68640         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
68641         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
68642         Include <time.h>, for 'time()'.
68643         (localtime_buffer_addr): Also use this workaround if
68644         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
68645         to simplify the uses.  All uses changed.
68646         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
68647         that #undef is inside {}, and 'const' follows type name consistently.
68648         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
68649         (gettimeofday): Do not use the maximum possible value for
68650         tv->tv_usec, since that might break usages other than ls.c.
68651         Instead, we'll leave ls.c alone.  This undoes today's patch
68652         by Bruno.  Add a compile-time warning for 1s-clock resolution;
68653         we've never observed the problem but might as well keep the
68654         canary.
68655         * lib/nanosleep.c: Include timespec.h first, for interface check.
68656         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
68657         now assume the sys_time module.
68658         * lib/tempname.c: Likewise.
68659         * lib/timespec.h: Likewise.
68660         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
68661         needed.
68662         * lib/strftime.c: Likewise.
68663         * lib/timespec.h: Likewise.
68664         * lib/posixtm.c: Include posixtm.h first, for interface check.
68665         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
68666         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
68667         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
68668         * lib/sys_time_.h: New file.
68669         * lib/timespec.h (struct timespec): Use long int, not long.
68670         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68671         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
68672         Remove obsolescent call to AC_HEADER_TIME.
68673         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
68674         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68675         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
68676         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
68677         Likewise.
68678         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
68679         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
68680         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
68681         into the sys_time module.  Check for gettimeofday just once.
68682         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
68683         for gettimeofday signature to just check the signature.  Merely
68684         compile it, since linking doesn't test signature.  Improve test for
68685         whether gettimeofday.o is actually needed.
68686         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
68687         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
68688         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
68689         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68690         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
68691         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
68692         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
68693         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
68694         than worrying about sys/time.h.
68695         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68696         Don't bother worrying about TIME_WITH_SYS_TIME.
68697         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
68698         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
68699         * m4/sys_time_h.m4: New file.
68700         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
68701         Don't include sys/time.h.  Return from main rather than exiting.
68702         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
68703         all uses changed.
68704         * modules/gethrxtime (Depends-on): Add sys_time.
68705         * modules/gettime (Depends-on): Likewise.
68706         * modules/gettimeofday (Depends-on): Likewise.
68707         * modules/nanosleep (Depends-on): Likewise.
68708         * modules/settime (Depends-on): Likewise.
68709         * modules/tempname (Depends-on): Likewise.
68710         * modules/utimens (Depends-on): Likewise.
68711         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
68712         (Include): Change back to <sys/time.h>.
68713         (Maintainer): Add self.
68714         * modules/sys_time: New file.
68715         * modules/tempname (Depends-on): Add gettimeofday.
68716         * tests/test-gettimeofday.c: Include <sys/time.h>
68717         rather than gettimeofday.h.
68718
68719 2007-01-17  Bruno Haible  <bruno@clisp.org>
68720
68721         * gnulib-tool (func_get_license): Revert last patch. Instead, let
68722         the license default to GPL.
68723         (func_create_testdir): Don't complain if a module is LGPL and its
68724         tests module depends on GPLed modules.
68725
68726 2007-01-17  Bruno Haible  <bruno@clisp.org>
68727
68728         * lib/gettimeofday.c (gettimeofday): Add code for the case
68729         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
68730         maximum possible value for tv->tv_usec, rather than the minimum one.
68731
68732 2005-10-08  Martin Lambers  <marlam@marlam.de>
68733 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68734 2007-01-16  Bruno Haible  <bruno@clisp.org>
68735
68736         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
68737         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
68738         gl_FUNC_GETTIMEOFDAY.
68739         (Include): Add gettimeofday.h.
68740         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
68741         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
68742         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
68743         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
68744         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
68745         * lib/gettimeofday.h: New file.
68746         * lib/gettimeofday.c: Include <sys/timeb.h>.
68747         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
68748         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68749         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
68750         fall back on time().
68751
68752         * tests/test-gettimeofday.c: New file.
68753         * modules/gettimeofday-tests: New file.
68754
68755 2007-01-16  Eric Blake  <ebb9@byu.net>
68756
68757         * modules/fnmatch (Depends-on): Depend on wchar.
68758         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
68759         * m4/fnmatch.m4: Likewise.
68760         * modules/mbchar (Makefile.am): Assume <wchar.h>.
68761         * m4/mbchar.m4: Likewise.
68762         * modules/mbswidth (Depends-on): Depend on wchar.
68763         * lib/mbswidth.c: Assume <wchar.h>.
68764         * m4/mbswidth.m4: Likewise.
68765         * modules/quotearg (Depends-on): Depend on wchar.
68766         * lib/quotearg.c: Assume <wchar.h>.
68767         * m4/quotearg.m4: Likewise.
68768         * modules/regex (Depends-on): Depend on wchar.
68769         * lib/regex_internal.h: Assume <wchar.h>.
68770         * m4/regex.m4: Likewise.
68771         * modules/stdint (Depends-on): Depend on wchar.
68772         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
68773         * m4/stdint.m4: Likewise.
68774         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
68775         * modules/strftime (Depends-on): Depend on wchar.
68776         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
68777         * modules/strtol (Depends-on): Depend on wchar.
68778         * lib/strtol.c: Assume <wchar.h>.
68779         * modules/wcwidth (Depends-on): Depend on wchar.
68780         * lib/wcwidth.h: Assume <wchar.h>.
68781         * m4/wcwidth.m4: Likewise.
68782
68783 2007-01-16  Bruno Haible  <bruno@clisp.org>
68784
68785         * modules/csharpexec-script: New, created from...
68786         * modules/csharpexec: ... this.
68787
68788 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
68789
68790         * modules/javaexec-script: New, created from...
68791         * modules/javaexec: ... this.
68792
68793 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68794
68795         * modules/poll (Dependencies): Add sys_select.
68796
68797 2007-01-15  Jim Meyering  <jim@meyering.net>
68798
68799         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
68800         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
68801         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
68802         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
68803
68804 2007-01-15  Bruno Haible  <bruno@clisp.org>
68805
68806         * modules/striconveh: New file.
68807         * lib/striconveh.h: New file.
68808         * lib/striconveh.c: New file.
68809         * MODULES.html.sh (Internationalization functions): Add striconveh.
68810
68811         * modules/striconveh-tests: New file.
68812         * tests/test-striconveh.c: New file.
68813
68814 2007-01-15  Bruno Haible  <bruno@clisp.org>
68815
68816         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
68817         not from GNU libiconv or GNU libc.
68818
68819 2007-01-15  Bruno Haible  <bruno@clisp.org>
68820
68821         * doc/gnulib-intro.texi (Copyright): Explain the different license
68822         terms for module descriptions, autoconf macros, tests, documentation.
68823
68824 2007-01-14  Bruno Haible  <bruno@clisp.org>
68825
68826         * modules/striconv-tests: New file.
68827         * tests/test-striconv.c: New file.
68828
68829 2007-01-14  Bruno Haible  <bruno@clisp.org>
68830
68831         * modules/iconv-tests: New file.
68832         * tests/test-iconv.c: New file.
68833
68834 2007-01-14  Bruno Haible  <bruno@clisp.org>
68835
68836         * gnulib-tool (func_get_license): For test modules, use the license of
68837         the main module.
68838
68839 2007-01-14  Bruno Haible  <bruno@clisp.org>
68840
68841         * modules/iconv (Include): Clarify that <iconv.h> can only be included
68842         if iconv is found to exist.
68843
68844 2007-01-14  Bruno Haible  <bruno@clisp.org>
68845
68846         * modules/c-ctype-tests: New file.
68847         * tests/test-c-ctype.c: New file.
68848
68849 2007-01-14  Bruno Haible  <bruno@clisp.org>
68850
68851         * modules/binary-io-tests: New file.
68852         * tests/test-binary-io.sh: New file.
68853         * tests/test-binary-io.c: New file.
68854
68855 2007-01-14  Bruno Haible  <bruno@clisp.org>
68856
68857         * modules/array-oset-tests: New file.
68858         * tests/test-array_oset.c: New file.
68859
68860 2007-01-14  Bruno Haible  <bruno@clisp.org>
68861
68862         * modules/array-list-tests: New file.
68863         * tests/test-array_list.c: New file.
68864
68865 2007-01-14  Bruno Haible  <bruno@clisp.org>
68866
68867         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
68868         and make.
68869         Reported by Simon Josefsson in
68870         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
68871
68872 2007-01-14  Bruno Haible  <bruno@clisp.org>
68873
68874         * modules/allocsa-tests: New file.
68875         * tests/test-allocsa.c: New file.
68876
68877 2007-01-14  Bruno Haible  <bruno@clisp.org>
68878
68879         * modules/fchdir (Depends-on): Add absolute-header.
68880         * modules/unistd (Depends-on): Likewise.
68881
68882 2006-12-30  Bruno Haible  <bruno@clisp.org>
68883
68884         * modules/fchdir: New file.
68885         * modules/unistd (Files): Add lib/unistd_.h.
68886         (Makefile.am): Generate unistd.h from unistd_.h.
68887         * lib/fchdir.c: New file.
68888         * lib/dirent_.h: New file.
68889         * lib/unistd_.h: New file.
68890         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
68891         * m4/fchdir.m4: New file.
68892         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
68893         (gl_HEADER_UNISTD): Invoke it.
68894         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
68895         function.
68896         * lib/backupfile.c (opendir, closedir): Undefine.
68897         * lib/chown.c (open, close): Undefine.
68898         * lib/clean-temp.c (open, close): Undefine.
68899         * lib/copy-file.c (open, close): Undefine.
68900         * lib/execute.c (open, close): Undefine.
68901         * lib/fsusage.c (open, close): Undefine.
68902         * lib/gc-gnulib.c (open, close): Undefine.
68903         * lib/getcwd.c (opendir, closedir): Undefine.
68904         * lib/glob.c (opendir, closedir): Undefine.
68905         * lib/javacomp.c (open, close): Undefine.
68906         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
68907         * lib/openat-proc.c (open, close): Undefine.
68908         * lib/pagealign_alloc.c (open, close): Undefine.
68909         * lib/pipe.c (open, close): Undefine.
68910         * lib/progreloc.c (open, close): Undefine.
68911         * lib/savedir.c (opendir, closedir): Undefine.
68912         * lib/utime.c (open, close): Undefine.
68913         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
68914
68915 2007-01-10  Bruno Haible  <bruno@clisp.org>
68916
68917         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
68918
68919 2007-01-12  Eric Blake  <ebb9@byu.net>
68920
68921         Provide a robust <wchar.h>.  Further simplifications are now
68922         possible in other modules, but not included here.
68923         * modules/wchar: New module.
68924         * m4/wchar.m4: New file.
68925         * lib/wchar_.h: Likewise.
68926         * modules/mbchar (Depends-on): Depend on wchar, as the first use
68927         of the new module.
68928         * MODULES.html.sh (Extended multibyte and wide character utilities):
68929         New section.
68930
68931 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
68932
68933         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
68934         to a reasonable default for memory allocation.
68935         (xreadlink): Don't allocate a huge buffer, to work around a buggy
68936         file system that reports garbage st_size values for symlinks.
68937         Problem reported by Liyang Hu.
68938
68939 2007-01-11  Simon Josefsson  <simon@josefsson.org>
68940
68941         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
68942         Emacs .#* auto-save files).
68943
68944 2007-01-11  Bruno Haible  <bruno@clisp.org>
68945
68946         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
68947         directory.
68948
68949 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68950
68951         Use @...@ consistently in lib/wctype_.h.
68952         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
68953         on it being set to 1 or 0.
68954         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
68955         go back to AC_SUBSTing it.
68956         * modules/wctype (Makefile.am): Undo previous change.
68957
68958 2007-01-10  Eric Blake  <ebb9@byu.net>
68959
68960         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
68961         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
68962         * modules/wctype (Makefile.am): Likewise.
68963         Reported by Chris McGuire.
68964
68965 2007-01-10  Jim Meyering  <jim@meyering.net>
68966
68967         fts.c: a small readability/maintainability improvement
68968         * lib/fts.c (fts_read): Make this code slightly more readable and
68969         maintainable by hoisting the "sp->fts_cur = p" assignments to
68970         immediately follow the statements that set P.  Derived from
68971         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
68972
68973 2007-01-10  Eric Blake  <ebb9@byu.net>
68974
68975         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
68976         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
68977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68978         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
68979         Reported by Chris McGuire.
68980
68981 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68982
68983         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
68984         in sed script.
68985
68986 2007-01-09  Bruno Haible  <bruno@clisp.org>
68987
68988         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
68989         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
68990         variables.
68991         (func_module): Use them.
68992
68993 2007-01-09  Bruno Haible  <bruno@clisp.org>
68994
68995         * modules/unistr/base: New file.
68996         * lib/unistr.h: New file.
68997
68998         * modules/unistr/u8-to-u16: New file.
68999         * lib/unistr/u8-to-u16.c: New file.
69000
69001         * modules/unistr/u8-to-u32: New file.
69002         * lib/unistr/u8-to-u32.c: New file.
69003
69004         * modules/unistr/u16-to-u8: New file.
69005         * lib/unistr/u16-to-u8.c: New file.
69006
69007         * modules/unistr/u16-to-u32: New file.
69008         * lib/unistr/u16-to-u32.c: New file.
69009
69010         * modules/unistr/u32-to-u8: New file.
69011         * lib/unistr/u32-to-u8.c: New file.
69012
69013         * modules/unistr/u32-to-u16: New file.
69014         * lib/unistr/u32-to-u16.c: New file.
69015
69016         * modules/unistr/u8-check: New file.
69017         * modules/unistr/u16-check: New file.
69018         * modules/unistr/u32-check: New file.
69019         * lib/unistr/u8-check.c: New file.
69020         * lib/unistr/u16-check.c: New file.
69021         * lib/unistr/u32-check.c: New file.
69022
69023         * modules/unistr/u8-chr: New file.
69024         * modules/unistr/u16-chr: New file.
69025         * modules/unistr/u32-chr: New file.
69026         * lib/unistr/u8-chr.c: New file.
69027         * lib/unistr/u16-chr.c: New file.
69028         * lib/unistr/u32-chr.c: New file.
69029
69030         * modules/unistr/u8-cmp: New file.
69031         * modules/unistr/u16-cmp: New file.
69032         * modules/unistr/u32-cmp: New file.
69033         * lib/unistr/u8-cmp.c: New file.
69034         * lib/unistr/u16-cmp.c: New file.
69035         * lib/unistr/u32-cmp.c: New file.
69036
69037         * modules/unistr/u8-cpy: New file.
69038         * modules/unistr/u16-cpy: New file.
69039         * modules/unistr/u32-cpy: New file.
69040         * lib/unistr/u8-cpy.c: New file.
69041         * lib/unistr/u16-cpy.c: New file.
69042         * lib/unistr/u32-cpy.c: New file.
69043         * lib/unistr/u-cpy.h: New file.
69044
69045         * modules/unistr/u8-cpy-alloc: New file.
69046         * modules/unistr/u16-cpy-alloc: New file.
69047         * modules/unistr/u32-cpy-alloc: New file.
69048         * lib/unistr/u8-cpy-alloc.c: New file.
69049         * lib/unistr/u16-cpy-alloc.c: New file.
69050         * lib/unistr/u32-cpy-alloc.c: New file.
69051         * lib/unistr/u-cpy-alloc.h: New file.
69052
69053         * modules/unistr/u8-endswith: New file.
69054         * modules/unistr/u16-endswith: New file.
69055         * modules/unistr/u32-endswith: New file.
69056         * lib/unistr/u8-endswith.c: New file.
69057         * lib/unistr/u16-endswith.c: New file.
69058         * lib/unistr/u32-endswith.c: New file.
69059         * lib/unistr/u-endswith.h: New file.
69060
69061         * modules/unistr/u8-mblen: New file.
69062         * modules/unistr/u16-mblen: New file.
69063         * modules/unistr/u32-mblen: New file.
69064         * lib/unistr/u8-mblen.c: New file.
69065         * lib/unistr/u16-mblen.c: New file.
69066         * lib/unistr/u32-mblen.c: New file.
69067
69068         * modules/unistr/u8-mbtouc: New file.
69069         * modules/unistr/u16-mbtouc: New file.
69070         * modules/unistr/u32-mbtouc: New file.
69071         * lib/unistr/u8-mbtouc.c: New file.
69072         * lib/unistr/u16-mbtouc.c: New file.
69073         * lib/unistr/u32-mbtouc.c: New file.
69074
69075         * modules/unistr/u8-mbtouc-safe: New file.
69076         * modules/unistr/u16-mbtouc-safe: New file.
69077         * modules/unistr/u32-mbtouc-safe: New file.
69078         * lib/unistr/u8-mbtouc-safe.c: New file.
69079         * lib/unistr/u16-mbtouc-safe.c: New file.
69080         * lib/unistr/u32-mbtouc-safe.c: New file.
69081
69082         * modules/unistr/u8-move: New file.
69083         * modules/unistr/u16-move: New file.
69084         * modules/unistr/u32-move: New file.
69085         * lib/unistr/u8-move.c: New file.
69086         * lib/unistr/u16-move.c: New file.
69087         * lib/unistr/u32-move.c: New file.
69088         * lib/unistr/u-move.h: New file.
69089
69090         * modules/unistr/u8-next: New file.
69091         * modules/unistr/u16-next: New file.
69092         * modules/unistr/u32-next: New file.
69093         * lib/unistr/u8-next.c: New file.
69094         * lib/unistr/u16-next.c: New file.
69095         * lib/unistr/u32-next.c: New file.
69096
69097         * modules/unistr/u8-prev: New file.
69098         * modules/unistr/u16-prev: New file.
69099         * modules/unistr/u32-prev: New file.
69100         * lib/unistr/u8-prev.c: New file.
69101         * lib/unistr/u16-prev.c: New file.
69102         * lib/unistr/u32-prev.c: New file.
69103
69104         * modules/unistr/u8-set: New file.
69105         * modules/unistr/u16-set: New file.
69106         * modules/unistr/u32-set: New file.
69107         * lib/unistr/u8-set.c: New file.
69108         * lib/unistr/u16-set.c: New file.
69109         * lib/unistr/u32-set.c: New file.
69110         * lib/unistr/u-set.h: New file.
69111
69112         * modules/unistr/u8-startswith: New file.
69113         * modules/unistr/u16-startswith: New file.
69114         * modules/unistr/u32-startswith: New file.
69115         * lib/unistr/u8-startswith.c: New file.
69116         * lib/unistr/u16-startswith.c: New file.
69117         * lib/unistr/u32-startswith.c: New file.
69118         * lib/unistr/u-startswith.h: New file.
69119
69120         * modules/unistr/u8-stpcpy: New file.
69121         * modules/unistr/u16-stpcpy: New file.
69122         * modules/unistr/u32-stpcpy: New file.
69123         * lib/unistr/u8-stpcpy.c: New file.
69124         * lib/unistr/u16-stpcpy.c: New file.
69125         * lib/unistr/u32-stpcpy.c: New file.
69126         * lib/unistr/u-stpcpy.h: New file.
69127
69128         * modules/unistr/u8-stpncpy: New file.
69129         * modules/unistr/u16-stpncpy: New file.
69130         * modules/unistr/u32-stpncpy: New file.
69131         * lib/unistr/u8-stpncpy.c: New file.
69132         * lib/unistr/u16-stpncpy.c: New file.
69133         * lib/unistr/u32-stpncpy.c: New file.
69134         * lib/unistr/u-stpncpy.h: New file.
69135
69136         * modules/unistr/u8-strcat: New file.
69137         * modules/unistr/u16-strcat: New file.
69138         * modules/unistr/u32-strcat: New file.
69139         * lib/unistr/u8-strcat.c: New file.
69140         * lib/unistr/u16-strcat.c: New file.
69141         * lib/unistr/u32-strcat.c: New file.
69142         * lib/unistr/u-strcat.h: New file.
69143
69144         * modules/unistr/u8-strchr: New file.
69145         * modules/unistr/u16-strchr: New file.
69146         * modules/unistr/u32-strchr: New file.
69147         * lib/unistr/u8-strchr.c: New file.
69148         * lib/unistr/u16-strchr.c: New file.
69149         * lib/unistr/u32-strchr.c: New file.
69150
69151         * modules/unistr/u8-strcmp: New file.
69152         * modules/unistr/u16-strcmp: New file.
69153         * modules/unistr/u32-strcmp: New file.
69154         * lib/unistr/u8-strcmp.c: New file.
69155         * lib/unistr/u16-strcmp.c: New file.
69156         * lib/unistr/u32-strcmp.c: New file.
69157
69158         * modules/unistr/u8-strcpy: New file.
69159         * modules/unistr/u16-strcpy: New file.
69160         * modules/unistr/u32-strcpy: New file.
69161         * lib/unistr/u8-strcpy.c: New file.
69162         * lib/unistr/u16-strcpy.c: New file.
69163         * lib/unistr/u32-strcpy.c: New file.
69164         * lib/unistr/u-strcpy.h: New file.
69165
69166         * modules/unistr/u8-strcspn: New file.
69167         * modules/unistr/u16-strcspn: New file.
69168         * modules/unistr/u32-strcspn: New file.
69169         * lib/unistr/u8-strcspn.c: New file.
69170         * lib/unistr/u16-strcspn.c: New file.
69171         * lib/unistr/u32-strcspn.c: New file.
69172         * lib/unistr/u-strcspn.h: New file.
69173
69174         * modules/unistr/u8-strdup: New file.
69175         * modules/unistr/u16-strdup: New file.
69176         * modules/unistr/u32-strdup: New file.
69177         * lib/unistr/u8-strdup.c: New file.
69178         * lib/unistr/u16-strdup.c: New file.
69179         * lib/unistr/u32-strdup.c: New file.
69180         * lib/unistr/u-strdup.h: New file.
69181
69182         * modules/unistr/u8-strlen: New file.
69183         * modules/unistr/u16-strlen: New file.
69184         * modules/unistr/u32-strlen: New file.
69185         * lib/unistr/u8-strlen.c: New file.
69186         * lib/unistr/u16-strlen.c: New file.
69187         * lib/unistr/u32-strlen.c: New file.
69188         * lib/unistr/u-strlen.h: New file.
69189
69190         * modules/unistr/u8-strmblen: New file.
69191         * modules/unistr/u16-strmblen: New file.
69192         * modules/unistr/u32-strmblen: New file.
69193         * lib/unistr/u8-strmblen.c: New file.
69194         * lib/unistr/u16-strmblen.c: New file.
69195         * lib/unistr/u32-strmblen.c: New file.
69196
69197         * modules/unistr/u8-strmbtouc: New file.
69198         * modules/unistr/u16-strmbtouc: New file.
69199         * modules/unistr/u32-strmbtouc: New file.
69200         * lib/unistr/u8-strmbtouc.c: New file.
69201         * lib/unistr/u16-strmbtouc.c: New file.
69202         * lib/unistr/u32-strmbtouc.c: New file.
69203
69204         * modules/unistr/u8-strncat: New file.
69205         * modules/unistr/u16-strncat: New file.
69206         * modules/unistr/u32-strncat: New file.
69207         * lib/unistr/u8-strncat.c: New file.
69208         * lib/unistr/u16-strncat.c: New file.
69209         * lib/unistr/u32-strncat.c: New file.
69210         * lib/unistr/u-strncat.h: New file.
69211
69212         * modules/unistr/u8-strncmp: New file.
69213         * modules/unistr/u16-strncmp: New file.
69214         * modules/unistr/u32-strncmp: New file.
69215         * lib/unistr/u8-strncmp.c: New file.
69216         * lib/unistr/u16-strncmp.c: New file.
69217         * lib/unistr/u32-strncmp.c: New file.
69218
69219         * modules/unistr/u8-strncpy: New file.
69220         * modules/unistr/u16-strncpy: New file.
69221         * modules/unistr/u32-strncpy: New file.
69222         * lib/unistr/u8-strncpy.c: New file.
69223         * lib/unistr/u16-strncpy.c: New file.
69224         * lib/unistr/u32-strncpy.c: New file.
69225         * lib/unistr/u-strncpy.h: New file.
69226
69227         * modules/unistr/u8-strnlen: New file.
69228         * modules/unistr/u16-strnlen: New file.
69229         * modules/unistr/u32-strnlen: New file.
69230         * lib/unistr/u8-strnlen.c: New file.
69231         * lib/unistr/u16-strnlen.c: New file.
69232         * lib/unistr/u32-strnlen.c: New file.
69233         * lib/unistr/u-strnlen.h: New file.
69234
69235         * modules/unistr/u8-strpbrk: New file.
69236         * modules/unistr/u16-strpbrk: New file.
69237         * modules/unistr/u32-strpbrk: New file.
69238         * lib/unistr/u8-strpbrk.c: New file.
69239         * lib/unistr/u16-strpbrk.c: New file.
69240         * lib/unistr/u32-strpbrk.c: New file.
69241         * lib/unistr/u-strpbrk.h: New file.
69242
69243         * modules/unistr/u8-strrchr: New file.
69244         * modules/unistr/u16-strrchr: New file.
69245         * modules/unistr/u32-strrchr: New file.
69246         * lib/unistr/u8-strrchr.c: New file.
69247         * lib/unistr/u16-strrchr.c: New file.
69248         * lib/unistr/u32-strrchr.c: New file.
69249
69250         * modules/unistr/u8-strspn: New file.
69251         * modules/unistr/u16-strspn: New file.
69252         * modules/unistr/u32-strspn: New file.
69253         * lib/unistr/u8-strspn.c: New file.
69254         * lib/unistr/u16-strspn.c: New file.
69255         * lib/unistr/u32-strspn.c: New file.
69256         * lib/unistr/u-strspn.h: New file.
69257
69258         * modules/unistr/u8-strstr: New file.
69259         * modules/unistr/u16-strstr: New file.
69260         * modules/unistr/u32-strstr: New file.
69261         * lib/unistr/u8-strstr.c: New file.
69262         * lib/unistr/u16-strstr.c: New file.
69263         * lib/unistr/u32-strstr.c: New file.
69264         * lib/unistr/u-strstr.h: New file.
69265
69266         * modules/unistr/u8-strtok: New file.
69267         * modules/unistr/u16-strtok: New file.
69268         * modules/unistr/u32-strtok: New file.
69269         * lib/unistr/u8-strtok.c: New file.
69270         * lib/unistr/u16-strtok.c: New file.
69271         * lib/unistr/u32-strtok.c: New file.
69272         * lib/unistr/u-strtok.h: New file.
69273
69274         * modules/unistr/u8-uctomb: New file.
69275         * modules/unistr/u16-uctomb: New file.
69276         * modules/unistr/u32-uctomb: New file.
69277         * lib/unistr/u8-uctomb.c: New file.
69278         * lib/unistr/u16-uctomb.c: New file.
69279         * lib/unistr/u32-uctomb.c: New file.
69280
69281         * MODULES.html.sh (Unicode string functions): Add the new modules.
69282
69283 2007-01-08  Bruno Haible  <bruno@clisp.org>
69284
69285         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
69286         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
69287         subdirectories.
69288
69289 2007-01-08  Karl Berry  <karl@gnu.org>
69290
69291         * doc/error.texi: mention that main() fns must set program_name
69292         when progname is used.
69293
69294 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
69295
69296         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
69297         WCTYPE_H is empty, for the benefit of builds from non-distclean
69298         directories.  Problem reported by Eric Blake in
69299         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
69300
69301 2007-01-08  Bruno Haible  <bruno@clisp.org>
69302
69303         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
69304         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
69305         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
69306         PROVIDE_CANONICALIZE_FILENAME_MODE.
69307         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
69308
69309 2007-01-08  Bruno Haible  <bruno@clisp.org>
69310
69311         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
69312         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
69313         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
69314         * lib/fts.c: Likewise.
69315         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
69316
69317 2006-12-25  Bruno Haible  <bruno@clisp.org>
69318
69319         * modules/utf8-ucs4-safe: New file.
69320         * lib/utf8-ucs4-safe.h: New file.
69321         * lib/unistr/utf8-ucs4-safe.c: New file.
69322
69323         * modules/utf16-ucs4-safe: New file.
69324         * lib/utf16-ucs4-safe.h: New file.
69325         * lib/unistr/utf16-ucs4-safe.c: New file.
69326
69327         * MODULES.html.sh (Unicode string functions): Add the new modules.
69328
69329 2007-01-08  Bruno Haible  <bruno@clisp.org>
69330
69331         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
69332         (Depends-on): Add unitypes.
69333         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
69334         (u8_mbtouc_aux): Move out to separate file.
69335         (u8_mbtouc): Use ucs4_t, uint8_t types.
69336         * lib/unistr/utf8-ucs4.c: New file.
69337
69338         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
69339         (Depends-on): Add unitypes.
69340         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
69341         (u16_mbtouc_aux): Move out to separate file.
69342         (u16_mbtouc): Use ucs4_t, uint16_t types.
69343         * lib/unistr/utf16-ucs4.c: New file.
69344
69345         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
69346         (Depends-on): Add unitypes.
69347         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
69348         (u8_uctomb_aux): Move out to separate file.
69349         (u8_uctomb): Use ucs4_t, uint8_t types.
69350         * lib/unistr/ucs4-utf8.c: New file.
69351
69352         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
69353         (Depends-on): Add unitypes.
69354         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
69355         (u16_uctomb_aux): Move out to separate file.
69356         (u16_uctomb): Use ucs4_t, uint16_t types.
69357         * lib/unistr/ucs4-utf16.c: New file.
69358
69359 2006-12-25  Bruno Haible  <bruno@clisp.org>
69360
69361         * modules/unitypes: New file.
69362         * lib/unitypes.h: New file.
69363         * MODULES.html.sh (func_all_modules): New section "Unicode string
69364         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
69365         this section. Add unitypes.
69366
69367 2007-01-08  Bruno Haible  <bruno@clisp.org>
69368
69369         Avoid variable names that conflict with those from libtool.
69370         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
69371         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
69372         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
69373         library_names_spec to acl_library_names_spec, hardcode_* to
69374         acl_hardcode_*.
69375         Reported by Ralf Wildenhues.
69376
69377 2007-01-08  Bruno Haible  <bruno@clisp.org>
69378
69379         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
69380         definition.
69381         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
69382         definition.
69383         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
69384         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
69385         definition.
69386         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
69387         definition.
69388         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
69389         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
69390         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
69391         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
69392         definition.
69393         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
69394         definition.
69395         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
69396         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
69397         GC_USE_<algorithm>.
69398         * lib/gc-libgcrypt.c: Likewise.
69399         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
69400         * modules/gc-arctwo (configure.ac): Likewise.
69401         * modules/gc-des (configure.ac): Likewise.
69402         * modules/gc-hmac-md5 (configure.ac): Likewise.
69403         * modules/gc-hmac-sha1 (configure.ac): Likewise.
69404         * modules/gc-md2 (configure.ac): Likewise.
69405         * modules/gc-md4 (configure.ac): Likewise.
69406         * modules/gc-md5 (configure.ac): Likewise.
69407         * modules/gc-random (configure.ac): Likewise.
69408         * modules/gc-rijndael (configure.ac): Likewise.
69409         * modules/gc-sha1 (configure.ac): Likewise.
69410
69411 2007-01-08  Bruno Haible  <bruno@clisp.org>
69412
69413         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
69414         macro definition.
69415         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
69416         definition.
69417         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
69418         definition.
69419         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
69420         * modules/fcntl-safer (configure.ac): Likewise.
69421         * modules/fopen-safer (configure.ac): Likewise.
69422         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
69423         GNULIB_FWRITEERROR macro definition.
69424
69425 2007-01-08  Bruno Haible  <bruno@clisp.org>
69426
69427         * m4/gnulib-common.m4: New file.
69428         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
69429         (func_get_filelist): Add m4/gnulib-common.m4.
69430
69431 2007-01-08  Bruno Haible  <bruno@clisp.org>
69432
69433         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
69434         command.
69435
69436 2007-01-08  Jim Meyering  <jim@meyering.net>
69437
69438         Use a more robust test for a "can't happen" condition.
69439         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
69440         narrowed the st_size value.  Presuming the "can't happen" condition
69441         is true, that narrowing could conceivably convert an invalid st_size
69442         value into a valid one.  Instead, use a change based on Matthew
69443         Woehlke's original patch.
69444
69445         Slight readability improvement: use an assert-like macro
69446         in place of literal "abort ()" uses.
69447         * lib/fts.c (fts_assert): Define.
69448         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
69449         Use this macro instead of a bare 'abort'.
69450
69451 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
69452
69453         Don't worry about using IRIX 5.3's wctype.h broken definitions;
69454         simply work around them.
69455         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
69456         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
69457         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
69458         declaring.
69459         Don't bother to define as macros, since the standard doesn't require it.
69460         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
69461         longer worry about IRIX 5.3.
69462         (HAVE_WCTYPE_CTMP_BUG): Remove.
69463
69464 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69465
69466         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
69467         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
69468         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69469         Problems reported by Georg Schwarz for IRIX 5.3.
69470
69471         * gnulib-tool (autoconf_minversion): Take the maximum version number
69472         found, not the minimum.  Problem reported by James Youngman.
69473
69474 2007-01-03  Karl Berry  <karl@gnu.org>
69475
69476         * doc/error.texi: new file, explaining interaction with progname.
69477         * doc/gnulib.texi: include it.  Update copyright.
69478
69479 2007-01-03  Simon Josefsson  <simon@josefsson.org>
69480
69481         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
69482         AC_CANONICAL_HOST, to improve autobuild outputs.
69483
69484 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
69485             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69486
69487         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
69488         sockets, server sockets, and other file descriptors.  Count errors
69489         to compute the return value.  Reorder the code a bit to be easier
69490         to follow.  Don't set event bits that were not requested (except
69491         POLLERR and POLLHUP).
69492
69493 2007-01-01  Bruno Haible  <bruno@clisp.org>
69494
69495         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
69496
69497 2007-01-03  Jim Meyering  <jim@meyering.net>
69498
69499         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
69500
69501 2007-01-02  Bruno Haible  <bruno@clisp.org>
69502
69503         * modules/settime (Include): Require timespec.h.
69504         * modules/nanosleep (Include): Likewise.
69505
69506 2007-01-01  Bruno Haible  <bruno@clisp.org>
69507
69508         * gnulib-tool (func_emit_copyright_notice): Bump year.
69509         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
69510
69511 2007-01-01  Bruno Haible  <bruno@clisp.org>
69512
69513         Improve support for OpenBSD.
69514         * build-aux/config.rpath (libname_spec): Export.
69515         (library_names_spec): New variable. Export.
69516         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
69517         library_names_spec from the config.rpath output. Locate shared library
69518         through the name pattern in library_names_spec.
69519
69520 2007-01-01  Eric Blake  <ebb9@byu.net>
69521
69522         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
69523
69524 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
69525
69526         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
69527         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
69528         assume the C locale, and avoid an "eval" that could cause trouble.
69529         Problem with SORT reported by Bob Proulx.
69530
69531         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
69532         Define.  Trivial patch from Henning Nielsen Lund, originally
69533         sent to bug-grep@gnu.org today.
69534
69535 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
69536
69537         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
69538         struct stat.  Problem reported by Henning Nielsen Lund.
69539         * lib/acl.c: Include acl.h first, to check interface.  Don't
69540         bother to include sys/types.h and sys/stat.h again.
69541
69542 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69543
69544         Import the following change from libc; problem reported by
69545         Sven Verdoolaege.
69546
69547         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
69548
69549         [BZ #1373]
69550         * lib/argp.h: Remove __NTH for __argp_usage inline function.
69551
69552 2006-12-28  Jim Meyering  <jim@meyering.net>
69553
69554         * build-aux/announce-gen: Do not assume that the package
69555         builds any of tar.gz, tar.bz2, and .xdelta files.
69556         Suggestion from Simon Josefsson.
69557
69558 2006-12-28  Simon Josefsson  <simon@josefsson.org>
69559
69560         * modules/announce-gen: New file.
69561
69562 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
69563
69564         * lib/mbchar.h: Just include <wctype.h>; the wctype module
69565         handles its gotchas now.
69566         * lib/mbswidth.c: Likewise.
69567         * lib/wcwidth.h: Likewise.
69568         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
69569         and iswcntrl; the wctype module does this stuff now.
69570         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69571         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69572         * modules/mbchar (Depends-on): Add wctype.
69573         * modules/mbswidth (Depends-on): Likewise.
69574         * modules/wcwidth (Depends-on): Likewise.
69575
69576 2006-12-27  Eric Blake  <ebb9@byu.net>
69577
69578         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
69579         module uses more than what <wctype.h> is required to provide.
69580
69581 2006-12-26  Eric Blake  <ebb9@byu.net>
69582
69583         * gnulib-tool (sed_extract_prog): Avoid space-tab.
69584
69585 2006-12-26  Eric Blake  <ebb9@byu.net>
69586
69587         * modules/absolute-header: New module.
69588         * modules/fcntl (Depends-on): Depend on it.
69589         * modules/inttypes (Depends-on): Likewise.
69590         * modules/stdint (Depends-on): Likewise.
69591         * modules/sys_stat (Depends-on): Likewise.
69592         * modules/wctype (Depends-on): Likewise.
69593         * MODULES.html.sh (Support for building libraries and
69594         executables): Document it.
69595
69596 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
69597
69598         * gnulib-tool (SED): Remove, undoing previous change.
69599         The problem was that it broke coreutils on Solaris, because
69600         "sed --posix" leaked into a makefile.
69601         (sed): New alias, if 'alias' and GNU sed.
69602
69603 2006-12-24  Jim Meyering  <jim@meyering.net>
69604
69605         Work around an fchownat bug in glibc-2.4:
69606         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
69607         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
69608         in spite of the -P option.
69609         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
69610         New macros.
69611         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
69612         * modules/openat (Files): Add lib/fchownat.c.
69613         * lib/openat.c (fchownat): Don't define here.  Move to...
69614         * lib/fchownat.c: ...this new file.
69615
69616 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69617
69618         Fix bug reported by Bruno Haible in
69619         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
69620         where quotearg.c didn't compile on Mac OS X 10.2 because it
69621         lacks <wchar.h> and wint_t.
69622         * lib/wctype_.h (__wctype_wint_t): New type.
69623         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
69624         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
69625         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
69626         Arg is now of type __wctype_wint_t, not wint_t.
69627         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
69628         substitute HAVE_WINT_T.
69629         * modules/wctype (Files): Add m4/wint_t.m4.
69630         (wctype.h): Substitute HAVE_WINT_T.
69631
69632 2006-12-23  Bruno Haible  <bruno@clisp.org>
69633
69634         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
69635
69636 2006-12-23  Bruno Haible  <bruno@clisp.org>
69637
69638         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
69639         S_ISLNK.
69640         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
69641         mingw.
69642
69643 2006-12-22  Bruno Haible  <bruno@clisp.org>
69644
69645         * lib/copy-file.c: Include acl.h.
69646         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
69647         Close the file descriptors only after being done with copy_acl.
69648         * modules/copy-file (Depends-on): Add acl.
69649
69650 2006-12-22  Bruno Haible  <bruno@clisp.org>
69651
69652         * gnulib-tool (SED): New variable.
69653         Use $SED instead of sed everywhere.
69654
69655 2006-12-22  Bruno Haible  <bruno@clisp.org>
69656
69657         * modules/no-c++: New file.
69658         * m4/no-c++.m4: New file.
69659         * MODULES.html.sh (Support for building libraries and executables):
69660         Add no-c++.
69661
69662 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
69663
69664         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69665         Include <limits.h>, and use its INT_MAX to rewrite the
69666         j loop so that it does not overflow 'int'.  Problem reported by
69667         Ralf Wildenhues in
69668         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
69669         Play it safe by shifting left by 1 rather than multiplying by 2,
69670         as GCC is less likely to optimize this away when the value
69671         is signed (when it assumes overflow leads to undefined behavior).
69672         Also, don't assume time_t uses two's complement.
69673
69674 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
69675
69676         * MODULES.html.sh: New module wctype.
69677         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
69678         * lib/fnmatch.c: Don't bother to include <wchar.h> before
69679         <wctype.h>, since the new wctype module should fix this.
69680         * lib/quotearg.c: Include <wctype.h> unconditionally, since
69681         the wctype module should arrange for it.
69682         * lib/regex_internal.h: Likewise.
69683         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
69684         since the wctype module should handle this now.
69685         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
69686         * modules/fnmatch (Depends-on): Add wctype.
69687         * modules/quotearg (Depends-on): Likewise.
69688         * modules/regex (Depends-on): Likewise.
69689
69690 2006-12-19  Bruno Haible  <bruno@clisp.org>
69691
69692         * lib/strdup.h [C++]: Wrap definitions in extern "C".
69693         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
69694
69695 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69696
69697         * modules/savewd (Depends-on): Fix dependency on fcntl.
69698
69699 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
69700
69701         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
69702         conforms to C99, rather than relying on the user's environment
69703         setting of STDINT_H.
69704
69705 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
69706         and Eric Blake  <ebb9@byu.net>
69707
69708         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
69709         This is more consistent with the other defines here.
69710         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
69711         Port to z/OS.  Problem reported by Paul Gilmartin.
69712         Change local vars to use gl_ prefix rather than ac_.
69713         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
69714         with other defines.
69715         * modules/double-slash-root: New module.
69716         * modules/dirname (Files): Remove m4/double-slash-root.m4.
69717         (Depends-on): Add double-slash-root.
69718         * MODULES.html.sh (File system functions): Mention new module.
69719
69720 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
69721
69722         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
69723         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
69724         This is for the benefit of gzip, which doesn't do i18n.
69725
69726 2006-12-12  Jim Meyering  <jim@meyering.net>
69727
69728         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
69729         Reported by Andreas Schwab <schwab@suse.de>.
69730
69731 2006-12-12  Bruno Haible  <bruno@clisp.org>
69732
69733         Merge these changes.
69734         2006-09-05  Bruno Haible  <bruno@clisp.org>
69735         * lib/iconvme.c (iconv_string): No need to save and restore errno when
69736         iconv_alloc succeeded.
69737         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
69738         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
69739         test for " && dest " at the end - dest is always != NULL there. Call
69740         iconv with 4xNULL arguments initially, to reset the state. Call iconv
69741         with 2xNULL arguments, also to flush the state storage. Handle the
69742         IRIX iconv behaviour. Realloc the final result, to throw away unused
69743         memory.
69744
69745 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
69746
69747         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
69748         and fchmodat unconditionally, since glibc 2.4 has them.
69749         Problem reported by Arkadiusz Miskiewicz.
69750
69751 2006-12-10  Bruno Haible  <bruno@clisp.org>
69752
69753         * gnulib-tool (func_import): Show the include files only for those
69754         modules that are copied and specified.
69755         Reported by Karl Berry.
69756
69757 2006-12-08  Jim Meyering  <jim@meyering.net>
69758
69759         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
69760         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
69761
69762         * build-aux/announce-gen: Add two new options, both optional:
69763         --bootstrap-tools=TOOL_LIST
69764               a comma-separated list of tools, e.g.,
69765               autoconf,automake,bison,gnulib
69766         --gnulib-snapshot-date=DATE
69767               if gnulib is in the bootstrap tool list,
69768               then report this as the snapshot date.
69769               If not specified, use the current date/time.
69770               If you specify a date here, be sure it's UTC.
69771
69772 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69773
69774         * tests/test-argp-2.sh: Fix test to match actual output.
69775         (func_compare): Fix sed script to be portable.
69776
69777 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
69778
69779         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
69780         workaround for this case.  It is not autoconfigured now; offhand
69781         it's hard to see how to autoconfigure it.
69782
69783 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
69784
69785         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
69786         a directory that is about to be chowned.  Such a directory's
69787         initial file permissions should permit the owner only and this
69788         should not be changed until after the chown, since the group and
69789         other bits would be incorrect if they granted permission before
69790         the chown.
69791
69792         Fix porting problem for iswctype reported by Georg Schwarz in:
69793         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
69794         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
69795         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
69796         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
69797         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69798
69799 2006-12-03  Jim Meyering  <jim@meyering.net>
69800
69801         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
69802         p->fts_statp may not yet be defined.
69803         (fts_read): Instead, set it in the caller, once p->fts_statp is
69804         sure to be defined, and corresponds to a top-level directory.
69805         This bug made du -x fail.  Here's the coreutils test case:
69806         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
69807         Reported by Mike Frysinger.
69808
69809 2006-12-01  Jim Meyering  <jim@meyering.net>
69810
69811         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
69812         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
69813         Reported by Simon Josefsson.
69814
69815 2006-11-30  Jim Meyering  <jim@meyering.net>
69816
69817         * m4/warning.m4: Use the all-permissive copyright notice
69818         recommended by RMS (rather than LGPL).
69819         * m4/vararrays.m4: Likewise.
69820         * m4/flexmember.m4: Likewise.
69821
69822 2006-11-29  Bruno Haible  <bruno@clisp.org>
69823
69824         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69825         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
69826         using +=.
69827         Reported by Simon Josefsson <simon@josefsson.org>.
69828
69829 2006-11-28  James Youngman <jay@gnu.org>
69830
69831         * README: Advise users that they might find the bug-gnulib@gnu.org
69832         and autotools-announce@gnu.org mailing lists useful.
69833
69834 2006-11-28  Bruno Haible  <bruno@clisp.org>
69835
69836         * m4/ptrdiff_max.m4: Remove file.
69837
69838 2006-11-21  Bruno Haible  <bruno@clisp.org>
69839
69840         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
69841         _AC_COMPUTE_INT.
69842         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69843         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
69844         _AC_COMPUTE_INT.
69845         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69846         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
69847         _AC_COMPUTE_INT.
69848         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69849
69850 2006-11-28  Jim Meyering  <jim@meyering.net>
69851
69852         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
69853         warning from "gcc -Wshadow" about shadowing the builtin.
69854
69855 2006-11-27  Bruno Haible  <bruno@clisp.org>
69856
69857         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
69858         _AC_COMPUTE_INT.
69859         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69860
69861 2006-11-27  Bruno Haible  <bruno@clisp.org>
69862             Paul Eggert  <eggert@cs.ucla.edu>
69863
69864         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
69865
69866 2006-11-26  Bruno Haible  <bruno@clisp.org>
69867
69868         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69869         noinst_LTLIBRARIES.
69870
69871 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69872             Bruno Haible  <bruno@clisp.org>
69873
69874         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
69875         if compiling with "gcc -ansi".
69876
69877 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69878
69879         Fix some incompatibilities with gcc -ansi -pedantic.
69880         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
69881         if compiling pedantically with GCC, unless it's C99 or later.
69882         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
69883         it mishandles gcc -ansi -pedantic as well.
69884         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
69885         if gcc -pedantic.
69886         * lib/regexec.c (check_node_accept_bytes): Don't use auto
69887         initializers for struct if -pedantic, unless it's C99 or later.
69888
69889 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
69890
69891         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
69892         Don't close an fd more than once. Identical atimes indicate
69893         success, not failure.
69894
69895 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
69896
69897         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
69898
69899 2006-11-23  Jim Meyering  <jim@meyering.net>
69900
69901         * build-aux/announce-gen: New file.  From coreutils.
69902
69903 2006-11-22  Jim Meyering  <jim@meyering.net>
69904
69905         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
69906         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
69907         (fts_read): Use a temporary to narrow the overused st_size member
69908         before using it in a switch statement.  Reported by Matthew Woehlke.
69909
69910         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
69911         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
69912
69913 2006-11-20  Bruno Haible  <bruno@clisp.org>
69914
69915         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
69916         changequote instead of pairs of brackets.
69917         Reported by Andreas Schwab <schwab@suse.de>.
69918
69919 2006-11-21  Jim Meyering  <jim@meyering.net>
69920
69921         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
69922         so as to remain compatible with older compilers.
69923         Patch from Michael Deutschmann.
69924
69925 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69926
69927         * MODULES.html.sh (File system functions): Add openat.
69928
69929         * lib/openat.h (rpl_fstatat): New macro, if
69930         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
69931         (fstatat): Define to rpl_fstatat under the same conditions,
69932         unless COMPILING_FSTATAT.
69933         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
69934         seems to have the bug.
69935         * lib/fstatat.c: New file.
69936         * modules/openat (Files): Add it.
69937
69938 2006-11-20  Bruno Haible  <bruno@clisp.org>
69939
69940         * Makefile: New file.
69941
69942 2006-11-20  Jim Meyering  <jim@meyering.net>
69943
69944         The beginnings of syntax-related checks for gnulib.
69945         * lib/Makefile: New file.
69946         * lib/t-idcache: New script.  Ensure that the two halves of
69947         idcache.c stay in sync.
69948
69949         * lib/idcache.c: Adjust comments in user- and group- portions to
69950         be more accurate, and to be consistent with one another.
69951
69952 2006-11-20  Jim Meyering  <jim@meyering.net>
69953
69954         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
69955         continue using the flexible array member (thus, this module performs
69956         half as many malloc calls), with the addition that...
69957         (getgroup, getuser): Consistently record a non-match via an empty
69958         "name" string, and map an empty string match to a NULL return value.
69959         * modules/idcache (Depends-on): Re-add flexmember.
69960
69961         * lib/idcache.c (getuser): Remove all uses of the register keyword.
69962         (getuidbyname, getgroup, getgidbyname): Likewise.
69963
69964         Use cleaner syntax: NULL rather than 0.
69965         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
69966
69967 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69968
69969         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
69970         It mishandled the case where the group was missing.
69971         Problem reported by Greg Schafer.
69972         * modules/idcache: Likewise.
69973
69974 2006-11-18  Jim Meyering  <jim@meyering.net>
69975
69976         * check-module (%exempt_header): Add exception for some
69977         conditionally-included headers.
69978
69979         * modules/i-ring (Depends-on): Add verify.
69980         (License): Change to LGPL.
69981
69982 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69983
69984         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
69985         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
69986         and inttostr.h.  Use snprintf rather than uinttostr, so that
69987         LGPLed code doesn't depend on GPLed.
69988
69989 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69990
69991         * modules/inline (License): Change from GPL to LGPL.
69992
69993 2006-11-17  Jim Meyering  <jim@meyering.net>
69994
69995         * modules/d-type (License): Switch to LGPL.
69996
69997 2006-11-15  Bruno Haible  <bruno@clisp.org>
69998
69999         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
70000
70001 2006-11-15  Eric Blake  <ebb9@byu.net>
70002
70003         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
70004         the module dependency.
70005
70006 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70007             Bruno Haible  <bruno@clisp.org>
70008
70009         * gnulib-tool (func_create_testdir): Add license consistency check.
70010
70011 2006-11-15  Eric Blake  <ebb9@byu.net>
70012
70013         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
70014         random "(cached)" in configure output.
70015
70016 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70017
70018         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
70019         test for conforming inttypes.h is both announced and cached.
70020
70021         * MODULES.html.sh (seen_modules, seen_files): New variables.
70022         (func_module): Rewrite to use a few less gnulib-tool and sed
70023         invocations.  Avoid a couple of quadratic algorithms for ...
70024         (missed_modules, missed_files): ... these, with ...
70025         (func_append, func_tmpdir): ... these new functions, from
70026         gnulib-tool.  Analogously, install traps for cleanup.
70027
70028         * tests/test-gc.c (main): Remove unused variables.
70029         * tests/test-read-file.c: Include stdlib.h, for 'free'.
70030
70031 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
70032
70033         * modules/inttostr (License): Change to LGPL.
70034
70035 2006-11-14  Eric Blake  <ebb9@byu.net>
70036
70037         * modules/tempname (License): Change to LGPL.
70038
70039 2006-11-14  Eric Blake  <ebb9@byu.net>
70040
70041         * doc/functions.texi (Function Portability): *printf functions on
70042         Cygwin now understand all POSIX size specifiers.
70043
70044 2006-11-14  Bruno Haible  <bruno@clisp.org>
70045
70046         * modules/c-ctype (License): Change to LGPL.
70047
70048 2006-11-12  Bruno Haible  <bruno@clisp.org>
70049
70050         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
70051         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
70052         for GNOME libraries, for which the include files are installed in
70053         subdirectories of $prefix/include.
70054
70055 2006-11-12  Bruno Haible  <bruno@clisp.org>
70056
70057         * m4/lib-link.m4: Require at least autoconf-2.54.
70058         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
70059         name to underscores for the --with option.
70060
70061 2006-11-13  Bruno Haible  <bruno@clisp.org>
70062
70063         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
70064         the tests directory.
70065         Reported by Ralf Wildenhues.
70066
70067 2006-11-13  Bruno Haible  <bruno@clisp.org>
70068
70069         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
70070         (func_emit_initmacro_end): Undo the override here.
70071         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
70072         Works around the famous automake error in coreutils.
70073
70074 2006-11-13  Eric Blake  <ebb9@byu.net>
70075
70076         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
70077         element, not its node.
70078
70079 2006-11-12  Bruno Haible  <bruno@clisp.org>
70080
70081         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
70082         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
70083
70084 2006-11-12  Bruno Haible  <bruno@clisp.org>
70085
70086         * gnulib-tool: New option --local-symlink.
70087         (func_usage): Document it.
70088         (lsymbolic): New variable.
70089         (func_import, func_create_testdir): If --symlink was not specified,
70090         test whether --local-symlink was specified and the file comes from
70091         the local_gnulib_dir.
70092
70093 2006-11-12  Bruno Haible  <bruno@clisp.org>
70094
70095         * gnulib-tool (func_ln): New function.
70096         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
70097
70098 2006-11-12  Bruno Haible  <bruno@clisp.org>
70099
70100         Finish support for source files in subdirectories.
70101         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
70102         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
70103         AUTOMAKE_OPTIONS.
70104         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
70105
70106 2006-11-12  Bruno Haible  <bruno@clisp.org>
70107
70108         * gnulib-tool (func_get_automake_snippet): Synthesize also an
70109         EXTRA_lib_SOURCES augmentation.
70110         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
70111
70112 2006-11-12  Jim Meyering  <jim@meyering.net>
70113
70114         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
70115         file descriptors.  This also averts a failure on systems with
70116         native openat support when a traversed directory lacks "x" access.
70117         * lib/fts_.h: Include "i-ring.h"
70118         (struct FTS) [fts_fd_ring]: New member.
70119         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
70120         (FCHDIR): Add parentheses.
70121         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
70122         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
70123         When descending, rather than simply closing the previous
70124         fts_cwd_fd value, push that file descriptor onto the ring.
70125         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
70126         (fts_open): Initialize the new fd_ring member.
70127         (fts_close): Clear the ring.
70128         (fts_safe_changedir): When possible, use our new fd_ring to skip
70129         the diropen and fstat and dev/ino comparison that would normally
70130         accompany a virtual `chdir ("..")'.
70131
70132         * modules/fts (Depends-on): Add i-ring.
70133         * modules/i-ring: New module.
70134         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
70135         * m4/i-ring.m4: New file.
70136
70137 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70138
70139         * gnulib-tool (func_create_testdir): Fix replacement of
70140         `build-aux' in configure.ac.  Run autotools in gltests
70141         subdirectory.
70142         (func_create_testdir, func_create_megatestdir, test): There is
70143         no need for '--force' in most autotool invocations in a new
70144         tree.  Actually fail the whole test if any of the tools, or the
70145         configure or make stages fail.
70146
70147         Sync from Automake.
70148         * build-aux/gnupload: Revert last change.  Add pointer to upload
70149         instructions of the GNU Maintenance Instructions.
70150         Suggestion by Karl Berry.
70151
70152 2006-11-10  Jim Meyering  <jim@meyering.net>
70153
70154         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
70155
70156 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70157
70158         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
70159         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
70160         (bind_textdomain_codeset) [! ENABLE_NLS]:
70161         Evaluate all the arguments.  That way, callers get compatible behavior
70162         if the arguments have side effects.  Also, it avoids some GCC
70163         diagnostics in some cases; Joel E. Denny reported problems when Bison
70164         was configured with --enable-gcc-warnigs.
70165
70166 2006-11-10  Jim Meyering  <jim@meyering.net>
70167
70168         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
70169         relevant options in CFLAGS (like -O, -fno-inline) are taken into
70170         account.
70171
70172 2006-11-10  Jim Meyering  <jim@meyering.net>
70173
70174         * modules/inline: New file/module.
70175         * modules/xalloc (Files): Remove m4/inline.m4.
70176         (Depends-on): Add inline, instead.
70177         * modules/oset: Likewise.
70178         * modules/list: Likewise.
70179
70180 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70181
70182         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
70183         Problem reported by Matthew Woehlke.
70184
70185 2006-11-09  Bruno Haible  <bruno@clisp.org>
70186
70187         * lib/tempname.c (gen_tempname): Remove variant that invokes
70188         __gen_tempname.
70189         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
70190         __gen_tempname.
70191
70192 2006-11-08  Bruno Haible  <bruno@clisp.org>
70193
70194         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
70195         to 'yes' instead of 'cross-compiling'.
70196
70197 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
70198
70199         * lib/quotearg.h (quotearg_free): New decl.
70200         * lib/quotearg.c (quotearg_free): New function.
70201         (slot0, nslots, slotvec0, slotvec):
70202         Now file-scope so that quotearg_free can get at them.
70203
70204 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70205
70206         Sync from Automake.
70207         * build-aux/gnupload: Add missing 'gnu' to example URL.
70208         Report by Karl Berry.
70209
70210 2006-11-08  Bruno Haible  <bruno@clisp.org>
70211
70212         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
70213         Suggested by Paul Eggert.
70214
70215 2006-11-08  Jim Meyering  <jim@meyering.net>
70216
70217         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
70218         It's already included if !_LIBC.
70219         (fts_safe_changedir): Add a comment.
70220
70221 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
70222
70223         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
70224         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
70225         Matthew Woehlke.
70226
70227         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
70228         definitions up, to avoid colliding with change below.
70229         (static_inline) [HAVE_INLINE]: New macro.
70230         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
70231         Provide extern decls when !HAVE_INLINE.  Do not define unless
70232         static_inline is defined, either by us or by xmalloc.c.  Use
70233         static_inline rather than static inline.
70234         (XCALLOC): Optimize sizeof(T) = 1 case.
70235         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
70236
70237 2006-11-07  Bruno Haible  <bruno@clisp.org>
70238
70239         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
70240         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
70241         AC_C_INLINE.
70242         * modules/xalloc (Files): Add m4/inline.m4.
70243
70244 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70245
70246         * README: Fix typo.
70247         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
70248         (Miscellanous Notes): ...from this.
70249
70250 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
70251
70252         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
70253         Mention that offsetof should be used instead of sizeof.
70254         From Bruno Haible.
70255
70256 2006-11-07  Bruno Haible  <bruno@clisp.org>
70257
70258         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
70259
70260 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
70261
70262         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
70263         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
70264         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
70265         (gl_tree_add_before, gl_tree_add_after):
70266         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
70267         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
70268         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70269         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
70270         (gl_linked_add_after, gl_linked_add_at): Likewise.
70271         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
70272         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
70273         (gl_tree_add_before, gl_tree_add_after): Likewise.
70274         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
70275         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
70276         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
70277
70278 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70279
70280         * lib/gl_oset.h: Use C comment style, not C++ comment style.
70281
70282 2006-11-06  Bruno Haible  <bruno@clisp.org>
70283
70284         * m4/inline.m4: New file.
70285         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
70286         * modules/list (Files): Add m4/inline.m4.
70287         * modules/oset (Files): Likewise.
70288
70289 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
70290
70291         * lib/idcache.c: Include <stddef.h>, for offsetof.
70292         (struct userid.name): Change from char * to a flexible array member.
70293         All uses changed.
70294         * modules/idcache (Depends-on): Add flexmember.
70295
70296         * MODULES.html.sh (Core language properties): New module flexmember.
70297         * modules/flexmember, m4/flexmember.m4: New files.
70298
70299         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
70300         inline functions that are identical with the old xnmalloc_inline,
70301         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
70302         that we can avoid some unnecessary integer multiplications and
70303         divisions in the common case where the element size is known at
70304         compile time.
70305         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
70306         needed.
70307         (xnboundedmalloc): Remove.
70308         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
70309         arguments, for consistency with rest of this header.
70310         (xcharalloc): Rewrite using XNMALLOC.
70311         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
70312         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
70313         versions have been moved to lib/xalloc.h and renamed to be the
70314         non-*_inline versions.
70315         (xmalloc, xrealloc): Implement without reference to the xnmalloc
70316         and xnrealloc functions, since those functions are now inline and
70317         now call us.
70318         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
70319         renaming described above.
70320         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
70321         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
70322         captures the dependency in AC_C_INLINE.
70323
70324         New module canonicalize-lgpl, proposed by Charles Wilson in
70325         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
70326         with a few small changes afterwards.
70327         * MODULES.html.sh (File system functions): New module
70328         canonicalize-lgpl.
70329         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
70330         and canonicalize_file_name.
70331         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
70332         * modules/canonicalize-lgpl: New files.
70333
70334 2006-11-05  Bruno Haible  <bruno@clisp.org>
70335
70336         * gnulib-tool (func_import, func_create_testdir): Create directories
70337         also for files in subdirectories of lib/.
70338
70339 2006-11-05  Bruno Haible  <bruno@clisp.org>
70340
70341         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
70342         ANSI C compliant.
70343
70344 2006-11-03  Bruno Haible  <bruno@clisp.org>
70345
70346         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
70347         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
70348         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
70349         (xnboundedmalloc): New inline function.
70350         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
70351         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
70352         xmalloc.
70353         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
70354         xmalloc.
70355         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
70356         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
70357         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
70358         xmalloc.
70359         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
70360         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
70361         xmalloc.
70362         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
70363         gl_tree_add_after): Use XMALLOC instead of xmalloc.
70364         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
70365         xmalloc.
70366         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
70367         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
70368         gl_tree_add_after): Use XMALLOC instead of xmalloc.
70369         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
70370         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
70371         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
70372         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
70373
70374 2006-11-03  Bruno Haible  <bruno@clisp.org>
70375
70376         * lib/c-ctype.h [C++]: Define functions without name mangling.
70377         * lib/fwriteerror.h [C++]: Likewise.
70378         * lib/gcd.h [C++]: Likewise.
70379         * lib/linebreak.h [C++]: Likewise.
70380
70381 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70382
70383         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
70384         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
70385         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
70386         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70387         Check for functions and headers just once.
70388         Check for declaration of canonicalize_file_name.
70389         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
70390
70391 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70392
70393         * gnulib-tool (func_import): Fix typo in actioncmd.
70394
70395 2006-11-02  Bruno Haible  <bruno@clisp.org>
70396
70397         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
70398         newline sequence in the Makefile.am snippet as a space, like "make"
70399         does.
70400         Reported by Roger Persson <perrog@gmail.com>.
70401
70402 2006-11-01  Bruno Haible  <bruno@clisp.org>
70403
70404         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
70405         already declared in <string.h>.
70406         * lib/strcase.h (strncasecmp): Don't declare it if yes.
70407
70408 2006-11-01  Bruno Haible  <bruno@clisp.org>
70409
70410         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
70411         * lib/strcase.h: Include <string.h>.
70412         (strcasecmp): Define to rpl_strcasecmp here.
70413
70414 2006-11-01  Bruno Haible  <bruno@clisp.org>
70415
70416         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
70417
70418 2006-11-01  Eric Blake  <ebb9@byu.net>
70419
70420         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
70421
70422         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
70423
70424 2006-10-29  Bruno Haible  <bruno@clisp.org>
70425
70426         Make it compile in C++ mode.
70427         * lib/full-write.c (full_rw): Add a cast.
70428
70429 2006-11-01  Bruno Haible  <bruno@clisp.org>
70430
70431         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
70432         be POSIX compliant.
70433         Reported by Roger Persson <perrog@gmail.com>.
70434
70435 2006-11-01  Eric Blake  <ebb9@byu.net>
70436
70437         * lib/getopt_.h: Fix comments.
70438
70439 2006-10-31  Eric Blake  <ebb9@byu.net>
70440
70441         * modules/tmpdir (Depends-on): Add sys_stat.
70442         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
70443         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
70444         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
70445         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
70446         tempname.
70447
70448 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
70449
70450         Avoid some C++ diagnostics reported by Bruno Haible.
70451         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
70452         xmalloc.
70453         (quotearg_alloc): Use xcharalloc rather than xmalloc.
70454         (struct slotvec): Move to top level.
70455         (quotearg_n_options): Rewrite to avoid xmalloc.
70456         * lib/xalloc.h (xcharalloc): New function.
70457         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
70458         [defined __cplusplus]: Add function template that provides result
70459         type propagation.  This part of the change is from Bruno Haible.
70460
70461 2006-10-29  Bruno Haible  <bruno@clisp.org>
70462
70463         Make it compile in C++ mode.
70464         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
70465         * lib/strnlen1.c (strnlen1): Cast memchr result.
70466         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
70467         * lib/clean-temp.c (string_equals, string_hash): Add casts.
70468         (create_temp_dir): Rename local variable 'template'.
70469         (compile_csharp_using_sscli): Add cast.
70470         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
70471         * lib/findprog.c (find_in_path): Likewise.
70472         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
70473         * lib/wait-process.c (register_slave_subprocess): Likewise.
70474
70475 2006-10-22  Bruno Haible  <bruno@clisp.org>
70476
70477         * modules/tsearch: New file.
70478         * lib/tsearch.h: New file.
70479         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
70480         * m4/tsearch.m4: New file.
70481         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
70482
70483 2006-10-29  Eric Blake  <ebb9@byu.net>
70484
70485         * lib/arcfour.c: Assume config.h.
70486         * lib/arctwo.c: Likewise.
70487         * lib/base64.c: Likewise.
70488         * lib/check-version.c: Likewise.
70489         * lib/crc.c: Likewise.
70490         * lib/des.c: Likewise.
70491         * lib/gc-gnulib.c: Likewise.
70492         * lib/gc-libgcrypt.c: Likewise.
70493         * lib/gc-pbkdf2-sha1.c: Likewise.
70494         * lib/getaddrinfo.c: Likewise.
70495         * lib/getdelim.c: Likewise.
70496         * lib/getline.c: Likewise.
70497         * lib/hmac-md5.c: Likewise.
70498         * lib/hmac-sha1.c: Likewise.
70499         * lib/iconvme.c: Likewise.
70500         * lib/md2.c: Likewise.
70501         * lib/md4.c: Likewise.
70502         * lib/memxor.c: Likewise.
70503         * lib/read-file.c: Likewise.
70504         * lib/readline.c: Likewise.
70505         * lib/rijndael-alg-fst.c: Likewise.
70506         * lib/rijndael-api-fst.c: Likewise.
70507         * lib/xgetdomainname.c: Likewise.
70508
70509 2006-10-28  Eric Blake  <ebb9@byu.net>
70510
70511         * lib/xstrndup.c: Assume config.h.
70512
70513 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70514
70515         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
70516         stat-macros.h is now for our own macros, whereas stat_h is for
70517         macros in the <sys/stat.h> name space.
70518         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
70519         (STAT_MACROS_H): Remove.
70520         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
70521         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
70522         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
70523         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
70524         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
70525         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
70526         Move these macros to ...
70527         * lib/stat_.h: here.  Don't include stat-macros.h.
70528         * lib/canonicalize.c: Don't include stat-macros.h.
70529         * lib/chown.c: Likewise.
70530         * lib/euidaccess.c: Likewise.
70531         * lib/file-type.c: Likewise.
70532         * lib/filemode.c: Likewise.
70533         * lib/glob.c: Likewise.
70534         * lib/isapipe.c: Likewise.
70535         * lib/lchown.c: Likewise.
70536         * lib/lstat.c: Likewise.
70537         * lib/mkdir-p.c: Likewise.
70538         * lib/rmdir.c: Likewise.
70539         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
70540         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
70541         unless mkdir isn't declared, to speed up 'configure'.
70542         Always create sys/stat.h, since it's unlikely any real sys/stat.h
70543         would define all the S_* symbols.
70544         * modules/canonicalize (Depends-on):
70545         Depend on sys_stat, not stat-macros.
70546         * modules/chown: Likewise.
70547         * modules/euidaccess: Likewise.
70548         * modules/filemode: Likewise.
70549         * modules/file-type: Likewise.
70550         * modules/glob: Likewise.
70551         * modules/isapipe: Likewise.
70552         * modules/lchown: Likewise.
70553         * modules/lstat: Likewise.
70554         * modules/mkancesdirs: Likewise.
70555         * modules/rmdir: Likewise.
70556         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
70557         * modules/modechange: Likewise.
70558         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
70559         (configure.ac): Remove gl_STAT_MACROS.
70560         * modules/sys_stat (Depends-on): Remove stat-macros.
70561
70562 2006-10-27  Bruno Haible  <bruno@clisp.org>
70563
70564         * m4/signed.m4: Remove file.
70565         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
70566         invocation.
70567         * modules/vasnprintf (Files): Remove m4/signed.m4.
70568
70569 2006-10-27  Bruno Haible  <bruno@clisp.org>
70570
70571         Update to GNU gettext 0.16.
70572         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
70573         m4/inttypes-h.m4, m4/signed.m4.
70574         * m4/gettext.m4: Update to GNU gettext 0.16.
70575         * m4/intl.m4: New file, from GNU gettext.
70576         * m4/intldir.m4: New file, from GNU gettext.
70577         * config/srclist.txt: Update
70578
70579 2006-10-27  Eric Blake  <ebb9@byu.net>
70580
70581         * MODULES.html.sh: Document tempname.
70582         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
70583         dependencies.
70584         (Files): Move lib/tempname.c...
70585         * modules/tempname: ...to this new module.
70586         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
70587         (gl_PREREQ_TEMPNAME): Move...
70588         * m4/tempname.m4: ...to this new file.
70589         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
70590         * modules/sys_stat (Depends-on): Add stat-macros.
70591         * lib/stat_.h (includes): Pick up stat macros.
70592         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
70593         if stat macros are broken.
70594         * lib/tempname.c (includes): No need to include "stat-macros.h".
70595         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
70596         (direxists, __path_search) [!_LIBC]: Don't compile these in
70597         gnulib; the tmpdir module covers that.
70598         * lib/tempname.h: New file.
70599
70600 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
70601
70602         * COPYING: Explain how gnulib-tool converts licence headers.
70603         Almost all wording by Eric Blake.
70604
70605 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
70606
70607         * lib/mbchar.h (is_basic_table): Make read-only.
70608         * lib/mbchar.c (is_basic_table): Likewise.
70609         Reported by John Darrington.
70610
70611 2006-10-25  Bruno Haible  <bruno@clisp.org>
70612
70613         * lib/progname.h (set_program_name): Undefine before defining.
70614
70615 2006-10-25  Bruno Haible  <bruno@clisp.org>
70616
70617         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
70618         false for non-gcc C++ compilers.
70619         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
70620
70621 2006-10-24  Bruno Haible  <bruno@clisp.org>
70622
70623         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
70624         iconv implementations like Irix iconv.
70625
70626 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70627
70628         * modules/vararrays: New file.
70629         * m4/vararrays.m4: New file, taken from diffutils.
70630         * MODULES.html.sh: New module vararrays.
70631
70632 2006-10-24  Karl Berry  <karl@gnu.org>
70633
70634         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
70635         Don't call GNU Unix.
70636
70637 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70638
70639         * users.txt: Add Libtool.
70640
70641         Sync from Libtool:
70642
70643         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70644
70645         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
70646         to gnulib's policy of including config.h unconditionally.
70647
70648 2006-10-24  Bruno Haible  <bruno@clisp.org>
70649
70650         * modules/wcwidth (Files): Add m4/wint_t.m4.
70651         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
70652         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
70653
70654 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70655
70656         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
70657         to pacify GCC with some -W flags enabled.  Problem reported by
70658         Bruno Haible.
70659
70660 2006-10-24  Jim Meyering  <jim@meyering.net>
70661
70662         * MODULES.html.sh: Remove uinttostr.  It's not a module.
70663         Reported by Karl Berry.
70664
70665 2006-10-23  Bruno Haible  <bruno@clisp.org>
70666
70667         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
70668
70669 2006-10-24  Bruno Haible  <bruno@clisp.org>
70670
70671         * lib/gl_list.h: Use C comment style, not C++ comment style.
70672
70673 2006-10-23  Eric Blake  <ebb9@byu.net>
70674
70675         * lib/getaddrinfo.c (includes): Add missing include.
70676
70677 2006-10-23  Bruno Haible  <bruno@clisp.org>
70678             Paul Eggert  <eggert@cs.ucla.edu>
70679
70680         Ability to rename obstack_free.
70681         * lib/obstack.h (__obstack_free): New macro. Declare instead of
70682         obstack_free.
70683         (obstack_free): Invoke the __obstack_free macro.
70684         * lib/obstack.c (obstack_free): Use __obstack_free macro.
70685
70686 2006-10-23  Bruno Haible  <bruno@clisp.org>
70687             Paul Eggert  <eggert@cs.ucla.edu>
70688
70689         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
70690         __argc, __argv from the declaration. (They are defined as macros on
70691         mingw.)
70692
70693 2006-10-22  Bruno Haible  <bruno@clisp.org>
70694
70695         * doc/gnulib-intro.texi: New file.
70696         * doc/gnulib.texi: Include it.
70697
70698 2006-10-21  Bruno Haible  <bruno@clisp.org>
70699
70700         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
70701         "Introduction", "Miscellanous Notes", "Particular Modules".
70702
70703 2006-10-21  Bruno Haible  <bruno@clisp.org>
70704
70705         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70706         Change mostlyclean-local rule to avoid sh syntax error from bash
70707         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
70708
70709 2006-10-23  Jim Meyering  <jim@meyering.net>
70710
70711         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
70712         in place of snprintf.
70713
70714         * modules/inttostr (Files): Add lib/uinttostr.c.
70715         * lib/uinttostr.c (inttostr): New file/function.
70716         * lib/inttostr.h (uinttostr): Declare.
70717         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
70718         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
70719         Add uinttostr.
70720         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
70721
70722 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
70723
70724         * lib/canonicalize.c (ELOOP): Define if not already defined.
70725         Problem reported by Bruno Haible in
70726         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
70727
70728 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
70729
70730         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
70731         Problem reported by Perry Smith and Ville Laurikari.
70732
70733         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
70734         uses.
70735
70736 2006-10-19  Bruno Haible  <bruno@clisp.org>
70737
70738         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
70739         for mingw.
70740
70741 2006-10-19  Bruno Haible  <bruno@clisp.org>
70742
70743         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
70744         Needed for mingw.
70745
70746 2006-10-19  Bruno Haible  <bruno@clisp.org>
70747
70748         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
70749
70750 2006-10-19  Bruno Haible  <bruno@clisp.org>
70751
70752         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
70753         it.
70754
70755 2006-10-19  Bruno Haible  <bruno@clisp.org>
70756
70757         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
70758         invocation.
70759
70760 2006-10-19  Bruno Haible  <bruno@clisp.org>
70761
70762         * gnulib-tool (func_create_testdir): Don't include ftruncate and
70763         mountlist by default.
70764
70765 2006-10-16  Bruno Haible  <bruno@clisp.org>
70766
70767         * lib/c-strstr.c: Include c-strstr.h.
70768
70769 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70770
70771         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
70772         in a slash.
70773
70774 2006-10-18  Bruno Haible  <bruno@clisp.org>
70775
70776         * lib/lock.h [C++]: Wrap definitions in extern "C".
70777
70778 2006-10-18  Bruno Haible  <bruno@clisp.org>
70779
70780         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
70781         gl_LIBOBJS list.
70782
70783 2006-10-18  Bruno Haible  <bruno@clisp.org>
70784
70785         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
70786
70787 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
70788
70789         * lib/xstrtol.h: Include gettext.h.
70790         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
70791         Problem reported by Eric Blake.
70792         * modules/xstrtol (Depends-on): Add gettext-h.
70793
70794 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
70795
70796         * lib/strftime.c (advance): New macro.
70797         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
70798         incomplete type, so you can't add 0 to it.  Problem and patch
70799         reported by Eelco Dolstra for dietlibc.
70800
70801 2006-10-18  Jim Meyering  <jim@meyering.net>
70802
70803         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
70804         type for a local, and rename it: s/up/user_proc/.
70805
70806 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
70807
70808         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
70809         READ_UTMP_USER_PROCESS.
70810         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
70811
70812 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70813
70814         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
70815         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
70816
70817 2006-10-17  Eric Blake  <ebb9@byu.net>
70818
70819         * lib/sigprocmask.c (sigprocmask): Fix typo.
70820
70821         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
70822
70823         * modules/clean-temp (Makefile.am): Don't add to make output...
70824         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
70825         config.h.
70826
70827 2006-10-17  Bruno Haible  <bruno@clisp.org>
70828
70829         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
70830         differently if DEFAULT_TEXT_DOMAIN is set.
70831
70832 2006-10-16  Bruno Haible  <bruno@clisp.org>
70833
70834         * lib/clean-temp.c: Include fwriteerror.h.
70835
70836 2006-10-16  Bruno Haible  <bruno@clisp.org>
70837
70838         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
70839
70840 2006-10-16  Bruno Haible  <bruno@clisp.org>
70841
70842         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
70843         * lib/sigprocmask.h: Include <sys/types.h>.
70844         (sigset_t): Use the system's definition if present.
70845
70846 2006-10-17  Eric Blake  <ebb9@byu.net>
70847
70848         * lib/xvasprintf.c (includes): Assume config.h.
70849         * lib/xasprintf.c (includes): Likewise.
70850
70851 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
70852
70853         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
70854         at least as wide as intmax_t.
70855
70856 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
70857
70858         (Imported from Automake.)
70859         * build-aux/gnupload: Update to version 1.1 of directive file.
70860
70861 2006-10-16  Eric Blake  <ebb9@byu.net>
70862
70863         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
70864         match Automake 1.10a.
70865
70866 2006-10-14  Bruno Haible  <bruno@clisp.org>
70867
70868         * modules/sigprocmask: New file.
70869         * lib/sigprocmask.h: New file.
70870         * lib/sigprocmask.c: New file.
70871         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
70872         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
70873         request sigprocmask.o.
70874         (gl_PREREQ_SIGPROCMASK): New macro.
70875         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
70876         (Depends-on): Add sigprocmask.
70877         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
70878         gt_SIGNALBLOCKING. Test for 'raise' only once.
70879         * lib/fatal-signal.c: Include sigprocmask.h.
70880         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
70881         unblock_fatal_signals): Define always.
70882         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70883         sigprocmask.
70884
70885 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70886
70887         Sync from Automake.
70888         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
70889         which incorrectly sets the mode of an existing destination
70890         directory.  In some cases the unpatched install-sh could do the
70891         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
70892         system.  We hope this is rare in practice, but it's clearly worth
70893         fixing.  Problem reported by Alex Unleashed in
70894         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
70895         Also, don't bother to check for -m bugs unless we're using -m;
70896         suggested by Stepan Kasal.
70897
70898 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70899
70900         Sync from Automake.
70901         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
70902         `-c' flag, so they appear at the same position as in %FASTDEP%
70903         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
70904         which ignores unknown options only after the first non-option.
70905         Bug report against M4 by Nelson H. F. Beebe.
70906
70907 2006-10-13  Jim Meyering  <jim@meyering.net>
70908
70909         Fix a bug in yesterday's change.
70910         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
70911         p->fts_statp->st_dev would be used uninitialized.
70912         Ensures that we always call fts_stat on the very first entry.
70913         Miklos Szeredi reported that find -xdev stopped working.
70914
70915 2006-10-12  Bruno Haible  <bruno@clisp.org>
70916
70917         * gnulib-tool (func_get_automake_snippet): Append an automatically
70918         computed EXTRA_DIST augmentation.
70919         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
70920         * modules/alloca-opt (Makefile.am): Likewise.
70921         * modules/allocsa (Makefile.am): Likewise.
70922         * modules/arcfour (Makefile.am): Likewise.
70923         * modules/arctwo (Makefile.am): Likewise.
70924         * modules/argmatch (Makefile.am): Likewise.
70925         * modules/argz (Makefile.am): Likewise.
70926         * modules/atexit (Makefile.am): Likewise.
70927         * modules/backupfile (Makefile.am): Likewise.
70928         * modules/byteswap (Makefile.am): Likewise.
70929         * modules/c-strtod (Makefile.am): Likewise.
70930         * modules/c-strtold (Makefile.am): Likewise.
70931         * modules/calloc (Makefile.am): Likewise.
70932         * modules/canon-host (Makefile.am): Likewise.
70933         * modules/canonicalize (Makefile.am): Likewise.
70934         * modules/chdir-long (Makefile.am): Likewise.
70935         * modules/chdir-safer (Makefile.am): Likewise.
70936         * modules/check-version (Makefile.am): Likewise.
70937         * modules/chown (Makefile.am): Likewise.
70938         * modules/cloexec (Makefile.am): Likewise.
70939         * modules/close-stream (Makefile.am): Likewise.
70940         * modules/closeout (Makefile.am): Likewise.
70941         * modules/crc (Makefile.am): Likewise.
70942         * modules/csharpexec (Makefile.am): Likewise.
70943         * modules/cycle-check (Makefile.am): Likewise.
70944         * modules/des (Makefile.am): Likewise.
70945         * modules/dev-ino (Makefile.am): Likewise.
70946         * modules/dirfd (Makefile.am): Likewise.
70947         * modules/dirname (Makefile.am): Likewise.
70948         * modules/dup2 (Makefile.am): Likewise.
70949         * modules/eealloc (Makefile.am): Likewise.
70950         * modules/error (Makefile.am): Likewise.
70951         * modules/euidaccess (Makefile.am): Likewise.
70952         * modules/exclude (Makefile.am): Likewise.
70953         * modules/exitfail (Makefile.am): Likewise.
70954         * modules/fcntl-safer (Makefile.am): Likewise.
70955         * modules/fcntl (Makefile.am): Likewise.
70956         * modules/file-type (Makefile.am): Likewise.
70957         * modules/fileblocks (Makefile.am): Likewise.
70958         * modules/filemode (Makefile.am): Likewise.
70959         * modules/filenamecat (Makefile.am): Likewise.
70960         * modules/fnmatch (Makefile.am): Likewise.
70961         * modules/fopen-safer (Makefile.am): Likewise.
70962         * modules/fpending (Makefile.am): Likewise.
70963         * modules/fprintftime (Makefile.am): Likewise.
70964         * modules/free (Makefile.am): Likewise.
70965         * modules/fsusage (Makefile.am): Likewise.
70966         * modules/ftruncate (Makefile.am): Likewise.
70967         * modules/fts (Makefile.am): Likewise.
70968         * modules/gc-arcfour (Makefile.am): Likewise.
70969         * modules/gc-des (Makefile.am): Likewise.
70970         * modules/gc-hmac-md5 (Makefile.am): Likewise.
70971         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
70972         * modules/gc-md4 (Makefile.am): Likewise.
70973         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
70974         * modules/gc-sha1 (Makefile.am): Likewise.
70975         * modules/gc (Makefile.am): Likewise.
70976         * modules/getaddrinfo (Makefile.am): Likewise.
70977         * modules/getcwd (Makefile.am): Likewise.
70978         * modules/getdelim (Makefile.am): Likewise.
70979         * modules/getdomainname (Makefile.am): Likewise.
70980         * modules/getgroups (Makefile.am): Likewise.
70981         * modules/gethostname (Makefile.am): Likewise.
70982         * modules/gethrxtime (Makefile.am): Likewise.
70983         * modules/getline (Makefile.am): Likewise.
70984         * modules/getloadavg (Makefile.am): Likewise.
70985         * modules/getlogin_r (Makefile.am): Likewise.
70986         * modules/getndelim2 (Makefile.am): Likewise.
70987         * modules/getopt (Makefile.am): Likewise.
70988         * modules/getpagesize (Makefile.am): Likewise.
70989         * modules/getpass-gnu (Makefile.am): Likewise.
70990         * modules/getpass (Makefile.am): Likewise.
70991         * modules/getsubopt (Makefile.am): Likewise.
70992         * modules/gettime (Makefile.am): Likewise.
70993         * modules/gettimeofday (Makefile.am): Likewise.
70994         * modules/getugroups (Makefile.am): Likewise.
70995         * modules/getusershell (Makefile.am): Likewise.
70996         * modules/glob (Makefile.am): Likewise.
70997         * modules/group-member (Makefile.am): Likewise.
70998         * modules/hard-locale (Makefile.am): Likewise.
70999         * modules/hash (Makefile.am): Likewise.
71000         * modules/hmac-md5 (Makefile.am): Likewise.
71001         * modules/hmac-sha1 (Makefile.am): Likewise.
71002         * modules/human (Makefile.am): Likewise.
71003         * modules/idcache (Makefile.am): Likewise.
71004         * modules/imaxabs (Makefile.am): Likewise.
71005         * modules/imaxdiv (Makefile.am): Likewise.
71006         * modules/inet_ntop (Makefile.am): Likewise.
71007         * modules/inet_pton (Makefile.am): Likewise.
71008         * modules/intprops (Makefile.am): Likewise.
71009         * modules/inttostr (Makefile.am): Likewise.
71010         * modules/inttypes (Makefile.am): Likewise.
71011         * modules/isapipe (Makefile.am): Likewise.
71012         * modules/javaversion (Makefile.am): Likewise.
71013         * modules/lchmod (Makefile.am): Likewise.
71014         * modules/lchown (Makefile.am): Likewise.
71015         * modules/localcharset (Makefile.am): Likewise.
71016         * modules/long-options (Makefile.am): Likewise.
71017         * modules/lstat (Makefile.am): Likewise.
71018         * modules/malloc (Makefile.am): Likewise.
71019         * modules/mathl (Makefile.am): Likewise.
71020         * modules/mbchar (Makefile.am): Likewise.
71021         * modules/md2 (Makefile.am): Likewise.
71022         * modules/md4 (Makefile.am): Likewise.
71023         * modules/md5 (Makefile.am): Likewise.
71024         * modules/memcasecmp (Makefile.am): Likewise.
71025         * modules/memchr (Makefile.am): Likewise.
71026         * modules/memcmp (Makefile.am): Likewise.
71027         * modules/memcoll (Makefile.am): Likewise.
71028         * modules/memcpy (Makefile.am): Likewise.
71029         * modules/memmem (Makefile.am): Likewise.
71030         * modules/memmove (Makefile.am): Likewise.
71031         * modules/mempcpy (Makefile.am): Likewise.
71032         * modules/memrchr (Makefile.am): Likewise.
71033         * modules/memset (Makefile.am): Likewise.
71034         * modules/memxor (Makefile.am): Likewise.
71035         * modules/mkancesdirs (Makefile.am): Likewise.
71036         * modules/mkdir-p (Makefile.am): Likewise.
71037         * modules/mkdir (Makefile.am): Likewise.
71038         * modules/mkdtemp (Makefile.am): Likewise.
71039         * modules/mkstemp (Makefile.am): Likewise.
71040         * modules/mktime (Makefile.am): Likewise.
71041         * modules/modechange (Makefile.am): Likewise.
71042         * modules/mountlist (Makefile.am): Likewise.
71043         * modules/nanosleep (Makefile.am): Likewise.
71044         * modules/obstack (Makefile.am): Likewise.
71045         * modules/openat (Makefile.am): Likewise.
71046         * modules/pagealign_alloc (Makefile.am): Likewise.
71047         * modules/pathmax (Makefile.am): Likewise.
71048         * modules/physmem (Makefile.am): Likewise.
71049         * modules/poll (Makefile.am): Likewise.
71050         * modules/posixtm (Makefile.am): Likewise.
71051         * modules/posixver (Makefile.am): Likewise.
71052         * modules/putenv (Makefile.am): Likewise.
71053         * modules/quote (Makefile.am): Likewise.
71054         * modules/quotearg (Makefile.am): Likewise.
71055         * modules/raise (Makefile.am): Likewise.
71056         * modules/read-file (Makefile.am): Likewise.
71057         * modules/readline (Makefile.am): Likewise.
71058         * modules/readlink (Makefile.am): Likewise.
71059         * modules/readtokens (Makefile.am): Likewise.
71060         * modules/readutmp (Makefile.am): Likewise.
71061         * modules/realloc (Makefile.am): Likewise.
71062         * modules/regex (Makefile.am): Likewise.
71063         * modules/rename-dest-slash (Makefile.am): Likewise.
71064         * modules/rename (Makefile.am): Likewise.
71065         * modules/rijndael (Makefile.am): Likewise.
71066         * modules/rmdir (Makefile.am): Likewise.
71067         * modules/rpmatch (Makefile.am): Likewise.
71068         * modules/safe-read (Makefile.am): Likewise.
71069         * modules/safe-write (Makefile.am): Likewise.
71070         * modules/same-inode (Makefile.am): Likewise.
71071         * modules/same (Makefile.am): Likewise.
71072         * modules/save-cwd (Makefile.am): Likewise.
71073         * modules/savedir (Makefile.am): Likewise.
71074         * modules/setenv (Makefile.am): Likewise.
71075         * modules/settime (Makefile.am): Likewise.
71076         * modules/sha1 (Makefile.am): Likewise.
71077         * modules/sig2str (Makefile.am): Likewise.
71078         * modules/snprintf (Makefile.am): Likewise.
71079         * modules/stat-macros (Makefile.am): Likewise.
71080         * modules/stat-time (Makefile.am): Likewise.
71081         * modules/stdbool (Makefile.am): Likewise.
71082         * modules/stdint (Makefile.am): Likewise.
71083         * modules/stdlib-safer (Makefile.am): Likewise.
71084         * modules/stpcpy (Makefile.am): Likewise.
71085         * modules/stpncpy (Makefile.am): Likewise.
71086         * modules/strcase (Makefile.am): Likewise.
71087         * modules/strcasestr (Makefile.am): Likewise.
71088         * modules/strchrnul (Makefile.am): Likewise.
71089         * modules/strcspn (Makefile.am): Likewise.
71090         * modules/strdup (Makefile.am): Likewise.
71091         * modules/strerror (Makefile.am): Likewise.
71092         * modules/strftime (Makefile.am): Likewise.
71093         * modules/strndup (Makefile.am): Likewise.
71094         * modules/strnlen (Makefile.am): Likewise.
71095         * modules/strpbrk (Makefile.am): Likewise.
71096         * modules/strsep (Makefile.am): Likewise.
71097         * modules/strstr (Makefile.am): Likewise.
71098         * modules/strtod (Makefile.am): Likewise.
71099         * modules/strtoimax (Makefile.am): Likewise.
71100         * modules/strtok_r (Makefile.am): Likewise.
71101         * modules/strtol (Makefile.am): Likewise.
71102         * modules/strtoll (Makefile.am): Likewise.
71103         * modules/strtoul (Makefile.am): Likewise.
71104         * modules/strtoull (Makefile.am): Likewise.
71105         * modules/strtoumax (Makefile.am): Likewise.
71106         * modules/strverscmp (Makefile.am): Likewise.
71107         * modules/sys_socket (Makefile.am): Likewise.
71108         * modules/sys_stat (Makefile.am): Likewise.
71109         * modules/sysexits (Makefile.am): Likewise.
71110         * modules/time_r (Makefile.am): Likewise.
71111         * modules/timegm (Makefile.am): Likewise.
71112         * modules/timespec (Makefile.am): Likewise.
71113         * modules/tmpfile-safer (Makefile.am): Likewise.
71114         * modules/trim (Makefile.am): Likewise.
71115         * modules/unistd-safer (Makefile.am): Likewise.
71116         * modules/unlinkdir (Makefile.am): Likewise.
71117         * modules/unlocked-io (Makefile.am): Likewise.
71118         * modules/userspec (Makefile.am): Likewise.
71119         * modules/utime (Makefile.am): Likewise.
71120         * modules/utimecmp (Makefile.am): Likewise.
71121         * modules/utimens (Makefile.am): Likewise.
71122         * modules/vasnprintf (Makefile.am): Likewise.
71123         * modules/vasprintf (Makefile.am): Likewise.
71124         * modules/vsnprintf (Makefile.am): Likewise.
71125         * modules/xalloc (Makefile.am): Likewise.
71126         * modules/xgetcwd (Makefile.am): Likewise.
71127         * modules/xnanosleep (Makefile.am): Likewise.
71128         * modules/xreadlink (Makefile.am): Likewise.
71129         * modules/xstrtod (Makefile.am): Likewise.
71130         * modules/xstrtol (Makefile.am): Likewise.
71131         * modules/xstrtold (Makefile.am): Likewise.
71132         * modules/yesno (Makefile.am): Likewise.
71133         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
71134
71135 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
71136
71137         * modules/error (Makefile.am): Distribute files through
71138         EXTRA_DIST, not lib_SOURCES.
71139
71140 2006-10-12  Eric Blake  <ebb9@byu.net>
71141
71142         * modules/error (Makefile.am): Distribute files in /lib.
71143         * modules/obstack (Makefile.am): Likewise.
71144
71145 2006-10-12  Bruno Haible  <bruno@clisp.org>
71146
71147         * modules/acl (Makefile.am): Distribute all files in lib/ through
71148         EXTRA_DIST.
71149         * modules/arcfour (Makefile.am): Likewise.
71150         * modules/arctwo (Makefile.am): Likewise.
71151         * modules/argmatch (Makefile.am): Likewise.
71152         * modules/argz (Makefile.am): Likewise.
71153         * modules/atexit (Makefile.am): Likewise.
71154         * modules/backupfile (Makefile.am): Likewise.
71155         * modules/c-strtod (Makefile.am): Likewise.
71156         * modules/c-strtold (Makefile.am): Likewise.
71157         * modules/calloc (Makefile.am): Likewise.
71158         * modules/canon-host (Makefile.am): Likewise.
71159         * modules/canonicalize (Makefile.am): Likewise.
71160         * modules/chdir-long (Makefile.am): Likewise.
71161         * modules/chdir-safer (Makefile.am): Likewise.
71162         * modules/check-version (Makefile.am): Likewise.
71163         * modules/chown (Makefile.am): Likewise.
71164         * modules/cloexec (Makefile.am): Likewise.
71165         * modules/close-stream (Makefile.am): Likewise.
71166         * modules/closeout (Makefile.am): Likewise.
71167         * modules/crc (Makefile.am): Likewise.
71168         * modules/cycle-check (Makefile.am): Likewise.
71169         * modules/des (Makefile.am): Likewise.
71170         * modules/dirfd (Makefile.am): Likewise.
71171         * modules/dirname (Makefile.am): Likewise.
71172         * modules/dup2 (Makefile.am): Likewise.
71173         * modules/euidaccess (Makefile.am): Likewise.
71174         * modules/exclude (Makefile.am): Likewise.
71175         * modules/exitfail (Makefile.am): Likewise.
71176         * modules/fcntl-safer (Makefile.am): Likewise.
71177         * modules/file-type (Makefile.am): Likewise.
71178         * modules/fileblocks (Makefile.am): Likewise.
71179         * modules/filemode (Makefile.am): Likewise.
71180         * modules/filenamecat (Makefile.am): Likewise.
71181         * modules/fnmatch (Makefile.am): Likewise.
71182         * modules/fopen-safer (Makefile.am): Likewise.
71183         * modules/fpending (Makefile.am): Likewise.
71184         * modules/fprintftime (Makefile.am): Likewise.
71185         * modules/free (Makefile.am): Likewise.
71186         * modules/fsusage (Makefile.am): Likewise.
71187         * modules/ftruncate (Makefile.am): Likewise.
71188         * modules/fts (Makefile.am): Likewise.
71189         * modules/gc (Makefile.am): Likewise.
71190         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71191         * modules/getaddrinfo (Makefile.am): Likewise.
71192         * modules/getcwd (Makefile.am): Likewise.
71193         * modules/getdelim (Makefile.am): Likewise.
71194         * modules/getdomainname (Makefile.am): Likewise.
71195         * modules/getgroups (Makefile.am): Likewise.
71196         * modules/gethostname (Makefile.am): Likewise.
71197         * modules/gethrxtime (Makefile.am): Likewise.
71198         * modules/getline (Makefile.am): Likewise.
71199         * modules/getloadavg (Makefile.am): Likewise.
71200         * modules/getlogin_r (Makefile.am): Likewise.
71201         * modules/getopt (Makefile.am): Likewise.
71202         * modules/getpass (Makefile.am): Likewise.
71203         * modules/getpass-gnu (Makefile.am): Likewise.
71204         * modules/getsubopt (Makefile.am): Likewise.
71205         * modules/gettime (Makefile.am): Likewise.
71206         * modules/gettimeofday (Makefile.am): Likewise.
71207         * modules/getugroups (Makefile.am): Likewise.
71208         * modules/getusershell (Makefile.am): Likewise.
71209         * modules/glob (Makefile.am): Likewise.
71210         * modules/group-member (Makefile.am): Likewise.
71211         * modules/hard-locale (Makefile.am): Likewise.
71212         * modules/hash (Makefile.am): Likewise.
71213         * modules/hmac-md5 (Makefile.am): Likewise.
71214         * modules/hmac-sha1 (Makefile.am): Likewise.
71215         * modules/human (Makefile.am): Likewise.
71216         * modules/idcache (Makefile.am): Likewise.
71217         * modules/imaxabs (Makefile.am): Likewise.
71218         * modules/imaxdiv (Makefile.am): Likewise.
71219         * modules/inet_ntop (Makefile.am): Likewise.
71220         * modules/inet_pton (Makefile.am): Likewise.
71221         * modules/inttostr (Makefile.am): Likewise.
71222         * modules/isapipe (Makefile.am): Likewise.
71223         * modules/lchown (Makefile.am): Likewise.
71224         * modules/long-options (Makefile.am): Likewise.
71225         * modules/lstat (Makefile.am): Likewise.
71226         * modules/malloc (Makefile.am): Likewise.
71227         * modules/mathl (Makefile.am): Likewise.
71228         * modules/mbchar (Makefile.am): Likewise.
71229         * modules/md2 (Makefile.am): Likewise.
71230         * modules/md4 (Makefile.am): Likewise.
71231         * modules/md5 (Makefile.am): Likewise.
71232         * modules/memcasecmp (Makefile.am): Likewise.
71233         * modules/memchr (Makefile.am): Likewise.
71234         * modules/memcmp (Makefile.am): Likewise.
71235         * modules/memcoll (Makefile.am): Likewise.
71236         * modules/memcpy (Makefile.am): Likewise.
71237         * modules/memmem (Makefile.am): Likewise.
71238         * modules/memmove (Makefile.am): Likewise.
71239         * modules/mempcpy (Makefile.am): Likewise.
71240         * modules/memrchr (Makefile.am): Likewise.
71241         * modules/memset (Makefile.am): Likewise.
71242         * modules/memxor (Makefile.am): Likewise.
71243         * modules/mkancesdirs (Makefile.am): Likewise.
71244         * modules/mkdir (Makefile.am): Likewise.
71245         * modules/mkdir-p (Makefile.am): Likewise.
71246         * modules/mkdtemp (Makefile.am): Likewise.
71247         * modules/mkstemp (Makefile.am): Likewise.
71248         * modules/mktime (Makefile.am): Likewise.
71249         * modules/modechange (Makefile.am): Likewise.
71250         * modules/mountlist (Makefile.am): Likewise.
71251         * modules/nanosleep (Makefile.am): Likewise.
71252         * modules/openat (Makefile.am): Likewise.
71253         * modules/pagealign_alloc (Makefile.am): Likewise.
71254         * modules/physmem (Makefile.am): Likewise.
71255         * modules/poll (Makefile.am): Likewise.
71256         * modules/posixtm (Makefile.am): Likewise.
71257         * modules/posixver (Makefile.am): Likewise.
71258         * modules/putenv (Makefile.am): Likewise.
71259         * modules/quote (Makefile.am): Likewise.
71260         * modules/quotearg (Makefile.am): Likewise.
71261         * modules/raise (Makefile.am): Likewise.
71262         * modules/read-file (Makefile.am): Likewise.
71263         * modules/readline (Makefile.am): Likewise.
71264         * modules/readlink (Makefile.am): Likewise.
71265         * modules/readtokens (Makefile.am): Likewise.
71266         * modules/readutmp (Makefile.am): Likewise.
71267         * modules/realloc (Makefile.am): Likewise.
71268         * modules/regex (Makefile.am): Likewise.
71269         * modules/rename (Makefile.am): Likewise.
71270         * modules/rename-dest-slash (Makefile.am): Likewise.
71271         * modules/rijndael (Makefile.am): Likewise.
71272         * modules/rmdir (Makefile.am): Likewise.
71273         * modules/rpmatch (Makefile.am): Likewise.
71274         * modules/safe-read (Makefile.am): Likewise.
71275         * modules/safe-write (Makefile.am): Likewise.
71276         * modules/same (Makefile.am): Likewise.
71277         * modules/save-cwd (Makefile.am): Likewise.
71278         * modules/savedir (Makefile.am): Likewise.
71279         * modules/setenv (Makefile.am): Likewise.
71280         * modules/settime (Makefile.am): Likewise.
71281         * modules/sha1 (Makefile.am): Likewise.
71282         * modules/sig2str (Makefile.am): Likewise.
71283         * modules/snprintf (Makefile.am): Likewise.
71284         * modules/stdlib-safer (Makefile.am): Likewise.
71285         * modules/stpcpy (Makefile.am): Likewise.
71286         * modules/stpncpy (Makefile.am): Likewise.
71287         * modules/strcase (Makefile.am): Likewise.
71288         * modules/strcasestr (Makefile.am): Likewise.
71289         * modules/strchrnul (Makefile.am): Likewise.
71290         * modules/strcspn (Makefile.am): Likewise.
71291         * modules/strdup (Makefile.am): Likewise.
71292         * modules/strerror (Makefile.am): Likewise.
71293         * modules/strftime (Makefile.am): Likewise.
71294         * modules/strndup (Makefile.am): Likewise.
71295         * modules/strnlen (Makefile.am): Likewise.
71296         * modules/strpbrk (Makefile.am): Likewise.
71297         * modules/strsep (Makefile.am): Likewise.
71298         * modules/strstr (Makefile.am): Likewise.
71299         * modules/strtod (Makefile.am): Likewise.
71300         * modules/strtoimax (Makefile.am): Likewise.
71301         * modules/strtok_r (Makefile.am): Likewise.
71302         * modules/strtol (Makefile.am): Likewise.
71303         * modules/strtoll (Makefile.am): Likewise.
71304         * modules/strtoul (Makefile.am): Likewise.
71305         * modules/strtoull (Makefile.am): Likewise.
71306         * modules/strtoumax (Makefile.am): Likewise.
71307         * modules/strverscmp (Makefile.am): Likewise.
71308         * modules/time_r (Makefile.am): Likewise.
71309         * modules/timegm (Makefile.am): Likewise.
71310         * modules/tmpfile-safer (Makefile.am): Likewise.
71311         * modules/unistd-safer (Makefile.am): Likewise.
71312         * modules/unlinkdir (Makefile.am): Likewise.
71313         * modules/userspec (Makefile.am): Likewise.
71314         * modules/utime (Makefile.am): Likewise.
71315         * modules/utimecmp (Makefile.am): Likewise.
71316         * modules/utimens (Makefile.am): Likewise.
71317         * modules/vasnprintf (Makefile.am): Likewise.
71318         * modules/vasprintf (Makefile.am): Likewise.
71319         * modules/vsnprintf (Makefile.am): Likewise.
71320         * modules/xalloc (Makefile.am): Likewise.
71321         * modules/xgetcwd (Makefile.am): Likewise.
71322         * modules/xnanosleep (Makefile.am): Likewise.
71323         * modules/xreadlink (Makefile.am): Likewise.
71324         * modules/xstrtod (Makefile.am): Likewise.
71325         * modules/xstrtol (Makefile.am): Likewise.
71326         * modules/xstrtold (Makefile.am): Likewise.
71327         * modules/yesno (Makefile.am): Likewise.
71328
71329 2006-10-12  Jim Meyering  <jim@meyering.net>
71330
71331         * m4/getloadavg.m4: Revert the change below.
71332
71333         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
71334         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
71335         fail with a symlink, which is what coreutils' ./bootstrap now
71336         creates by default.
71337
71338 2006-10-12  Bruno Haible  <bruno@clisp.org>
71339
71340         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
71341         mingw.
71342         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
71343         MSVC and mingw explicitly.
71344
71345 2006-10-11  Simon Josefsson  <jas@extundo.com>
71346             Bruno Haible  <bruno@clisp.org>
71347
71348         Add support for multiple gnulib-tool invocations in the scope of a
71349         single configure.ac file.
71350         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
71351         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
71352         with the same contents as the _LIBADD variable.
71353         (func_emit_initmacro_start, func_emit_initmacro_end,
71354         func_emit_initmacro_done): New functions.
71355         (func_import, func_create_testdir): Invoke them. Allow the identifiers
71356         gl_LIBOBJS and gl_LTLIBOBJS.
71357
71358 2006-10-11  Bruno Haible  <bruno@clisp.org>
71359
71360         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
71361         (func_create_testdir): Don't create po/Makefile.am, don't invoke
71362         autoreconf. Instead, invoke autopoint explicitly but move back the
71363         *.m4 files from gnulib.
71364
71365 2006-10-11  Bruno Haible  <bruno@clisp.org>
71366
71367         * gnulib-tool (func_usage): Make module names after --create-testdir
71368         optional.
71369         (func_create_testdir): If no module was specified, use nearly all
71370         modules.
71371
71372 2006-10-12  Jim Meyering  <jim@meyering.net>
71373
71374         Big performance improvement for fts-based tools that use FTS_NOSTAT.
71375         Avoid spurious inode-mismatch problems on non-POSIX file systems.
71376         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
71377         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
71378         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
71379         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
71380         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
71381         (fts_set_stat_required): New function.
71382         (fts_open): Defer the calls to fts_stat, if possible or requested.
71383         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
71384         into fts_stat itself.
71385         (fts_read): Perform any required (deferred) fts_stat call.
71386         (fts_build): Likewise, for the directory we're about to open and read.
71387         In the readdir loop, carefully decide whether each entry will require
71388         an eventual call to fts_stat, using dirent.d_type info if available.
71389         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
71390         a command line argument into this function.  Update all callers.
71391         Map a return value of FTS_DOT to FTS_D for a command line argument.
71392         * modules/fts (Depends-on): Add d-type.  Alphabetize.
71393         Thanks to Miklos Szeredi for his tenacity and for the initial
71394         bug report about "find" failing on a FUSE-based file system.
71395
71396         * lib/fts.c (fts_open): Use consistent indentation.
71397
71398 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
71399
71400         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
71401         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
71402         reported by Jim Meyering.  All uses of cache variables renamed
71403         to match Autoconf's.
71404         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
71405         the other one.
71406
71407         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
71408         Fix misspelling in diagnostic.
71409
71410 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
71411
71412         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
71413         defined.  Problem reported by Matthew Woehlke.
71414
71415         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
71416         Add support for Tandem NonStop R series.
71417         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
71418         Use new macro.
71419
71420         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
71421         (has_trailing_slash): Omit size arg; all callers changed.
71422         Omit 'inline', since it doesn't help performance and we'd
71423         need to configure it.
71424         Don't count //, ///, etc. as having a trailing slash.
71425         As a side effect, this removes a C99ism reported by Matthew Woehlke.
71426         (rpl_rename_dest_slash): On failure, use rename's errno rather
71427         than (in some cases) an incorrect or junk errno.
71428         Simplify code by removing need to compute length; this does
71429         cause it to make two passes instead of one over the file name,
71430         but it's worth it.
71431
71432         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
71433         change, since Autoconf's version may no longer be appropriate now
71434         that we are using CVS Autoconf's version.  Add support for Tandem.
71435
71436 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
71437             Bruno Haible  <bruno@clisp.org>
71438
71439         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
71440         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
71441         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
71442         gl_AC_TYPE_LONG_LONG.
71443
71444         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
71445         instead of HAVE_LONG_LONG.
71446         * lib/printf-args.c (printf_fetchargs): Likewise.
71447         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
71448         * lib/vasnprintf.c (VASNPRINTF): Likewise.
71449         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
71450         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
71451         gl_AC_TYPE_LONG_LONG.
71452
71453 2006-10-11  Bruno Haible  <bruno@clisp.org>
71454
71455         * m4/longlong.m4: Add comments.
71456         * m4/ulonglong.m4: Likewise.
71457
71458 2006-10-10  Bruno Haible  <bruno@clisp.org>
71459
71460         Make it possible to #define stpcpy, strdup to aliases.
71461         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
71462         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
71463
71464 2006-10-10  Bruno Haible  <bruno@clisp.org>
71465
71466         Make it possible to #define gcd to an alias.
71467         * lib/gcd.c: Include config.h.
71468
71469 2006-10-10  Bruno Haible  <bruno@clisp.org>
71470
71471         Make it possible to #define c_isascii to an alias.
71472         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
71473         defined. Undefine the macros before defining them, to avoid gcc
71474         warnings.
71475         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
71476         define NO_C_CTYPE_MACROS early.
71477
71478 2006-10-10  Bruno Haible  <bruno@clisp.org>
71479
71480         Make it possible to #define set_program_name to an alias.
71481         * lib/progname.c: Don't undefine set_program_name; instead, undefine
71482         ENABLE_RELOCATABLE early.
71483
71484 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71485
71486         Port to Tandem NSK OSS, which has 64-bit signed int but at most
71487         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
71488         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
71489         More generally, don't assume that 64-bit signed int is available
71490         if unsigned int is, and vice versa.
71491         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
71492         unsigned symbols, not on their signed counterparts.
71493         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
71494         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
71495         (UINT64_C, UINTMAX_C):
71496         Likewise.
71497         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
71498         unsigned counterparts.
71499         (Have_long_long, Unsigned): New macros.
71500         (Int): Renamed from INT.
71501         (strtoimax): Use the new macros.
71502         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
71503         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
71504         * modules/inttypes (inttypes.h): Substitute
71505         HAVE_UNSIGNED_LONG_LONG_INT.
71506         * modules/stdint (stdint.h): Likewise.
71507         (Files): Add m4/ulonglong.m4.
71508
71509 2006-10-10  Bruno Haible  <bruno@clisp.org>
71510
71511         Fix a gcc -Wshadow warning.
71512         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
71513         to 'bucket'.
71514         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
71515         gl_linked_indexof_from_to): Likewise.
71516         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
71517         Likewise.
71518         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
71519         Likewise.
71520         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
71521         Reported by Eric Blake.
71522
71523 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
71524
71525         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
71526         for NetBSD.  Problem reported by Bruno Haible.
71527
71528 2006-10-09  Jim Meyering  <jim@meyering.net>
71529
71530         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
71531         Patch from Bruno Haible.
71532
71533 2006-10-09  Jim Meyering  <jim@meyering.net>
71534
71535         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
71536         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
71537         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
71538
71539 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71540
71541         Don't include <config.h> twice; this doesn't work in some cases,
71542         e.g., when config.h has "#define intmax_t long long int" and
71543         we include <config.h>, <inttypes.h>, <config.h> in that order.
71544         Problem reported by Matthew Woehlke in:
71545         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
71546         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
71547         * lib/fts-cycle.c: Don't include config.h.
71548         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
71549         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
71550         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
71551         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
71552         inttypes.h.
71553         * lib/xstrtoumax.c: Likewise.
71554         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
71555         __strtol and the like, so that this module is more like its siblings.
71556         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
71557         Remove; no longer needed now that we assume gnulib inttypes.h.
71558
71559 2006-10-08  Bruno Haible  <bruno@clisp.org>
71560
71561         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
71562         option.
71563
71564 2006-10-07  Jim Meyering  <jim@meyering.net>
71565
71566         * modules/inttypes (inttypes.h): Revert what seems to have been
71567         an inadvertent part of today's change: use "|", not "/" in the
71568         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
71569
71570 2006-10-07  Bruno Haible  <bruno@clisp.org>
71571
71572         * modules/sublist: New file.
71573
71574 2006-10-07  Bruno Haible  <bruno@clisp.org>
71575
71576         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
71577         * modules/argz (argz.h): Likewise.
71578         * modules/arpa_inet (arpa/inet.h): Likewise.
71579         * modules/byteswap (byteswap.h): Likewise.
71580         * modules/configmake (configmake.h): Likewise.
71581         * modules/fcntl (fcntl.h): Likewise.
71582         * modules/fnmatch (fnmatch.h): Likewise.
71583         * modules/getopt (getopt.h): Likewise.
71584         * modules/glob (glob.h): Likewise.
71585         * modules/inttypes (inttypes.h): Likewise.
71586         * modules/netinet_in (netinet/in.h): Likewise.
71587         * modules/poll (poll.h): Likewise.
71588         * modules/stdbool (stdbool.h): Likewise.
71589         * modules/stdint (stdint.h): Likewise.
71590         * modules/sys_select (sys/select.h): Likewise.
71591         * modules/sys_socket (sys/socket.h): Likewise.
71592         * modules/sys_stat (sys/stat.h): Likewise.
71593         * modules/sysexits (sysexits.h): Likewise.
71594         * modules/unistd (unistd.h): Likewise.
71595         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71596         Add a "DO NOT EDIT" comment to the generated file.
71597         (func_import): Likewise for gnulib-comp.m4.
71598
71599 2006-10-07  Bruno Haible  <bruno@clisp.org>
71600
71601         * lib/gl_sublist.h: New file.
71602         * lib/gl_sublist.c: New file.
71603
71604 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71605
71606         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
71607         name (relative to the original working directory) and the file
71608         name component (relative to the temporary working directory).  All
71609         callers changed.
71610         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
71611         * lib/mkdir-p.c (make_dir_parents): Likewise.
71612         * lib/mkdir-p.h (make_dir_parents): Likewise.
71613
71614 2006-10-06  Eric Blake  <ebb9@byu.net>
71615
71616         Define several macros for use by the clean-temp module.
71617         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
71618         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
71619         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
71620
71621         * lib/clean-temp.h (close_stream_temp): New declaration.
71622         * lib/clean-temp.c (includes): Pull in headers according to what
71623         other modules are in use.
71624         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
71625
71626 2006-10-06  Bruno Haible  <bruno@clisp.org>
71627
71628         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
71629         instead of fopen, fwriteerror.
71630
71631 2006-10-06  Bruno Haible  <bruno@clisp.org>
71632
71633         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
71634         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
71635         int.
71636         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
71637         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
71638         Return an error indicator.
71639         Suggested by Eric Blake.
71640
71641 2006-10-06  Bruno Haible  <bruno@clisp.org>
71642
71643         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
71644         Reported by Eric Blake.
71645
71646 2006-10-06  Bruno Haible  <bruno@clisp.org>
71647
71648         * modules/closeout (Description): Mention stderr too.
71649
71650 2006-10-06  Bruno Haible  <bruno@clisp.org>
71651         and Paul Eggert  <eggert@cs.ucla.edu>
71652
71653         * lib/closeout.c (close_stdout): Also close stderr.
71654         * lib/closeout.h: Update comment.
71655
71656 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
71657
71658         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
71659         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
71660         * lib/dirchownmod.c: Include lchown.h.
71661         * lib/lchown.c: Don't include files that lchown.h now includes.
71662         Don't declare chown, since lchown.h now does that.
71663         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
71664         (lchown): Define to rpl_chown if lchown is declared but
71665         does not exist.  Declare using a prototype if lchown is not
71666         declared.  Add a copyright notice.
71667         * lib/mkstemp.h: Include <unistd.h>.
71668         * lib/openat.c: Include lchown.h.
71669
71670         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
71671         we now test for that separately.
71672         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
71673         rather than O_NOFOLLOW, when testing whether it's possible to
71674         avoid a race condition reliably.
71675         * lib/savewd.c (savewd_chdir): Likewise.
71676
71677         Remove macros that are no longer needed now that stdint.h is
71678         reliable.
71679         * lib/fsusage.c (UINTMAX_MAX): Remove.
71680         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
71681         * lib/utimecmp.c (SIZE_MAX): Remove.
71682
71683         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
71684
71685         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
71686         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
71687         O_NOATIME works.
71688
71689 2006-10-05  Bruno Haible  <bruno@clisp.org>
71690
71691         * lib/gl_list.h (gl_sortedlist_search_from_to,
71692         gl_sortedlist_indexof_from_to): New declarations.
71693         (gl_list_implementation): New fields sortedlist_search_from_to,
71694         sortedlist_indexof_from_to.
71695         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
71696         inline functions.
71697         * lib/gl_list.c (gl_sortedlist_search_from_to,
71698         gl_sortedlist_indexof_from_to): New functions.
71699         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
71700         function.
71701         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
71702         (gl_array_sortedlist_search_from_to): New function.
71703         (gl_array_list_implementation): Update.
71704         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
71705         function.
71706         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
71707         (gl_carray_sortedlist_search_from_to): New function.
71708         (gl_carray_list_implementation): Update.
71709         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
71710         gl_linked_sortedlist_indexof_from_to): New functions.
71711         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
71712         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
71713         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
71714         gl_tree_sortedlist_indexof_from_to): New functions.
71715         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
71716         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
71717         Update.
71718         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
71719         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
71720         Update.
71721
71722 2006-10-05  Bruno Haible  <bruno@clisp.org>
71723
71724         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
71725         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
71726         (struct gl_list_implementation): Add fields search_from_to,
71727         indexof_from_to. Remove fields search, indexof.
71728         (gl_list_search): Use the search_from_to method.
71729         (gl_list_search_from, gl_list_search_from_to): New functions.
71730         (gl_list_indexof): Use the indexof_from_to method.
71731         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
71732         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
71733         (gl_list_search_from, gl_list_search_from_to): New functions.
71734         (gl_list_indexof): Use the indexof_from_to method.
71735         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
71736         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
71737         gl_array_indexof. Add start_index, end_index arguments.
71738         (gl_array_search_from_to): Renamed from gl_array_search. Add
71739         start_index, end_index arguments.
71740         (gl_array_remove, gl_array_list_implementation): Update.
71741         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
71742         gl_carray_indexof. Add start_index, end_index arguments.
71743         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
71744         start_index, end_index arguments.
71745         (gl_carray_remove, gl_carray_list_implementation): Update.
71746         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
71747         gl_linked_search. Add start_index, end_index arguments.
71748         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
71749         start_index, end_index arguments.
71750         (gl_linked_remove): Update.
71751         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
71752         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
71753         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
71754         field to 'size_t'.
71755         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
71756         gl_tree_search. Add start_index, end_index arguments.
71757         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
71758         start_index, end_index arguments.
71759         (gl_tree_remove): Update.
71760         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
71761         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
71762         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
71763         function.
71764         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
71765         gl_tree_search. Add start_index, end_index arguments.
71766         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
71767         start_index, end_index arguments.
71768         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
71769         Update.
71770         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
71771
71772 2006-10-05  Bruno Haible  <bruno@clisp.org>
71773
71774         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
71775
71776         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
71777         fwriteerror_temp): New declarations.
71778         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
71779         (descriptors): New variable.
71780         (cleanup): First, close the descriptors.
71781         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
71782         fclose_temp, fwriteerror_temp): New functions.
71783
71784 2006-10-04  Jim Meyering  <jim@meyering.net>
71785
71786         * lib/fts.c (fts_open): Tiny comment change.
71787
71788 2006-10-04  Bruno Haible  <bruno@clisp.org>
71789
71790         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
71791         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
71792         gl_LOCK_BODY.
71793         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
71794         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
71795         gl_LOCK_EARLY_BODY.
71796         (gl_LOCK): Require gl_LOCK_BODY.
71797
71798 2006-10-04  Bruno Haible  <bruno@clisp.org>
71799
71800         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
71801         (gl_oset_search_atleast): New declaration.
71802         (struct gl_oset_implementation): Add field 'search_atleast'.
71803         (gl_oset_search_atleast): New inline function.
71804         * lib/gl_oset.c (gl_oset_search_atleast): New function.
71805         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
71806         (gl_array_oset_implementation): Update.
71807         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
71808         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
71809         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
71810
71811 2006-10-04  Bruno Haible  <bruno@clisp.org>
71812
71813         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
71814
71815 2006-10-03  Bruno Haible  <bruno@clisp.org>
71816
71817         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
71818         from gl_avltreehash_list_implementation.
71819
71820 2006-10-03  Bruno Haible  <bruno@clisp.org>
71821
71822         * lib/gl_oset.c (gl_oset_add): Fix return type.
71823
71824 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
71825
71826         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
71827
71828 2006-10-02  Eric Blake  <ebb9@byu.net>
71829
71830         * modules/strnlen (Depends-on): Add extensions.
71831
71832 2006-10-02  Eric Blake  <ebb9@byu.net>
71833
71834         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
71835         definition in 2.60+.
71836
71837 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
71838
71839         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
71840         checks.
71841
71842 2006-10-02  Bruno Haible  <bruno@clisp.org>
71843
71844         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
71845         to the AUTOMAKE_OPTIONS.
71846         Reported by Jim Meyering.
71847
71848 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71849
71850         Work around bug in Solaris 10 /proc file system:
71851         /proc/self/fd/NNN/.. isn't the parent directory of
71852         the directory whose file descriptor is NNN.  This needs to
71853         be worked around at run time, not compile time, since a
71854         program might be built on Solaris 8, where things work, and
71855         run on Solaris 10.
71856         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
71857         to use the following interface instead:
71858         (OPENAT_BUFFER_SIZE): New macro.
71859         (openat_proc_name): New function.
71860         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
71861         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
71862         Likewise.
71863         * lib/openat-proc.c: New file.
71864         * modules/openat (Files): Add lib/openat-proc.c.
71865         (Depends-on): Add same-inode, stdbool.
71866         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
71867
71868 2006-09-29  Bruno Haible  <bruno@clisp.org>
71869
71870         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
71871         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
71872         argument. Set stdout_closed before testing for ferror, not after.
71873         (fwriteerror, fwriteerror_no_ebadf): New functions.
71874
71875 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71876
71877         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
71878
71879 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
71880
71881         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
71882         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
71883
71884 2006-09-28  Jim Meyering  <jim@meyering.net>
71885
71886         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
71887         Include <unistd.h>.
71888
71889 2006-09-28  Bruno Haible  <bruno@clisp.org>
71890
71891         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
71892         * modules/linkedhash-list (Depends-on): Likewise.
71893         * modules/rbtreehash-list (Depends-on): Likewise.
71894
71895 2006-09-28  Bruno Haible  <bruno@clisp.org>
71896
71897         * lib/strndup.h: Simplify the redefinition of strndup.
71898         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
71899         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
71900
71901 2006-09-28  Bruno Haible  <bruno@clisp.org>
71902
71903         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
71904         * lib/gl_linkedhash_list.c: Likewise.
71905         * lib/gl_rbtreehash_list.c: Likewise.
71906
71907 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
71908
71909         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
71910         getaddrinfo.
71911
71912         * lib/__fpending.h: Don't include <stdio_ext.h> unless
71913         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
71914         it causes <stdio_ext.h> to cause a compile-time error.
71915         Problem reported by Nelson H. F. Beebe.
71916         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
71917         of HAVE_DECL___PENDING.
71918
71919         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
71920         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
71921         declaration.
71922
71923 2006-09-27  Jim Meyering  <jim@meyering.net>
71924
71925         This file could end up with a definition for a function
71926         named __strndup, rather than rpl_strndup on a system with
71927         incomplete weak_alias support.
71928         * lib/strndup.c (strndup): Rename from __strndup.
71929         Remove #defines that used to map __strndup to strndup.
71930         Don't use K&R prototypes.
71931         Remove LIBC-related code, since this file is not sync'd with glibc.
71932         * lib/strndup.h: Revamp, accordingly.
71933         * m4/strndup.m4: Modernize.
71934
71935 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
71936
71937         * modules/savewd (Depends-on): Add 'raise'.
71938         * lib/savewd.c: Include <signal.h>, for 'raise'.
71939
71940 2006-09-26  Jim Meyering  <jim@meyering.net>
71941
71942         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
71943         when we detect Darwin 8.7.0's acl_get_file bug.
71944         Rearrange to perform the new (below) run-test while $LIBS
71945         contains any acl-related library.  Set USE_ACL at the end.
71946         (gl_ACL_GET_FILE): New function.
71947
71948 2006-09-26  Eric Blake  <ebb9@byu.net>
71949
71950         * lib/verror.c: Include <config.h> unconditionally.
71951
71952 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
71953
71954         * modules/clock-time (Maintainer): Add self.
71955         * modules/getlogin_r (Depends-on): Add extensions.
71956
71957 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71958
71959         * modules/clock-time: New module.
71960         * modules/nanosleep (Depends-on): Add clock-time.
71961         * modules/gethrxtime (Depends-on): Likewise.
71962         * modules/gettime (Depends-on): Likewise.
71963         * modules/settime (Depends-on): Likewise.
71964
71965         * modules/fts-lgpl: Depend on openat.
71966         * modules/mkancesdirs: Depend on savewd.
71967         * modules/mkdir-p: Likewise.
71968
71969 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71970
71971         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
71972
71973         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
71974         `gl_have_arbitrary_file_name_length_limit' to
71975         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
71976         actually works between configure runs.
71977
71978 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71979             Bruno Haible  <bruno@clisp.org>
71980
71981         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
71982
71983 2006-09-25  Jim Meyering  <jim@meyering.net>
71984
71985         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
71986         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
71987
71988 2006-09-25  Eric Blake  <ebb9@byu.net>
71989
71990         * gnulib-tool (func_import, func_create_testdir): Fix typos in
71991         exec's in 2006-09-18 patch when shuffling fds.
71992
71993 2006-09-25  Bruno Haible  <bruno@clisp.org>
71994
71995         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
71996         Reported by Jim Meyering.
71997
71998 2006-09-24  Jim Meyering  <jim@meyering.net>
71999
72000         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
72001         compare a pointer against a literal "0".  That caused failures with
72002         at least HP-UX's hpcc.
72003
72004 2006-09-22  Simon Josefsson  <jas@extundo.com>
72005
72006         * modules/gc-sha1:
72007         * modules/gc-md4:
72008         * modules/gc-hmac-sha1:
72009         * modules/gc-hmac-md5:
72010         * modules/gc-des:
72011         * modules/gc-arcfour: Distribute more files.
72012
72013 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72014
72015         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
72016         (gl_linked_iterator_from_to): Initialize struct completely.
72017         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
72018         (gl_tree_iterator_from_to): Likewise
72019         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
72020         * lib/gl_array_list.c [lint] (gl_array_iterator)
72021         (gl_array_iterator_from_to): Likewise.
72022         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
72023         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
72024         (gl_carray_iterator_from_to): Likewise.
72025
72026         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
72027         * lib/md4.c (md4_process_block): Remove unused variable.
72028         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
72029         parentheses for clarity.
72030
72031 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72032
72033         * modules/bison-i18n (Depends-on): Add gettext.
72034
72035 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72036
72037         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
72038         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
72039         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
72040         also add missing comma that caused broken test.
72041         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
72042         stdlib.h, for `abort'.
72043         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
72044         variables.
72045         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
72046         include unistd.h if present, for `rmdir'.
72047         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
72048         variables.
72049         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
72050         in the process include standard headers for prototypes.
72051         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
72052         gets declared on GNU/Linux.
72053         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
72054         unistd.h, for `rmdir'.
72055         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
72056
72057         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
72058         always true.
72059         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
72060
72061         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
72062
72063 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72064
72065         * gnulib-tool (func_version): Create output all at once.  This
72066         may help avoid triggering unnecessary SIGPIPEs, and at any
72067         rate it doesn't hurt.
72068
72069 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72070             Bruno Haible  <bruno@clisp.org>
72071
72072         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
72073         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72074         * m4/signed.m4 (bh_C_SIGNED): Likewise.
72075
72076         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
72077         (gl_FUNC_VASPRINTF): Invoke it.
72078
72079 2006-09-22  Bruno Haible  <bruno@clisp.org>
72080
72081         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
72082         getloadavg.c as first argument.
72083
72084 2006-09-22  Bruno Haible  <bruno@clisp.org>
72085
72086         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
72087         at the beginning of the gl_INIT macro.
72088         * modules/getloadavg (configure.ac): Pass $gl_source_base to
72089         gl_GETLOADAVG.
72090
72091 2006-09-22  Bruno Haible  <bruno@clisp.org>
72092
72093         * gnulib-tool (func_create_megatestdir): Don't include the config-h
72094         module.
72095         Suggested by Ralf Wildenhues.
72096
72097 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72098
72099         Import this patch from libc:
72100
72101         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
72102
72103         * lib/regex_internal.c (re_string_reconstruct): Handle
72104         offset < pstr->valid_raw_len && pstr->offsets_needed case.
72105         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
72106         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
72107         re_string_context_at.
72108
72109         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
72110         now requires it.
72111         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
72112         gl_REGEX now does it for us.
72113         (gl_REGEX): Add test taken from
72114         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
72115
72116         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
72117         Check that large offsets work.  Modernize Autoconf usages.
72118         Prefer "yes" to mean a good thing rather than a bad.
72119         Don't put "#define mkstemp" in config.h, as this might interfere
72120         with standard system headers that "#define mkstemp mkstemp64".
72121
72122         * modules/mkstemp (Depends-on): Add extensions, so that
72123         mkstemp is visible on some platforms.
72124         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
72125         (Include): Change to "mkstemp.h" from <stdlib.h>.
72126         (Files): Add mkstemp.h.
72127
72128         * lib/mkstemp.h: New file, since some standard headers
72129         #define mkstemp.
72130         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
72131         Include "mkstemp.h".
72132         Make the _LIBC code resemble glibc original more,
72133         e.g., use K&R style.
72134         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
72135         (mkstemp): Remove, since mkstemp.h does this for us.
72136         * lib/stdlib--.h: Include mkstemp.h.
72137
72138         Import this patch from libc:
72139
72140         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72141
72142         * lib/tempname.c (__gen_tempname): Change attempts_min
72143         into a macro.  Use preprocessor to decide how to initialize
72144         attempts [Coverity CID 67].
72145
72146 2006-09-20  Bruno Haible  <bruno@clisp.org>
72147
72148         * lib/mkdtemp.c: Import from libc.
72149         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72150                 * sysdeps/posix/tempname.c (__gen_tempname): Change
72151                 attempts_min into a macro.  Use preprocessor to decide how to
72152                 initialize attempts [Coverity CID 67].
72153         2001-11-27  Paul Eggert  <eggert@twinsun.com>
72154                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
72155                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
72156
72157 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72158
72159         * gnulib-tool (func_exit): New function, to allow to pass the
72160         exit status portably through the trap.  Use everywhere.
72161         (--help, --version): Signal a write error.
72162         (trap): catch SIGPIPE, for write errors.
72163         Exit at the end of the trap, with the correct exit status.
72164
72165 2006-09-19  Karl Berry  <karl@gnu.org>
72166
72167         * doc/gnulib.texi: note about the license texinfo files.
72168
72169 2006-09-19  Eric Blake  <ebb9@byu.net>
72170
72171         * gnulib-tool: Avoid space-tab.
72172
72173 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72174
72175         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
72176         that prevented coreutils 6.1 from building.  Problem reported
72177         by Petter Reinholdtsen.
72178
72179 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72180
72181         * gnulib-tool (avoidlist): Fix typo that broke options like
72182         --avoid=lock that are used by coreutils bootstrap.
72183
72184 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
72185
72186         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
72187         more systematically.
72188
72189 2006-09-18  Jim Meyering  <jim@meyering.net>
72190
72191         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
72192
72193 2006-09-18  Bruno Haible  <bruno@clisp.org>
72194
72195         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
72196
72197 2006-09-18  Bruno Haible  <bruno@clisp.org>
72198
72199         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
72200         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
72201         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
72202         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
72203         * m4/gettext.m4: Require autoconf >= 2.52.
72204         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
72205         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
72206         of gl_cv_header_inttypes_h.
72207
72208 2006-09-18  Bruno Haible  <bruno@clisp.org>
72209
72210         * lib/javaversion.c: Include configmake.h.
72211
72212 2006-09-18  Bruno Haible  <bruno@clisp.org>
72213
72214         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
72215         avoid that the while loops be executed in a subshell.
72216
72217 2006-09-18  Bruno Haible  <bruno@clisp.org>
72218
72219         * MODULES.html.sh (func_module): Break long lines.
72220         Suggested by Bruce Korb <bkorb@gnu.org>.
72221
72222 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72223
72224         Speed up by a factor of 1.12.
72225         * gnulib-tool (nl): New variable.
72226         (func_import): Rewrite include directive extraction to only read each
72227         directive once.
72228
72229 2006-09-17  Bruno Haible  <bruno@clisp.org>
72230
72231         * modules/javaversion (Makefile.am): Remove DEFS setting.
72232         (Depends-on): Add configmake, for PKGDATADIR definition.
72233
72234 2006-09-17  Bruno Haible  <bruno@clisp.org>
72235
72236         * gnulib-tool (func_create_testdir): Rewrite all files at once.
72237
72238 2006-09-17  Bruno Haible  <bruno@clisp.org>
72239
72240         * gnulib-tool (func_append): New function, stolen from libtool.m4.
72241         (func_modules_transitive_closure, func_modules_add_dummy,
72242         func_modules_to_filelist, func_import, func_create_testdir,
72243         func_create_megatestdir, ...): Use it wherever possible.
72244         Suggested by Ralf Wildenhues.
72245
72246 2006-09-16  Karl Berry  <karl@gnu.org>
72247
72248         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
72249         to avoid sectioning errors.
72250         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
72251         [ifinfo]: blank line after @center-ed titles.
72252         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
72253         Spell FSF address consistently with others.
72254         (These changes approved by rms.)
72255
72256 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72257
72258         Speed up by a factor of 1.61.
72259         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
72260         already checked module names again.
72261
72262 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72263
72264         Speed up by a factor of 1.13.
72265         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
72266         for new_files, and the input to func_add_or_update.
72267
72268 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72269
72270         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
72271         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
72272
72273 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72274
72275         * modules/mkancesdirs (Depends-on): Add fcntl.
72276         * modules/savewd: New file.
72277         * MODULES.html.sh (File system functions): Add savewd.
72278
72279         * modules/configmake (Makefile.am): Add support for the
72280         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
72281
72282 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72283
72284         * m4/savewd.m4: New file.
72285
72286 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72287
72288         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
72289         (dirchownmod): New arg FD.  All callers changed.
72290         Use FD rather than opening the directory ourself, as opening is
72291         now the caller's responsibility.
72292         * lib/dirchownmod.h: Likewise.
72293         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
72294         hosts that require <sys/types.h> before <sys/stat.h>.  Include
72295         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
72296         (test_dir): Remove.
72297         (mkancesdirs): Return length of prefix of FILE that has already
72298         been made, or -2 if there is a child doing the work.  Redo
72299         algorithm so that it is O(N) rather than O(N**2).  Optimize away
72300         ".", and treat ".." specially since it might stray back into
72301         already-created areas.  Use a subprocess if necessary.  New arg
72302         WD; all users changed.  MAKE_DIR function should now return 1
72303         if it creates a directory that is not readable.  Return -2 if
72304         a child process is spun off.
72305         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
72306         Adjust signature to match code.
72307         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
72308         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
72309         all users changed.
72310         * lib/savewd.c, lib/savewd.h: New files.
72311
72312 2006-09-15  Jim Meyering  <jim@meyering.net>
72313
72314         * modules/rename-dest-slash: New module.
72315         * MODULES.html.sh (posix_compat): Add it here.
72316
72317         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
72318
72319 2006-09-15  Jim Meyering  <jim@meyering.net>
72320
72321         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
72322         file.
72323
72324         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
72325
72326 2006-09-15  Jim Meyering  <jim@meyering.net>
72327
72328         * lib/rename-dest-slash.c (has_trailing_slash): Use
72329         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
72330         (rpl_rename_dest_slash): Perform the cheaper trailing slash
72331         test before testing whether SRC is a directory.
72332         Suggestions from Bruno Haible.
72333
72334         Avoid a warning about an unused variable.
72335         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
72336         into the #ifdef block where it's used.
72337
72338         * lib/rename-dest-slash.c: New file.
72339
72340 2006-09-14  Bruno Haible  <bruno@clisp.org>
72341
72342         * lib/allocsa.c: Include <config.h> unconditionally.
72343         * lib/asnprintf.c: Likewise.
72344         * lib/asprintf.c: Likewise.
72345         * lib/c-strcasecmp.c: Likewise.
72346         * lib/c-strcasestr.c: Likewise.
72347         * lib/c-strncasecmp.c: Likewise.
72348         * lib/c-strstr.c: Likewise.
72349         * lib/classpath.c: Likewise.
72350         * lib/clean-temp.c: Likewise.
72351         * lib/concatpath.c: Likewise.
72352         * lib/copy-file.c: Likewise.
72353         * lib/csharpcomp.c: Likewise.
72354         * lib/csharpexec.c: Likewise.
72355         * lib/execute.c: Likewise.
72356         * lib/fatal-signal.c: Likewise.
72357         * lib/findprog.c: Likewise.
72358         * lib/fwriteerror.c: Likewise.
72359         * lib/gl_array_list.c: Likewise.
72360         * lib/gl_array_oset.c: Likewise.
72361         * lib/gl_avltree_list.c: Likewise.
72362         * lib/gl_avltree_oset.c: Likewise.
72363         * lib/gl_avltreehash_list.c: Likewise.
72364         * lib/gl_carray_list.c: Likewise.
72365         * lib/gl_linked_list.c: Likewise.
72366         * lib/gl_linkedhash_list.c: Likewise.
72367         * lib/gl_list.c: Likewise.
72368         * lib/gl_oset.c: Likewise.
72369         * lib/gl_rbtree_list.c: Likewise.
72370         * lib/gl_rbtree_oset.c: Likewise.
72371         * lib/gl_rbtreehash_list.c: Likewise.
72372         * lib/imaxabs.c: Likewise.
72373         * lib/imaxdiv.c: Likewise.
72374         * lib/javacomp.c: Likewise.
72375         * lib/javaexec.c: Likewise.
72376         * lib/javaversion.c: Likewise.
72377         * lib/linebreak.c: Likewise.
72378         * lib/localcharset.c: Likewise.
72379         * lib/lock.c: Likewise.
72380         * lib/mbchar.c: Likewise.
72381         * lib/mbswidth.c: Likewise.
72382         * lib/mkdtemp.c: Likewise.
72383         * lib/pipe.c: Likewise.
72384         * lib/printf-args.c: Likewise.
72385         * lib/printf-parse.c: Likewise.
72386         * lib/progname.c: Likewise.
72387         * lib/progreloc.c: Likewise.
72388         * lib/readlink.c: Likewise.
72389         * lib/sh-quote.c: Likewise.
72390         * lib/stpcpy.c: Likewise.
72391         * lib/stpncpy.c: Likewise.
72392         * lib/strcasecmp.c: Likewise.
72393         * lib/strcasestr.c: Likewise.
72394         * lib/strcspn.c: Likewise.
72395         * lib/striconv.c: Likewise.
72396         * lib/strncasecmp.c: Likewise.
72397         * lib/strnlen1.c: Likewise.
72398         * lib/strstr.c: Likewise.
72399         * lib/strtok_r.c: Likewise.
72400         * lib/tls.c: Likewise.
72401         * lib/tmpdir.c: Likewise.
72402         * lib/unicodeio.c: Likewise.
72403         * lib/unsetenv.c: Likewise.
72404         * lib/vasnprintf.c: Likewise.
72405         * lib/vasprintf.c: Likewise.
72406         * lib/wait-process.c: Likewise.
72407         * lib/xallocsa.c: Likewise.
72408         * lib/xsetenv.c: Likewise.
72409         * lib/xstriconv.c: Likewise.
72410
72411 2006-09-13  Simon Josefsson  <jas@extundo.com>
72412
72413         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
72414         that internally, suggested by Ralf Wildenhues
72415         <Ralf.Wildenhues@gmx.de>.
72416
72417 2006-09-13  Simon Josefsson  <jas@extundo.com>
72418
72419         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
72420         @LIBOBJS@.
72421         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72422
72423 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72424
72425         * lib/_fpending.c: Include <config.h> unconditionally, since we no
72426         longer worry about uses that don't define HAVE_CONFIG_H.
72427         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
72428         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
72429         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
72430         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
72431         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
72432         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
72433         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
72434         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
72435         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
72436         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
72437         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
72438         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
72439         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
72440         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
72441         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
72442         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
72443         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
72444         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
72445         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
72446         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
72447         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
72448         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
72449         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
72450         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
72451         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
72452         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
72453         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
72454         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
72455         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
72456         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
72457         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
72458         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
72459         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
72460         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
72461         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
72462         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
72463         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
72464         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
72465         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
72466         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
72467         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
72468         Likewise.
72469
72470 2006-09-13  Eric Blake  <ebb9@byu.net>
72471
72472         * lib/getopt.c: Fix typo in last commit.
72473
72474 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
72475
72476         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
72477         dgettext.
72478
72479 2006-09-12  Jim Meyering  <jim@meyering.net>
72480
72481         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
72482         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
72483         Reported by Nelson H. F. Beebe.
72484
72485 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72486
72487         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
72488         program_invocation_name and program_invocation_short_name are
72489         initialized.
72490         * lib/argp-namefrob.h: Move declarations of program_invocation_name
72491         and program_invocation_short_name to argp.h, so they are visible
72492         to user programs.
72493         * lib/argp.h: Likewise
72494
72495 2006-09-10  Bruno Haible  <bruno@clisp.org>
72496
72497         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
72498         m4/inttypes_h.m4, m4/uintmax_t.m4.
72499
72500 2006-09-10  Bruno Haible  <bruno@clisp.org>
72501
72502         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
72503         gl_AC_TYPE_UINTMAX_T.
72504
72505 2006-09-10  Bruno Haible  <bruno@clisp.org>
72506
72507         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
72508
72509 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72510
72511         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
72512         convention.  Text proposed by Bruno Haible.
72513         (struct argp_option): Document the use of N_() wrappers.
72514
72515         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
72516         '\v', and translate the two parts separately, instead of feeding
72517         the whole string to gettext.  This allows to exclude
72518         '\v' from the strings visible to the translator by writing doc
72519         strings as N_("..") "\v" N_("..").
72520
72521 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
72522
72523         * config/srclist.txt: Undo latest change; the bug was fixed.
72524
72525 2006-09-09  Bruno Haible  <bruno@clisp.org>
72526
72527         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
72528         assignments if building a library without libtool.
72529         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
72530         in func_emit_lib_Makefile_am.
72531         (func_import): When building a static library libfoo.a, arrange to
72532         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
72533         (func_create_testdir): Likewise.
72534         * modules/gc (configure.ac, Makefile.am): If building statically,
72535         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
72536         * modules/iconvme (configure.ac, Makefile.am): Likewise.
72537         * modules/striconv (configure.ac, Makefile.am): Likewise.
72538         Based on a suggestion by Ralf Wildenhues.
72539
72540 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72541
72542         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72543         Check for unistd.h too, since Autoconf doesn't assume POSIX.
72544         Also:
72545
72546         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72547         Add year_2050_test to catch glibc bug 2821
72548         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
72549
72550         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72551         Prefer #ifdef to #if.
72552
72553         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
72554         Return from 'main' instead of calling 'exit'.
72555
72556 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72557
72558         * lib/mktime.c (guess_time_tm): Fix bug where mktime
72559         returned the maximum time_t value rather than (time_t) -1.
72560         Problem originally reported by William Bardwell
72561         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
72562
72563         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
72564         Moved to here ...
72565         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
72566         ... from here.
72567
72568 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72569
72570         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
72571         2821 is fixed.
72572
72573 2006-09-08  Jim Meyering  <jim@meyering.net>
72574
72575         Don't make generated files read-only.  That would bother too many
72576         people.  However, do retain the ability to work when targets are
72577         read-only: remove the destination and temporary files before writing
72578         them (when generated via sed or echo), or by using the -f option for
72579         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
72580         * modules/alloca-opt, modules/argz, modules/arpa_inet:
72581         * modules/byteswap, modules/configmake, modules/fcntl:
72582         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
72583         * modules/localcharset, modules/netinet_in, modules/poll:
72584         * modules/stdbool, modules/stdint, modules/sys_select:
72585         * modules/sys_socket, modules/sys_stat, modules/sysexits:
72586
72587 2006-09-08  Jim Meyering  <jim@meyering.net>
72588
72589         Avoid new build failure on FreeBSD 6.0.
72590         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
72591         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
72592         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
72593
72594 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72595
72596         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
72597
72598 2006-09-07  Jim Meyering  <jim@meyering.net>
72599
72600         Fix global typo in last change: use chmod u-w, not chmod u-x.
72601         Spotted by Paul Eggert and Bruce Korb.
72602         * modules/alloca-opt, modules/argz, modules/arpa_inet:
72603         * modules/byteswap, modules/configmake, modules/fcntl:
72604         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
72605         * modules/localcharset, modules/netinet_in, modules/poll:
72606         * modules/stdbool, modules/stdint, modules/sys_select:
72607         * modules/sys_socket, modules/sys_stat, modules/sysexits:
72608
72609 2006-09-06  Jim Meyering  <jim@meyering.net>
72610
72611         Make generated files be read-only.
72612         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
72613         Ensure that each generated file is now read-only.
72614         * modules/argz: Likewise.
72615         * modules/arpa_inet: Likewise.
72616         * modules/byteswap: Likewise.
72617         * modules/configmake: Likewise.
72618         * modules/fcntl: Likewise.
72619         * modules/fnmatch: Likewise.
72620         * modules/getopt: Likewise.
72621         * modules/glob: Likewise.
72622         * modules/inttypes: Likewise.
72623         * modules/netinet_in: Likewise.
72624         * modules/poll: Likewise.
72625         * modules/stdbool: Likewise.
72626         * modules/stdint: Likewise.
72627         * modules/sys_select: Likewise.
72628         * modules/sys_socket: Likewise.
72629         * modules/sys_stat: Likewise.
72630         * modules/sysexits: Likewise.
72631         * modules/localcharset: Same as above, but continue using temporary
72632         file named "t-$@" (why different?) rather than the "$@-t" used
72633         everywhere else.
72634
72635         * modules/sysexits (Makefile.am): Replace literal occurrences
72636         of "sysexit.h" more readable, and more consistent, "$@".
72637
72638 2006-09-06  Bruno Haible  <bruno@clisp.org>
72639
72640         * modules/striconv: New file.
72641         * modules/xstriconv: New file.
72642         * MODULES.html.sh (Internationalization functions): Add striconv,
72643         xstriconv.
72644
72645 2006-09-06  Bruno Haible  <bruno@clisp.org>
72646
72647         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
72648         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
72649         not using libtool correctly.
72650
72651 2006-09-06  Bruno Haible  <bruno@clisp.org>
72652
72653         * lib/striconv.h: New file.
72654         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
72655         iconvstring.c.
72656         * lib/xstriconv.h: New file.
72657         * lib/xstriconv.c: New file.
72658
72659 2006-09-06  Bruno Haible  <bruno@clisp.org>
72660
72661         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72662         lib_..._LDFLAGS.
72663
72664 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72665
72666         * lib/argz_.h: Sync from Libtool.
72667
72668         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
72669                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72670
72671         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
72672
72673 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
72674
72675         * modules/trim: New file.
72676
72677 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
72678
72679         * lib/trim.h: New file.
72680         * lib/trim.c: New file.
72681
72682 2006-09-05  Bruno Haible  <bruno@clisp.org>
72683
72684         * MODULES.html.sh (String handling): Add trim.
72685
72686 2006-09-04  Karl Berry  <karl@gnu.org>
72687
72688         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
72689         until next release.
72690
72691 2006-09-03  Bruno Haible  <bruno@clisp.org>
72692
72693         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
72694         correctly.
72695
72696 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72697
72698         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
72699         not gl_GETLOADAVG.  Omit unneeded semicolons.
72700         Problems reported by Ralf Wildenhues in
72701         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
72702         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
72703         at the end, which is the usual gnulib style.
72704
72705         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
72706         of doing all the work ourselves.
72707         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
72708         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
72709
72710 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72711
72712         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
72713         Problem reported by Ralf Wildenhues in
72714         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
72715
72716         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
72717         HAVE_STRUCT_STATFS_F_FSTYPENAME.
72718
72719 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72720
72721         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
72722         yesterday's patch by changing test -n to test -z.
72723
72724 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72725
72726         * modules/getloadavg (Files): Add m4/getloadavg.m4.
72727         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
72728         the former is now obsolescent.
72729
72730         * modules/chdir-long (Depends-on): Add fcntl.
72731
72732 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72733
72734         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
72735         obsolescent, and programs should use gnulib instead.
72736         * m4/getloadavg.m4: New file, with contents taken from Autoconf
72737         but with prefixes changed.
72738
72739 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72740
72741         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
72742         or stdbool.h, because they might not exist while configuring.
72743
72744         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
72745         Don't include unistd.h or limits.h; not needed, since chdir-long.h
72746         does that for us.
72747         (O_DIRECTORY): Remove.
72748
72749 2006-08-31  Eric Blake  <ebb9@byu.net>
72750
72751         * gnulib-tool: Don't let emacs change spaces to TAB.
72752
72753 2006-08-31  Bruno Haible  <bruno@clisp.org>
72754
72755         * gnulib-tool: When calling func_import more than once, do it in a
72756         subshell.
72757         Reported by Eric Blake <ebb9@byu.net>.
72758
72759 2006-08-31  Bruno Haible  <bruno@clisp.org>
72760
72761         * gnulib-tool (nl): Remove variable.
72762         (sed_transform_lib_file): Use more robust test for config-h module.
72763         (func_import): Fix typo in 2006-08-25 patch.
72764
72765 2006-08-31  Bruno Haible  <bruno@clisp.org>
72766
72767         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
72768         specified, augment Makefile.am variables instead of assigning them.
72769
72770 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72771
72772         Work around a bug in both the Linux and SunOS 64-bit kernels:
72773         nanosleep mishandles sleeps for longer than 2**31 seconds.
72774         Problem reported by Frank v Waveren in
72775         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
72776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
72777         Check for nanosleep bug.
72778         (LIB_NANOSLEEP): Append clock_gettime library if needed.
72779
72780 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72781
72782         Work around a bug in both the Linux and SunOS 64-bit kernels:
72783         nanosleep mishandles sleeps for longer than 2**31 seconds.
72784         Problem reported by Frank v Waveren in
72785         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
72786         * lib/nanosleep.c (BILLION): New constant.
72787         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
72788         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
72789         implementation.
72790
72791 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72792
72793         * modules/nanosleep (Depends-on): Add gettime.
72794
72795 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72796         and Simon Josefsson  <jas@extundo.com>
72797         and Oskar Liljeblad  <oskar@osk.mine.nu>
72798
72799         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
72800         * gnulib-tool (func_import): New license type 'unmodifiable license
72801         text'.
72802         * modules/fdl: Use it.  Longer description.
72803         * module/gpl, module/lgpl: New files.
72804
72805 2006-08-30  Jim Meyering  <jim@meyering.net>
72806
72807         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
72808         shadowing the parameter.
72809
72810 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72811
72812         Sync from Libtool:
72813
72814         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72815
72816         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
72817         sharing with gnulib.  Report by Eric Blake.
72818
72819 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72820
72821         * modules/isapipe: New file.
72822         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
72823
72824 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72825
72826         * modules/configmake (Makefile.am): Add a comment, and omit
72827         the CONFIGMAKE_ prefix from generated macro names.  Suggested
72828         by Bruno Haible.
72829
72830 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72831
72832         * m4/isapipe.m4: New file.
72833
72834 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72835
72836         * lib/isapipe.c, lib/isapipe.h: New files.
72837
72838 2006-08-29  Jim Meyering  <jim@meyering.net>
72839
72840         * modules/configmake (Makefile.am): Make configmake.h depend on
72841         Makefile.  Otherwise, a stale configmake.h could hang around.
72842
72843 2006-08-29  Eric Blake  <ebb9@byu.net>
72844
72845         * lib/error.c (error_at_line, print_errno_message): Match libc, after
72846         resolution of upstream bug 3044.
72847
72848 2006-08-29  Bruno Haible  <bruno@clisp.org>
72849
72850         * modules/localcharset (Depends-on): Add configmake.
72851         (Makefile.am): Remove setting of LIBDIR through DEFS.
72852
72853 2006-08-29  Bruno Haible  <bruno@clisp.org>
72854
72855         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
72856         defined.
72857
72858 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72859
72860         * modules/fcntl: New file.
72861         * modules/chdir-safer (Depends-on): Add fcntl.
72862         * modules/fts: Likewise.
72863         * modules/mkdir-p: Likewise.
72864
72865         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
72866         This undoes the most recent change, since we're now addressing the
72867         problem in a different way.
72868
72869         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
72870         into output, since the output might be called Makefile.am even
72871         if $makefile_name is something different.
72872         (func_import): Use $makefile_am rather than
72873         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
72874         empty.
72875
72876         * modules/inttypes (Files): Add m4/inttypes-h.m4.
72877
72878 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72879
72880         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
72881         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
72882         recent change to stdint.m4, since we're now addressing the problem in a
72883         different way.
72884
72885 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72886
72887         * m4/fcntl_h.m4: New file.
72888
72889 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72890
72891         * lib/fcntl_.h: New file.
72892         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
72893         the fcntl module.
72894         * lib/dirchownmod.c: Likewise.
72895         * lib/fts.c: Likewise.
72896
72897         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
72898         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
72899         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
72900         just before including <inttypes.h>, to avoid circular inclusion.
72901
72902 2006-08-28  Jim Meyering  <jim@meyering.net>
72903
72904         * doc/visibility.texi: Actually read and correct the grammar of the
72905         sentence affected by yesterday's change.
72906
72907 2006-08-28  Eric Blake  <ebb9@byu.net>
72908
72909         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
72910         needs wrapper.
72911
72912 2006-08-28  Eric Blake  <ebb9@byu.net>
72913
72914         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
72915
72916 2006-08-28  Eric Blake  <ebb9@byu.net>
72917
72918         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
72919
72920 2006-08-28  Bruno Haible  <bruno@clisp.org>
72921
72922         * modules/c-strstr: New file, from GNU gettext.
72923         * MODULES.html.sh (String handling): Add c-strstr.
72924
72925 2006-08-28  Bruno Haible  <bruno@clisp.org>
72926
72927         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
72928         macros.
72929         Reported by Eric Blake.
72930
72931 2006-08-28  Bruno Haible  <bruno@clisp.org>
72932
72933         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
72934         (VASNPRINTF): Return a string of length > INT_MAX without failing.
72935         * lib/vasprintf.c: Include errno.h, limits.h.
72936         (EOVERFLOW): New fallback definition.
72937         (vasprintf): Test here whether the string length is > INT_MAX.
72938         * lib/vsnprintf.c: Include errno.h, limits.h.
72939         (EOVERFLOW): New fallback definition.
72940         (vsnprintf): Fix bug when generated string was too long for the buffer.
72941         Test here whether the string length is > INT_MAX.
72942
72943 2006-08-28  Bruno Haible  <bruno@clisp.org>
72944
72945         * lib/inttypes_.h (SCNX*): Remove definitions.
72946         Reported by Eric Blake.
72947
72948 2006-08-28  Bruno Haible  <bruno@clisp.org>
72949
72950         * lib/c-strstr.h: New file, from GNU gettext.
72951         * lib/c-strstr.c: New file, from GNU gettext.
72952
72953 2006-08-28  Bruno Haible  <bruno@clisp.org>
72954
72955         * gnulib-tool: Reorder some statements.
72956
72957 2006-08-28  Bruno Haible  <bruno@clisp.org>
72958
72959         * gnulib-tool: New option --makefile-name.
72960         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
72961         $makefile_name.
72962         (func_import): Write $makefile_name to the cache file, and read it from
72963         there unless explicitly specified. Use $makefile_name as file name
72964         instead of Makefile.am. Adjust the recommendations accordingly.
72965
72966 2006-08-28  Bruno Haible  <bruno@clisp.org>
72967
72968         * gnulib-tool (func_verify_module): Check against misapplying patch.
72969
72970 2006-08-28  Bruno Haible  <bruno@clisp.org>
72971
72972         * gnulib-tool (func_relativize, func_relconcat): New functions.
72973         Give an error if --local-dir is given with --update.
72974         Remove trailing slashes from $local_gnulib_dir.
72975         (func_import): Store the relativized $local_gnulib_dir in
72976         gnulib-cache.m4, and read it from there if not specified explicitly.
72977
72978 2006-08-28  Bruno Haible  <bruno@clisp.org>
72979
72980         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
72981         is the current directory. Respect also $local_gnulib_dir.
72982
72983 2006-08-28  Bruno Haible  <bruno@clisp.org>
72984             Simon Josefsson  <jas@extundo.com>
72985
72986         BeOS portability.
72987         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
72988
72989 2006-08-27  Jim Meyering  <jim@meyering.net>
72990
72991         * doc/visibility.texi: Remove duplicate word: "pointer".
72992
72993 2006-08-26  Bruno Haible  <bruno@clisp.org>
72994
72995         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
72996         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
72997         (Makefile.am): Create inttypes.h from inttypes_.h.
72998         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
72999
73000         * modules/imaxabs: New file.
73001
73002         * modules/imaxdiv: New file.
73003
73004 2006-08-26  Bruno Haible  <bruno@clisp.org>
73005
73006         * m4/inttypes.m4: New file.
73007         * m4/_inttypes_h.m4: Remove file.
73008         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
73009         PRI_MACROS_BROKEN.
73010         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
73011
73012         * m4/imaxabs.m4: New file.
73013
73014         * m4/imaxdiv.m4: New file.
73015
73016 2006-08-26  Bruno Haible  <bruno@clisp.org>
73017
73018         * lib/inttypes_.h: New file.
73019         * lib/inttypes.h: Remove file.
73020         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
73021
73022         * lib/imaxabs.c: New file.
73023
73024         * lib/imaxdiv.c: New file.
73025
73026 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73027
73028         New config-h module, so that "make" output needn't be cluttered
73029         by -DHAVE_CONFIG_H.
73030         * MODULES.html.sh (Support for building libraries and executables):
73031         Add config-h.
73032         * modules/config-h: New file.
73033         * gnulib-tool (nl, sed_transform_lib_file): New vars.
73034         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
73035         the config-h module is used.
73036
73037         New configmake module, so that "make" output needn't be cluttered
73038         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
73039         * MODULES.html.sh (Support for building libraries and executables):
73040         Add configmake.
73041         * modules/configmake: New file.
73042
73043 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73044
73045         * m4/config-h.m4: New file.
73046
73047 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73048
73049         * config/srclist.txt: Add elisp-comp.
73050
73051 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73052
73053         * MODULES.html.sh (Support for building libraries and executables):
73054         Add elisp-comp.
73055         * build-aux/elisp-comp: New file.
73056         * modules/elisp-comp: New file.
73057
73058 2006-08-24  Bruno Haible  <bruno@clisp.org>
73059
73060         * gnulib-tool (func_create_testdir): Use non-default values of
73061         sourcebase and m4base.
73062
73063 2006-08-24  Bruno Haible  <bruno@clisp.org>
73064
73065         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
73066         HTML structure.
73067
73068 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73069
73070         * modules/openat (Depends-on): Add lchown.
73071
73072 2006-08-23  Bruno Haible  <bruno@clisp.org>
73073
73074         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
73075         of gl_LOCK_EARLY instead of gl_LOCK.
73076
73077 2006-08-23  Bruno Haible  <bruno@clisp.org>
73078
73079         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
73080         on OSF/1 to no.
73081         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
73082
73083 2006-08-23  Bruno Haible  <bruno@clisp.org>
73084
73085         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
73086         as unusable.
73087
73088         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
73089         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
73090         (gl_LOCK): New macro.
73091
73092 2006-08-22  Simon Josefsson  <jas@extundo.com>
73093
73094         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
73095         to md5 module.
73096
73097 2006-08-22  Simon Josefsson  <jas@extundo.com>
73098
73099         * MODULES.html.sh: Add "Support for maintaining and release
73100         projects".
73101
73102         * build-aux/gnupload: New file, from coreutils.
73103
73104 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73105
73106         Avoid the need for AC_LIBSOURCES in m4 macros.
73107         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
73108         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
73109         * modules/check-version (EXTRA_DIST): Add check-version.h.
73110         * modules/crc (EXTRA_DIST): Add crc.h.
73111         * modules/des (EXTRA_DIST): Add des.h.
73112         * modules/gc (EXTRA_DIST): Add gc.h.
73113         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
73114         * modules/getline (EXTRA_DIST): Add getline.h.
73115         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
73116         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
73117         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
73118         * modules/md2 (EXTRA_DIST): Add md2.h.
73119         * modules/md4 (EXTRA_DIST): Add md4.h.
73120         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
73121         * modules/read-file (EXTRA_DIST): Add read-file.h.
73122         * modules/readline (EXTRA_DIST): Add readline.h.
73123         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
73124         rijndael-api-fst.h.
73125
73126 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73127
73128         * m4/rijndael.m4 (gl_ARCFOUR):
73129         * m4/arctwo.m4 (gl_ARCTWO):
73130         * m4/check-version.m4 (gl_CHECK_VERSION):
73131         * m4/crc.m4 (gl_CRC):
73132         * m4/des.m4 (gl_DES):
73133         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
73134         * m4/gc.m4 (gl_GC):
73135         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
73136         * m4/getline.m4 (gl_FUNC_GETLINE):
73137         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
73138         * m4/hmac-md5.m4 (gl_HMAC_MD5):
73139         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
73140         * m4/md2.m4 (gl_MD2):
73141         * m4/md4.m4 (gl_MD4):
73142         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
73143         * m4/read-file.m4 (gl_FUNC_READ_FILE):
73144         * m4/readline.m4 (gl_FUNC_READLINE):
73145         * m4/rijndael.m4 (gl_RIJNDAEL):
73146         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
73147         to get the necessary .h files and whatnot.
73148
73149 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73150
73151         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
73152         gnulib rather than the other way around.
73153         * config/srclistvars.sh (COREUTILS): Remove.
73154
73155 2006-08-22  Jim Meyering  <jim@meyering.net>
73156
73157         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
73158
73159         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
73160
73161 2006-08-22  Eric Blake  <ebb9@byu.net>
73162
73163         * modules/regexprops-generic: New file.
73164         * MODULES.html.sh (Support for building documentation): List it.
73165
73166 2006-08-22  Eric Blake  <ebb9@byu.net>
73167
73168         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
73169         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
73170         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
73171         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
73172
73173 2006-08-22  Bruno Haible  <bruno@clisp.org>
73174
73175         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
73176         and lib_LTLIBRARIES like the other lib_* variables.
73177
73178 2006-08-22  Bruno Haible  <bruno@clisp.org>
73179
73180         * build-aux/x-to-1.in: New file, from GNU gettext.
73181
73182 2006-08-22  Bruno Haible  <bruno@clisp.org>
73183
73184         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
73185         <utmpx.h> exists.
73186
73187 2006-08-22  Bruno Haible  <bruno@clisp.org>
73188
73189         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
73190         <utmpx.h> exists.
73191
73192 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73193
73194         BeOS portability.
73195         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
73196         exist.
73197         Problem reported by Bruno Haible.
73198
73199 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73200
73201         Avoid the need for AC_LIBSOURCES in m4 macros.
73202         * modules/acl (EXTRA_DIST): Add acl.h.
73203         * modules/argmatch (Files): Add m4/argmatch.m4.
73204         (configure.ac): Add gl_ARGMATCH.
73205         (EXTRA_DIST): Renamed from lib_SOURCES, for
73206         consistency with the other modules.  Remove argmatch.c.
73207         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
73208         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
73209         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
73210         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
73211         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
73212         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
73213         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
73214         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
73215         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
73216         * modules/closeout (EXTRA_DIST): Add closeout.h.
73217         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
73218         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
73219         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
73220         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
73221         dirname.h; remove basename.c and stripslash.c.
73222         * modules/exclude (EXTRA_DIST): Add exclude.h.
73223         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
73224         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
73225         * modules/file-type (EXTRA_DIST): Add file-type.h.
73226         * modules/filemode (EXTRA_DIST): Add filemode.h.
73227         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
73228         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
73229         * modules/fpending (EXTRA_DIST): Add __fpending.h.
73230         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
73231         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
73232         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
73233         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
73234         * modules/getdate (EXTRA_DIST): Add getdate.c.
73235         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
73236         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
73237         * modules/getpass (EXTRA_DIST): Add getpass.h.
73238         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
73239         * modules/group-member (EXTRA_DIST): Add group-member.h.
73240         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
73241         * modules/hash (EXTRA_DIST): Add hash.h.
73242         * modules/human (EXTRA_DIST): Add human.h.
73243         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
73244         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
73245         * modules/lchown (EXTRA_DIST): Add lchown.h.
73246         * modules/long-options (EXTRA_DIST): Add long-options.h.
73247         * modules/lstat (EXTRA_DIST): Add lstat.h.
73248         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
73249         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
73250         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
73251         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
73252         * modules/memxor (EXTRA_DIST): Add memxor.h.
73253         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
73254         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
73255         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
73256         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
73257         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
73258         * modules/physmem (EXTRA_DIST): Add physmem.h.
73259         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
73260         * modules/posixver (EXTRA_DIST): Add posixver.h.
73261         * modules/quote (EXTRA_DIST): Add quote.h.
73262         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
73263         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
73264         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
73265         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
73266         regex_internal.h regexec.c.
73267         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
73268         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
73269         * modules/same (EXTRA_DIST): Add same.h.
73270         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
73271         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
73272         * modules/savedir (EXTRA_DIST): Add savedir.h.
73273         * modules/sha1 (EXTRA_DIST): Add sha1.h.
73274         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
73275         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
73276         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
73277         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
73278         * modules/strdup (EXTRA_DIST): Add strdup.h.
73279         * modules/strftime (EXTRA_DIST): Add strftime.h.
73280         * modules/strndup (EXTRA_DIST): Add strndup.h.
73281         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
73282         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
73283         * modules/time_r (EXTRA_DIST): Add time_r.h.
73284         * modules/timespec (EXTRA_DIST): Add timespec.h.
73285         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
73286         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
73287         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
73288         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
73289         * modules/userspec (EXTRA_DIST): Add userspec.h.
73290         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
73291         * modules/utimens (EXTRA_DIST): Add utimens.h.
73292         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
73293         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
73294         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
73295         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
73296         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
73297         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
73298         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
73299         * modules/yesno (EXTRA_DIST): Add yesno.h.
73300
73301 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73302
73303         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
73304
73305         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
73306         * m4/dev-ino.m4, same-inode.m4: Remove.
73307
73308         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
73309         * m4/acl.m4 (AC_FUNC_ACL):
73310         * m4/backupfile.m4 (gl_BACKUPFILE):
73311         * m4/c-strtod.m4 (gl_C99_STRTOLD):
73312         * m4/canon-host.m4 (gl_CANON_HOST):
73313         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73314         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
73315         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
73316         * m4/cloexec.m4 (gl_CLOEXEC):
73317         * m4/close-stream.m4 (gl_CLOSE_STREAM):
73318         * m4/closeout.m4 (gl_CLOSEOUT):
73319         * m4/dirfd.m4 (gl_FUNC_DIRFD):
73320         * m4/dirname.m4 (gl_DIRNAME):
73321         * m4/exclude.m4 (gl_EXCLUDE):
73322         * m4/exitfail.m4 (gl_EXITFAIL):
73323         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
73324         * m4/file-type.m4 (gl_FILE_TYPE):
73325         * m4/filemode.m4 (gl_FILEMODE):
73326         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
73327         * m4/fpending.m4 (gl_FUNC_FPENDING):
73328         * m4/fprintftime.m4 (gl_FPRINTFTIME):
73329         * m4/fts.m4 (gl_FUNC_FTS):
73330         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
73331         * m4/getdate.m4 (gl_GETDATE):
73332         * m4/gethrxtime.m4 (gl_GETHRXTIME):
73333         * m4/getpagesize.m4 (gl_GETPAGESIZE):
73334         * m4/getpass.m4 (gl_FUNC_GETPASS):
73335         * m4/gettime.m4 (gl_GETTIME):
73336         * m4/getugroups.m4 (gl_GETUGROUPS):
73337         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
73338         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
73339         * m4/hard-locale.m4 (gl_HARD_LOCALE):
73340         * m4/hash.m4 (gl_HASH):
73341         * m4/idcache.m4 (gl_IDCACHE):
73342         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
73343         * m4/lchown.m4 (gl_FUNC_LCHOWN):
73344         * m4/long-options.m4 (gl_LONG_OPTIONS):
73345         * m4/lstat.m4 (gl_FUNC_LSTAT):
73346         * m4/md5.m4 (gl_MD5):
73347         * m4/memcasecmp.m4 (gl_MEMCASECMP):
73348         * m4/memcoll.m4 (gl_MEMCOLL):
73349         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
73350         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
73351         * m4/memxor.m4 (gl_MEMXOR):
73352         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
73353         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
73354         * m4/modechange.m4 (gl_MODECHANGE):
73355         * m4/mountlist.m4 (gl_MOUNTLIST):
73356         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73357         * m4/openat.m4 (gl_FUNC_OPENAT):
73358         * m4/pathmax.m4 (gl_PATHMAX):
73359         * m4/physmem.m4 (gl_PHYSMEM):
73360         * m4/posixtm.m4 (gl_POSIXTM):
73361         * m4/posixver.m4 (gl_POSIXVER):
73362         * m4/quote.m4 (gl_QUOTE):
73363         * m4/quotearg.m4 (gl_QUOTEARG):
73364         * m4/readtokens.m4 (gl_READTOKENS):
73365         * m4/readutmp.m4 (gl_READUTMP):
73366         * m4/regex.m4 (gl_REGEX):
73367         * m4/safe-read.m4 (gl_SAFE_READ):
73368         * m4/safe-write.m4 (gl_SAFE_WRITE):
73369         * m4/same.m4 (gl_SAME):
73370         * m4/save-cwd.m4 (gl_SAVE_CWD):
73371         * m4/savedir.m4 (gl_SAVEDIR):
73372         * m4/settime.m4 (gl_SETTIME):
73373         * m4/sha1.m4 (gl_SHA1):
73374         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
73375         * m4/stat-macros.m4 (gl_STAT_MACROS):
73376         * m4/stat-time.m4 (gl_STAT_TIME):
73377         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
73378         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
73379         * m4/strdup.m4 (gl_FUNC_STRDUP):
73380         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
73381         * m4/strndup.m4 (gl_FUNC_STRNDUP):
73382         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
73383         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
73384         * m4/time_r.m4 (gl_TIME_R):
73385         * m4/timespec.m4 (gl_TIMESPEC):
73386         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
73387         * m4/unlinkdir.m4 (gl_UNLINKDIR):
73388         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
73389         * m4/userspec.m4 (gl_USERSPEC):
73390         * m4/utimecmp.m4 (gl_UTIMECMP):
73391         * m4/utimens.m4 (gl_UTIMENS):
73392         * m4/xalloc.m4 (gl_XALLOC):
73393         * m4/xgetcwd.m4 (gl_XGETCWD):
73394         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
73395         * m4/xreadlink.m4 (gl_XREADLINK):
73396         * m4/xstrtod.m4 (gl_XSTRTOD):
73397         * m4/yesno.m4 (gl_YESNO):
73398         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
73399         to get the necessary .h files and whatnot.
73400
73401 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
73402             Bruno Haible  <bruno@clisp.org>
73403
73404         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
73405         /bin/sh understanding of '!' conditional negation.
73406
73407 2006-08-21  Jim Meyering  <jim@meyering.net>
73408
73409         * modules/openat (Depends-on): Really alphabetize.
73410
73411         * modules/acl (Depends-on): Add error and quote.
73412
73413         * check-module (find_included_lib_files): Add at-func.c to the
73414         ok-to-include-more-than-once white list.
73415
73416         * modules/openat (Depends-on): Add lstat.  Alphabetize.
73417
73418 2006-08-21  Bruno Haible  <bruno@clisp.org>
73419
73420         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73421         Emit a pkgdata_DATA variable only if some snippets add contents to it.
73422         Reported by Martin Lambers <marlam@marlam.de>.
73423
73424 2006-08-21  Bruno Haible  <bruno@clisp.org>
73425
73426         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
73427         specify an installation location, don't emit a noinst_LIBRARIES or
73428         noinst_LTLIBRARIES assignment.
73429
73430 2006-08-21  Bruno Haible  <bruno@clisp.org>
73431
73432         BeOS portability.
73433         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
73434         BeOS has mbrtowc() but no <wctype.h>.
73435
73436 2006-08-21  Bruno Haible  <bruno@clisp.org>
73437
73438         BeOS portability.
73439         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
73440         exist.
73441
73442 2006-08-21  Bruno Haible  <bruno@clisp.org>
73443
73444         BeOS portability.
73445         * lib/mbchar.h: Include <wctype.h> only if it exists.
73446
73447 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73448
73449         Remove files that are no longer needed by their respective modules.
73450         * m4/obstack.m4: Remove.
73451         * m4/strerror_r.m4: Remove.
73452         * m4/uint32_t.m4: Remove.
73453         * m4/uintptr_t.m4: Remove.
73454         * m4/ullong_max.m4: Remove.
73455         * m4/xstrtoimax.m4: Remove.
73456         * m4/xstrtoumax.m4: Remove.
73457
73458         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
73459         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
73460         dependencies now capture this.
73461
73462         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
73463         Do not use AC_LIBSOURCES, since gnulib modules now do this.
73464         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
73465         * m4/human.m4 (gl_HUMAN): Likewise.
73466         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
73467         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
73468
73469         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
73470
73471         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
73472         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
73473         stdint.
73474         * m4/human.m4 (gl_HUMAN): Likewise.
73475         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
73476         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
73477         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
73478         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
73479         * m4/xstrtol (gl_XSTRTOL): Likewise.
73480
73481         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
73482         AC_TYPE_LONG_LONG_INT.
73483         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
73484         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
73485         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
73486         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
73487
73488         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
73489         on stdbool.
73490
73491         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
73492         (gl_PREREQ_XSTRTOUL): Remove.
73493
73494         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
73495
73496         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
73497         mode.
73498
73499 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73500
73501         Add and change modules to make it easier for coreutils to use
73502         gnulib-tool.
73503         * modules/backupfile (Files): Remove m4/d-ino.m4.
73504         (Depends-on): Add d-ino.
73505         * modules/cycle-check (Depends-on): Add stdint.
73506         (lib_SOURCES): Add cycle-check.h.
73507         * modules/d-ino: New module.
73508         * modules/d-type: New module.
73509         * modules/error (Files): Remove m4/strerror_r.m4.
73510         * modules/filemode (Files): Add m4/st_dm_mode.m4.
73511         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73512         m4/inttypes_h.m4, m4/uintmax_t.m4.
73513         (Depends-on): Add stdint.
73514         (lib_SOURCES): Add fsusage.h.
73515         * modules/getcwd (Files): Remove d-ino.m4.
73516         (Depends-on): Add d-ino.
73517         * modules/getndelim2 (Depends-on): Add stdint.
73518         * modules/glob (Files): Remove m4/d-type.m4.
73519         (Depends-on): Add d-type.
73520         * modules/host-os: New module.
73521         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
73522         m4/inttypes_h.m4, m4/uintmax_t.m4.
73523         * Depends-on: Add stdint.
73524         (lib_SOURCES): Add human.h.
73525         * modules/inttostr (Files): Remove m4/intmax_t.m4,
73526         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
73527         m4/uintmax_t.m4, m4/ulonglong.m4.
73528         (Depends-on): Add stdint.
73529         (EXTRA_DIST): Add inttostr.h.
73530         * modules/lchmod: New module.
73531         * modules/link-follow: New module.
73532         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
73533         (Depends-on): Add lchmod.
73534         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
73535         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
73536         (Depends-on): Add stdint.
73537         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
73538         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
73539         (Depends-on): Add stdint.
73540         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
73541         * modules/perl: New module.
73542         * modules/regex (Depends-on): Add stdint.
73543         * modules/rmdir-errno: New module.
73544         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
73545         m4/intmax_t.m4.
73546         (Depends-on): Add stdint.
73547         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
73548         m4/uintmax_t.m4.
73549         (Depends-on): Add stdint.
73550         * modules/unlink-busy: New module.
73551         * modules/utimecmp (Depends-on): Add stdint.
73552         * modules/uptime: New module.
73553         * modules/winsz-ioctl: New module.
73554         * modules/winsz-termios: New module.
73555         * modules/xnanosleep (Depends-on): Add nanosleep.
73556         * modules/ullong_max: Remove.
73557         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
73558         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
73559         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
73560         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
73561         (Depends-on): Add inttypes.
73562         (lib_SOURCES): Add xstrtol.h.
73563         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
73564         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
73565         * MODULES.html.sh: Move 'assert' into the assert section.
73566         Move 'dummy' into the linking section.
73567         Remove ullong_max.
73568         Add section for compatibility checks for POSIX:2001 functions,
73569         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
73570         winsz-ioctl, and winsz-termios into it.
73571         Add lchmod.
73572         Add top-level Misc section and put host-os, perl, and uptime
73573         into it.
73574
73575 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73576
73577         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
73578         now assume the stdint module.  Do not include inttypes.h.
73579         * lib/fsusage.h: Likewise.
73580         * lib/getndelim2.c: Likewise.
73581         * lib/human.h: Likewise.
73582         * lib/inttostr.h: Likewise.
73583         * lib/obstack.c: Likewise.
73584         * lib/regex_internal.h: Likewise.
73585         * lib/tempname.c: Likewise.
73586         * lib/utimecmp.c: Likewise.
73587         * lib/xstrtol.h: Likewise.
73588
73589         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
73590
73591         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
73592         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
73593         * lib/xtime.h: Likewise.
73594
73595 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73596
73597         * modules/openat (Files): Add lib/fchmodat.c.
73598         Fixes problem reported by Jay Youngman.
73599
73600 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73601
73602         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
73603         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
73604
73605 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
73606             Bruno Haible  <bruno@clisp.org>
73607
73608         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
73609         and is a script that invokes bison. Tighten the code. Add comments.
73610
73611 2006-08-18  Jim Meyering  <jim@meyering.net>
73612
73613         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
73614         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
73615         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
73616         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
73617
73618 2006-08-18  Bruno Haible  <bruno@clisp.org>
73619
73620         * modules/bison-i18n: New file.
73621         * MODULES.html.sh (Internationalization functions): Add it.
73622
73623 2006-08-18  Bruno Haible  <bruno@clisp.org>
73624
73625         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
73626         sys/statvfs.h. When getmntinfo was found, check its declaration and
73627         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
73628
73629 2006-08-18  Bruno Haible  <bruno@clisp.org>
73630
73631         * m4/bison-i18n.m4: New file, from bison.
73632
73633 2006-08-18  Bruno Haible  <bruno@clisp.org>
73634
73635         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
73636         (ME_DUMMY): Treat "kernfs" as a dummy.
73637         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
73638
73639 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73640
73641         Update from coreutils.
73642
73643         2006-08-15  Jim Meyering  <jim@meyering.net>
73644
73645         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
73646
73647         2006-01-17  Jim Meyering  <jim@meyering.net>
73648
73649         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
73650
73651         2006-01-11  Jim Meyering  <jim@meyering.net>
73652
73653         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
73654         Check for the lchmod function.
73655
73656 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73657
73658         Update from coreutils.
73659
73660         * lib/__fpending.h: Add copyright notice.
73661         * lib/fprintftime.h: Likewise.
73662         * lib/savedir.c: Use (C) in copyright notice.
73663         * lib/savedir.h: Likewise.
73664
73665         2006-08-15  Jim Meyering  <jim@meyering.net>
73666
73667         * lib/at-func.c: New file, with the logic of all emulated at-functions.
73668         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
73669         in support of the EXPECTED_ERRNO macro.
73670         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
73671         definitions.  Instead, define the appropriate symbols and include
73672         "at-func.c".
73673         * lib/mkdirat.c (mkdirat): Likewise.
73674         * lib/fchmodat.c (fchmodat): Likewise.
73675         (ENOSYS): Remove definition.
73676         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
73677         it.  Don't include "unistd--.h" -- it wasn't ever used.
73678
73679         2006-01-17  Jim Meyering  <jim@meyering.net>
73680
73681         Rewrite fts.c not to change the current working directory,
73682         by using openat, fstatat, fdopendir, etc..
73683
73684         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
73685         (HAVE_OPENAT_SUPPORT): Define.
73686         [_LIBC] (fchdir): Don't undef or define; no longer used.
73687         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
73688         Now, this `function' always succeeds, and consumes its file descriptor
73689         parameter -- so callers must not close such FDs.  Update callers.
73690         (diropen_fd, opendirat, cwd_advance_fd): New functions.
73691         (diropen): Add parameter, SP.  Adjust all callers.
73692         Implement using diropen_fd, rather than open.
73693         (fts_open): Initialize new member, fts_cwd_fd.
73694         Remove fts_rft-setting code.
73695         (fts_close): Close fts_cwd_fd, if necessary.
73696         (__opendir2): Define in terms of opendir or opendirat,
73697         depending on whether the FST_NOCHDIR flag is set.
73698         (fts_build): Since fts_safe_changedir consumes its FD, and since
73699         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
73700         and close the dup'd file descriptor upon failure.
73701         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
73702         (fts_safe_changedir): Tweak semantics to reflect that this function
73703         now calls cwd_advance_fd and hence consumes its FD argument.
73704         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
73705         [struct FTS] (fts_rft): Remove now-unused member.
73706         [struct FTS] (fts_cycle.state): Improve comment.
73707
73708         * lib/openat.c (openat_needs_fchdir): New function.
73709         * lib/openat.h (openat_needs_fchdir): Declare it.
73710
73711 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
73712
73713         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
73714         Problem and fix reported by Pádraig Brady in
73715         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
73716
73717 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73718
73719         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
73720
73721 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73722
73723         * lib/memcoll.c (memcoll): Optimize for the common case where the
73724         arguments are bytewise equal.
73725
73726 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73727
73728         * doc/regexprops-generic.texi: Add a copyright notice.
73729
73730 2006-08-15  Bruno Haible  <bruno@clisp.org>
73731
73732         * modules/tmpdir (License): Change to LGPL.
73733
73734 2006-08-15  Bruno Haible  <bruno@clisp.org>
73735
73736         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
73737         module.
73738
73739 2006-08-14  Simon Josefsson  <jas@extundo.com>
73740
73741         * config/srclist.txt: Add gnupload.
73742
73743 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73744
73745         Change copyright notice from LGPL 2 to GPL 2, since that's the
73746         standard form used in the gnulib repository.
73747         * tests/test-lock.c: Likewise.
73748         * tests/test-stdint.c: Likewise.
73749         * tests/test-tls.c: Likewise.
73750
73751         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
73752         prelude-manager.  User shorter URLs for GNU projects, without '?'.
73753         Add copyright notice.
73754
73755         * check-module: Add copyright notice.  Output a copyright
73756         notice if "--version" is specified.
73757         * modules/COPYING: New file.
73758         * tests/test-getaddrinfo.c: Add copyright notice.
73759         * tests/test-verify.c: Likewise.
73760
73761 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73762
73763         Change copyright notice from LGPL 2 to GPL 2, since that's the
73764         standard form used in the gnulib repository.
73765         * lib/lock.c: LGPL -> GPL.
73766         * lib/lock.h: Likewise.
73767         * lib/strnlen1.c: Likewise.
73768         * lib/strnlen1.h: Likewise.
73769         * lib/tls.c: Likewise.
73770         * lib/tls.h: Likewise.
73771         * lib/tmpdir.c: Likewise.
73772
73773         * lib/TODO: Remove; this belongs only in coreutils.
73774
73775 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73776
73777         Add copyright notices to long-enough files that lack them, since
73778         otherwise the files aren't clearly free.  Use the same notice that
73779         getdate.texi already uses.
73780         * doc/alloca-opt.texi: Add copyright notice.
73781         * doc/alloca.texi: Likewise.
73782         * doc/ctime.texi: Likewise.
73783         * doc/functions.texi: Likewise.
73784         * doc/gcd.texi: Likewise.
73785         * doc/gnulib-tool.texi: Likewise.
73786         * doc/inet_ntoa.texi: Likewise.
73787         * doc/visibility.texi: Likewise.
73788
73789         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
73790         * doc/quote.texi: Add copyright notice.
73791
73792         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
73793         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
73794         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
73795         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
73796         is now obsolete, and give a pointer to the Sun list.
73797         Add copyright notice.
73798
73799 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73800
73801         * config/srclistvars.sh: Add copyright notice.
73802
73803 2006-08-14  Eric Blake  <ebb9@byu.net>
73804
73805         Import the following change from libc:
73806
73807         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
73808
73809         Upstream bug 2997.
73810         * lib/misc/error.c: Add space between program name and message if file
73811         name is missing.
73812
73813 2006-08-12  Karl Berry  <karl@gnu.org>
73814
73815         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
73816         remove, these originate in gnulib now.
73817
73818 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73819
73820         * doc/Makefile (standards.info standards.html standards.dvi):
73821         Also depend on make-stds.texi.
73822
73823 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73824
73825         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
73826         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
73827
73828         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
73829         in wchar_t.  Problem reported by Eric Blake.
73830
73831         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
73832         LEN is smaller than SIZE.  Suggested by Bruno Haible.
73833         Also, help the compiler to keep LEN in a register.
73834
73835 2006-08-11  Eric Blake  <ebb9@byu.net>
73836
73837         * users.txt: Sort.  Add tar.
73838
73839 2006-08-11  Bruno Haible  <bruno@clisp.org>
73840
73841         * users.txt: New file.
73842
73843 2006-08-11  Bruno Haible  <bruno@clisp.org>
73844
73845         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
73846         before <wchar.h>. Needed for OSF/1 and BSD/OS.
73847
73848 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
73849
73850         * modules/snprintf (Depends-on): Remove minmax.
73851         (Maintainer): Add self and Bruno.
73852
73853 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
73854
73855         * lib/.cppi-disable: Add snprintf.h, socket_.h.
73856         * lib/snprintf.c: Include <errno.h> and <limits.h>.
73857         (EOVERFLOW): Define if the system does not.
73858         Do not include "minmax.h"; it wasn't used.
73859         (snprintf): Don't assume size_t promotes to an unsigned type.
73860         Fix bug when generated string was too long for the buffer: the
73861         buffer's contents are supposed to be the initial prefix of the
73862         output.  Don't assume vasnprintf returns EOVERFLOW if the size
73863         exceeds INT_MAX; do the check ourselves.
73864
73865         Import the following changes from libc:
73866
73867         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
73868
73869         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
73870         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
73871         set wc to the byte which couldn't be converted.
73872         (re_string_reconstruct): Don't clear valid_raw_len before calling
73873         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
73874         tip_context using re_string_context_at.
73875
73876         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
73877
73878         * lib/posix/regex.h: g++ still cannot handled [restrict].
73879
73880         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
73881
73882         * lib/posix/regex.h: Remove special handling for VMS.
73883
73884 2006-08-10  Jim Meyering  <jim@meyering.net>
73885
73886         * modules/same-inode: New module.
73887         * modules/dev-ino: New module.
73888         * modules/cycle-check: Depend on these modules, rather than simply
73889         including their .h files.
73890         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
73891         required via m4/cycle-check.m4.
73892         * modules/same: Depend on new same-inode module, rather than
73893         including same-inode.h.
73894         * modules/chdir-safer: New file.
73895
73896         * modules/chown (Depends-on): Add stat-macros.
73897
73898 2006-08-10  Jim Meyering  <jim@meyering.net>
73899
73900         * m4/cycle-check.m4: New file.
73901         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
73902         * m4/dev-ino.m4, m4/same-inode.m4: New files.
73903
73904 2006-08-10  Eric Blake  <ebb9@byu.net>
73905
73906         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
73907         in from original proposal.
73908
73909 2006-08-10  Eric Blake  <ebb9@byu.net>
73910         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73911
73912         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
73913         namespace.
73914
73915 2006-08-10  Bruno Haible  <bruno@clisp.org>
73916
73917         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
73918         as well.
73919
73920 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73921
73922         Sync from coreutils.
73923
73924         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
73925
73926         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
73927         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
73928
73929 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73930
73931         * modules/restrict: Remove; no longer needed now that we assume
73932         Autoconf 2.59 or later.
73933         * MODULES.html.sh: Remove 'restrict'.
73934         * modules/argp (Depends-on): Remove 'restrict'.
73935         * modules/base64 (Depends-on): Likewise.
73936         * modules/gc (Depends-on): Likewise.
73937         * modules/getaddrinfo (Depends-on): Likewise.
73938         * modules/glob (Depends-on): Likewise.
73939         * modules/inet_ntop (Depends-on): Likewise.
73940         * modules/inet_pton (Depends-on): Likewise.
73941         * modules/memxor (Depends-on): Likewise.
73942         * modules/regex (Depends-on): Likewise.
73943         * modules/strtok_r (Depends-on): Likewise.
73944         * modules/time_r (Depends-on): Likewise.
73945
73946 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73947
73948         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
73949         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
73950         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
73951         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
73952         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
73953         * m4/memxor.m4 (gl_MEMXOR): Likewise.
73954         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
73955         gl_C_RESTRICT replaced by AC_C_RESTRICT.
73956
73957         Merge from coreutils.
73958         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
73959         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
73960         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73961         * m4/time_r.m4 (gl_TIME_R): Likewise.
73962
73963 2006-08-09  Karl Berry  <karl@gnu.org>
73964
73965         * config/srclist.txt: no more gettext-tools, per Bruno.
73966
73967 2006-08-08  Eric Blake  <ebb9@byu.net>
73968
73969         * modules/verror: New module.
73970         * MODULES.html.sh: Document it.
73971
73972 2006-08-08  Eric Blake  <ebb9@byu.net>
73973
73974         * lib/verror.h, lib/verror.c: New files.
73975
73976 2006-08-08  Eric Blake  <ebb9@byu.net>
73977
73978         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
73979         verror_at_line output complies with GNU Coding Standards even when
73980         file is NULL.
73981
73982 2006-08-07  Bruno Haible  <bruno@clisp.org>
73983
73984         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
73985         versions of AIX.
73986         Reported by Ralf Wildenhues.
73987
73988 2006-08-07  Bruno Haible  <bruno@clisp.org>
73989
73990         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
73991         in an AC_DEFUN. Needed so that the autoconf snippets can use
73992         AC_REQUIRE.
73993
73994 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73995
73996         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73997         Initialize pkgdata_DATA.
73998         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
73999         overriding it.
74000
74001 2006-08-06  Eric Blake  <ebb9@byu.net>
74002
74003         * lib/error.h: Fold in some upstream changes from glibc.
74004         * lib/error.c: Likewise.
74005
74006 2006-08-04  Bruno Haible  <bruno@clisp.org>
74007
74008         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74009         Make the mostlyclean-local rule depend on mostlyclean-generic.
74010         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
74011
74012 2006-07-31  Bruno Haible  <bruno@clisp.org>
74013
74014         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
74015         <stdlib.h>, <string.h>.
74016
74017 2006-07-30  Bruno Haible  <bruno@clisp.org>
74018
74019         * modules/readlink (License): Change to LGPL.
74020
74021 2006-07-30  Bruno Haible  <bruno@clisp.org>
74022
74023         * modules/javaversion (Makefile.am): Distribute javaversion.java and
74024         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
74025         set PKGDATADIR to point to it.
74026
74027 2006-07-30  Bruno Haible  <bruno@clisp.org>
74028
74029         * modules/csharpexec (configure.ac): Comment out macro invocation.
74030         * modules/javaexec (configure.ac): Likewise.
74031         * modules/javacomp-script (configure.ac): Likewise.
74032
74033         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
74034
74035 2006-07-30  Bruno Haible  <bruno@clisp.org>
74036
74037         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
74038         linked-list.
74039
74040 2006-07-30  Bruno Haible  <bruno@clisp.org>
74041
74042         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
74043
74044 2006-07-30  Bruno Haible  <bruno@clisp.org>
74045
74046         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74047         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
74048         get removed.
74049
74050 2006-07-29  Bruno Haible  <bruno@clisp.org>
74051
74052         Make it possible for gnulib-tool to work with locally modified or
74053         augmented gnulib repositories.
74054         * gnulib-tool (func_usage): Document --local-dir option.
74055         (local_gnulib_dir): New variable.
74056         Handle --local-dir option.
74057         (func_lookup_file): New function.
74058         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
74059         (func_get_description, func_get_filelist, func_get_description,
74060         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
74061         func_get_automake_snippet, func_get_include_directive,
74062         func_get_license, func_get_maintainer): Use func_lookup_file.
74063         (func_import, func_create_testdir): Use func_lookup_file.
74064
74065 2006-07-29  Bruno Haible  <bruno@clisp.org>
74066
74067         * modules/setenv (Depends-on): Add unistd.
74068
74069 2006-07-29  Bruno Haible  <bruno@clisp.org>
74070
74071         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
74072
74073 2006-07-29  Bruno Haible  <bruno@clisp.org>
74074
74075         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
74076
74077 2006-07-29  Bruno Haible  <bruno@clisp.org>
74078
74079         * gnulib-tool (import, update): If there is no Makefile.am, look at
74080         aclocal.m4, instead of bailing out.
74081
74082 2006-07-29  Bruno Haible  <bruno@clisp.org>
74083
74084         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
74085         Categorize the options by when they are useful.
74086
74087 2006-07-29  Bruno Haible  <bruno@clisp.org>
74088
74089         * gnulib-tool (func_usage): Document option --no-libtool.
74090         Handle option --no-libtool.
74091         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
74092         for changed semantics of $libtool variable.
74093         (func_import): Likewise. If libtool is not used, show this through
74094         an option --no-libtool.
74095         (func_create_testdir): Update.
74096
74097 2006-07-29  Bruno Haible  <bruno@clisp.org>
74098
74099         * gnulib-tool (func_import): Extend error message about missing
74100         --doc-base.
74101
74102 2006-07-29  Bruno Haible  <bruno@clisp.org>
74103
74104         * gnulib-tool (func_import): Don't create the $docbase directory if
74105         there is no file to store there.
74106
74107 2006-07-29  Bruno Haible  <bruno@clisp.org>
74108
74109         * gnulib-tool (autoconf_minversion): If a --dir option is given and
74110         relevant, look for configure.ac there, not in the current directory.
74111         Also use a simple search for AC_PREREQ, not "autoconf --trace".
74112
74113 2006-07-29  Bruno Haible  <bruno@clisp.org>
74114
74115         * gnulib-tool (SORT): New variable.
74116         (func_usage): Undocument --assume-autoconf option.
74117         Remove --assume-autoconf option handling.
74118         (autoconf_minversion): Determine from the contents of configure.ac.
74119         (func_import): Remove autoconf_minversion handling.
74120         Suggested by Eric Blake.
74121
74122 2006-07-29  Bruno Haible  <bruno@clisp.org>
74123
74124         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
74125
74126 2006-07-29  Bruno Haible  <bruno@clisp.org>
74127
74128         * config/srclist.txt (*setenv.[ch]): Remove rules.
74129
74130 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74131
74132         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
74133
74134 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74135
74136         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
74137         arpa/inet.h.
74138
74139 2006-07-28  Simon Josefsson  <jas@extundo.com>
74140
74141         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
74142         * modules/inet_pton (Depends-on): Likewise.
74143
74144 2006-07-28  Simon Josefsson  <jas@extundo.com>
74145
74146         * m4/netinet_in_h.m4: New file.
74147
74148 2006-07-28  Simon Josefsson  <jas@extundo.com>
74149
74150         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
74151         #include's.
74152
74153 2006-07-28  Simon Josefsson  <jas@extundo.com>
74154
74155         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
74156         #include's.
74157
74158 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
74159
74160         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
74161         setgid on directories only if they set these bits.
74162         * lib/modechange.h: Remove obsolete comment about masks.
74163
74164 2006-07-28  Eric Blake  <ebb9@byu.net>
74165
74166         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
74167         macro expansion.
74168
74169 2006-07-28  Bruno Haible  <bruno@clisp.org>
74170
74171         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
74172
74173 2006-07-28  Bruno Haible  <bruno@clisp.org>
74174
74175         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
74176
74177 2006-07-28  Bruno Haible  <bruno@clisp.org>
74178
74179         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
74180         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
74181         Define fallbacks.
74182         Avoids link error on FreeBSD 4.x.
74183         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74184
74185         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
74186         encoding.
74187         * lib/mbswidth.c (iswcntrl): Likewise.
74188
74189 2006-07-27  Bruno Haible  <bruno@clisp.org>
74190
74191         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
74192         test.
74193
74194 2006-07-27  Bruno Haible  <bruno@clisp.org>
74195
74196         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
74197         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
74198         defined.
74199
74200 2006-07-26  Eric Blake  <ebb9@byu.net>
74201
74202         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
74203
74204 2006-07-26  Eric Blake  <ebb9@byu.net>
74205
74206         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
74207         like mingw that lack mkstemp.
74208         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
74209         avoid compilation warning on mingw.
74210
74211 2006-07-26  Bruno Haible  <bruno@clisp.org>
74212
74213         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
74214         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
74215         INT_FAST*_MIN, INTPTR_MIN.
74216
74217 2006-07-25  Bruno Haible  <bruno@clisp.org>
74218
74219         * modules/version-etc (Depends-on): Add stdarg.
74220
74221 2006-07-25  Bruno Haible  <bruno@clisp.org>
74222
74223         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
74224         complex commands.
74225
74226 2006-07-25  Bruno Haible  <bruno@clisp.org>
74227
74228         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
74229         defined in <stdarg.h> or config.h.
74230
74231 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
74232
74233         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
74234         (gl_STDIO_SAFER): Remove.
74235
74236 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
74237
74238         * MODULES.html.sh (File stream based Input/Output):
74239         Add fopen-safer, tmpfile-safer; remove stdio-safer.
74240         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
74241         * modules/fopen-safer, modules/tmpfile-safer: New files.
74242         * modules/stdio-safer: Remove.
74243
74244 2006-07-24  Bruno Haible  <bruno@clisp.org>
74245
74246         * modules/tmpdir: New file.
74247         * MODULES.html.sh (File system functions): Add it.
74248
74249 2006-07-24  Bruno Haible  <bruno@clisp.org>
74250
74251         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
74252         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
74253
74254 2006-07-24  Bruno Haible  <bruno@clisp.org>
74255
74256         * modules/clean-temp: New file.
74257
74258 2006-07-24  Bruno Haible  <bruno@clisp.org>
74259
74260         * m4/tmpdir.m4: New file, from GNU gettext.
74261
74262 2006-07-24  Bruno Haible  <bruno@clisp.org>
74263
74264         * lib/tmpdir.h: New file, from GNU gettext.
74265         * lib/tmpdir.c: New file, from GNU gettext.
74266
74267 2006-07-24  Bruno Haible  <bruno@clisp.org>
74268
74269         * lib/clean-temp.h: New file, from GNU gettext.
74270         * lib/clean-temp.c: New file, from GNU gettext.
74271
74272 2006-07-23  Eric Blake  <ebb9@byu.net>
74273
74274         * modules/stdio-safer (Files): Add tmpfile-safer.c.
74275         (Depends-on): Add binary-io.
74276
74277 2006-07-23  Eric Blake  <ebb9@byu.net>
74278
74279         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
74280
74281 2006-07-23  Eric Blake  <ebb9@byu.net>
74282
74283         * lib/tmpfile-safer.c: New file.
74284         * lib/stdio-safer.h (fopen_safer): Add prototype.
74285         * lib/stdio--.h (tmpfile): Make safer.
74286
74287 2006-07-23  Bruno Haible  <bruno@clisp.org>
74288
74289         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
74290         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
74291         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
74292         gl_linked_remove_at): Use it.
74293
74294 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74295         and Simon Josefsson <jas@extundo.com>
74296
74297         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
74298
74299         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
74300
74301 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74302
74303         * modules/close-stream: New file.
74304         * modules/closeout (Description): Make it clear that it exits
74305         with a diagnostic on error.
74306         (Depends-on): Add close-stream.  Remove fpending, stdbool.
74307         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
74308
74309 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74310
74311         * m4/close-stream.m4: New file.
74312
74313 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74314
74315         * lib/close-stream.c, lib/close-stream.h: New files.
74316
74317 2006-07-22  Bruno Haible  <bruno@clisp.org>
74318
74319         Merge from GNU gettext 0.15.
74320
74321         2006-05-01  Bruno Haible  <bruno@clisp.org>
74322
74323                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
74324
74325         2006-07-22  Bruno Haible  <bruno@clisp.org>
74326
74327                 * modules/javaversion: New file.
74328                 * MODULES.html.sh (Java): Add javaversion.
74329
74330         2006-03-12  Bruno Haible  <bruno@clisp.org>
74331
74332                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
74333
74334         2005-12-04  Bruno Haible  <bruno@clisp.org>
74335
74336                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
74337                 (untested).
74338
74339         2006-06-21  Bruno Haible  <bruno@clisp.org>
74340
74341                 Avoid warnings from recent versions of mcs.
74342                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
74343                 -o, -L, -r any more. Use options documented since mcs-1.0
74344                 instead. Similarly for -g.
74345
74346         2005-12-04  Bruno Haible  <bruno@clisp.org>
74347
74348                 * build-aux/csharpcomp.sh.in: Suffix for resources is
74349                 .resources, not .resource.
74350
74351         2005-07-09  Bruno Haible  <bruno@clisp.org>
74352
74353                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
74354                 add a .dll suffix.
74355                 Reported by Mark Junker <mjscod@gmx.de>.
74356
74357         2006-07-22  Bruno Haible  <bruno@clisp.org>
74358
74359                 * modules/gettext: Upgrade to gettext-0.15.
74360                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
74361                 m4/visibility.m4.
74362                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
74363
74364 2006-07-22  Bruno Haible  <bruno@clisp.org>
74365
74366         Merge from GNU gettext 0.15.
74367
74368         2006-03-25  Bruno Haible  <bruno@clisp.org>
74369
74370                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
74371
74372         2006-07-21  Bruno Haible  <bruno@clisp.org>
74373
74374                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
74375                 "1.1".
74376
74377         2006-05-09  Bruno Haible  <bruno@clisp.org>
74378
74379                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
74380                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
74381                 for the conftestver execution.
74382
74383         2006-05-01  Bruno Haible  <bruno@clisp.org>
74384
74385                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
74386                 optional target-version argument. Verify that the compiler
74387                 groks source of the specified source-version, or add -source
74388                 option as necessary. Verify that the compiler produces
74389                 bytecode in the specified target-version, or add -target and
74390                 -source options as necessary. Make the result of the test
74391                 available as variable CONF_JAVAC. Also log error output in
74392                 config.log.
74393
74394         2006-03-11  Bruno Haible  <bruno@clisp.org>
74395
74396                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
74397
74398         2006-05-09  Bruno Haible  <bruno@clisp.org>
74399
74400                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
74401                 CLASSPATH_SEPARATOR to a semicolon.
74402
74403         2006-03-12  Bruno Haible  <bruno@clisp.org>
74404
74405                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
74406                 available as variable CONF_JAVA, for subsequent autoconf
74407                 tests. Also log error output in config.log.
74408
74409         2006-07-19  Bruno Haible  <bruno@clisp.org>
74410
74411                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
74412                 that getline works on glibc2 systems. Needed to avoid trouble
74413                 in relocatable.c.
74414                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
74415
74416         2005-12-04  Bruno Haible  <bruno@clisp.org>
74417
74418                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
74419                 launcher (untested).
74420
74421         2005-12-04  Bruno Haible  <bruno@clisp.org>
74422
74423                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
74424
74425         2006-07-22  Bruno Haible  <bruno@clisp.org>
74426
74427                 * gettext.m4: Update from GNU gettext-0.15.
74428                 * nls.m4: Likewise.
74429                 * po.m4: Likewise.
74430                 * inttypes-pri.m4: Likewise.
74431                 * inttypes-h.m4: Renamed from inttypes.m4.
74432                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
74433
74434 2006-07-22  Bruno Haible  <bruno@clisp.org>
74435
74436         Merge from GNU gettext 0.15.
74437
74438         2005-07-05  Bruno Haible  <bruno@clisp.org>
74439
74440                 * printf-args.c (printf_fetchargs): Work around broken
74441                 definition of wint_t on mingw.
74442
74443         2005-02-12  Bruno Haible  <bruno@clisp.org>
74444
74445                 * xallocsa.h: Add extern "C" for C++.
74446
74447         2006-05-17  Bruno Haible  <bruno@clisp.org>
74448
74449                 Cygwin portability.
74450                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
74451
74452         2006-04-30  Bruno Haible  <bruno@clisp.org>
74453
74454                 * progreloc.c: Include <mach-o/dyld.h> if available.
74455                 (find_executable): Use _NSGetExecutablePath when possible.
74456
74457         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74458
74459                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
74460                 function.
74461
74462         2005-12-29  Bruno Haible  <bruno@clisp.org>
74463
74464                 * progreloc.c (set_program_name_and_installdir): Fix
74465                 compilation error.
74466
74467         2005-12-04  Bruno Haible  <bruno@clisp.org>
74468
74469                 Cygwin portability.
74470                 * progreloc.c: Include <windows.h> also on Cygwin.
74471                 (find_executable): Add support for Cygwin.
74472                 (set_program_name_and_installdir): Handle also platforms with
74473                 nonempty EXEEXT.
74474
74475         2006-07-11  Bruno Haible  <bruno@clisp.org>
74476
74477                 * javacomp.c: Fix a comment.
74478                 Reported by Jim Meyering.
74479
74480         2006-04-30  Bruno Haible  <bruno@clisp.org>
74481
74482                 * javacomp.h (compile_java_class): Add source_version,
74483                 target_version arguments.
74484                 * javacomp.c: Rewritten to choose only a compiler that
74485                 respects the specified source_version and target_version.
74486
74487         2006-06-27  Bruno Haible  <bruno@clisp.org>
74488
74489                 Assume correct S_ISDIR macro.
74490                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
74491
74492         2006-07-22  Bruno Haible  <bruno@clisp.org>
74493
74494                 * javaversion.h: New file, from GNU gettext.
74495                 * javaversion.c: New file, from GNU gettext.
74496                 * javaversion.java: New file, from GNU gettext.
74497                 * javaversion.class: New file, from GNU gettext.
74498
74499         2006-05-17  Bruno Haible  <bruno@clisp.org>
74500
74501                 Cygwin portability.
74502                 * javaexec.c (execute_java_class): Test for jview program
74503                 also on Cygwin.
74504
74505         2006-04-09  Bruno Haible  <bruno@clisp.org>
74506
74507                 * fatal-signal.c: Don't include string.h.
74508                 (at_fatal_signal): Use a copying loop instead of memcpy.
74509
74510         2005-12-04  Bruno Haible  <bruno@clisp.org>
74511
74512                 * csharpexec.c: Add support for 'clix' launcher (untested).
74513                 (execute_csharp_using_sscli): New function.
74514                 (execute_csharp_program): Call it.
74515
74516         2006-06-21  Bruno Haible  <bruno@clisp.org>
74517
74518                 Avoid warnings from recent versions of mcs.
74519                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
74520                 -o, -L, -r any more. Use options documented since mcs-1.0
74521                 instead. Similarly for -g.
74522
74523         2005-07-09  Bruno Haible  <bruno@clisp.org>
74524
74525                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
74526                 add a .dll suffix.
74527                 Reported by Mark Junker <mjscod@gmx.de>.
74528
74529         2006-06-17  Bruno Haible  <bruno@clisp.org>
74530
74531                 * config.charset: Update for NetBSD 3.0.
74532
74533         2006-05-17  Bruno Haible  <bruno@clisp.org>
74534
74535                 Cygwin portability.
74536                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
74537
74538         2006-05-16  Bruno Haible  <bruno@clisp.org>
74539
74540                 * localcharset.c [CYGWIN]: Include <windows.h>.
74541                 (get_charset_aliases): For Cygwin, return the same CPxxx
74542                 aliases list as under WIN32.
74543                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
74544                 the environment variables. Fall back to GetACP().
74545
74546         2006-04-05  Bruno Haible  <bruno@clisp.org>
74547
74548                 * config.charset: Update Juan Manuel Guerrero's address.
74549
74550         2005-02-12  Bruno Haible  <bruno@clisp.org>
74551
74552                 * allocsa.h: Add extern "C" for C++.
74553
74554         2005-02-10  Bruno Haible  <bruno@clisp.org>
74555
74556                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
74557                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
74558
74559         2006-07-22  Bruno Haible  <bruno@clisp.org>
74560
74561                 * gettext.h: Update to GNU gettext-0.15.
74562
74563 2006-07-22  Bruno Haible  <bruno@clisp.org>
74564
74565         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
74566         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
74567         lib-prefix.m4, longdouble.m4, ssize_t.m4.
74568
74569 2006-07-21  Eric Blake  <ebb9@byu.net>
74570
74571         * modules/stdlib-safer: New file.
74572         * MODULES.html.sh (File stream based Input/Output): Add
74573         stdlib-safer.
74574
74575 2006-07-21  Eric Blake  <ebb9@byu.net>
74576
74577         * lib/stdlib-safer.h: New file from coreutils, required by
74578         stdlib--.h.
74579
74580 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
74581
74582         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
74583
74584 2006-07-20  Bruno Haible  <bruno@clisp.org>
74585
74586         * gnulib-tool: Recognize new option --assume-autoconf.
74587         (autoconf_minversion): New variable.
74588         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
74589
74590 2006-07-20  Bruno Haible  <bruno@clisp.org>
74591
74592         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
74593
74594 2006-07-19  Derek R. Price  <derek@ximbiot.com>
74595
74596         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
74597         Reindent and repaginate.
74598
74599 2006-07-19  Derek Price  <derek@ximbiot.com>
74600
74601         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
74602         Correct grammar.
74603
74604 2006-07-17  Bruno Haible  <bruno@clisp.org>
74605
74606         * modules/list: New file.
74607         * modules/array-list: New file.
74608         * modules/carray-list, modules/carray-list-tests: New files.
74609         * modules/linked-list, modules/linked-list-tests: New files.
74610         * modules/avltree-list, modules/avltree-list-tests: New files.
74611         * modules/rbtree-list, modules/rbtree-list-tests: New files.
74612         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
74613         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
74614         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
74615         * modules/oset: New file.
74616         * modules/array-oset: New file.
74617         * modules/avltree-oset, modules/avltree-oset-tests: New files.
74618         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
74619         * tests/test-carray_list.c: New file.
74620         * tests/test-linked_list.c: New file.
74621         * tests/test-avltree_list.c: New file.
74622         * tests/test-rbtree_list.c: New file.
74623         * tests/test-linkedhash_list.c: New file.
74624         * tests/test-avltreehash_list.c: New file.
74625         * tests/test-rbtreehash_list.c: New file.
74626         * tests/test-avltree_oset.c: New file.
74627         * tests/test-rbtree_oset.c: New file.
74628         * MODULES.html.sh (Container data structures): New section.
74629
74630 2006-07-17  Bruno Haible  <bruno@clisp.org>
74631
74632         * m4/gl_list.m4: New file.
74633
74634 2006-07-17  Bruno Haible  <bruno@clisp.org>
74635
74636         * lib/gl_list.h: New file.
74637         * lib/gl_list.c: New file.
74638         * lib/gl_array_list.h: New file.
74639         * lib/gl_array_list.c: New file.
74640         * lib/gl_carray_list.h: New file.
74641         * lib/gl_carray_list.c: New file.
74642         * lib/gl_linked_list.h: New file.
74643         * lib/gl_linked_list.c: New file.
74644         * lib/gl_anylinked_list1.h: New file.
74645         * lib/gl_anylinked_list2.h: New file.
74646         * lib/gl_avltree_list.h: New file.
74647         * lib/gl_avltree_list.c: New file.
74648         * lib/gl_anyavltree_list1.h: New file.
74649         * lib/gl_anyavltree_list2.h: New file.
74650         * lib/gl_rbtree_list.h: New file.
74651         * lib/gl_rbtree_list.c: New file.
74652         * lib/gl_anyrbtree_list1.h: New file.
74653         * lib/gl_anyrbtree_list2.h: New file.
74654         * lib/gl_anytree_list1.h: New file.
74655         * lib/gl_anytree_list2.h: New file.
74656         * lib/gl_linkedhash_list.h: New file.
74657         * lib/gl_linkedhash_list.c: New file.
74658         * lib/gl_anyhash_list1.h: New file.
74659         * lib/gl_anyhash_list2.h: New file.
74660         * lib/gl_avltreehash_list.h: New file.
74661         * lib/gl_avltreehash_list.c: New file.
74662         * lib/gl_rbtreehash_list.h: New file.
74663         * lib/gl_rbtreehash_list.c: New file.
74664         * lib/gl_anytreehash_list1.h: New file.
74665         * lib/gl_anytreehash_list2.h: New file.
74666
74667         * lib/gl_oset.h: New file.
74668         * lib/gl_oset.c: New file.
74669         * lib/gl_array_oset.h: New file.
74670         * lib/gl_array_oset.c: New file.
74671         * lib/gl_avltree_oset.h: New file.
74672         * lib/gl_avltree_oset.c: New file.
74673         * lib/gl_rbtree_oset.h: New file.
74674         * lib/gl_rbtree_oset.c: New file.
74675         * lib/gl_anytree_oset.h: New file.
74676
74677 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
74678
74679         * m4/mkancesdirs.m4: New file.
74680         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
74681         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
74682         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
74683         it.
74684
74685 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
74686
74687         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
74688         * lib/mkancesdirs.h: New files.
74689         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
74690         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
74691         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
74692         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
74693         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
74694         callers changed.  Revamp internals significantly, by not
74695         attempting to create directories that are temporarily more
74696         permissive than the final results.  Do not attempt to use
74697         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
74698         This removes some race conditions, fixes some bugs, and simplifies
74699         things.  Use new dirchownmod function to do owner and mode changes.
74700         * lib/mkdir-p.h: Likewise.
74701         * lib/modechange.c (octal_to_mode): New function.
74702         (struct mode_change): New member mentioned.
74703         (make_node_op_equals): New arg mentioned.  All callers changed.
74704         (mode_compile): Keep track of which mode bits the user has explicitly
74705         mentioned.
74706         (mode_adjust): New arg DIR, so that we implement the X op correctly.
74707         New arg PMODE_BITS, to keep track of which mode bits the user
74708         mentioned; it treats S_ISUID and S_ISGID speciall.
74709         All callers changed.
74710         * lib/modechange.h: Likewise.
74711
74712 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
74713
74714         * MODULES.html.sh: Add mkancestors.
74715         * modules/mkancesdirs: New module.
74716         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
74717         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
74718         The chdir-safer and afs files are now orphans; I'll remove them
74719         unless someone speaks up.
74720         Add lib/dirchownmod.c, lib/dirchownmod.h.
74721         (Depends-on): Remove alloca, chown, save-cwd, dirname.
74722         Add lchown, mkancesdirs.
74723         (Maintainer): Add self.
74724
74725 2006-07-15  Karl Berry  <karl@gnu.org>
74726
74727         * gnulib-tool: help message wording/arrangement.
74728
74729 2006-07-14  Simon Josefsson  <jas@extundo.com>
74730
74731         * doc/gnulib.texi (Libtool and Windows): New section.
74732
74733 2006-07-12  Simon Josefsson  <jas@extundo.com>
74734
74735         * modules/gendocs (License): Fix license, approved by Karl.
74736
74737 2006-07-12  Eric Blake  <ebb9@byu.net>
74738
74739         * MODULES.html.sh: Add gendocs.
74740
74741 2006-07-11  Eric Blake  <ebb9@byu.net>
74742
74743         * modules/fdl: New module, to install doc/fdl.texi.
74744         * MODULES.html.sh: Add new section for documentation modules.
74745         * gnulib-tool: Avoid space-tab.
74746         (--doc-base): New option, to manage files from doc.
74747
74748 2006-07-11  Eric Blake  <ebb9@byu.net>
74749
74750         * m4/absolute-header.m4: Fix comments to match recent change.
74751
74752 2006-07-11  Eric Blake  <ebb9@byu.net>
74753
74754         * gnulib-tool: List --doc-base before --tests-base.
74755
74756 2006-07-11  Derek R. Price  <derek@ximbiot.com>
74757
74758         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
74759
74760 2006-07-11  Bruno Haible  <bruno@clisp.org>
74761
74762         * README: Mention where to put documentation.
74763
74764 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74765
74766         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
74767
74768 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
74769
74770         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
74771         to stdint.m4.
74772
74773 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
74774
74775         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
74776         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
74777         "no/such/file/stdint.h" when there is no such file, so that
74778         the resulting C code can be parsed by dodgy compilers.
74779         Problems reported by Bob Proulx.
74780
74781 2006-07-10  Derek R. Price  <derek@ximbiot.com>
74782
74783         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
74784         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
74785         macros into the GNU _D_EXACT_NAMLEN.
74786         * lib/savedir.c:  Likewise.
74787         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
74788
74789 2006-07-10  Derek R. Price  <derek@ximbiot.com>
74790         and Paul Eggert  <eggert@cs.ucla.edu>
74791
74792         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
74793         * m4/savedir.m4:
74794         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
74795         macros into the GNU _D_EXACT_NAMLEN.
74796
74797 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74798
74799         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
74800         around the absolute name, to work around a problem with the HP-UX
74801         11.23 native C compiler, reported by Bob Proulx.
74802
74803 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74804
74805         * doc/maintain.texi, make-stds.texi: Sync from
74806         <http://savannah.gnu.org/projects/gnustandards>.
74807
74808 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74809
74810         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
74811
74812 2006-07-09  Jim Meyering  <jim@meyering.net>
74813
74814         * m4/glob.m4: Remove a doubled word in a comment.
74815
74816 2006-07-09  Jim Meyering  <jim@meyering.net>
74817
74818         * lib/argp-pv.c: Remove a doubled word in a comment.
74819         * lib/check-version.c (check_version): Likewise.
74820         * lib/javacomp.c (compile_java_class): Likewise.
74821
74822 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
74823
74824         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
74825         for the benefit of people using Autoconf 2.60.  If you want to
74826         support older Autoconf versions you can copy m4/onceonly_2_57.m4
74827         (or m4/onceonly.m4, if pre-2.57) manually.
74828
74829 2006-07-08  Jim Meyering  <jim@meyering.net>
74830
74831         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
74832         comment.
74833         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
74834         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
74835         comment.
74836
74837 2006-07-08  Jim Meyering  <jim@meyering.net>
74838
74839         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
74840
74841 2006-07-07  Simon Josefsson  <jas@extundo.com>
74842
74843         * tests/test-crc.c: Change expected crc value, the test vector
74844         were probably computed using the old broken crc.c?
74845
74846 2006-07-06  Simon Josefsson  <jas@extundo.com>
74847
74848         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
74849         now the canonical place for the M4 file).
74850
74851         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
74852         from the sys_socket dependency now.
74853
74854         * modules/inet_pton (Files): Ditto.
74855
74856         * modules/inet_ntop (Files): Ditto.
74857
74858 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74859
74860         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
74861         not gl_PREREQ_GETUSERSHELL.
74862
74863 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74864
74865         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
74866         with only one argument, for Autoconf 2.60.
74867         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
74868         expand to nothing, so add a shell command to avoid syntax error.
74869         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
74870
74871 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74872
74873         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
74874
74875 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74876
74877         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
74878         no longer needed.  Check for isblank decl.
74879         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
74880         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
74881         of existence.
74882
74883 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74884
74885         * lib/getloadavg.c: Use __VMS, not VMS.
74886         * lib/getopt.c: Likewise.
74887         * lib/getpagesize.h: Likewise.
74888         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
74889         and probably does not work.
74890
74891 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74892
74893         * lib/.cppi-disable: Add wcwidth.
74894         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
74895         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
74896         (ISGRAPH): Remove.  All uses changed to isgraph.
74897         (FOLD) [!defined _LIBC]: Remove special case.
74898         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
74899         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
74900         HAVE_ISBLANK.
74901         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
74902         case.
74903
74904 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
74905
74906         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
74907         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
74908         brackets.  Other minor changes to suppress some compiler
74909         warnings.
74910
74911 2006-07-06  Derek R. Price  <derek@ximbiot.com>
74912         and Paul Eggert  <eggert@cs.ucla.edu>
74913
74914         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
74915         of invoking obsolescent AC_HEADER_DIRENT macro.
74916         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
74917         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
74918         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
74919         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
74920         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
74921         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74922         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
74923         * m4/readdir.m4: Remove; no longer needed.
74924
74925 2006-07-06  Derek R. Price  <derek@ximbiot.com>
74926         and Paul Eggert  <eggert@cs.ucla.edu>
74927
74928         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
74929         Don't worry about this obsolete case any more.
74930         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
74931         directories.
74932         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
74933         worry about this obsolete case any more.
74934         * lib/fts.c: Likewise.
74935         * lib/getcwd.c: Likewise.
74936         * lib/glob.h: Likewise.
74937         * lib/savedir.c: Likewise.
74938
74939 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
74940
74941         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
74942         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
74943         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
74944         needed.
74945         All uses removed.
74946         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
74947         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
74948         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
74949         needed.
74950         * m4/getdate.m4 (gl_GETDATE): Likewise.
74951         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
74952         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
74953         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
74954         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
74955         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
74956         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74957         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
74958         needed.
74959
74960 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
74961
74962         * lib/memcasecmp.c: Include <limits.h>.
74963         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
74964         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
74965         Don't assume isdigit succeeds only on '0' through '9'.
74966
74967 2006-07-05  Eric Blake  <ebb9@byu.net>
74968
74969         * modules/getaddrinfo (Depends-on): Add snprintf.
74970
74971 2006-07-05  Eric Blake  <ebb9@byu.net>
74972
74973         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
74974         to avoid 'header present but could not be compiled' on cygwin.
74975
74976 2006-07-05  Eric Blake  <ebb9@byu.net>
74977
74978         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
74979         missing from netdb.h.
74980         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
74981
74982 2006-07-05  Derek R. Price  <derek@ximbiot.com>
74983
74984         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
74985         no longer needed.
74986         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
74987         * m4/getdate.m4 (gl_GETDATE): Likewise.
74988         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
74989         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
74990         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
74991         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
74992         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74993
74994 2006-07-05  Derek R. Price  <derek@ximbiot.com>
74995
74996         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
74997         All uses of is_space replaced by isspace.
74998         * lib/exit.h: Don't talk about STDC_HEADERS.
74999         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
75000         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
75001         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
75002         replaced by isprint etc.
75003         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
75004         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75005         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
75006         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
75007         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
75008         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75009
75010 2006-07-05  Bruno Haible  <bruno@clisp.org>
75011
75012         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
75013         the function exists, before testing against AIX.
75014         Reported by Martin Lambers <marlam@marlam.de>.
75015
75016 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75017
75018         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
75019         From Mark D. Baushke.
75020
75021 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75022
75023         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
75024         to the absolute name, not just one, to bypass Sun C 5.8's
75025         "warning: #include of /usr/include/... may be non-portable".
75026
75027 2006-07-04  Eric Blake  <ebb9@byu.net>
75028
75029         * modules/dirname-tests: New test module.
75030         * tests/test-dirname.c: New file, replacing dirname.c
75031         TEST_DIRNAME section that was recently deleted.
75032
75033 2006-07-04  Bruno Haible  <bruno@clisp.org>
75034
75035         Assume ANSI C header files and <ctype.h> functions.
75036         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
75037         (mbsnwidth): Use isprint, iscntrl instead.
75038
75039 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75040
75041         Merge from coreutils.
75042         * MODULES.html.sh: Add xstrtold.
75043         * modules/xstrtold: New file.
75044         * modules/cycle-check (Files): Add lib/same-inode.h.
75045         * modules/dirname (Files): Add m4/double-slash-root.m4.
75046         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
75047         * modules/mkdir-p (Files): Add lib/same-inode.h.
75048         * modules/same (Files): Add lib/same-inode.h.
75049
75050 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75051
75052         * m4/absolute-header.m4: Renamed from full-header-path.m4.
75053         This is to keep the terminology clean; POSIX talks about
75054         "absolute pathnames", not "full pathnames", but the GNU
75055         Coding Standards say to use "path" for something else;
75056         so use "absolute" to keep both sides happy.
75057         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
75058         Set gl_absolute_header, not gl_full_header_path.
75059         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
75060         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
75061         All uses changed.
75062
75063         Merge from coreutils.
75064
75065         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75066
75067         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
75068         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
75069         want to require the building of c-strtod.o.
75070         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
75071         needs -lm directly.
75072         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
75073
75074         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
75075
75076         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
75077         --as-needed option if available.  Problem reported by Albert Chin in
75078         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
75079         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
75080         cc merely issues a bunch of annoying warnings for --as-needed
75081         (this problem was reported by Bob Proulx).  Also, try linking with
75082         -lm to detect a bug in binutils 2.16 (this problem was reported
75083         by Ralf Wildenhues).
75084
75085         2006-06-18  Jim Meyering  <jim@meyering.net>
75086
75087         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
75088         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
75089         macro.
75090         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
75091         also check for glibc-2.4's abort-inducing bug.
75092
75093         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
75094         Low-probability clean-up should be to use rmdir to get rid of
75095         the just-created directory, not unlink.
75096
75097         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
75098         configure fail, and request a bug report to inform us about it.
75099         Add a comment that, barring reports to the contrary, in 2007 we'll
75100         assume ftruncate is universally available.
75101
75102         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75103
75104         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
75105
75106         2006-03-12  Jim Meyering  <jim@meyering.net>
75107
75108         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
75109         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
75110         * m4/same.m4 (gl_SAME): Likewise.
75111         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
75112
75113         2006-03-11  Eric Blake  <ebb9@byu.net>
75114
75115         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
75116         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
75117         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
75118         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
75119
75120 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75121
75122         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
75123         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
75124         reported by Mark D. Baushke, one in
75125         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
75126
75127         Merge from coreutils.
75128
75129         * lib/.cppi-disable: Add stdint_.h.
75130         * lib/.cvsignore: Add stdint.h.
75131
75132         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75133
75134         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
75135         both double and long double versions.
75136         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
75137         * lib/xstrtold.c: New file.
75138         * lib/xstrtod.h (xstrtold): New decl.
75139
75140         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75141
75142         * lib/filemode.c (setst): Remove.
75143         (strmode): Rewrite to avoid setst.  This makes the code shorter,
75144         (arguably) clearer, and the generated code is a bit smaller on my
75145         Debian GNU/Linux stable x86 host.
75146
75147         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75148
75149         * lib/filemode.c: Include "filemode.h" first, to test the interface.
75150         Assume that filemode.h includes sys/types.h and sys/stat.h.
75151         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
75152         (ftypelet): Reorder to put common cases first, for efficiency.
75153         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
75154         to do 'M'.
75155         (strmode): Renamed from mode_string, and now stores 12 bytes instead
75156         of 10, for compatibility with FreeBSD.  All callers changed.
75157         (filemodestring): Now stores 12 bytes instead of 10, and sets file
75158         types that can't be deduced solely from st_mode.  First arg is now a
75159         const pointer.
75160         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
75161         (strmode): Renamed from mode_string.
75162         (filemodestring): New decl.
75163         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
75164         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
75165         needed.
75166         (S_ISPORT, S_ISWHT): New macros, if not already defined.
75167
75168         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
75169
75170         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
75171         fsusage.h now does that.  Include fsusage.h first, to test interface.
75172         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
75173         at most one method (the old code could have generated decls that
75174         didn't conform to C89, not that this was ever exercised).
75175         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
75176
75177         2006-03-19  Jim Meyering  <jim@meyering.net>
75178
75179         Work even in a chroot where d_ino values for entries in "/"
75180         don't match the stat.st_ino values for the same names.
75181         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
75182         number, iterate through all entries again, using lstat instead.
75183         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
75184         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
75185
75186         * lib/getcwd.c (__getcwd): Clarify a comment.
75187         Use memcpy in place of a call to strcpy.
75188
75189         2006-03-12  Jim Meyering  <jim@meyering.net>
75190
75191         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
75192         matches that of the current directory (which we're about to chdir ".."
75193         out of), then save the dev-ino of the parent, instead.
75194
75195         * lib/same-inode.h (SAME_INODE): New file/macro.
75196         * lib/chdir-safer.c (SAME_INODE): Remove definition.
75197         Include "same-inode.h", instead.
75198         * lib/same.c: Likewise.
75199         * lib/cycle-check.h: Include "same-inode.h".
75200         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
75201         * lib/cycle-check.c (SAME_INODE): Remove definition.
75202         * lib/root-dev-ino.h: Include "same-inode.h".
75203
75204         2006-03-11  Eric Blake  <ebb9@byu.net>
75205
75206         * lib/same.c (same_name): s/base_name/last_component/
75207         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
75208         * lib/filenamecat.c (file_name_concat): Likewise.
75209
75210         2006-03-11  Eric Blake  <ebb9@byu.net>,
75211                     Paul Eggert  <eggert@cs.ucla.edu>
75212
75213         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
75214         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
75215         drive prefix.
75216         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
75217         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
75218         (last_component): New method.
75219         * lib/dirname.c (dir_len): Determine when drive letters need a
75220         subsequent slash.  Preserve // when it is special.
75221         (dir_name): Don't append dot when drive letter is absolute.
75222         [TEST_DIRNAME]: Move into a full-blown gnulib test.
75223         * lib/basename.c (base_name): New semantics - malloc the result.
75224         Preserve // when it is special.  Preserve relative files that look
75225         like drive letters.
75226         (base_len): Preserve // when it is special.
75227         (last_component): New method, similar to old base_name semantics.
75228         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
75229         base_name.  Strip redundant slashes from ///.
75230
75231 2006-07-03  Jim Meyering  <jim@meyering.net>
75232
75233         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
75234         macro is used before the first cycle_check call.
75235
75236 2006-07-03  Eric Blake  <ebb9@byu.net>
75237
75238         * modules/dirname (Depends-on): Add xstrndup.
75239
75240 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
75241
75242         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
75243         test cases, so that config.log is a bit easier to follow.
75244
75245 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
75246
75247         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
75248         both are 64 bits, since this seems to be the tradition, and this
75249         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
75250         we ever run into a host that prefers long long to long in this
75251         case, we'll need another configure-time test.  Problem reported by
75252         Jim Meyering.
75253
75254 2006-07-02  Eric Blake  <ebb9@byu.net>
75255
75256         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
75257
75258 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75259
75260         * modules/inttypes (Depends-on): No longer depends on stdint.
75261         * modules/stdint (Description): Say more about assumptions.
75262         Say that the fast types might differ.  Say macros are used.
75263         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
75264         (Makefile.am): Revise list of substituted symbols to match
75265         new stdint.m4.
75266         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
75267         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
75268         * tests/test-stdint.c (verify_same_types)
75269         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
75270         the code conforms to C99/C89.
75271         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
75272         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
75273
75274 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75275
75276         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
75277         but fix a bug, by requiring at least 64 bits.
75278         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
75279         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
75280         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
75281         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75282
75283         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
75284         changes.  Make 2.59 a prerequisite.  Check and substitute for
75285         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
75286         inttypes.h.  Do not use special include files; just use the
75287         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
75288         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
75289         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
75290         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
75291         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
75292         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
75293         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
75294         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
75295         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
75296         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
75297         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
75298         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
75299         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
75300         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
75301         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
75302         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
75303         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
75304         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
75305         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
75306         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
75307         WINT_MAX.  Check for C99 conformance more strictly, by detecting
75308         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
75309         not check for things that C99 does not require, e.g., int8_t.  If
75310         a test isn't needed unless <stdint.h> isn't working, and is
75311         unlikely to be needed for any other reason, then don't do it
75312         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
75313         size_t, since we assume C89 freestanding at least.  Do not check
75314         for sig_atomic_t, wchar_t, or wint_t, since the code now does
75315         the right thing even if the types are not defined.  Instead use:
75316         (gl_STDINT_TYPE_PROPERTIES): New macro.
75317         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
75318         testing whether <sys/types.h> clashes, as Autoconf does this for
75319         us now.  All uses removed.
75320         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
75321         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
75322         (gl_CHECK_TYPE_SAME):
75323         Remove; no longer needed.
75324         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
75325         exists, since we'll return 0 anyway in that case.
75326         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
75327
75328 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75329
75330         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
75331         possible collision with system files.
75332         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
75333         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
75334         WCHAR_MIN and WCHAR_MAX in this case.
75335         (<stddef.h>): Do not include; no longer needed.
75336         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
75337         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
75338         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
75339         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
75340         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
75341         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
75342         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
75343         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
75344         !defined(__c99))]: Include in this case too, since it's harmless
75345         now.
75346         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
75347         dangerous to do so.
75348         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
75349         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
75350         (_STDINT_MIN, _STDINT_MAX): New macros.
75351         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
75352         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
75353         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
75354         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
75355         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
75356         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
75357         macros, not typedefs; this simplifies things quite a bit.
75358         Use long int for all types narrower than int64_t.
75359         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
75360         Define in terms of long long int or int64_t or long int,
75361         not int64_t or int32_t.  This saves some compile-time testing.
75362         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
75363         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
75364         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
75365         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
75366         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
75367         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
75368         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
75369         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
75370         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
75371         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
75372         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
75373         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
75374         undef any previous version and define our own version, for
75375         simplicity and consistency with the new macros for types.
75376         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
75377         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
75378         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
75379         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
75380         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
75381         @WINT_T_SUFFIX@ to keep things simple here.
75382         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
75383         Simplify by assuming typical 8/16/32/64 host, since we're
75384         already doing that elsewhere anyway.
75385         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
75386         and assume long long int is 64 bits if available.  This
75387         speeds up 'configure'.
75388
75389 2006-07-01  Eric Blake  <ebb9@byu.net>
75390
75391         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
75392         Reported by Andreas Buening.
75393
75394 2006-07-01  Eric Blake  <ebb9@byu.net>
75395
75396         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
75397
75398 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75399
75400         * lib/getaddrinfo.c: fixed typo
75401
75402 2006-06-29  Jim Meyering  <jim@meyering.net>
75403
75404         * modules/strftime (Maintainer): Add my name, since with the
75405         FPRINTFTIME changes strftime.c has forked from glibc.
75406
75407 2006-06-29  Eric Blake  <ebb9@byu.net>
75408
75409         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
75410
75411 2006-06-29  Eric Blake  <ebb9@byu.net>
75412
75413         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
75414
75415 2006-06-29  Eric Blake  <ebb9@byu.net>
75416
75417         * lib/stat_.h: New file.
75418
75419 2006-06-29  Eric Blake  <ebb9@byu.net>
75420
75421         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
75422         unused static function.
75423
75424 2006-06-29  Eric Blake  <ebb9@byu.net>
75425
75426         * doc/functions.texi (Function Portability): Document missing lstat
75427         on mingw.
75428
75429 2006-06-29  Eric Blake  <ebb9@byu.net>
75430
75431         * MODULES.html.sh: Add sys_stat.
75432         * modules/sys_stat: New module.
75433         * modules/mkstemp (Depends-on): Add sys_stat.
75434
75435 2006-06-29  Derek R. Price  <derek@ximbiot.com>
75436
75437         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
75438
75439 2006-06-29  Derek R. Price  <derek@ximbiot.com>
75440
75441         * m4/c-bs-a.m4: Removed.
75442
75443 2006-06-29  Derek R. Price  <derek@ximbiot.com>
75444
75445         * lib/strftime.c: Assume strftime() exists.
75446
75447 2006-06-29  Derek Price  <derek@ximbiot.com>
75448
75449         * modules/c-bs-a: Removed - \a is C89.
75450         * MODULES.html.sh: Remove c-bs-a.
75451
75452 2006-06-29  Bruno Haible  <bruno@clisp.org>
75453
75454         * modules/wcwidth (License): Change to LGPL.
75455
75456 2006-06-28  Simon Josefsson  <jas@extundo.com>
75457
75458         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
75459         on _WIN32.
75460
75461         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
75462         getnameinfo.
75463
75464 2006-06-28  Simon Josefsson  <jas@extundo.com>
75465
75466         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
75467
75468 2006-06-28  Simon Josefsson  <jas@extundo.com>
75469
75470         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
75471         functions there.  It will succeed on Windows XP, but on Windows
75472         2000 and (presumably) earlier, it will fail, and use the internal
75473         re-implementation.
75474         (use_win32_p): New function.
75475         (getaddrinfo): Use strtoul on servname, to support numeric ports.
75476         Support AI_NUMERICSERV to disable getservbyname.
75477         (getnameinfo): New function, only supports
75478         NI_NUMERICHOST|NI_NUMERICSERV for now.
75479
75480         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
75481         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
75482         getnameinfo.
75483
75484 2006-06-28  Eric Blake  <ebb9@byu.net>
75485
75486         * modules/wcwidth: New file.
75487         * modules/mbchar (Depends-on): Add wcwidth.
75488         * modules/mbswidth (Depends-on): Add wcwidth.
75489         * MODULES.html.sh: Add wcwidth.
75490
75491 2006-06-28  Eric Blake  <ebb9@byu.net>
75492
75493         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
75494         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
75495
75496 2006-06-28  Eric Blake  <ebb9@byu.net>
75497
75498         * lib/xvasprintf.h: Fix comments.
75499
75500 2006-06-28  Eric Blake  <ebb9@byu.net>
75501
75502         * lib/mbchar.h (wcwidth): Include wcwidth.h.
75503         * lib/mbswidth.c (wcwidth): Move from here...
75504         * lib/wcwidth.h: ...to this new file.
75505
75506 2006-06-28  Derek R. Price  <derek@ximbiot.com>
75507
75508         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
75509
75510         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
75511         it's obsolete.
75512         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
75513
75514 2006-06-28  Derek R. Price  <derek@ximbiot.com>
75515
75516         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
75517         Autoconf 2.60 says this stuff was obsolete.
75518
75519 2006-06-28  Bruno Haible  <bruno@clisp.org>
75520
75521         * modules/wcwidth (Files): Add m4/wchar_t.m4.
75522
75523 2006-06-28  Bruno Haible  <bruno@clisp.org>
75524
75525         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
75526         gt_TYPE_WCHAR_T.
75527
75528 2006-06-28  Bruno Haible  <bruno@clisp.org>
75529
75530         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
75531         declaration for wcwidth.
75532         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
75533
75534 2006-06-28  Bruno Haible  <bruno@clisp.org>
75535
75536         * lib/mkdtemp.c [MINGW]: Include <io.h>.
75537         (mkdir): Define using _mkdir.
75538
75539 2006-06-28  Bruno Haible  <bruno@clisp.org>
75540
75541         * lib/getaddrinfo.h: Fix POSIX URL.
75542         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
75543         _WIN32.
75544         (use_win32_p): Make static.
75545         (getaddrinfo): Reject service name if it is empty or does not consist
75546         solely of decimal digits, or if its value is > 65535.
75547         (getnameinfo): Remove useless casts.
75548
75549 2006-06-27  Simon Josefsson  <jas@extundo.com>
75550
75551         * modules/sys_select: New file, suggested by Bruno Haible, Paul
75552         Eggert and Martin Lambers.
75553
75554 2006-06-27  Simon Josefsson  <jas@extundo.com>
75555
75556         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
75557         Eggert and Martin Lambers.
75558
75559 2006-06-27  Bruno Haible  <bruno@clisp.org>
75560
75561         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
75562         result to 0, not to empty.
75563         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
75564
75565 2006-06-27  Bruno Haible  <bruno@clisp.org>
75566
75567         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
75568
75569 2006-06-26  Simon Josefsson  <jas@extundo.com>
75570
75571         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
75572         present.
75573
75574 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
75575
75576         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
75577         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
75578         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
75579
75580 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
75581
75582         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
75583
75584 2006-06-26  Bruno Haible  <bruno@clisp.org>
75585
75586         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
75587
75588 2006-06-26  Bruno Haible  <bruno@clisp.org>
75589
75590         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
75591
75592 2006-06-26  Bruno Haible  <bruno@clisp.org>
75593
75594         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
75595         SGI C compiler in pre-C99 mode.
75596         Suggested by Mark D. Baushke and Larry Jones.
75597
75598 2006-06-26  Bruno Haible  <bruno@clisp.org>
75599
75600         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
75601         WCHAR_MAX.
75602         Reported by Mark D. Baushke and Larry Jones.
75603
75604 2006-06-26  Bruno Haible  <bruno@clisp.org>
75605
75606         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
75607         in pre-C99 mode.
75608         Suggested by Mark D. Baushke and Larry Jones.
75609
75610 2006-06-23  Simon Josefsson  <jas@extundo.com>
75611             Bruno Haible  <bruno@clisp.org>
75612
75613         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
75614         Emit mostlyclean-local rule.
75615         (func_emit_tests_Makefile_am): Likewise.
75616         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
75617
75618 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
75619
75620         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
75621
75622 2006-06-23  Bruno Haible  <bruno@clisp.org>
75623
75624         * tests/test-stdint.c: Update to match ISO C 99 Technical
75625         Corrigendum 1.
75626
75627 2006-06-23  Bruno Haible  <bruno@clisp.org>
75628
75629         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
75630
75631 2006-06-23  Bruno Haible  <bruno@clisp.org>
75632
75633         * lib/stdint_.h: Treat IRIX like OpenBSD.
75634
75635 2006-06-23  Bruno Haible  <bruno@clisp.org>
75636
75637         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
75638         ISO C 99 Technical Corrigendum 1.
75639
75640 2006-06-22  Simon Josefsson  <jas@extundo.com>
75641
75642         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
75643         MinGW.
75644
75645 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75646
75647         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
75648         needed.  Some compiler complained about some of them.  Problem reported
75649         by Larry Jones in
75650         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
75651
75652 2006-06-21  Simon Josefsson  <jas@extundo.com>
75653
75654         * tests/test-getaddrinfo.c: New file.
75655
75656         * modules/getaddrinfo-tests: New file.
75657
75658         * MODULES.html.sh: Add inet_pton.
75659
75660         * modules/inet_pton: New file.
75661
75662 2006-06-21  Simon Josefsson  <jas@extundo.com>
75663
75664         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
75665         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
75666         of using the (limited) gnulib implementation on Windows XP.
75667
75668         * m4/inet_pton.m4: New file.
75669
75670 2006-06-21  Simon Josefsson  <jas@extundo.com>
75671
75672         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
75673         variable.
75674
75675         * lib/socket_.h: Don't define WINVER.
75676
75677         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
75678         slightly modified to work in gnulib.
75679
75680 2006-06-21  Simon Josefsson  <jas@extundo.com>
75681
75682         * doc/gnulib.texi (Windows sockets): Add.
75683
75684 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
75685
75686         * lib/read-file.c (fread_file): Start with buffer allocation of
75687         0 bytes rather than 1 byte; this simplifies the code.
75688         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
75689         code to free buffer and save/restore errno.
75690         (internal_read_file): Remove unused local.
75691
75692 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
75693
75694         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
75695         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
75696         Problem reported by Denis Excoffier in
75697         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
75698
75699 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75700
75701         * modules/sys_socket, modules/socklen: Include sys/types since
75702         FreeBSD 4.x's sys/socket.h needs it.
75703
75704 2006-06-19  Simon Josefsson  <jas@extundo.com>
75705
75706         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
75707
75708 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
75709
75710         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
75711
75712 2006-06-19  Bruno Haible  <bruno@clisp.org>
75713
75714         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
75715         and FULL_PATH_INTTYPES_H in angle brackets.
75716         Reported by Mark D. Baushke <mdb@gnu.org>.
75717
75718 2006-06-17  Eric Blake  <ebb9@byu.net>
75719
75720         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
75721         errno.
75722
75723 2006-06-17  Bruno Haible  <bruno@clisp.org>
75724
75725         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
75726         <sys/inttypes.h>.
75727
75728 2006-06-17  Bruno Haible  <bruno@clisp.org>
75729
75730         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
75731         whether errno is declared. Assume <errno.h> declares errno.
75732
75733 2006-06-17  Bruno Haible  <bruno@clisp.org>
75734
75735         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
75736
75737 2006-06-17  Bruno Haible  <bruno@clisp.org>
75738
75739         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
75740         problem on Solaris 2.5.1.
75741
75742 2006-06-16  Eric Blake  <ebb9@byu.net>
75743
75744         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
75745         * lib/unicodeio.c [!defined errno]: Likewise.
75746         * lib/strtol.c [!defined errno]: Likewise.
75747         * lib/strtod.c [!defined errno]: Likewise.
75748
75749 2006-06-15  Eric Blake  <ebb9@byu.net>
75750
75751         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
75752
75753 2006-06-15  Eric Blake  <ebb9@byu.net>
75754
75755         * config/srclist.txt (ssize_t.m4): Lose sync.
75756
75757 2006-06-15  Bruno Haible  <bruno@clisp.org>
75758
75759         * modules/stdint (Files): Include m4/full-header-path.m4,
75760         m4/size_max.m4, m4/wchar_t.m4.
75761         (Makefile.am): Many more substitutions.
75762         * modules/stdint-tests: New file.
75763         * tests/test-stdint.c: New file.
75764
75765 2006-06-15  Bruno Haible  <bruno@clisp.org>
75766
75767         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
75768         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
75769         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
75770         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
75771         gl_CHECK_TYPE_SAME): New macros.
75772
75773 2006-06-15  Bruno Haible  <bruno@clisp.org>
75774
75775         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
75776
75777 2006-06-15  Bruno Haible  <bruno@clisp.org>
75778
75779         * lib/stdint_.h: Rewritten to be fully auto-configured.
75780         Fixes bug on HP-UX/IA64.
75781
75782 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
75783
75784         * lib/getdate.y (__attribute__): Don't define if already defined.
75785         Problem reported by Larry Jones.
75786         * lib/utimens.c (__attribute__): Likewise.
75787
75788 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
75789
75790         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
75791         reported by Andreas Schwab.
75792
75793 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75794             Bruno Haible  <bruno@clisp.org>
75795
75796         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
75797         check for the declaration of strnlen and a run test that exposes the
75798         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
75799         rpl_strndup.
75800
75801 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75802             Bruno Haible  <bruno@clisp.org>
75803
75804         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
75805
75806 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75807
75808         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
75809         compile test, for Tru64 4.0D.
75810
75811 2006-05-28  Karl Berry  <karl@gnu.org>
75812
75813         * config/srclist.txt (printf-args.c): lose sync.
75814
75815 2006-05-26  Martin Lambers  <marlam@marlam.de>
75816
75817         * lib/getpass.c: Updates the test for the native W32 API, and adds
75818         missing includes, thus fixing compilation warnings.
75819
75820 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
75821
75822         * lib/exclude.c (exclude_fnmatch): New function.
75823         (excluded_file_name): Call exclude_fnmatch.
75824         * lib/exclude.h (excluded_file_name): New prototype
75825
75826 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
75827
75828         * lib/tempname.c (small_open, large_open): New macros.
75829         (__open, __open64) [!_LIBC]: Remove.
75830         (__gen_tempname): Use small_open and large_open instead of __open
75831         and __open64.  This fixes a portability bug on HP-UX 11.11i
75832         reported by Simon Wing-Tang in
75833         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
75834
75835 2006-05-24  Bruno Haible  <bruno@clisp.org>
75836
75837         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
75838         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
75839         Reported by Thorsten Maerz <torte@netztorte.de> via
75840         Aaron Stone <aaron@serendipity.cx>.
75841
75842 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
75843
75844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
75845         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
75846         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
75847         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
75848         not really conditional on the cache.
75849         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
75850
75851 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
75852
75853         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
75854         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
75855         (my_usleep): Don't mishandle maximum value.
75856
75857 2006-05-19  Jim Meyering  <jim@meyering.net>
75858
75859         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
75860
75861 2006-05-17  Bruno Haible  <bruno@clisp.org>
75862
75863         Cygwin portability.
75864         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
75865
75866 2006-05-17  Bruno Haible  <bruno@clisp.org>
75867
75868         * lib/stdint_.h: Fix recognition of Cygwin.
75869
75870 2006-05-15  Bruno Haible  <bruno@clisp.org>
75871
75872         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
75873         on libtool patch by Ralf Wildenhues.
75874
75875 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75876
75877         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
75878         test for C99 conformance; (bool) 0.5 is an integer constant
75879         expression, but (bool) -0.5 is not.  Problem reported by Fedor
75880         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
75881
75882 2006-05-11  Simon Josefsson  <jas@extundo.com>
75883
75884         * m4/xvasprintf.m4: Fix obvious typo.
75885
75886 2006-05-11  Jim Meyering  <jim@meyering.net>
75887
75888         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
75889         James Lemley.
75890
75891 2006-05-10  Simon Josefsson  <jas@extundo.com>
75892
75893         * lib/md4.c: Typo fix, update copyright years.
75894         (K1, K2): Don't use L because it turn computations into 64-bit on
75895         64-bit platforms.
75896
75897 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
75898
75899         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
75900         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
75901         unwanted sign propagation, e.g., on hosts with 64-bit int.
75902         There still are some problems with reeelly weird theoretical hosts
75903         (e.g., 33-bit int) but it's not worth worrying about now.
75904         * lib/sha1.c (rol): Likewise.
75905         (K1, K2, K3, K4): Remove unnecessary L suffix.
75906
75907 2006-05-10  Bruno Haible  <bruno@clisp.org>
75908
75909         * lib/des.c: Cast to avoid warnings.
75910
75911 2006-05-09  Bruno Haible  <bruno@clisp.org>
75912
75913         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
75914         (Depends-on): Depend also on xsize, stdarg.
75915         (configure.ac): Add gl_XVASPRINTF.
75916
75917 2006-05-09  Bruno Haible  <bruno@clisp.org>
75918
75919         * m4/xvasprintf.m4: New file.
75920
75921 2006-05-09  Bruno Haible  <bruno@clisp.org>
75922
75923         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
75924         (EOVERFLOW): Define fallback value.
75925         (xstrcat): New function.
75926         (xvasprintf): Recognize the special case of a string concatenation.
75927
75928 2006-05-08  Eric Blake  <ebb9@byu.net>
75929
75930         * gnulib-tool (func_version): Base copyright year on CVS date.
75931         (func_emit_copyright_notice): New function.
75932         (func_emit_lib_Makefile_am): Use it.
75933         (func_emit_tests_Makefile_am): Likewise.
75934         (func_import): Likewise.
75935
75936 2006-05-08  Bruno Haible  <bruno@clisp.org>
75937
75938         * modules/stdarg: New file.
75939         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
75940
75941 2006-05-08  Bruno Haible  <bruno@clisp.org>
75942
75943         * m4/stdarg.m4: New file, from GNU gettext.
75944
75945 2006-05-08  Bruno Haible  <bruno@clisp.org>
75946
75947         * config/srclist.txt (build-aux/config.rpath): different from latest
75948         release.
75949
75950 2006-05-08  Bruno Haible  <bruno@clisp.org>
75951
75952         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
75953
75954 2006-05-05  Jim Meyering  <jim@meyering.net>
75955
75956         * m4/warning.m4: New file, derived from bison's file by the same name.
75957
75958 2006-05-03  Bruno Haible  <bruno@clisp.org>
75959
75960         * lib/stdint_.h: Shorter URL.
75961         * lib/inttypes.h: Likewise.
75962
75963 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
75964
75965         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
75966
75967 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
75968
75969         * lib/verify.h: Document the internals better.  Most of this change
75970         was written by Bruno Haible.
75971
75972 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
75973
75974         * doc/verify.texi: New file, partly based on a proposal by
75975         Bruno Haible.
75976
75977 2006-05-02  Bruno Haible  <bruno@clisp.org>
75978
75979         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
75980         test from here...
75981         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
75982
75983 2006-04-29  Bruno Haible  <bruno@clisp.org>
75984
75985         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
75986         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
75987
75988 2006-04-29  Bruno Haible  <bruno@clisp.org>
75989
75990         * gnulib-tool: Make --update option actually work.
75991
75992 2006-04-29  Bruno Haible  <bruno@clisp.org>
75993
75994         * doc/gcd.texi: New file.
75995         * doc/gnulib.texi: Include it.
75996
75997 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
75998
75999         * lib/getdate.y (get_date): When adding relative date, start with the
76000         initial time, not with the result of the first mktime call.
76001
76002 2006-04-25  Bruno Haible  <bruno@clisp.org>
76003
76004         * gnulib-tool (func_import): Output the include directives in three
76005         blocks, sorted separately.
76006         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76007
76008 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76009
76010         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
76011         to define main with arguments, for C++.  Reported by Eric Blake.
76012         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
76013         Prefer 'int main ()' to 'int main (void)', for C++.
76014         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
76015         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
76016         for 'main', for C99 and C++.
76017
76018 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76019
76020         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
76021         Don't assume that exit status -1 is valid.
76022         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76023         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
76024         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76025         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
76026         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
76027         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
76028         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
76029         functions can be used without declaring them, or that you can
76030         exit with status -1.
76031         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76032
76033 2006-04-24  Karl Berry  <karl@gnu.org>
76034
76035         * config/srclist.txt (longdouble.m4): sync lost.
76036
76037 2006-04-24  Eric Blake  <ebb9@byu.net>
76038
76039         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
76040
76041 2006-04-24  Bruno Haible  <bruno@clisp.org>
76042
76043         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
76044         poll() implementation in AIX.
76045         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76046
76047 2006-04-24  Bruno Haible  <bruno@clisp.org>
76048
76049         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
76050         assigned exactly once.
76051
76052 2006-04-23  Claudio Fontana  <claudio@gnu.org>
76053             Bruno Haible  <bruno@clisp.org>
76054
76055         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
76056         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
76057         for AM_CPPFLAGS.
76058
76059 2006-04-23  Bruno Haible  <bruno@clisp.org>
76060
76061         * modules/copy-file: Depend on unistd.
76062         * modules/execute: Likewise.
76063         * modules/fatal-signal: Likewise.
76064         * modules/findprog: Likewise.
76065         * modules/mkdtemp : Likewise.
76066         * modules/pipe: Likewise.
76067         * modules/wait-process: Likewise.
76068
76069 2006-04-23  Bruno Haible  <bruno@clisp.org>
76070
76071         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
76072         condition was already detected.
76073         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76074
76075 2006-04-23  Bruno Haible  <bruno@clisp.org>
76076
76077         * lib/copy-file.c: Include <unistd.h> unconditionally.
76078         * lib/execute.c: Likewise.
76079         * lib/fatal-signal.c: Likewise.
76080         * lib/findprog.c: Likewise.
76081         * lib/mkdtemp.c: Likewise.
76082         * lib/pipe.h: Likewise.
76083         * lib/pipe.c: Likewise.
76084         * lib/wait-process.h: Likewise.
76085
76086 2006-04-23  Bruno Haible  <bruno@clisp.org>
76087
76088         * gnulib-tool (func_usage): Fix --import description. Document
76089         --update.
76090         (func_import): Create temporary file in a temporary directory, if
76091         --dry-run is specified. Silence errors from 'grep' when there are no
76092         m4 files in $m4dir.
76093         (func_create_testdir): Silence errors from 'grep' when there are no
76094         m4 files in $m4dir.
76095         Reported by Karl Berry <karl@freefriends.org>.
76096
76097 2006-04-20  Bruno Haible  <bruno@clisp.org>
76098
76099         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
76100         one argument, so that the code will be portable to Autoconf 2.60.
76101         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
76102         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76103         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
76104
76105 2006-04-19  Derek Price  <derek@ximbiot.com>
76106             Eric Blake  <ebb9@byu.net>
76107
76108         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
76109         rather than "/full/path.h".  Update comment to match.  Shorten &
76110         generalize m4_translit call via AS_TR_CPP.
76111
76112 2006-04-19  Derek Price  <derek@ximbiot.com>
76113             Eric Blake  <ebb9@byu.net>
76114
76115         * lib/inttypes.h: Correct grammar in comment.
76116
76117 2006-04-18  Derek Price  <derek@ximbiot.com>
76118             Paul Eggert  <eggert@cs.ucla.edu>
76119
76120         * modules/inttypes: New file.
76121         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
76122
76123 2006-04-18  Derek Price  <derek@ximbiot.com>
76124             Paul Eggert  <eggert@cs.ucla.edu>
76125
76126         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
76127         New files.
76128
76129 2006-04-18  Derek Price  <derek@ximbiot.com>
76130             Paul Eggert  <eggert@cs.ucla.edu>
76131
76132         * lib/inttypes.h: New file.
76133         * lib/strtoimax.c: Assume <inttypes.h>.
76134
76135 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
76136
76137         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
76138         isn't mounted.  Problem reported by Kir Kolyshkin.
76139
76140 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76141
76142         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
76143         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
76144         Derek R. Price.
76145         * lib/regex.h (RE_DUP_MAX): Update comment to match current
76146         implementation.
76147
76148 2006-04-12  Eric Blake  <ebb9@byu.net>
76149
76150         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
76151         is now done automatically by the corresponding Autoconf macro.
76152
76153 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
76154
76155         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
76156         time_r.h.
76157
76158 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76159
76160         Merge regex changes from libc, removing some of our
76161         POSIX-conformance changes that were rejected and redoing them in a
76162         less-intrusive way.
76163
76164         * lib/regcomp.c (re_compile_internal, init_dfa):
76165         Length arg is now size_t, not Idx.  All uses changed.
76166         (peek_token): Forward decl now says internal_function.
76167         (__re_error_msgid, __re_error_msgid_idx):
76168         Now static rather than extern with attribute_hidden.
76169         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
76170         For some reason libc prefers K&R style defns for external functions.
76171         (regerror) [!defined _LIBC]: Likewise.
76172         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
76173         (seek_collating_symbol_entry, lookup_collation_sequence_value):
76174         (build_range_exp, build_collating_symbol):
76175         Use K&R-style defn.
76176         (re_compile_fastmap): Use '\0' to memset, not 0.
76177         (utf8_sb_map): Make the calculations more obvious.
76178         (init_dfa, parse_bracket_exp, build_charclass_op):
76179         Call calloc and cast result, as glibc does.
76180         (init_word_char, fetch_token, peek_token, peek_token_bracket):
76181         (build_range_exp, build_collating_symbol):
76182         Now internal functions.
76183
76184         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
76185
76186         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
76187         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
76188         Don't depend on VMS; depend on __VMS instead, for POSIX
76189         namespace cleanness.
76190         (regoff_t): Define to ssize_t, not long int.
76191
76192         Remove the REG_ macros named below.  Instead, make the old names
76193         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
76194         __USE_GNU_REGEX.
76195         (REG_BACKSLASH_ESCAPE_IN_LISTS):
76196         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
76197         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
76198         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
76199         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
76200         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
76201         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
76202         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
76203         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
76204         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
76205         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
76206         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
76207         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
76208         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
76209         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
76210         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
76211         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
76212         (REG_NREGS):
76213         Remove.  All uses replaced by the old RE_* names.
76214         (RE_BACKSLASH_ESCAPE_IN_LISTS):
76215         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
76216         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
76217         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
76218         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
76219         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
76220         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
76221         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
76222         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
76223         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
76224         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
76225         Don't bother having these macros be independent of each others'
76226         values, since they no longer exist in the POSIX name space.
76227
76228         Rename the following member names back to their old names,
76229         unless !__USE_GNU_REGEX.  All uses changed back.
76230         (buffer): Renamed from re_buffer.
76231         (allocated): Renamed from re_allocated.
76232         (used): Renamed from re_used.
76233         (syntax): Renamed from re_syntax.
76234         (fastmap): Renamed from re_fastmap.
76235         (translate): Renamed from re_translate.
76236         (can_be_null): Renamed from re_can_be_null.
76237         (regs_allocated): Renamed from re_regs_allocated.
76238         (fastmap_accurate): Renamed from re_fastmap_accurate.
76239         (no_sub): Renamed from re_no_sub.
76240         (not_bol): Renamed from re_not_bol.
76241         (not_eol): Renamed from re_not_eol.
76242         (newline_anchor): Renamed from re_newline_anchor.
76243         (num_regs): Renamed from rm_num_regs.
76244         (start): Renamed from rm_start.
76245         (end): Renamed from rm_end.
76246
76247         (free_state): Move up a bit.
76248
76249         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
76250         #define to be empty.
76251         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
76252         when that is what is intended.
76253         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
76254         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
76255         (MAX): New macro.
76256         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
76257         All uses changed back to re_malloc, etc.  It's now the caller's
76258         responsibility to check for overflow; all callers changed.
76259         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
76260         (re_x2nrealloc): Remove.
76261         (free_state): Remove decl.
76262
76263         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
76264         (re_set_registers, re_exec):
76265         Use K&R-style defn.
76266
76267         2006-01-31  Roland McGrath  <roland@redhat.com>
76268
76269         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
76270         Reported by Mike Frysinger <vapier@gentoo.org>.
76271
76272         2006-01-15  Andreas Jaeger  <aj@suse.de>
76273
76274         [BZ #1950]
76275         * lib/regex_internal.c (re_string_reconstruct): Adjust for
76276         build_wcs_upper_buffer change.
76277         (build_wcs_upper_buffer): Change return type.
76278
76279         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
76280
76281         * lib/regex_internal.h: Include <stdint.h> if available.
76282
76283         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
76284
76285         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
76286
76287         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
76288
76289         * lib/regcomp.c: Adjust for changed secondary hash function.
76290
76291         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
76292
76293         * lib/regex.h: Pretty printing.
76294         Clean up namespace a bit.
76295
76296         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
76297
76298         * lib/regexec.c (update_cur_sifted_state, check_arrival,
76299         check_arrival_add_next_nodes): Avoid using uninitialized variable.
76300
76301         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76302                     Ulrich Drepper  <drepper@redhat.com>
76303
76304         [BZ #1302]
76305         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
76306         changed.
76307         (bitset_word_t): Renamed from bitset_word.  All uses changed.
76308
76309         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
76310
76311         [BZ #281]
76312         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
76313         * lib/regcomp.c: Remove unnecessary uses of
76314         unsigned RE_TRANSLATE_TYPE.
76315         * lib/regex_internal.h: Likewise.
76316         * lib/regex_internal.c: Likewise.
76317         * lib/regexec.c: Likewise.
76318         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
76319
76320         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
76321
76322         * lib/regexec.c (find_recover_state): Remove unnecessary
76323         initialization.
76324         (transit_state_bkref): Make DFA a const pointer.
76325         (get_subexp): Likewise.
76326         (check_arrival): Likewise.
76327         (update_cur_sifted_state): Likewise.
76328         (re_search_internal): Likewise.
76329         (prune_impossible_nodes): Likewise.
76330         (acquire_init_state_context): Likewise.
76331         (proceed_next_node): Likewise.
76332         (set_regs): Likewise.
76333         (free_fail_stack_return): Likewise.
76334         (check_arrival_expand_ecl): Mark DFA parameter as const.
76335         (check_arrival_expand_ecl_sub): Likewise.
76336         (check_subexp_limits): Likewise.
76337         (sub_epsilon_src_nodes):  Likewise.
76338         (add_epsilon_src_nodes):  Likewise.
76339         (merge_state_array): Likewise.
76340         (update_regs): Likewise.
76341         (build_trtable): Likewise.
76342         (sift_states_backward): Mark MCTX parameter as const.
76343         (build_sifted_states): Likewise.
76344         (update_cur_sifted_state): Likewise.
76345         (sift_states_mkref): Likewise.
76346         (check_arrival_expand_ecl): Mark eclosure as const.
76347         (check_dst_limits_calc_pos_1): Likewise.
76348         * lib/regex_internal.h (re_match_context_t): Make dfa a const
76349         pointer.
76350
76351         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
76352
76353         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
76354         (transit_state_sb): Likewise.
76355         (transit_state_mb): Likewise.
76356         (sift_states_iter_mb): Likewise.
76357         (check_arrival_add_next_nodes): Likewise.
76358         (check_node_accept_bytes): Change first parameter to pointer-to-const.
76359         [_LIBC] (re_search_2_stub): Use mempcpy.
76360
76361         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
76362         mbrtowc for very simple UTF-8 case.
76363
76364         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
76365         a pointer-to-const.
76366         (re_acquire_state_context): Likewise.
76367         * lib/regex_internal.h: Adjust prototypes.
76368
76369         * lib/regex.c: Prevent using C++ compilers.
76370
76371         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
76372         (re_acquire_state_context): Likewise.
76373
76374 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76375
76376         * modules/regex (Depends-on): Add ssize_t.
76377
76378 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76379
76380         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
76381         translation table.
76382
76383 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76384
76385         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
76386
76387 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
76388             Bruno Haible  <bruno@clisp.org>
76389
76390         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
76391         <sys/types.h> and <inttypes.h>.
76392
76393 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76394
76395         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
76396         `__error_t_defined', so argp.h will not typedef the former.
76397
76398 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
76399
76400         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
76401         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
76402         glibc names.  Even if glibc is changed to conform to POSIX, the
76403         traditional names will be available anyway, since regex depends on
76404         the extensions module.  Also, fix a longstanding typo in the
76405         implementation of Spencer ERE test #75 from grep 2.3.  Problems
76406         reported by Emanuele Giaquinta.  Also, change sense of cached
76407         variable, so that the message makes sense.
76408
76409 2006-03-24  Simon Josefsson  <jas@extundo.com>
76410
76411         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
76412         including some doc fixes.
76413         (base64_encode_alloc): Fix +1 bug on allocation failures.
76414
76415 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76416
76417         * lib/base64.c (base64_encode): Do not read past end of array with
76418         unsanitized input on systems with CHAR_BIT > 8.
76419
76420 2006-03-24  Eric Blake  <ebb9@byu.net>
76421
76422         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
76423
76424 2006-03-22  Karl Berry  <karl@gnu.org>
76425
76426         * config/srclist.txt (*setenv.[ch]): get from coreutils.
76427         * config/srclistvars.sh (COREUTILS): new var.
76428
76429 2006-03-17  Jim Meyering  <jim@meyering.net>
76430
76431         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
76432         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
76433
76434 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
76435
76436         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
76437         no longer needs it.  Instead, check that regoff_t is as least
76438         as wide as ptrdiff_t.
76439
76440         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
76441         so that our regex.h stays compatible with the installed regex.
76442         This is helpful for installers who configure --without-included-regex.
76443         Problem reported by Emanuele Giaquinta.
76444
76445 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
76446
76447         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
76448         Typedef to long int, not to off_, as POSIX will likely change
76449         in that direction.
76450
76451 2006-03-15  Eric Blake  <ebb9@byu.net>
76452
76453         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
76454
76455 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
76456
76457         * lib/argp-help.c (validate_uparams): Fix typo
76458         * lib/argp-parse.c (argp_default_options): Consistently begin help
76459         messages with a lowercase letter.
76460
76461 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
76462
76463         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
76464         overrun buffers and shouldn't be used (much as gets shouldn't be
76465         used).
76466         * lib/time_r.c (asctime_r, ctime_r): Likewise.
76467
76468 2006-03-08  Simon Josefsson  <jas@extundo.com>
76469
76470         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
76471         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76472
76473 2006-03-08  Simon Josefsson  <jas@extundo.com>
76474
76475         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
76476         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76477
76478 2006-03-08  Simon Josefsson  <jas@extundo.com>
76479
76480         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
76481         signal that configure disabled the device.
76482
76483 2006-03-08  Simon Josefsson  <jas@extundo.com>
76484
76485         * build-aux/maint.mk: Fix refresh-po, to handle no translated
76486         languages.
76487
76488 2006-03-07  Simon Josefsson  <jas@extundo.com>
76489
76490         * modules/getopt (Depends-on): Add unistd.
76491
76492         * modules/unistd: New file.
76493
76494 2006-03-07  Simon Josefsson  <jas@extundo.com>
76495
76496         * modules/gc-random: New file.
76497
76498 2006-03-07  Simon Josefsson  <jas@extundo.com>
76499
76500         * m4/unistd_h.m4: New file.
76501
76502 2006-03-07  Simon Josefsson  <jas@extundo.com>
76503
76504         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
76505         test to be side-effect free by storing the result in the cache
76506         variable gl_cv_lib_readline, and moving the assignment of
76507         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
76508         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76509
76510 2006-03-07  Simon Josefsson  <jas@extundo.com>
76511
76512         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
76513         error on missing devices (the functions will return an error).
76514
76515         * m4/gc.m4: Move random stuff to gc-random.m4
76516
76517 2006-03-07  Simon Josefsson  <jas@extundo.com>
76518
76519         * lib/unistd_.h: New file.
76520
76521 2006-03-07  Simon Josefsson  <jas@extundo.com>
76522
76523         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
76524
76525 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
76526
76527         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
76528         Problem reported by Juan Manuel Guerrero.
76529
76530 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
76531
76532         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
76533         the unistd module.
76534         * lib/getlogin_r.c: Likewise.
76535         * lib/getlogin_r.h: Likewise.
76536         * lib/glob.c: Likewise.
76537         * lib/pagealign_alloc.c: Likewise.
76538         * lib/unistd_.h: Remove; no longer needed.
76539
76540 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
76541
76542         * MODULES.html.sh (Support for systems lacking POSIX:2001):
76543         Add unistd.
76544         * modules/c-stack (Depends-on): Add unistd.
76545         * modules/getlogin_r: Likewise.
76546         * modules/glob: Likewise.
76547         * modules/pagealign_alloc: Likewise.
76548         * modules/unistd (Files): Remove lib/unistd_.h.
76549         (EXTRA_DIST): Remove.
76550         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
76551         need unistd_.h.
76552         (MOSTLYCLEANFILES): Remove unistd.h-t.
76553
76554 2006-03-03  Simon Josefsson  <jas@extundo.com>
76555
76556         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
76557
76558 2006-03-03  Simon Josefsson  <jas@extundo.com>
76559
76560         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
76561         libidn and bison.
76562
76563 2006-03-03  Simon Josefsson  <jas@extundo.com>
76564
76565         * build-aux/maint.mk: Add indent target.
76566
76567 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
76568
76569         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
76570         our replacement poll.h in any case, to avoid a differing
76571         declaration from a system header.  Seen on AIX.
76572
76573 2006-03-01  Simon Josefsson  <jas@extundo.com>
76574
76575         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
76576         <kasal@ucw.cz>.
76577
76578 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76579
76580         * modules/gettime (Depends-on): Add extensions module.
76581         * modules/nanosleep (Depends-on): Likewise.
76582         * modules/settime (Depends-on): Likewise.
76583
76584 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76585
76586         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
76587         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
76588         pedantically.
76589         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76590         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
76591
76592         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
76593         not "==".  Reported by Ralf Wildenhues.
76594
76595 2006-03-01  Karl Berry  <karl@gnu.org>
76596
76597         * doc/Copyright/request-*: new files, synced from gnuorg.
76598
76599 2006-03-01  Karl Berry  <karl@gnu.org>
76600
76601         * config/srclist.txt (Copyright/*): new entries.
76602
76603 2006-02-28  Simon Josefsson  <jas@extundo.com>
76604
76605         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
76606
76607 2006-02-27  Simon Josefsson  <jas@extundo.com>
76608
76609         * lib/base64.h: Indent #define's.  From Jim Meyering
76610         <jim@meyering.net>.
76611
76612 2006-02-27  Jim Meyering  <jim@meyering.net>
76613
76614         Revert the change of 2006-02-24, so these files can continue
76615         to be sync'd from gettext.
76616         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
76617         of `config.h'.
76618
76619 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76620
76621         * modules/intprops: New file.
76622         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76623         Add intprops.
76624         * modules/getloadavg (Files): Remove lib/intprops.h.
76625         (Depends-on): Add intprops.
76626         * modules/human: Likewise.
76627         * modules/inttostr: Likewise.
76628         * modules/openat: Likewise.
76629         * modules/sig2str: Likewise.
76630         * modules/userspec: Likewise.
76631         * modules/utimecmp: Likewise.
76632         * modules/xnanosleep: Likewise.
76633         * modules/xstrtol: Likewise.
76634
76635 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
76636
76637         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
76638         * modules/lock-tests (TESTS): Use $(EXEEXT).
76639         * modules/tls-tests: Likewise.
76640         * modules/argp-tests: Likewise.
76641         (check_PROGRAMS): New var, replacing...
76642         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
76643
76644 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76645
76646         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
76647         `config.h'.
76648
76649 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
76650
76651         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
76652
76653 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76654
76655         Sync from coreutils.
76656         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
76657         gl_CHDIR_SAFER.
76658
76659 2006-02-22  Jim Meyering  <jim@meyering.net>
76660
76661         Sync from coreutils.
76662         * m4/chdir-safer.m4: New file.
76663
76664 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
76665
76666         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
76667         AT_FDCWD exceeds INT_MAX.
76668         * lib/openat.h (AT_FDCWD): Likewise.
76669
76670 2006-02-17  Eric Blake  <address@hidden>
76671
76672         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
76673
76674 2006-02-16  Simon Josefsson  <jas@extundo.com>
76675
76676         * modules/getaddrinfo (Depends-on): Add sys_socket.
76677
76678 2006-02-15  Simon Josefsson  <jas@extundo.com>
76679
76680         * build-aux/maint.mk: Add dsyntax-check rule.
76681
76682 2006-02-15  Eric Blake  <ebb9@byu.net>
76683
76684         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
76685         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
76686         'present but cannot compile' warnings on cygwin.
76687         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
76688         use ws2tcpip.h if sys/socket.h works.
76689         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
76690         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
76691
76692 2006-02-14  Simon Josefsson  <jas@extundo.com>
76693
76694         * modules/maintainer-makefile (Files): Rename.
76695
76696         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
76697         and (the local) Makefile.cfg to maint-cfg.mk.
76698
76699         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
76700         to the latter.
76701
76702         * modules/maintainer-makefile: New module.
76703
76704         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
76705         severaly stripped to make it possible to build it up from scratch
76706         with reliable tests.
76707
76708         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
76709         fixes to permit overriding the default actions when configure and
76710         makefile are not available.
76711
76712 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
76713
76714         Sync from coreutils.
76715         * modules/lstat (Depends-on): Don't depend on xalloc.
76716         (License): Change from GPL to LGPL, since this is now simply a
76717         replacement for a libc function.
76718
76719 2006-02-14  Jim Meyering  <jim@meyering.net>
76720
76721         Sync from coreutils.
76722
76723         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
76724         failure on deficient systems, and simplify gnulib lgpl dependencies.
76725         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
76726         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
76727
76728         * lib/xalloc-die.c: Remove unused definition of N_.
76729
76730 2006-02-14  Jim Meyering  <jim@meyering.net>
76731
76732         Sync from coreutils.
76733         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
76734         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
76735         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
76736         double-quote uses of that variable, to accommodate the rare case in
76737         which getmntent is available in none of the libraries checked.  This
76738         happens at least on FreeBSD 5.0.
76739
76740 2006-02-13  Simon Josefsson  <jas@extundo.com>
76741
76742         * gnulib-tool (Usage): Fix --import, from
76743         karl@freefriends.org (Karl Berry).
76744
76745 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
76746
76747         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
76748
76749 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
76750
76751         * lib/argp-namefrob.h: Restore changes accidentally lost during the
76752         "autoupdate" on 2005-12-12.
76753
76754 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
76755
76756         * modules/closeout (Depends-on): Remove atexit.
76757
76758 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
76759
76760         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
76761         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
76762
76763 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
76764
76765         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
76766         __EXTENSIONS__ if this causes compilation to fail.  Problem
76767         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
76768         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
76769
76770 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
76771
76772         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
76773         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
76774         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
76775         All uses changed.
76776
76777 2006-01-26  Simon Josefsson  <jas@extundo.com>
76778
76779         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
76780         prototype is visible on mingw32.
76781
76782         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
76783         for mingw32.
76784
76785         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
76786         mingw32).
76787
76788 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
76789
76790         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
76791         attempt to open for write; this always fails, at least on POSIX
76792         hosts.  This reinstates the 2006-01-09 change, which was
76793         inadvertently removed.
76794
76795 2006-01-26  Bruno Haible  <bruno@clisp.org>
76796
76797         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
76798         Reported by Paul Eggert.
76799
76800 2006-01-26  Bruno Haible  <bruno@clisp.org>
76801             Paul Eggert  <eggert@cs.ucla.edu>
76802
76803         * lib/stdbool_.h (_Bool)
76804         [(! (defined __cplusplus || defined __BEOS__)
76805           && !defined __GNUC__
76806           && !(defined __HP_cc || defined __xlc__
76807                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
76808                || defined __sgi))]:
76809         #define to signed char in these cases too; this simplifies
76810         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
76811         etc., separately) and makes it more conservative.
76812
76813 2006-01-25  Simon Josefsson  <jas@extundo.com>
76814
76815         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
76816         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
76817         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
76818
76819 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76820
76821         * lib/argp-namefrob.h: Bugfix. Remove stray #
76822
76823 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
76824
76825         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
76826         so that we test the test.
76827         Check for yet another HP-UX cc bug involving *bool |= bool.
76828
76829 2006-01-25  Karl Berry  <karl@gnu.org>
76830
76831         * config/srclist.txt (vasnprintf.c): sync lost.
76832
76833 2006-01-25  Jim Meyering  <jim@meyering.net>
76834
76835         Sync from the stable (b5) branch of coreutils:
76836
76837         * lib/fts.c (fts_children): Don't let close() clobber errno from
76838         failed fchdir().
76839
76840         * lib/fts.c (fts_stat): When following a symlink-to-directory,
76841         don't necessarily interpret stat-fails+lstat-succeeds as indicating
76842         a dangling symlink.  That can also happen at least for ELOOP.
76843         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
76844         FYI, this bug predates the inclusion of fts.c in coreutils.
76845
76846         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
76847         in their own block, so pre-c99 compilers don't object.
76848
76849         Avoid the double-free (first in fts_read, second in fts_close) that
76850         would occur when an `active' directory is made inaccessible (e.g.,
76851         via chmod a-x) during a traversal.
76852         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
76853         before returning.  Reproduce this failure by
76854         mkdir -p a/b; cd a; chmod a-x . b
76855         Reported by Stavros Passas.
76856
76857 2006-01-25  Jim Meyering  <jim@meyering.net>
76858
76859         * lib/fileblocks.c: Remove more useless parentheses.
76860         * lib/readutmp.h: Likewise.
76861
76862 2006-01-25  Bruno Haible  <bruno@clisp.org>
76863
76864         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
76865         warnings.
76866         Reported by Paul Eggert.
76867
76868 2006-01-25  Bruno Haible  <bruno@clisp.org>
76869
76870         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
76871         rid of a trap command. For Solaris sh.
76872         Reported by Mark D. Baushke <mdb@gnu.org>.
76873
76874 2006-01-24  Simon Josefsson  <jas@extundo.com>
76875
76876         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
76877         Bruno.
76878
76879 2006-01-24  Karl Berry  <karl@gnu.org>
76880
76881         * config/srclist.txt (argp-namefrob.h): sync lost.
76882
76883 2006-01-24  Jim Meyering  <jim@meyering.net>
76884
76885         * modules/openat (Files): Add lib/intprops.h.
76886         From Mark D. Baushke.
76887
76888 2006-01-24  Jim Meyering  <jim@meyering.net>
76889
76890         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
76891         Reported by Mark D. Baushke.
76892
76893 2006-01-24  Jim Meyering  <jim@meyering.net>
76894
76895         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
76896
76897 2006-01-24  Bruno Haible  <bruno@clisp.org>
76898
76899         * modules/strnlen (Maintainer): Change from glibc to all.
76900
76901 2006-01-24  Bruno Haible  <bruno@clisp.org>
76902
76903         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
76904         Patch by Paul Eggert.
76905
76906 2006-01-24  Bruno Haible  <bruno@clisp.org>
76907
76908         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
76909         already has it.
76910         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
76911         2005-11-26.
76912
76913         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
76914         'signed char' to avoid problems with the built-in _Bool type.
76915         Reported by Paul Eggert on 2005-11-26.
76916
76917 2006-01-24  Bruno Haible  <bruno@clisp.org>
76918
76919         * gnulib-tool (func_import): Avoid constructing complicated sed
76920         expressions inside backquote.
76921         Report and solution by Mark D. Baushke <mdb@gnu.org>.
76922
76923 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
76924
76925         These changes imported from libc.
76926         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
76927         test and two separate function calls.
76928         * lib/strndup.c (__strndup): Add libc_hidden_def.
76929
76930 2006-01-23  Simon Josefsson  <jas@extundo.com>
76931
76932         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
76933         Remove the test_*_SOURCES variable: automake infers it by default.
76934         * modules/tls-tests: Likewise.
76935
76936 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76937
76938         Work around porting bugs reported by Dieter in
76939         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
76940         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
76941         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
76942         Include "getopt.h" first, to check interface.
76943         (getenv): Declare only if defined HAVE_DECL_GETENV &&
76944         !HAVE_DECL_GETENV.
76945         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
76946         (__strndup): Revert to K&R-style function dfns, the glibc style.
76947         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
76948         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
76949         Include strnlen.h first, to get prototype properly.
76950         (strnlen): Renamed from __strnlen.
76951         Remove weak alias.
76952
76953 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76954
76955         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
76956
76957 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76958
76959         * config/srclist.txt: Adjust to reflect glibc reorganization.
76960         This affects only comments.
76961
76962 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76963
76964          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
76965          Reported by Bruce Korb <bkorb@gnu.org>.
76966
76967 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
76968
76969         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
76970         to pacify gcc -Wswitch-default.
76971
76972 2006-01-22  Bruno Haible  <bruno@clisp.org>
76973
76974         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
76975         temporary buffer for sprintf, take into account the precision also
76976         for 'd', 'i', 'u', 'o', 'x', 'X'.
76977
76978 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
76979
76980         * modules/argp-tests: New module
76981         * tests/test-argp.c: New file
76982         * tests/test-argp-2.sh: New file
76983
76984 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
76985
76986         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
76987         (__argp_base_name): Removed
76988         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
76989         typo.
76990         (__argp_base_name): Provide macro definition or extern declaration
76991         depending on the configuration
76992
76993 2006-01-20  Simon Josefsson  <jas@extundo.com>
76994
76995         * modules/inet_ntop (Depends-on): Depend on sys_socket.
76996
76997 2006-01-20  Simon Josefsson  <jas@extundo.com>
76998
76999         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
77000
77001 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77002
77003         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
77004         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
77005         Suggested by Bruno Haible.
77006
77007 2006-01-20  Karl Berry  <karl@gnu.org>
77008
77009         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
77010         until changes propagate, I guess.
77011
77012 2006-01-19  Simon Josefsson  <jas@extundo.com>
77013
77014         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
77015
77016 2006-01-19  Simon Josefsson  <jas@extundo.com>
77017
77018         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
77019
77020 2006-01-19  Simon Josefsson  <jas@extundo.com>
77021
77022         * gnulib-tool: Set check_PROGRAMS.
77023
77024         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77025         modules/des-tests, modules/gc-arcfour-tests,
77026         modules/gc-arctwo-tests, modules/gc-des-tests,
77027         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77028         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77029         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77030         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77031         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77032         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
77033         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
77034         test_*_SOURCES.
77035
77036 2006-01-18  Simon Josefsson  <jas@extundo.com>
77037
77038         * modules/socklen (Depends-on): Depend on sys_socket.
77039
77040 2006-01-18  Simon Josefsson  <jas@extundo.com>
77041
77042         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77043         modules/des-tests, modules/gc-arcfour-tests,
77044         modules/gc-arctwo-tests, modules/gc-des-tests,
77045         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77046         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77047         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77048         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77049         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77050         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
77051         $(EXEEXT) to automake TESTS variable, for mingw32.
77052
77053 2006-01-17  Simon Josefsson  <jas@extundo.com>
77054
77055         * modules/socklen (Include): Need sys/socket.h.
77056
77057 2006-01-17  Bruno Haible  <bruno@clisp.org>
77058
77059         * modules/ssize_t (Include): Add <sys/types.h>.
77060
77061 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
77062
77063         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
77064         it's not portable and it doesn't work with cross-compiles.
77065         Problem reported by Bruno Haible.  Fix missing-$ typo in
77066         'test "gl_cv_ignore_unused_libraries" ...' that prevented
77067         -zignore from being used with Sun's C compiler.
77068
77069 2006-01-12  Simon Josefsson  <jas@extundo.com>
77070
77071         * lib/base64.c: Fix warning, reported by Bruno Haible
77072         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
77073
77074 2006-01-12  Bruno Haible  <bruno@clisp.org>
77075
77076         * modules/ldd: New file.
77077         * build-aux/ldd.sh.in: New file.
77078         * MODULES.html.sh (Support for building libraries and executables): Add
77079         ldd.
77080
77081 2006-01-12  Bruno Haible  <bruno@clisp.org>
77082
77083         * m4/ldd.m4: New file.
77084
77085 2006-01-12  Bruno Haible  <bruno@clisp.org>
77086
77087         * gnulib-tool (func_import, func_create_testdir): Don't go into an
77088         endless loop while replacing $auxdir with build-aux.
77089
77090 2006-01-11  Simon Josefsson  <jas@extundo.com>
77091
77092         * lib/stdint_.h (SIZE_MAX): Add missing (.
77093
77094 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
77095
77096         Sync from coreutils.
77097         * lib/md5.c: Fix commentary typos.
77098         (alignof, UNALIGNED_P): No need for a GCC-specific version.
77099         * lib/md5.h (__attribute__): Remove; unused.
77100         * lib/sha1.c: Fix commentary to match md5 better.
77101         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
77102         so that we don't need to worry about alignment.  All uses changed.
77103         This merges the 2005-10-28 md5 change into sha1.
77104
77105 2006-01-11  Jim Meyering  <jim@meyering.net>
77106
77107         Sync from coreutils.
77108         * lib/md5.c (OP): Fix spacing.
77109
77110 2006-01-11  Bruno Haible  <bruno@clisp.org>
77111
77112         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77113         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
77114         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
77115
77116 2006-01-11  Bruno Haible  <bruno@clisp.org>
77117
77118         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77119         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
77120         the "early" section as well.
77121
77122 2006-01-11  Bruno Haible  <bruno@clisp.org>
77123
77124         Avoid "ar: no archive members specified" error on MacOS X.
77125         * gnulib-tool (func_modules_add_dummy): New function.
77126         (func_import, func_create_testdir): Invoke it.
77127
77128 2006-01-11  Bruno Haible  <bruno@clisp.org>
77129
77130         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
77131         with $auxdir in AC_CONFIG_FILES statements.
77132
77133 2006-01-11  Bruno Haible  <bruno@clisp.org>
77134
77135         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77136         Initialize also noinst_HEADERS to empty.
77137
77138 2006-01-11  Bruno Haible  <bruno@clisp.org>
77139
77140         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
77141         variables.
77142         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
77143         autoreconf.
77144
77145 2006-01-11  Bruno Haible  <bruno@clisp.org>
77146
77147         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
77148         overridable by the user.
77149         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77150
77151 2006-01-10  Simon Josefsson  <jas@extundo.com>
77152
77153         * modules/sys_socket: New file.
77154
77155 2006-01-10  Simon Josefsson  <jas@extundo.com>
77156
77157         * m4/sys_socket_h.m4: New file.
77158
77159 2006-01-10  Simon Josefsson  <jas@extundo.com>
77160
77161         * lib/socket_.h: New file.
77162
77163 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77164
77165         * modules/readutmp (Maintainer): Add myself.
77166
77167 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77168
77169         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
77170         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
77171         People who are still concerned with buggy memcmp implementations
77172         can invoke gl_FUNC_MEMCMP themselves.
77173
77174 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77175
77176         * lib/regex_internal.h (BITSET_WORD_BITS):
77177         Work around a bug in 64-bit PGC (before version 6.1-2), where the
77178         preprocessor mishandles large unsigned values as if they were signed.
77179         Problem reported by Claudio Fontana in
77180         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
77181
77182 2006-01-10  Jim Meyering  <jim@meyering.net>
77183
77184         Avoid the double-free (first in fts_read, second in fts_close) that
77185         would occur when an `active' directory is made inaccessible (e.g.,
77186         via chmod a-x) during a traversal.
77187         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77188         before returning.  Reproduce this failure by
77189         mkdir -p a/b; cd a; chmod a-x . b
77190         Reported by Stavros Passas.
77191
77192         Sync from coreutils.
77193         * lib/sha1.c: Tweak grammar in a comment.
77194
77195 2006-01-10  Jim Meyering  <jim@meyering.net>
77196
77197         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
77198         Patch by Joerg Sonnenberger.
77199
77200 2006-01-10  Bruno Haible  <bruno@clisp.org>
77201
77202         * modules/readutmp: Depend on module free.
77203         * modules/strtok_r: Depend on module restrict.
77204
77205 2006-01-10  Bruno Haible  <bruno@clisp.org>
77206
77207         * modules/gettext (configure.ac): Add an invocation of
77208         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
77209
77210 2006-01-10  Bruno Haible  <bruno@clisp.org>
77211
77212         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
77213         Reported by Werner Lemberg <wl@gnu.org>.
77214
77215 2006-01-10  Bruno Haible  <bruno@clisp.org>
77216
77217         * lib/localcharset.c: Update from GNU gettext.
77218
77219 2006-01-10  Bruno Haible  <bruno@clisp.org>
77220
77221         * lib/argp.h (__const): Remove macro. Use const instead.
77222         * lib/argp-fmtstream.h (__const): Likewise.
77223         * lib/glob_.h (__const): Remove macro.
77224         * lib/glob-libc.h: Use const instead of __const.
77225
77226 2006-01-10  Bruno Haible  <bruno@clisp.org>
77227
77228         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
77229         variable.
77230         Needed to avoid an automake error regarding the 'gettext' module.
77231
77232 2006-01-09  Simon Josefsson  <jas@extundo.com>
77233
77234         * modules/inet_ntop (Depends-on): Add restrict.
77235
77236 2006-01-09  Simon Josefsson  <jas@extundo.com>
77237
77238         * modules/gc-rijndael-tests (License): Put under LGPL.
77239
77240         * modules/gc-des-tests (License): Likewise.
77241
77242         * modules/gc-arcfour-tests (License): Likewise.
77243
77244         * modules/gc-arctwo-tests (License): Likewise.
77245
77246         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
77247
77248         * modules/gc-hmac-sha1-tests (Files): Likewise.
77249
77250         * modules/gc-hmac-md5-tests (License): Likewise.
77251
77252         * modules/gc-sha1-tests (License): Likewise.
77253
77254         * modules/gc-md5-tests (License): Likewise.
77255
77256         * modules/gc-md4-tests (License): Likewise.
77257
77258         * modules/gc-md2-tests (License): Likewise.
77259
77260         * modules/gc-tests (License): Likewise.
77261
77262         * modules/des-tests (License): Likewise.
77263
77264         * modules/md4-tests (License): Likewise.
77265
77266         * modules/md2-tests (License): Likewise.
77267
77268 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77269
77270         Sync from coreutils:
77271
77272         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
77273         * modules/lib-ignore: New file.
77274         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
77275         chdir-safer.m4, lchmod.m4.
77276         * modules/openat: Add mkdirat.c, openat-priv.h.
77277
77278 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77279
77280         Sync from coreutils.
77281         * m4/lib-ignore.m4: New file.
77282         * m4/lchmod.m4: New file.
77283
77284 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77285
77286         Sync from coreutils.
77287         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
77288         for write access: POSIX says that must fail.
77289         * lib/fts.c (diropen): Likewise.
77290         * lib/save-cwd.c (save_cwd): Likewise.
77291         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
77292         well, for minor improvements on hosts that lack O_DIRECTORY.
77293         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
77294         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
77295         Fall back on chown if open failed with EACCES.
77296
77297         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
77298         Report an error at compile-time if only a 1-second nominal clock
77299         resolution is found.
77300
77301         * lib/lchmod.h: New file.
77302         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
77303         (make_dir_parents): Use lchown rather than chown, and
77304         lchmod rather than chmod.
77305
77306         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
77307         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
77308         "proc" reported by n0dalus.
77309
77310         * lib/mountlist.c: Include <limits.h>.
77311         (dev_from_mount_options)
77312         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
77313         New function.  It no longer assumes "dev=" has the System V meaning
77314         on Linux (since it doesn't).  It also parses "dev=" more carefully.
77315         (read_file_system_list)
77316         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
77317         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
77318         dev= in that case.
77319
77320         * lib/posixtm.h (PDS_PRE_2000): New macro.
77321         * lib/posixtm.c (year): Arg is now syntax_bits rather than
77322         allow_century.  All usages changed.  Reject dates outside the range
77323         1969-1999 if PDS_PRE_2000 is used.
77324
77325 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77326
77327         Sync from coreutils.
77328         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
77329         (Time of day items): Mention the possibility of leap seconds.
77330         Problem reported by Dr. David Alan Gilbert.
77331
77332 2006-01-09  Jim Meyering  <jim@meyering.net>
77333
77334         Sync from coreutils.
77335
77336         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
77337
77338         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
77339
77340         * lib/modechange.c (mode_compile): Reject an invalid mode string
77341         that starts with an octal digit.  From Andreas Gruenbacher.
77342
77343         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
77344         and dup to open_safer and dup_safer, respectively.
77345         (openat_permissive): Fix typo in comment.
77346
77347         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
77348         "gettext.h"; either no longer needed or are guaranteed by openat.h.
77349         (_): Remove; no longer needed.
77350         (openat): Renamed from rpl_openat; no need for rpl_openat
77351         since openat.h renames openat for us.
77352         Replace most of the body with a call to openat_permissive,
77353         to avoid duplicate code.
77354         Port to (probably hypothetical) environments were mode_t is
77355         wider than int.
77356         (openat_permissive): Require mode arg, so that we can check
77357         types better.  Put it just after flags.  Change cwd failure
77358         indicator from pointer-to-bool to pointer-to-errno-value.
77359         All callers changed.
77360         Invoke openat_save_fail and/or openat_restore_fail if
77361         cwd_errno is null, so that openat can call us.
77362         (openat_permissive, fdopendir, fstatat, unlinkat):
77363         Simplify errno handling to avoid some duplicate code,
77364         as it's OK to set errno on success.
77365         * lib/openat.h: Revamp code so that function macros depend on
77366         __OPENAT_PREFIX only, not also on AT_FDCWD.
77367         (openat_ro): Remove.  Caller changed to use openat_permissive.
77368         (openat_permissive): Now a macro, if not a function.
77369         (openat_restore_fail, openat_save_fail): Now always functions,
77370         since mkdirat needs them even if __OPENAT_PREFIX is defined.
77371
77372         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
77373         and openat.c.
77374         * lib/mkdirat.c: Include openat-priv.h.
77375         Remove definitions of macros defined therein.
77376         * lib/openat.c: Likewise.
77377
77378         * lib/mkdirat.c (mkdirat): New file and function.
77379         * lib/openat.h (mkdirat): Declare.
77380
77381         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
77382
77383         * lib/openat.h (openat_permissive): Declare.
77384         (openat_ro): Define.
77385
77386         * lib/openat.c (EXPECTED_ERRNO): New macro.
77387         (openat_permissive): New function -- used in remove.c rewrite.
77388         (all functions): Set errno just before returning, only if there
77389         was an actual failure.
77390         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
77391
77392         Emulate openat-family functions using Linux's procfs, if possible.
77393         Idea and some code based on Ulrich Drepper's glibc changes.
77394
77395         * lib/openat.c: (BUILD_PROC_NAME): New macro.
77396         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
77397         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
77398         before falling back on save_cwd and restore_cwd.
77399         (fdopendir, fstatat, unlinkat): Likewise.
77400
77401         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
77402         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
77403
77404         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
77405         as second argument to va_arg.  Otherwise, some versions of gcc
77406         warn that `if this code is reached, the program will abort'.
77407
77408 2006-01-09  Jim Meyering  <jim@meyering.net>
77409
77410         Sync from coreutils.
77411         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
77412         Require openat-priv.h.
77413
77414 2006-01-09  Bruno Haible  <bruno@clisp.org>
77415
77416         * modules/strnlen (Include): Use strnlen.h.
77417
77418 2006-01-09  Bruno Haible  <bruno@clisp.org>
77419
77420         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
77421
77422 2006-01-09  Bruno Haible  <bruno@clisp.org>
77423
77424         * lib/sysexit_.h (EX_OK): New macro.
77425         Suggested by Martin Lambers <marlam@marlam.de>.
77426
77427 2006-01-09  Bruno Haible  <bruno@clisp.org>
77428
77429         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
77430         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
77431
77432 2006-01-09  Bruno Haible  <bruno@clisp.org>
77433
77434         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
77435         numbers.
77436
77437 2006-01-09  Bruno Haible  <bruno@clisp.org>
77438
77439         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
77440         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
77441         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
77442         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
77443
77444 2006-01-09  Bruno Haible  <bruno@clisp.org>
77445
77446         * build-aux/javacomp.sh.in: New file, moved from lib/.
77447         * modules/javacomp-script (Files): Update.
77448         (configure.ac): Add AC_CONFIG_FILES invocation.
77449         (EXTRA_DIST): Remove variable.
77450
77451         * build-aux/javaexec.sh.in: New file, moved from lib/.
77452         * modules/javaexec (Files): Update.
77453         (configure.ac): Add AC_CONFIG_FILES invocation.
77454         (EXTRA_DIST): Remove javaexec.sh.in.
77455
77456         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
77457         * modules/csharpcomp-script (Files): Update.
77458         (configure.ac): Add AC_CONFIG_FILES invocation.
77459         (EXTRA_DIST): Remove variable.
77460
77461         * build-aux/csharpexec.sh.in: New file, moved from lib/.
77462         * modules/csharpexec (Files): Update.
77463         (configure.ac): Add AC_CONFIG_FILES invocation.
77464         (EXTRA_DIST): Remove csharpexec.sh.in.
77465
77466 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
77467
77468         Sync from coreutils.
77469
77470         Add POSIX ACL support
77471         * lib/acl.h (copy_acl, set_acl): Add declarations.
77472         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
77473         systems other than Linux.
77474         (chmod_or_fchmod): New function: use fchmod when possible,
77475         and chmod otherwise.
77476         (file_has_acl): Add a POSIX ACL implementation, with a
77477         Linux-specific subcase.
77478         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
77479         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
77480         acls are unsupported.
77481         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
77482         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
77483         are unsupported.
77484
77485 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
77486
77487         Sync from coreutils.
77488         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
77489
77490 2006-01-07  Bruno Haible  <bruno@clisp.org>
77491
77492         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
77493         gl_EARLY.
77494
77495 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77496
77497         * lib/strftime.c (tzname): Don't declare if it is already #defined.
77498         Problem reported for Mingw by Mark Junker.
77499
77500 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77501
77502         * README: Gnulib normally doesn't generate a tarball.
77503
77504 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
77505
77506         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
77507         long int, not int, for nanosecond counts, so that people who are
77508         used to POSIX struct timespec won't be surprised.  Reported by Jim
77509         Meyering.
77510
77511 2005-12-28  Bruno Haible  <bruno@clisp.org>
77512
77513         * build-aux/config.rpath: Update from GNU gettext.
77514
77515 2005-12-16  Jim Meyering  <jim@meyering.net>
77516
77517         * modules/fprintftime: New module.
77518         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
77519
77520 2005-12-16  Jim Meyering  <jim@meyering.net>
77521
77522         * m4/fprintftime.m4: New file.
77523
77524 2005-12-16  Jim Meyering  <jim@meyering.net>
77525
77526         * lib/fprintftime.c, lib/fprintftime.h: New files.
77527
77528 2005-12-15  Simon Josefsson  <jas@extundo.com>
77529
77530         * modules/socklen (configure.ac): Fix M4 macro name, to align with
77531         new m4/socklen.m4.
77532
77533 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77534
77535         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
77536         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
77537
77538 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77539
77540         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
77541         * lib/argp-help.c (fill_in_uparams): Check if the constructed
77542         struct uparams is valid. Fall back to the default values if it is
77543         not.
77544
77545 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77546
77547         * modules/argp (Files): Add argp-pin.c
77548         (Depends-on): dirname
77549         (lib_SOURCES): Add argp-pin.c
77550
77551 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77552
77553         * m4/argp.m4:  Check if program_invocation_name and
77554         program_invocation_short_name are declared and define appropriate
77555         macros if they are not.
77556
77557 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77558
77559         * lib/argp-help.c (__argp_base_name): New function
77560         (__argp_short_program_name): Rewrite using __argp_base_name
77561         * lib/argp-namefrob.h: Define program_invocation_name and
77562         program_invocation_short_name if requested
77563         (__argp_base_name): Add prototype
77564         * lib/argp-parse.c (argp_def): Use gettext wrappers
77565         (argp_default_parser): Use __argp_base_name
77566         * lib/argp-pin.c: New file. Defines program_invocation_name and
77567         program_invocation_short_name on systems that lack them.
77568
77569 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77570
77571         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
77572         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
77573         porting problem reported by Georg Schwarz in
77574         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
77575
77576 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77577
77578         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
77579         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
77580         porting problem reported by Georg Schwarz in
77581         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
77582
77583 2005-12-05  Bruno Haible  <bruno@clisp.org>
77584
77585         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
77586         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
77587         Reported by Mark Junker <mjscod@gmx.de>.
77588
77589 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
77590
77591         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
77592         Use implementation from Albert Chin, with some
77593         comments/corrections by Stepan Kasal and myself.
77594
77595 2005-12-02  Bruno Haible  <bruno@clisp.org>
77596
77597         * gnulib-tool (func_import): Accept GPLed build tool modules when
77598         --lgpl is given.
77599         * modules/csharpcomp-script: New file.
77600         * modules/csharpcomp: Depend on it.
77601         * modules/javacomp-script: New file.
77602         * modules/javacomp: Depend on it.
77603         Suggested by Simon Josefsson.
77604
77605 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
77606
77607         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
77608         statement, to work around an HP-UX 10.20 compiler bug reported by
77609         Peter O'Gorman.
77610
77611 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
77612
77613         * modules/savedir (Depends-on): Add openat.
77614
77615 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
77616
77617         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
77618         (uintmax_t) [defined uintmax_t]: Do not declare.
77619         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
77620         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
77621         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
77622         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
77623         sake of portability to weird hosts that C allows (though we don't
77624         know of any practical examples).
77625
77626         * lib/savedir.h (fdsavedir): New decl.
77627         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
77628         contains most of the former guts of savedir.
77629         (savedir): Use savedirstream.
77630         Include "openat.h".
77631
77632 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77633
77634         * modules/obstack (Files): Add m4/ulonglong.m4.
77635         Problem reported by Davide Angelocola.
77636
77637 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
77638
77639         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
77640         coreutils no longer futzes with rounding modes.
77641
77642 2005-11-14  Jim Meyering  <jim@meyering.net>
77643
77644         * lib/mkstemp-safer.c: Include <config.h>, required for possible
77645         replacement of mkstemp.
77646
77647 2005-11-10  Simon Josefsson  <jas@extundo.com>
77648
77649         * lib/readline.c: Remove EOL.
77650
77651 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77652
77653         * modules/gethrxtime (Depends-on): Add gettime.
77654
77655 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77656
77657         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
77658         or gettimeofday; no longer needed.
77659
77660 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77661
77662         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
77663         time business.
77664         (gethrxtime) [! (HAVE_NANOUPTIME
77665         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
77666         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
77667         our own approximation.
77668
77669 2005-11-08  Eric Blake  <ebb9@byu.net>
77670
77671         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
77672
77673 2005-11-08  Eric Blake  <ebb9@byu.net>
77674
77675         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
77676
77677 2005-11-04  Bruno Haible  <bruno@clisp.org>
77678
77679         * gnulib-tool: Implement --update mode.
77680
77681 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77682
77683         Fix porting problem reported by Theodoros V. Kalamatianos.
77684         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
77685         Don't assume that futimes failing means we must fail.
77686
77687 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77688
77689         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
77690         variables to suggest the intended function of the PATH_MAX check.
77691
77692 2005-10-30  Kean Johnston  <jkj@sco.com>
77693
77694         Trivial changes to support SCO systems.
77695         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
77696         as PATH_MAX.
77697         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
77698         where __ptr is null when no I/O is pending.
77699
77700 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77701
77702         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
77703         leave errno alone.  Problem reported by Dmitry V. Levin.
77704
77705 2005-10-28  Simon Josefsson  <jas@extundo.com>
77706
77707         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
77708         Test more.
77709
77710         * tests/test-gc-md2.c, tests/test-md2.c: New files.
77711
77712         * modules/md2, modules/md2-tests: New files.
77713
77714 2005-10-28  Simon Josefsson  <jas@extundo.com>
77715
77716         * m4/inet_ntop.m4: More tests.
77717
77718         * m4/gc-md2.m4, md2.m4: New file.
77719
77720 2005-10-28  Simon Josefsson  <jas@extundo.com>
77721
77722         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
77723         "restrict" keywords, as per POSIX.  Protect the function
77724         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
77725         Don't use K&R prototypes.  Check the sprintf return values.
77726         Re-define EAFNOSUPPORT if not present.  Indent.
77727
77728         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
77729         suggested by Bruno Haible <bruno@clisp.org>.
77730
77731         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
77732
77733         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
77734
77735         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
77736         libgcrypt).
77737
77738         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
77739
77740         * lib/md2.h, lib/md2.c: New files.
77741
77742 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
77743
77744         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
77745         errno alone.  Problem reported by Frederic Jolliton.
77746
77747 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77748
77749         * modules/verify (License): Change from GPL to LGPL.  This is a
77750         tiny module and there are apparently near-equivalents that are
77751         under the BSD license.
77752
77753 2005-10-24  Simon Josefsson  <jas@extundo.com>
77754
77755         * modules/sha1: Relicense to LGPL.
77756
77757 2005-10-24  Simon Josefsson  <jas@extundo.com>
77758
77759         * lib/md4.h: Shrink buffer size, now that we changed the type.
77760
77761 2005-10-23  Simon Josefsson  <jas@extundo.com>
77762
77763         * gnulib-tool (func_import): Fix --tests-base.
77764
77765 2005-10-22  Simon Josefsson  <jas@extundo.com>
77766
77767         * modules/arcfour (Depends-on): Need stdint.
77768
77769 2005-10-22  Simon Josefsson  <jas@extundo.com>
77770
77771         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
77772         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
77773
77774 2005-10-22  Simon Josefsson  <jas@extundo.com>
77775
77776         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
77777         suggested by Bruno Haible <bruno@clisp.org>.
77778
77779 2005-10-22  Simon Josefsson  <jas@extundo.com>
77780
77781         * lib/crc.h: Include stddef.h, for size_t.
77782
77783 2005-10-22  Simon Josefsson  <jas@extundo.com>
77784
77785         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
77786         arcfour_context struct (simplify test vector testing in GNU
77787         Shishi).
77788
77789 2005-10-21  Simon Josefsson  <jas@extundo.com>
77790
77791         * modules/des, modules/des-tests: New files.
77792
77793         * modules/gc-des, modules/gc-des-tests: New files.
77794
77795         * tests/test-des.c, tests/test-gc-des.c: New file.
77796
77797 2005-10-21  Simon Josefsson  <jas@extundo.com>
77798
77799         * modules/arctwo, modules/arctwo-tests: New files.
77800
77801         * tests/test-arctwo.c: New file.
77802
77803         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
77804
77805         * tests/test-gc-arctwo.c: New file.
77806
77807 2005-10-21  Simon Josefsson  <jas@extundo.com>
77808
77809         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
77810         Bruno Haible <bruno@clisp.org>.
77811
77812         * m4/gc-des.m4: New file.
77813
77814 2005-10-21  Simon Josefsson  <jas@extundo.com>
77815
77816         * m4/arctwo.m4: New file.
77817
77818         * m4/gc-arctwo.m4: New file.
77819
77820 2005-10-21  Simon Josefsson  <jas@extundo.com>
77821
77822         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
77823         block.
77824
77825 2005-10-21  Simon Josefsson  <jas@extundo.com>
77826
77827         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
77828         <bruno@clisp.org>.
77829
77830         * lib/hmac-sha1.c (hmac_sha1): Likewise.
77831
77832         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
77833         Bruno Haible <bruno@clisp.org>.
77834
77835         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
77836         <bruno@clisp.org>.
77837
77838 2005-10-21  Simon Josefsson  <jas@extundo.com>
77839
77840         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
77841
77842 2005-10-21  Simon Josefsson  <jas@extundo.com>
77843
77844         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
77845
77846 2005-10-21  Simon Josefsson  <jas@extundo.com>
77847
77848         * lib/des.h, lib/des.c: New files.
77849
77850         * lib/gc-gnulib.c: Support DES.c
77851
77852 2005-10-21  Simon Josefsson  <jas@extundo.com>
77853
77854         * lib/arctwo.h, lib/arctwo.c: New files.
77855
77856         * lib/gc-gnulib.c: Support ARCTWO.
77857
77858 2005-10-21  Simon Josefsson  <jas@extundo.com>
77859
77860         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
77861         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77862
77863 2005-10-21  Simon Josefsson  <jas@extundo.com>
77864
77865         * gnulib-tool (func_import, func_create_testdir): Define automake
77866         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
77867         Makefile.am snippet),
77868         suggested by Bruno Haible <bruno@clisp.org>.
77869
77870         * modules/gc (Makefile.am): Use it.
77871
77872 2005-10-21  Bruno Haible  <bruno@clisp.org>
77873
77874         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
77875         patch.
77876
77877 2005-10-19  Simon Josefsson  <jas@extundo.com>
77878
77879         * tests/test-gc-rijndael.c: New file.
77880
77881         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
77882
77883 2005-10-19  Simon Josefsson  <jas@extundo.com>
77884
77885         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
77886         interface too.
77887
77888 2005-10-19  Simon Josefsson  <jas@extundo.com>
77889
77890         * tests/test-gc-arcfour.c: New file.
77891
77892         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
77893
77894 2005-10-19  Simon Josefsson  <jas@extundo.com>
77895
77896         * modules/gc-md4, modules/gc-md4-tests: New file.
77897
77898         * tests/test-gc-md4.c: New file.
77899
77900 2005-10-19  Simon Josefsson  <jas@extundo.com>
77901
77902         * m4/gc-md4.m4: New file.
77903
77904 2005-10-19  Simon Josefsson  <jas@extundo.com>
77905
77906         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
77907         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
77908         <kasal@ucw.cz>.
77909
77910 2005-10-19  Simon Josefsson  <jas@extundo.com>
77911
77912         * m4/gc-arcfour.m4: New file.
77913
77914         * m4/gc-rijndael.m4: New file.
77915
77916 2005-10-19  Simon Josefsson  <jas@extundo.com>
77917
77918         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
77919
77920 2005-10-19  Simon Josefsson  <jas@extundo.com>
77921
77922         * lib/gc-gnulib.c: Support ARCFOUR.
77923
77924 2005-10-19  Simon Josefsson  <jas@extundo.com>
77925
77926         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
77927         support.
77928
77929         * lib/gc.h: Add ECB enum type.
77930
77931         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
77932
77933 2005-10-18  Simon Josefsson  <jas@extundo.com>
77934
77935         * tests/test-md5.c: New file.
77936
77937         * modules/md5-tests: New file.
77938
77939 2005-10-18  Simon Josefsson  <jas@extundo.com>
77940
77941         * tests/test-md4.c: New file.
77942
77943         * modules/md4, modules/md4-tests: New files.
77944
77945 2005-10-18  Simon Josefsson  <jas@extundo.com>
77946
77947         * m4/md4.m4: New file.
77948
77949 2005-10-18  Simon Josefsson  <jas@extundo.com>
77950
77951         * lib/md4.h, lib/md4.c: New files, based on md5.?.
77952
77953 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
77954
77955         * gnulib-tool (func_create_testdir): Omit the second check whether
77956         BUILT_SOURCES in nonempty.
77957
77958 2005-10-17  Simon Josefsson  <jas@extundo.com>
77959
77960         * tests/test-rijndael.c: New file.
77961
77962 2005-10-17  Simon Josefsson  <jas@extundo.com>
77963
77964         * modules/sha1: Depend on stdint instead of md5.
77965
77966         * modules/md5: Depend on stdint, remove uint32_t.
77967
77968 2005-10-17  Simon Josefsson  <jas@extundo.com>
77969
77970         * modules/gc-sha1-tests: New file.
77971
77972         * tests/test-gc-sha1.c: New file.
77973
77974 2005-10-17  Simon Josefsson  <jas@extundo.com>
77975
77976         * m4/md5.m4: Remove call to uint32_t.m4.
77977
77978 2005-10-17  Simon Josefsson  <jas@extundo.com>
77979
77980         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
77981
77982         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
77983         md5.h.
77984
77985         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
77986
77987         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
77988
77989 2005-10-17  Simon Josefsson  <jas@extundo.com>
77990
77991         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
77992
77993 2005-10-17  Simon Josefsson  <jas@extundo.com>
77994
77995         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
77996
77997 2005-10-17  Simon Josefsson  <jas@extundo.com>
77998
77999         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
78000
78001         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
78002
78003 2005-10-17  Bruno Haible  <bruno@clisp.org>
78004
78005         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
78006         that it can also be used in a test.
78007
78008 2005-10-16  Bruno Haible  <bruno@clisp.org>
78009
78010         * gnulib-tool (func_emit_tests_Makefile_am): Also define
78011         TESTS_ENVIRONMENT, so that individual tests can augment it.
78012
78013         * gnulib-tool (func_create_testdir): Use an intermediate target for
78014         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
78015         macros, like $(ALLOCA_H), which cannot be passed through the command
78016         line.
78017
78018 2005-10-15  Simon Josefsson  <jas@extundo.com>
78019
78020         * modules/rijndael-tests: New file.
78021
78022         * modules/rijndael: New file.
78023
78024 2005-10-15  Simon Josefsson  <jas@extundo.com>
78025
78026         * m4/rijndael.m4: New file.
78027
78028 2005-10-15  Simon Josefsson  <jas@extundo.com>
78029
78030         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
78031
78032         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
78033
78034 2005-10-14  Simon Josefsson  <jas@extundo.com>
78035
78036         * tests/test-arcfour.c: New file.
78037
78038         * modules/arcfour, modules/arcfour-tests: New files.
78039
78040 2005-10-14  Simon Josefsson  <jas@extundo.com>
78041
78042         * m4/arcfour.m4: New file.
78043
78044 2005-10-14  Simon Josefsson  <jas@extundo.com>
78045
78046         * lib/arcfour.h, lib/arcfour.c: New files.
78047
78048 2005-10-14  Roland McGrath  <roland@redhat.com>
78049
78050         Import from libc.  [BZ #1331]
78051         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
78052         macro argument.
78053         Reported by Matej Vela <vela@debian.org>.
78054
78055 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78056
78057         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
78058         include <wchar.h>; no longer needed.
78059
78060 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78061
78062         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
78063
78064 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
78065         and  Ulrich Drepper  <drepper@redhat.com>
78066
78067         Import from libc.
78068         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
78069         instead of inline stream orientation test and two separate
78070         function calls.  Pay no attention to USE_IN_LIBIO.
78071
78072 2005-10-13  Simon Josefsson  <jas@extundo.com>
78073
78074         * modules/gc-hmac-md5-tests: New file.
78075
78076         * tests/test-gc-hmac-sha1.c: New file.
78077
78078         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
78079
78080         * modules/gc-hmac-md5-tests: New file.
78081
78082         * tests/test-gc-md5.c: New file.
78083
78084         * modules/gc-md5-tests: New file.
78085
78086 2005-10-13  Simon Josefsson  <jas@extundo.com>
78087
78088         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
78089         Move memory allocation outside of loop.
78090
78091 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
78092
78093         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
78094         intermediate directory is in a read-only file system.  Problem
78095         reported by Eric Blake.
78096
78097 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
78098
78099         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
78100
78101 2005-10-12  Simon Josefsson  <jas@extundo.com>
78102
78103         * tests/test-hmac-sha1.c: New file.
78104
78105         * modules/hmac-sha1-tests: New file.
78106
78107         * modules/hmac-sha1: New file.
78108
78109 2005-10-12  Simon Josefsson  <jas@extundo.com>
78110
78111         * modules/gc-sha1: New file.
78112
78113 2005-10-12  Simon Josefsson  <jas@extundo.com>
78114
78115         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
78116
78117         * tests/test-gc-pbkdf2-sha1.c: New file.
78118
78119 2005-10-12  Simon Josefsson  <jas@extundo.com>
78120
78121         * modules/gc-md5, modules/gc-hmac-md5: New files.
78122
78123         * modules/gc (Files): Remove md5, memxor and hmac files.
78124
78125 2005-10-12  Simon Josefsson  <jas@extundo.com>
78126
78127         * m4/gc-pbkdf2-sha1.m4: New file.
78128
78129         * m4/gc-hmac-sha1.m4: New file.
78130
78131         * m4/gc-sha1: New file.
78132
78133         * m4/hmac-sha1.m4: New file.
78134
78135 2005-10-12  Simon Josefsson  <jas@extundo.com>
78136
78137         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
78138
78139         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
78140
78141 2005-10-12  Simon Josefsson  <jas@extundo.com>
78142
78143         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
78144         suggested by Bruno Haible <bruno@clisp.org>.
78145
78146 2005-10-12  Simon Josefsson  <jas@extundo.com>
78147
78148         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
78149
78150 2005-10-12  Simon Josefsson  <jas@extundo.com>
78151
78152         * lib/gc-pbkdf2-sha1.c: New file.
78153
78154         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
78155
78156 2005-10-12  Simon Josefsson  <jas@extundo.com>
78157
78158         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
78159
78160         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
78161
78162 2005-10-12  Simon Josefsson  <jas@extundo.com>
78163
78164         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
78165         GC_USE_HMAC_MD5, respectively.
78166
78167         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
78168         (gc_md5): Fix typo.
78169
78170         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
78171
78172         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
78173
78174         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
78175
78176 2005-10-12  Bruno Haible  <bruno@clisp.org>
78177
78178         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
78179         Reported by Stepan Kasal <kasal@ucw.cz>.
78180
78181 2005-10-11  Simon Josefsson  <jas@extundo.com>
78182
78183         * tests/test-crc.c: New file.
78184
78185         * modules/crc, modules/crc-tests: New files.
78186
78187 2005-10-11  Simon Josefsson  <jas@extundo.com>
78188
78189         * m4/crc.m4: New file.
78190
78191 2005-10-11  Simon Josefsson  <jas@extundo.com>
78192
78193         * lib/gc.h: Add gc_hash and gc_hash_buffer.
78194
78195         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
78196
78197         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
78198
78199 2005-10-11  Simon Josefsson  <jas@extundo.com>
78200
78201         * lib/crc.h, lib/crc.c: New files.
78202
78203         * lib/gc.h (gc_hash_buffer): Add doc.
78204
78205 2005-10-11  Bruno Haible  <bruno@clisp.org>
78206
78207         * modules/c-strcasestr: New file.
78208         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
78209
78210 2005-10-11  Bruno Haible  <bruno@clisp.org>
78211
78212         * modules/c-strcase: New file.
78213         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
78214
78215 2005-10-11  Bruno Haible  <bruno@clisp.org>
78216
78217         * lib/strcasecmp.c: Include limits.h.
78218         (strcasecmp): Avoid integer overflow on exotic platforms.
78219         * lib/strncasecmp.c: Include limits.h.
78220         (strncasecmp): Avoid integer overflow on exotic platforms.
78221         Reported by Paul Eggert.
78222
78223 2005-10-11  Bruno Haible  <bruno@clisp.org>
78224
78225         * lib/c-strcasestr.h: New file, from GNU gettext.
78226         * lib/c-strcasestr.c: New file, from GNU gettext.
78227
78228 2005-10-11  Bruno Haible  <bruno@clisp.org>
78229
78230         * lib/c-strcase.h: New file, from GNU gettext.
78231         * lib/c-strcasecmp.c: New file, from GNU gettext.
78232         * lib/c-strncasecmp.c: New file, from GNU gettext.
78233
78234 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78235
78236         * modules/mempcpy (License): GPL -> LGPL.
78237         * modules/strchrnul (License): Likewise.
78238         * modules/sysexits (License): Likewise.
78239
78240 2005-10-08  Simon Josefsson  <jas@extundo.com>
78241
78242         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
78243
78244 2005-10-07  Simon Josefsson  <jas@extundo.com>
78245
78246         * m4/memxor.m4: Remove gl_C_RESTRICT call.
78247
78248 2005-10-06  Simon Josefsson  <jas@extundo.com>
78249
78250         * tests/test-hmac-md5.c: New file.
78251
78252         * modules/hmac-md5-tests: New file.
78253
78254         * modules/hmac-md5: New file.
78255
78256 2005-10-06  Simon Josefsson  <jas@extundo.com>
78257
78258         * m4/hmac-md5.m4: New file.
78259
78260         * m4/memxor.m4: Require gl_C_RESTRICT.
78261
78262 2005-10-06  Simon Josefsson  <jas@extundo.com>
78263
78264         * lib/memxor.c (memxor): Avoid casts and warnings.
78265
78266 2005-10-06  Simon Josefsson  <jas@extundo.com>
78267
78268         * lib/hmac-md5.c: New file.
78269
78270         * lib/hmac.h: New file.
78271
78272 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78273
78274         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
78275         promotes to int, not unsigned int, to catch the AIX 5.3
78276         compiler bug.
78277
78278 2005-10-05  Simon Josefsson  <jas@extundo.com>
78279
78280         * modules/memxor: New file.
78281
78282         * modules/iconv (Files): Move config.rpath to havelib, it is used
78283         there.
78284
78285         * modules/havelib (Files): Add config.rpath.
78286
78287 2005-10-05  Simon Josefsson  <jas@extundo.com>
78288
78289         * m4/memxor.m4: New file.
78290
78291 2005-10-05  Simon Josefsson  <jas@extundo.com>
78292
78293         * lib/memxor.c (memxor): Fix compiler error.
78294
78295         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
78296         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
78297
78298         * lib/memxor.h, lib/memxor.c: New files.
78299
78300         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
78301         we assume all systems have it, suggested by Jim Meyering
78302         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
78303         any systems lack sys/socket.h; mingw32 is known to lack it, but we
78304         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
78305         same reasons.
78306
78307 2005-10-05  Simon Josefsson  <jas@extundo.com>
78308
78309         * config/srclist.txt: Add glibc bug 1423 for md5.h.
78310
78311 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78312
78313         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
78314         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
78315         needed, since the source code now assumes these .h files.
78316
78317 2005-10-05  Derek Price  <derek@ximbiot.com>
78318
78319         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
78320
78321 2005-10-05  Bruno Haible  <bruno@clisp.org>
78322
78323         * modules/stdint (License): Change to LGPL.
78324
78325 2005-10-04  Simon Josefsson  <jas@extundo.com>
78326
78327         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
78328         D. Baushke" <mdb@gnu.org>.
78329
78330 2005-10-04  Bruno Haible  <bruno@clisp.org>
78331
78332         * lib/verify.h (verify_true): Provide alternative definition for C++.
78333
78334 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
78335
78336         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
78337         (SSIZE_MAX): New macro, if not already defined.
78338         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
78339         than 2 GiB.
78340
78341 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78342
78343         Sync from coreutils.
78344         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
78345         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
78346         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
78347         ULLONG_MAX doesn't work with 2.7.2.1.
78348
78349 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78350
78351         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
78352         From Ben Pfaff.
78353
78354         * modules/exclude (Depends-on): Depend on verify.
78355         * modules/strtoimax (Depends-on): Likewise.
78356         * modules/utimecmp (Depends-on): Likewise.
78357
78358 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78359
78360         * lib/exclude.c: Include verify.h.
78361         (verify): Remove.  All callers changed to use verify.h's version.
78362         * lib/strtoimax.c: Likewise.
78363         * lib/utimecmp.c: Likewis.e
78364
78365         Sync from coreutils.
78366         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
78367         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
78368         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
78369         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
78370         bother returning ENOSYS if settimeofday or stime fails; just let
78371         them return whatever errno they want to return.
78372         * lib/utimens.c: Include unistd.h, for dup2.
78373         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
78374         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
78375
78376 2005-10-02  Jim Meyering  <jim@meyering.net>
78377
78378         Sync from coreutils.
78379         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
78380         from glibc-2.2.5 that fails for read-only files.
78381
78382 2005-10-02  Jim Meyering  <jim@meyering.net>
78383
78384         Sync from coreutils.
78385         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
78386         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
78387         `#if HAVE_CONFIG_H'.
78388         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
78389         Remove AT_FDCWD test.
78390         Do not consume the fd unless successful.
78391         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
78392         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
78393         block, so that we don't even try to compile it if settimeofday is
78394         available.  This works around a compilation failure on OSF1 V5.1,
78395         due to stime requiring a `long int*' while tv_sec is `int'.
78396
78397 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
78398
78399         Sync from coreutils.
78400         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
78401         against `yes', rather than just testing for nonempty.
78402
78403 2005-10-01  Simon Josefsson  <jas@extundo.com>
78404
78405         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
78406         and Darwin.
78407
78408         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
78409         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
78410         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
78411         freeaddrinfo and gai_strerror are declared by the POSIX headers.
78412         Check if struct addrinfo is declared.
78413
78414 2005-10-01  Simon Josefsson  <jas@extundo.com>
78415
78416         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
78417         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
78418         AI_* and EAI_* definitions.  Protect function declarations.
78419
78420 2005-10-01  Jim Meyering  <jim@meyering.net>
78421
78422         Sync from coreutils.
78423
78424         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
78425         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
78426         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
78427         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
78428         in the inet and nsl libraries.  Required on Solaris 5.7.
78429
78430 2005-10-01  Jim Meyering  <jim@meyering.net>
78431
78432         Sync from coreutils.
78433         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
78434         in the inet and nsl libraries.  Required on Solaris 5.7.
78435
78436 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
78437
78438         * lib/getdelim.c (getdelim): Remove unused variables.
78439
78440 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78441
78442         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
78443         so that the code works even with ancient cpp.  Portability problem
78444         with GCC 2.7.2.1 reported by Thomas M.Ott.
78445
78446 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78447
78448         * modules/regex (Depends-on): Add strcase.
78449
78450         * modules/gethostname (Licence): Change from GPL to LGPL, since
78451         gethostname.c is a trivial implementation of a standard library
78452         function.
78453         * modules/poll (License): Change from GPL to LGPL, since it's
78454         derived from LGPL code.
78455
78456 2005-09-27  Jim Meyering  <jim@meyering.net>
78457
78458         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
78459         HAVE_CONFIG_H.
78460
78461         * lib/intprops.h (signed_type_or_expr__): Define.
78462         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
78463         for unsigned types.
78464
78465 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78466
78467         * lib/verify.h (verify_expr): Remove, replacing with:
78468         (verify_true): New macro that returns true instead of void.
78469         (verify_type__): Remove.
78470         (verify): Use verify_true rather than verify_type__.
78471
78472 2005-09-26  Bruno Haible  <bruno@clisp.org>
78473
78474         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
78475         is necessary.
78476         (lib_SOURCES): Remove mbchar.c.
78477         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
78478         (Files): Add m4/mbrtowc.m4.
78479         * modules/mbiter: Likewise.
78480         * modules/mbuiter: Likewise.
78481
78482 2005-09-26  Bruno Haible  <bruno@clisp.org>
78483
78484         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
78485         compile mbchar.c if they are not both present.
78486         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
78487         * m4/mbiter.m4 (gl_MBITER): Likewise.
78488         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
78489         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
78490         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
78491
78492 2005-09-25  Jim Meyering  <jim@meyering.net>
78493
78494         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
78495         also uses socklen_t.
78496
78497 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
78498
78499         * lib/utimens.c (ENOSYS): Define if not already defined.
78500         (futimens): Support having a null PATH if the file descriptor
78501         is nonnegative.
78502
78503         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
78504         Remove.
78505         (__attribute): Define to empty unless GCC 3.1 or later.
78506         This works around a core dump on OpenBSD 3.4, which has GCC
78507         2.95.3, which dumps core when given __attribute__(()).  It also
78508         simplifies other tests, since we really don't want to bother with
78509         worrying about which ancient version of GCC supported what.
78510         Original problem reported by Yoann Vandoorselaere, with part of
78511         the fix suggested by Derek Price.
78512
78513 2005-09-24  Jim Meyering  <jim@meyering.net>
78514
78515         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
78516         so we can once again use a positive bitfield width of 1 -- now we
78517         don't have to explain why we were using a bitfield width of 2.
78518
78519 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
78520
78521         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
78522         and similarly for the other external symbols.  Problem reported
78523         by James Gallager.
78524
78525         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
78526         bug reported by Jim Meyering.
78527
78528         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
78529         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
78530         not needed, since socklen is a prerequisite module.
78531
78532 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
78533
78534         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
78535         Problem reported by Eric Blake.
78536         (getaddrinfo): Initialize se so that it's not garbage.
78537         Redo internal storage allocation so that it doesn't make unportable
78538         assumptions about alignment.
78539         Fix a memory leak.
78540
78541         * lib/utimens.c (futimens): Use futimesat if available.
78542         Prefer it to futimes since it doesn't have the futimes bug.
78543
78544         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
78545         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
78546         Instead, declare a function that returns a pointer to an array,
78547         and use verify_type__ to declare the size of the array.
78548         Problem and germ of a solution reported by Bruno Haible.
78549         (verify_type__): Use 2, not 1, for bitfield size, to avoid
78550         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
78551
78552 2005-09-23  Jim Meyering  <jim@meyering.net>
78553
78554         Sync from coreutils.
78555         Correct build failure (socklen_t not defined) on at least
78556         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
78557         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
78558
78559 2005-09-23  Jim Meyering  <jim@meyering.net>
78560
78561         * modules/getaddrinfo (Depends-on): Add socklen.
78562
78563 2005-09-23  Bruno Haible  <bruno@clisp.org>
78564
78565         * tests/test-verify.c: New file.
78566
78567 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78568
78569         Sync from coreutils.
78570
78571         * modules/argmatch (Depends-on): Add verify.
78572         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
78573         unistd-safer.
78574         * modules/save-cwd (Depends-on): Likewise.
78575
78576         * modules/openat (Files): Add lib/openat-die.c.
78577         (Depends-on): Remove error, exitfail.
78578         Add dirname.
78579
78580         * modules/verify: New file.
78581         * MODULES.html.sh (Diagnostics <assert.h>): New section,
78582         with "verify" module.
78583
78584 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78585
78586         Sync from coreutils.
78587
78588         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
78589         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
78590         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
78591         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
78592         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
78593         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
78594         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
78595         Don't bother checking for string.h, stdlib.h, unistd.h.
78596         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
78597         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
78598         module's job.
78599         * m4/jm-macros.m4 (gl_MACROS): Likewise.
78600         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
78601
78602         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
78603         (gl_GETDATE): Use it.
78604
78605         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
78606
78607 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78608
78609         Sync from coreutils.
78610
78611         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
78612         stat-time.h.
78613         * lib/argmatch.h: Include verify.h
78614         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
78615         (ARGMATCH_ASSERT): Remove; unused.
78616         * lib/canonicalize.c: Assume STDC_HEADERS.
78617         * lib/exclude.c: Include "strcase.h".
78618         * lib/regex_internal.h [!defined _LIBC]: Likewise.
78619         * lib/getusershell.c: Include stdio--.h rather than stdio.h
78620         and stdio-safer.h.
78621         (getusershell): Call fopen, not fopen_safer.
78622         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
78623         Do not include unistd-safer.h.
78624         (save_cwd): Don't call fd_safer; no longer needed
78625         now that we include fcntl--.h.
78626
78627         * lib/getdate.y (relative_time): New type.
78628         (RELATIVE_TIME_0): New constant.
78629         (parser_control): Use relative_time instead of doing it ourselves.
78630         (%union): Add new relative_time rel member.
78631         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
78632         Now typeless.
78633         (relunit, relunit_snumber): Now of type rel.
78634         (zone, rel, relunit, get_date): Adjust to above changes.
78635
78636         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
78637         Do not include unistd-safer.h.
78638         (getloadavg): Don't call fd_safer; no longer needed
78639         now that we include fcntl--.h.
78640
78641         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
78642         (make_dir_parents): Treat ENOSYS like EEXIST.
78643
78644         Improve quality of diagnostics on restore_cwd failure.
78645         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
78646         (make_dir_parents): Last arg is now int * (for errno), not bool *.
78647         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
78648         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
78649         each time through the loop.  Do not diagnose restore_cwd failure;
78650         that is the caller's job (and perhaps the caller does not care).
78651
78652         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
78653         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
78654         If the file already exists but is not a directory, don't bother
78655         to try to make its parents.
78656         Close potential file descriptor leak if we can't chdir("/") (!).
78657         Don't always return true if chdir($PWD) fails; return true only
78658         if the requested action was done successfully (except for the
78659         chdir($PWD)).
78660         Don't log final directory unless we actually made it.
78661         Refactor to avoid duplicate code to fix up permissions.
78662         Don't attempt to fix up parent permissions if chdir($PWD) fails.
78663
78664         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
78665         to make it a bit faster and (I hope) clearer.
78666         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
78667         Fix bug in formats like %2N.
78668
78669         * lib/verify.h: New file.
78670
78671 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78672
78673         Sync from coreutils.
78674         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
78675
78676 2005-09-22  Jim Meyering  <jim@meyering.net>
78677
78678         Sync from coreutils.
78679
78680         * m4/lstat.m4 (gl_FUNC_LSTAT):
78681         Use AC_LIBSOURCES to require lstat.c and lstat.h.
78682         Remove obsolete comment.
78683         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
78684         * m4/xstrtod.m4: Likewise.
78685
78686         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
78687
78688 2005-09-22  Jim Meyering  <jim@meyering.net>
78689
78690         Sync from coreutils.
78691
78692         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
78693
78694         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
78695         the .tm_year member, since otherwise gcc-4.0 would now warn about
78696         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
78697
78698         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
78699         order to avoid an unsuppressible warning from gcc on 64-bit systems.
78700
78701         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
78702         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
78703         when run in a time zone for which daylight savings time is in effect
78704         for the starting date.
78705
78706         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
78707         stop us from restricting permissions of just-created absolute-named
78708         directories.
78709         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
78710         to restore initial working directory.
78711         * lib/mkdir-p.c (make_dir_parents): New parameter:
78712         different_working_dir, to tell caller if/when we change the working
78713         directory and are unable to return to the initial one.
78714         * lib/mkdir-p.h (make_dir_parents): Update prototype.
78715         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
78716         `return false'.  This fixes a bug introduced on 2004-07-30.
78717
78718         * lib/openat.c (fdopendir): Be sure to close the supplied
78719         file descriptor before returning.  This makes our replacement
78720         implementation a little closer to Solaris's, where fdopendir
78721         ties the file descriptor to the returned DIR* pointer.
78722         * lib/openat.c (unlinkat): New function.
78723         * lib/openat.h (unlinkat): Add prototype.
78724         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
78725         (openat_restore_fail): Rename from openat_restore_die.
78726         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
78727
78728         Provide an alternative to exiting immediately upon save_cwd or
78729         restore_cwd failure.  Now, an application can arrange e.g.,
78730         to perform a longjump in that case.
78731         * lib/openat.c: Include dirname.h.
78732         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
78733         (rpl_openat, fdopendir, fstatat): Call openat_save_die
78734         and openat_restore_die rather than calling error directly.
78735         Don't include "error.h" or "exitfail.h"; they're no longer needed.
78736
78737         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
78738         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
78739         define.
78740
78741         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
78742         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
78743                             int utc, int nanoseconds);
78744         Background:
78745         date should not have to allocate a megabyte of virtual memory to
78746         handle a format argument like +%1048575T.  When implemented with
78747         strftime, it must allocate such a buffer, use strftime to fill it
78748         in, print it, then free it.
78749         With fprintftime, it simply prints everything and exits.
78750         With no need for memory allocation, that's one fewer way to fail.
78751         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
78752         optional field width, not before, so we accept %9:z, not %:9z.
78753         (my_strftime): Be sure to use L_('x') for literals.
78754
78755         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
78756         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
78757         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
78758         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
78759         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
78760         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
78761         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
78762         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
78763         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
78764         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
78765         * lib/xgethostname.c, lib/xreadlink.c:
78766         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
78767
78768         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
78769         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
78770         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
78771         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78772         and don't include <sys/file.h>).
78773
78774 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
78775
78776         Sync from coreutils.
78777
78778         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
78779         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
78780         [!LDAV_DONE]: Avoid unused variable warning.
78781
78782 2005-09-21  Bruno Haible  <bruno@clisp.org>
78783
78784         * lib/unicodeio.h (unicode_to_mb): New declaration.
78785
78786 2005-09-20  Derek Price  <derek@ximbiot.com>
78787
78788         * lib/getaddrinfo.c: Don't include <netdb.h> included from
78789         getaddrinfo.h.
78790
78791 2005-09-20  Bruno Haible  <bruno@clisp.org>
78792
78793         * gnulib-tool: Remove trailing slashes from the values specified for
78794         --source-base, --m4-base, --tests-base, --aux-dir.
78795         Suggested by Simon Josefsson <jas@extundo.com>.
78796
78797 2005-09-20  Bruno Haible  <bruno@clisp.org>
78798
78799         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
78800         func_modules_to_filelist, func_import, func_create_testdir): Make all
78801         sorting results locale-independent, so that gnulib-cache.m4 doesn't
78802         change when gnulib-tool is invoked in a different locale.
78803
78804 2005-09-19  Simon Josefsson  <jas@extundo.com>
78805
78806         * m4/socklen.m4: Fix typo.
78807
78808 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78809
78810         Use a consistent style for including <config.h>.
78811         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
78812         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
78813         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
78814         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
78815         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
78816         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
78817         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
78818         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
78819         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
78820         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
78821         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
78822         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
78823         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
78824         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
78825         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
78826         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
78827         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
78828         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
78829         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
78830         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
78831         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
78832         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
78833         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
78834         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
78835         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
78836         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
78837         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
78838         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
78839         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
78840         lib/xstrtoumax.c, lib/yesno.c:
78841         Standardize inclusion of config.h.
78842         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
78843         lib/inttostr.h:  Removed inclusion of config.h from header files.
78844         * lib/inttostr.c:  Adjusted in-tree users.
78845         * lib/timespec.h: Remove superfluous warning to include config.h.
78846         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
78847         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
78848         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
78849         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
78850         config.h with HAVE_CONFIG_H.
78851
78852 2005-09-19  Jim Meyering  <jim@meyering.net>
78853
78854         * modules/pathmax (License): Change to LGPL.
78855
78856 2005-09-19  Derek Price  <derek@ximbiot.com>
78857
78858         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
78859
78860 2005-09-19  Bruno Haible  <bruno@clisp.org>
78861
78862         * gnulib-tool (import): Provide default for --tests-base.
78863
78864 2005-09-19  Bruno Haible  <bruno@clisp.org>
78865
78866         * doc/quote.texi: New file, extracted from gnulib.texi.
78867         * doc/ctime.texi: New file, extracted from gnulib.texi.
78868         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
78869         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
78870         * doc/gnulib.texi: Include them.
78871
78872 2005-09-18  Bruno Haible  <bruno@clisp.org>
78873
78874         Portability fix.
78875         * gnulib-tool (func_readlink): New function.
78876         (func_ln_if_changed): Use it.
78877
78878 2005-09-18  Bruno Haible  <bruno@clisp.org>
78879
78880         * gnulib-tool: Support --with-tests also with --import.
78881         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
78882         (func_import): Use variables $testsbase and $inctests. Emit a
78883         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
78884         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
78885         SUBDIRS += $testsdir.
78886         (func_create_testdir): Update.
78887
78888 2005-09-18  Bruno Haible  <bruno@clisp.org>
78889
78890         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
78891         instead of $dry_run.
78892         (func_cp_if_changed, func_mv_if_changed): Remove functions.
78893         (func_ln_if_changed): Don't handle dry-run here.
78894         (func_import): In dry-run mode, detect more precisely which actions
78895         would be performed, and don't use "...ing" verbs.
78896
78897 2005-09-18  Bruno Haible  <bruno@clisp.org>
78898
78899         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
78900         (func_import): Use join on two temporary files instead of three nested
78901         loops, in order to determine which files are new or old.
78902
78903 2005-09-18  Bruno Haible  <bruno@clisp.org>
78904
78905         * gnulib-tool (func_import): Comment out code that spits out the
78906         new files with --dry-run.
78907
78908 2005-09-18  Bruno Haible  <bruno@clisp.org>
78909
78910         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
78911
78912 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
78913
78914         * lib/stat-time.h: New file.
78915         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
78916         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
78917         in a different way.
78918         (timespec_cmp): New function.
78919         * lib/utimecmp.c: Include stat-time.h.
78920         (SYSCALL_RESOLUTION): Depend on whether various struct stat
78921         members exist, not on the obsolescent ST_MTIM_NSEC.
78922         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
78923
78924 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
78925
78926         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
78927
78928 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
78929
78930         * MODULES.html.sh (File system functions): Add stat-time.
78931         * modules/stat-time: New file.
78932         * modules/timespec (Files): Remove m4/st_mtim.m4; this
78933         is now done in a different way, by the stat-time module.
78934         * modules/utimecmp (Depends-on): Add stat-time.
78935
78936 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78937
78938         * m4/st_mtim.m4: Remove.  Superseded by...
78939         * m4/stat-time.m4: New file.
78940         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
78941         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
78942
78943 2005-09-15  Derek Price  <derek@ximbiot.com>
78944
78945         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
78946
78947 2005-09-15  Derek Price  <derek@ximbiot.com>
78948
78949         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
78950         * lib/regex_internal.c: Ditto, using this...
78951         (__GNUC_PREREQ): ...new macro.
78952         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
78953         using...
78954         (__GNUC_PREREQ): ...this new macro.
78955
78956         * lib/strstr.h: Include string.h. Define strstr as a macro here.
78957
78958 2005-09-15  Derek Price  <derek@ximbiot.com>
78959             Paul Eggert  <eggert@cs.ucla.edu>
78960
78961         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
78962         changes, consolidating in...
78963         * lib/regex_internal.h: ...this file.
78964
78965 2005-09-13  Jim Meyering  <jim@meyering.net>
78966
78967         * lib/canon-host.c: Filter through gnu indent and reword comments
78968         slightly.
78969         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
78970
78971 2005-09-13  Derek Price  <derek@ximbiot.com>
78972
78973         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
78974         failure.
78975         Reported by Jim Meyering  <jim@meyering.net>.
78976
78977 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78978
78979         * lib/base64.c: Typo.
78980         (base64_encode): Put b64str in initialized data section.
78981
78982 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
78983
78984         Merge glibc and coreutils changes into gnulib, plus a few
78985         extra fixes.
78986         * lib/md5.c: Use #error rather than a string.
78987         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
78988         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
78989         (__attribute__): Define to empty for non recent-GCC.
78990         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
78991         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
78992         Renamed from their non-__ counterparts, with new macros replacing
78993         them if not _LIBC.  Add __THROW attribute.
78994         (rol): Remove.
78995         (struct md5_ctx): Align buffer if using GCC.
78996         * lib/sha1.h (struct sha1_ctx): Likewise.
78997         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
78998         The old name was backwards.
78999         (NOTSWAP): Remove; not used.
79000         (rol): New macro, moved here from md5.h.
79001         (sha1_process_block): Remove a FIXME that doesn't make sense.
79002
79003 2005-09-12  Derek Price  <derek@ximbiot.com>
79004
79005         Return usable errors from canon-host.
79006         * lib/canon-host.h: New file.
79007         * lib/canon-host.c (canon_host): Wrap...
79008         (canon_host_r): ...this new function, which now relies exclusively on
79009         getaddrinfo.
79010         (ch_strerror): New function.
79011         (last_cherror): New global.
79012         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
79013         interface.
79014         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
79015         void *.
79016         (freeaddrinfo): Free ai->ai_canonname when set.
79017
79018 2005-09-12  Derek Price  <derek@ximbiot.com>
79019
79020         Make canon-host require getaddrinfo.
79021         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
79022         AC_LIBSOURCE canon-host.h.  Call...
79023         (gl_PREREQ_CANON_HOST): ...this new function, which requires
79024         gl_GETADDRINFO.
79025         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
79026
79027 2005-09-12  Derek Price  <derek@ximbiot.com>
79028
79029         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
79030         LGPL.
79031         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
79032
79033 2005-09-12  Derek Price  <derek@ximbiot.com>
79034
79035         * lib/gai_strerror.c: Include config.h when available.  Include
79036         getaddrinfo.h before other headers to test interface.
79037         Reported by Larry Jones <lawrence.jones@ugs.com>.
79038
79039 2005-09-12  Derek Price  <derek@ximbiot.com>
79040             Paul Eggert  <eggert@cs.ucla.edu>
79041
79042         * modules/glob (Files): Add glob-libc.h.
79043
79044 2005-09-12  Derek Price  <derek@ximbiot.com>
79045             Paul Eggert  <eggert@cs.ucla.edu>
79046
79047         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
79048         glob_.h, glob-libc.h.
79049         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
79050
79051 2005-09-12  Derek Price  <derek@ximbiot.com>
79052             Paul Eggert  <eggert@cs.ucla.edu>
79053
79054         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
79055         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
79056         protecting things that should be done only in gnulib contexts.
79057         * lib/glob_.h: New file, containing only the glob things needed for
79058         gnulib.
79059         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
79060         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
79061         (glob, globfree, glob_pattern_p): Now defined simply in terms of
79062         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
79063         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
79064         and to respect the namespace rules better.
79065
79066 2005-09-08  Simon Josefsson  <jas@extundo.com>
79067
79068         * modules/socklen: New file.
79069
79070 2005-09-08  Simon Josefsson  <jas@extundo.com>
79071
79072         * m4/socklen.m4: New file.
79073
79074 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79075
79076         * modules/utimens (Files): Add m4/utimbuf.m4, since
79077         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
79078         Reported by Sergey Poznyakoff.
79079
79080 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79081
79082         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
79083         definitions, since that's the preferred style in glibc.
79084         Fix a minor spacing issue, and update copyright notice to match
79085         glibc's.
79086
79087 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79088
79089         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
79090
79091 2005-09-06  Simon Josefsson  <jas@extundo.com>
79092
79093         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
79094         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
79095
79096 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79097
79098         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
79099         warning.
79100
79101 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79102
79103         * config/srclist.txt: Add glibc bug 1302.
79104
79105 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
79106
79107         Change bitset word type from unsigned int to unsigned long int,
79108         as this has better performance on typical 64-bit hosts.
79109         Port bitset code to hosts with unusual word sizes.
79110         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
79111         (build_collating_symbol):
79112         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
79113         argument is a bitset.  This is merely a style issue, but it makes
79114         it clearer that an entire array is expected.
79115         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
79116         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
79117         Port to the case where bitset_word is not the same as unsigned int.
79118         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
79119         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
79120         Likewise.
79121         * lib/regexec.c (check_dst_limits_calc_pos_1,
79122         check_subexp_matching_top):
79123         (build_trtable, group_nodes_into_DFAstates):
79124         Likewise.
79125         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
79126         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
79127         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
79128         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
79129         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
79130         * lib/regcomp.c (optimize_subexps, lower_subexp):
79131         Work even if bitset_word has holes in its bitwise representation.
79132         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
79133         * lib/regexec.c (check_dst_limits_calc_pos_1,
79134         check_subexp_matching_top):
79135         Likewise.
79136         * lib/regex_internal.c (re_string_reconstruct):
79137         Don't assume UCHAR_MAX == 255.
79138         * lib/regex_internal.h (bitset_set_all): Likewise.
79139         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
79140         All uses changed.
79141         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
79142         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
79143         All uses changed.
79144         (BITSET_WORD_MAX): New macro.
79145         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
79146         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
79147         (bitset_empty, bitset_copy):
79148         Prefer sizeof (bitset) to multiplying it out ourselves.
79149         (bitset_not_merge): Remove; unused.
79150         (bitset_contain): Return bool, not unsigned int with one bit on.
79151         All callers changed.
79152         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
79153         alignment than re_node_set; do this by defining a new internal
79154         type struct dests_alloc and using it to allocate memory.
79155
79156 2005-09-05  Bruno Haible  <bruno@clisp.org>
79157
79158         * gnulib-tool (func_import): Fix comparison in handling of symbolic
79159         links.
79160
79161 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
79162
79163         * modules/size_max (Makefile.am): Add size_max.h
79164
79165 2005-09-04  Derek Price  <derek@ximbiot.com>
79166
79167         * gnulib-tool (func_import): Fix reversed $symbolic logic.
79168
79169 2005-09-03  Simon Josefsson  <jas@extundo.com>
79170
79171         * gnulib-tool: Fix typo.
79172
79173 2005-09-03  Simon Josefsson  <jas@extundo.com>
79174
79175         * config/srclist.txt: Add glibc bug 1293.
79176
79177 2005-09-03  Derek Price  <derek@ximbiot.com>
79178
79179         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
79180         From Larry Jones <lawrence.jones@ugs.com>.
79181
79182 2005-09-02  Simon Josefsson  <jas@extundo.com>
79183
79184         * modules/socklen: New file.
79185
79186 2005-09-02  Simon Josefsson  <jas@extundo.com>
79187
79188         * modules/havelib: New module.
79189
79190         * modules/gettext, modules/iconv, modules/lock, modules/readline:
79191         Use havelib.
79192
79193 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79194
79195         Check for arithmetic overflow when calculating sizes, to prevent
79196         some buffer-overflow issues.  These patches are conservative, in the
79197         sense that when I couldn't determine whether an overflow was possible,
79198         I inserted a run-time check.
79199         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
79200         macros.
79201         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
79202         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
79203         (re_xnrealloc, re_x2nrealloc): New inline functions.
79204         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
79205         parse_bracket_exp):
79206         (build_equiv_class, build_charclass): Check for arithmetic overflow
79207         in size expression calculations.
79208         * lib/regex_internal.c (re_string_realloc_buffers):
79209         (build_wcs_upper_buffer, re_node_set_add_intersect):
79210         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
79211         (re_dfa_add_node, register_state): Likewise.
79212         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
79213         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
79214         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
79215         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
79216
79217 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79218
79219         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79220         m4/ulonglong.m4.  Problem reported by Martin Lambers.
79221
79222 2005-09-02  Bruno Haible  <bruno@clisp.org>
79223
79224         Support for lib vs. lib64 distinction on biarch platforms.
79225         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
79226         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
79227         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
79228
79229 2005-09-02  Bruno Haible  <bruno@clisp.org>
79230
79231         * gnulib-tool (import): In the other first-use case, provide defaults
79232         as well.
79233
79234 2005-09-02  Bruno Haible  <bruno@clisp.org>
79235
79236         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
79237         patches not yet found in the latest gettext release.
79238
79239 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79240
79241         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
79242         to avoid a collision with bits/local_lim.h in glibc.
79243         All uses changed.  Problem reported by Dmitry V. Levin in
79244         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
79245
79246         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
79247         bugs in int versus size_t comparisons.
79248         (re_string_context_at): Fix bug where the code assumed that
79249         Idx is signed.
79250
79251         Use bool where appropriate.
79252         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
79253         All callers changed.
79254         (calc_eclosure_iter): Likewise, for ROOT arg.
79255         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
79256         (build_charclass_op): Likewise, for NON_MATCH arg.
79257         * lib/regex_internal.c (re_string_allocate, re_string_construct):
79258         (re_string_construct_common): Likewise, for ICASE arg.
79259         * lib/regexec.c (re_search_2_stub, re_search_stub):
79260         Likewise, for RET_LEN arg.
79261         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
79262         (set_regs): Likewise, for FL_BACKTRACK arg.
79263         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
79264         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
79265         (calc_eclosure_iter, parse_bracket_exp):
79266         Use bool for internal variables that are booleans.
79267         * lib/regexec.c (re_search_internal, check_matching,
79268         proceed_next_node):
79269         (set_regs, build_sifted_states, sift_states_bkref):
79270         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
79271         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
79272         (find_collation_sequence_value):
79273         Likewise.
79274         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
79275         (re_node_set_compare):
79276         Return bool, not int. All callers changed.
79277         * lib/regexec.c (check_halt_node_context, check_dst_limits):
79278         (build_trtable, check_node_accept): Likewise.
79279         * lib/regex_internal.h: Include stdbool.h.
79280
79281         Fix bugs uncovered when converting to bool.
79282         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
79283         failure instead of charging ahead blindly.
79284         * lib/regex_internal.c (register_state): Likewise.
79285         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
79286         for freeing internal storage.
79287         (group_nodes_into_DFA_states): Use unsigned int, not int, for
79288         bitset pieces used as boolean, to avoid undefined behavior
79289         on hosts that do int overflow checking.
79290
79291 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79292
79293         * config/srclist.txt: Add glibc bugs 1285-1287.
79294
79295 2005-09-01  Jim Meyering  <jim@meyering.net>
79296
79297         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
79298         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
79299         Require gl_STAT_MACROS, too.
79300
79301 2005-09-01  Bruno Haible  <bruno@clisp.org>
79302
79303         * gnulib-tool (import): In the first-use case, provide defaults.
79304
79305 2005-09-01  Bruno Haible  <bruno@clisp.org>
79306
79307         * gnulib-tool (func_import): Remove the .tmp files.
79308
79309 2005-09-01  Bruno Haible  <bruno@clisp.org>
79310
79311         * gnulib-tool (func_import): Fix handling of symbolic links.
79312
79313 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79314
79315         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
79316         old glibc regex code mishandles strings longer than 2**31 bytes.
79317         This patch fixes this when the regex code is used in gnulib
79318         (i.e., outside glibc).
79319
79320         This patch should not affect the use of the regex code inside
79321         glibc.  No doubt this problem also needs to be handled for glibc
79322         as well, but the result will be an incompatible change to the
79323         glibc ABI, and the old ABI will have to be supported too.  That
79324         can be the the subject for another patch.
79325
79326         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
79327         governing whether the rest of this patch is active.  By default,
79328         the macro is disabled and the patch has no effect.
79329         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
79330         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
79331         (struct re_pattern_buffer, re_search, re_search_2, re_match):
79332         (re_match_2, re_set_registers): Use the new types.
79333         * lib/regex_internal.h (Idx, re_hashval_t): New types.
79334         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
79335         New macros.
79336         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
79337         (re_string_context_at, bin_tree_t, re_dfastate_t):
79338         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
79339         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
79340         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
79341         (re_string_char_size_at, re_string_wchar_at):
79342         (re_string_elem_size_at):
79343         Use the new types and macros to port to 64-bit hosts.
79344         Use unsigned types for internal values, so that the code
79345         mostly works even for arrays larger than SSIZE_MAX.
79346         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
79347         (search_duplicated_node, calc_eclosure_iter, fetch_number):
79348         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
79349         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
79350         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
79351         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
79352         (calc_inveclosure, parse_dup_op, build_range_exp):
79353         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
79354         (fetch_number, create_token_tree, mark_opt_subexp):
79355         Likewise.
79356         * lib/regex_internal.c (re_string_construct_common,
79357         create_ci_newstate):
79358         (create_cd_newstate, re_string_allocate, re_string_construct):
79359         (re_string_realloc_buffers, build_wcs_upper_buffer):
79360         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
79361         (re_string_reconstruct, re_string_peek_byte_case):
79362         (re_string_fetch_byte_case, re_string_context_at):
79363         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
79364         (re_node_set_init_copy, re_node_set_add_intersect):
79365         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
79366         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
79367         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
79368         (re_acquire_state, re_acquire_state_context, register_state):
79369         Likewise.
79370         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
79371         search_cur_bkref_entry):
79372         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
79373         (re_search_internal, re_search_2_stub, re_search_stub)
79374         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
79375         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
79376         (update_cur_sifted_state, check_dst_limits):
79377         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
79378         (check_subexp_limits, sift_states_bkref, merge_state_array):
79379         (check_subexp_matching_top, get_subexp, get_subexp_sub):
79380         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
79381         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
79382         (expand_bkref_cache, check_node_accept_bytes):
79383         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
79384         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
79385         (acquire_init_state_context, check_halt_node_context):
79386         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
79387         (sift_states_backward, clean_state_log_if_needed):
79388         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
79389         (find_recover_state, transit_state_sb, transit_state_mb):
79390         (transit_state_bkref, build_trtable, match_ctx_clean):
79391         Likewise.
79392         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
79393         to work around an assumption that REG_MISSING is negative.
79394
79395         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
79396         (seek_collating_symbol_entry) [defined _LIBC]:
79397         (lookup_collation_sequence_value) [defined _LIBC]:
79398         (build_range_exp, build_collating_symbol) [defined _LIBC]:
79399         Use prototypes rather than old-style function definitions.
79400         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
79401         (transit_state_sb) [0]:
79402         (find_collation_sequence_value) [defined _LIBC]: Likewise.
79403
79404         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
79405         rm_eo.
79406
79407         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
79408         (optimize_subexps, lower_subexp):
79409         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
79410         since the signed shift might overflow.  Use 1u<<31 instead.
79411         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
79412         Likewise.
79413         * lib/regexec.c (check_dst_limits_calc_pos_1,
79414         check_subexp_matching_top): Likewise.
79415
79416         * lib/regcomp.c (optimize_subexps, lower_subexp):
79417         Use CHAR_BIT rather than 8, for clarity.
79418         * lib/regexec.c (check_dst_limits_calc_pos_1):
79419         (check_subexp_matching_top): Likewise.
79420         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
79421         have to worry about portability issues when shifting it left.
79422         Remove no-longer-needed test for table_size > 0.
79423         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
79424         in a word, as the resulting behavior is undefined.
79425         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
79426         in one case, a <= should have been an <, and in another case the
79427         whole test was missing.
79428         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
79429         the standard name CHAR_BIT.
79430         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
79431         this is not true on one's complement and signed-magnitude hosts.
79432
79433         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
79434         next_last_offset.
79435         (struct re_dfa_t): Remove unused member states_alloc.
79436         * lib/regcomp.c (init_dfa): Don't initialize unused members.
79437
79438 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79439
79440         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
79441         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
79442         and large-file glibc and in 32-bit large-file Solaris.
79443
79444 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79445
79446         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
79447         lengths fit in regoff_t; this isn't true if regoff_t is the same
79448         width as size_t.
79449         * lib/regex.c (re_search_internal): 5th arg is LAST_START
79450         (= START + RANGE) instead of RANGE.  This avoids overflow
79451         problems when regoff_t is the same width as size_t.
79452         All callers changed.
79453         (re_search_2_stub): Check for overflow when adding the
79454         sizes of the two strings.
79455         (re_search_stub): Check for overflow when adding START
79456         to RANGE; if it occurs, substitute the extreme value.
79457
79458 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79459
79460         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
79461
79462 2005-08-31  Jim Meyering  <jim@meyering.net>
79463
79464         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
79465         a pointer-to-const.
79466         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
79467         (register_state): Likewise.
79468         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
79469         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
79470         (group_nodes_into_DFAstates): Likewise.
79471
79472 2005-08-31  Jim Meyering  <jim@meyering.net>
79473
79474         * check-module: Add a FIXME comment.
79475
79476 2005-08-31  Eric Blake  <ebb9@byu.net>
79477
79478         * modules/unistd-safer (Files): Add unistd--.h.
79479         * modules/stdio-safer (Files): Add stdio--.h.
79480
79481 2005-08-31  Derek Price  <derek@ximbiot.com>
79482
79483         * lib/getdelim.c (getdelim): Return EOF on EOF.
79484         Reported by Larry Jones <lawrence.jones@ugs.com>.
79485
79486 2005-08-31  Bruno Haible  <bruno@clisp.org>
79487
79488         Avoid unnecessary diffs in the generated lib/Makefile.am.
79489         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
79490         the generated files.
79491         (func_import): Don't set cmd.
79492
79493 2005-08-31  Bruno Haible  <bruno@clisp.org>
79494
79495         * lib/strstr.c: Include <stddef.h>, for NULL.
79496         * lib/strcasestr.c: Likewise.
79497         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79498
79499 2005-08-31  Bruno Haible  <bruno@clisp.org>
79500
79501         * gnulib-tool: New option --macro-prefix.
79502         (func_import): Use macro_prefix.
79503         (import): Handle option --macro-prefix.
79504
79505 2005-08-31  Bruno Haible  <bruno@clisp.org>
79506
79507         * gnulib-tool (import): Rename most ac_* variables to cached_*.
79508         Also use new variables cached_lgpl, cached_libtool.
79509
79510 2005-08-31  Bruno Haible  <bruno@clisp.org>
79511
79512         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
79513         always instantiating them.
79514
79515 2005-08-31  Bruno Haible  <bruno@clisp.org>
79516
79517         * gnulib-tool (func_import): Read the previous cached settings
79518         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
79519         earlier added by gnulib but are now dropped. Warn when a gnulib file
79520         overwrites a non-gnulib file.
79521
79522 2005-08-31  Bruno Haible  <bruno@clisp.org>
79523
79524         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
79525         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
79526         projects that don't keep autogenerated files in CVS. Put into
79527         actioncmd only the specified modules, not the transitive closure.
79528
79529 2005-08-31  Bruno Haible  <bruno@clisp.org>
79530
79531         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
79532         Create directories that shall be filled.
79533         (import): Don't look for gl_* macros in configure.ac. Recurse across
79534         all directories containing a gnulib-cache.m4 files, if meaningful.
79535
79536 2005-08-31  Bruno Haible  <bruno@clisp.org>
79537
79538         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
79539         (import): Set seen_libtool when we see gl_LIBTOOL.
79540
79541 2005-08-31  Bruno Haible  <bruno@clisp.org>
79542
79543         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
79544         declaration macro definitions from generated gnulib.m4.
79545
79546 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
79547
79548         * lib/iconvme.h: Add prototype for iconv_alloc.
79549
79550 2005-08-29  Simon Josefsson  <jas@extundo.com>
79551
79552         * lib/iconvme.c: Fix errno.
79553
79554 2005-08-29  Bruno Haible  <bruno@clisp.org>
79555
79556         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
79557         that it works when the directory contains spaces.
79558
79559 2005-08-29  Bruno Haible  <bruno@clisp.org>
79560
79561         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
79562
79563 2005-08-29  Bruno Haible  <bruno@clisp.org>
79564
79565         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
79566         Emit more advice.
79567
79568 2005-08-29  Bruno Haible  <bruno@clisp.org>
79569         and Stepan Kasal  <kasal@ucw.cz>
79570
79571         * check-module: If more parameters are given, check each of them
79572         separately; add more exceptions, as noted by Jim Meyering.
79573         (check_module): New procedure.
79574         (%exempt_header): Now contains all exceptions.
79575
79576 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
79577
79578         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
79579
79580 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79581
79582         * lib/iconvme.c: Split iconv_string into iconv_alloc.
79583
79584 2005-08-28  Bruno Haible  <bruno@clisp.org>
79585
79586         * m4/gnulib-tool.m4: New file.
79587
79588 2005-08-27  Jim Meyering  <jim@meyering.net>
79589
79590         * modules/unistd-safer (Files): Add pipe-safer.c.
79591         * modules/fcntl-safer (Files): Add creat-safer.c.
79592
79593 2005-08-27  Jim Meyering  <jim@meyering.net>
79594
79595         * m4/stdlib-safer.m4: New file.  From coreutils.
79596         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
79597         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
79598         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
79599         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
79600         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
79601
79602 2005-08-27  Jim Meyering  <jim@meyering.net>
79603
79604         * lib/fopen-safer.c: Merge minor changes from coreutils.
79605         * lib/dup-safer.c: Likewise.
79606         * lib/fd-safer.c: Likewise.
79607
79608         Merge from coreutils.
79609         * lib/stdio--.h: New file.
79610         * lib/stdlib--.h: New file.
79611         * lib/mkstemp-safer.c: New file.
79612
79613         GNU tar needs these.
79614         * lib/pipe-safer.c: New file.
79615         * lib/creat-safer.c: New file.
79616         * lib/fcntl--.h (creat): Define to creat_safer.
79617         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
79618         * lib/unistd--.h (pipe): Define to pipe_safer.
79619         * lib/unistd-safer.h: Declare pipe_safer.
79620
79621 2005-08-26  Simon Josefsson  <jas@extundo.com>
79622
79623         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
79624         Haible <bruno@clisp.org>.
79625
79626 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
79627
79628         * lib/regex_internal.h: Remove all references to
79629         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
79630         or better.
79631         (bitset_not, bitset_merge, bitset_not_merge):
79632         (bitset_mask, re_string_allocate, re_string_construct):
79633         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
79634         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
79635         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
79636         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
79637         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
79638         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
79639         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
79640         (re_acquire_state_context):
79641         Remove unnecessary forward decls.
79642         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
79643         Put __attribute at function definition,
79644         now that the function decl has been removed.
79645         * lib/regex_internal.c (re_string_peek_byte_case):
79646         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
79647         Likewise.
79648
79649 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
79650
79651         * m4/regex.m4: Add AC_PREREQ(2.50).
79652         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
79653
79654 2005-08-25  Simon Josefsson  <jas@extundo.com>
79655
79656         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
79657         __fsetlocking.
79658
79659 2005-08-25  Simon Josefsson  <jas@extundo.com>
79660
79661         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
79662         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
79663         GLIBC specific code.
79664
79665 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79666
79667         Make regex safe for g++.  This fixes one real bug (an "err"
79668         that should have been "*err").  g++ problem reported by
79669         Sam Steingold.
79670         * lib/regex_internal.h (re_calloc): New macro, consistent with
79671         re_malloc etc.  All callers of calloc changed to use re_calloc.
79672         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
79673         not int.  All callers changed.
79674         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
79675         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
79676         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
79677         (find_recover_state): Change "err" to "*err"; this fixes what
79678         appears to be a real bug.
79679         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
79680         versus int.
79681
79682 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79683
79684         * modules/regex (Depends-on): Add malloc, since the code
79685         assumes that !malloc(0) means failure.
79686
79687 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79688
79689         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
79690
79691         alloca modernization/simplification for regex.
79692         * lib/regex.c: Remove portability cruft for alloca.  This no longer
79693         needs to be at the start of the file, and can be moved into
79694         regex_internal.h and simplified.
79695         * lib/regex_internal.h: Include <alloca.h>.
79696         (__libc_use_alloca) [!defined _LIBC]: New macro.
79697         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
79698         now works outside glibc.
79699
79700 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79701
79702         * config/srclist.txt: Add glibc bugs 1241, 1245.
79703
79704 2005-08-25  Jim Meyering  <jim@meyering.net>
79705
79706         * lib/open-safer.c: Include <config.h>.
79707         Otherwise, we'd lose LARGEFILE support in any file using
79708         e.g. "fcntl--.h"
79709
79710 2005-08-25  Bruno Haible  <bruno@clisp.org>
79711
79712         * m4/minmax.m4: Require autoconf 2.52.
79713         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
79714         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
79715         alternatives of translit over the alphabet.
79716         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
79717
79718 2005-08-24  Simon Josefsson  <jas@extundo.com>
79719
79720         * tests/test-getpass.c: New file.
79721
79722 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79723
79724         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
79725         for GNU regex features.
79726
79727 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79728
79729         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
79730         * lib/regex.h (regerror): Likewise.
79731
79732         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
79733         requires this.  (The code never needed it.)
79734
79735         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
79736         All uses of recently-renamed identifiers changed to use the new,
79737         POSIX-compliant names.  The code will build and run just fine
79738         without these changes, but it's better to eat our own dog food
79739         and use the standard-conforming names.
79740
79741         * lib/regex.h: Fix a multitude of POSIX name space violations.
79742         These changes have an effect only for programs that define
79743         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
79744         do not change anything for programs compiled in the normal way.
79745         Also, there is no effect on the ABI.
79746
79747         (_REGEX_SOURCE): New macro.
79748         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
79749         defined and _GNU_SOURCE is not; this fixes a name space violation.
79750
79751         Rename the following macros to obey POSIX requirements.
79752         The old names are still visible as macros if _REGEX_SOURCE is defined.
79753         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
79754         RE_BACKSLASH_ESCAPE_IN_LISTS.
79755         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
79756         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
79757         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
79758         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
79759         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
79760         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
79761         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
79762         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
79763         (REG_INTERVALS): renamed from RE_INTERVALS.
79764         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
79765         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
79766         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
79767         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
79768         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
79769         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
79770         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
79771         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
79772         RE_UNMATCHED_RIGHT_PAREN_ORD.
79773         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
79774         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
79775         (REG_DEBUG): renamed from RE_DEBUG.
79776         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
79777         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
79778         unusual, since we can't clash with the POSIX REG_ICASE.
79779         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
79780         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
79781         (REG_NO_SUB): renamed from RE_NO_SUB.
79782         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
79783         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
79784         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
79785         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
79786         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
79787         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
79788         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
79789         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
79790         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
79791         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
79792         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
79793         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
79794         RE_SYNTAX_POSIX_MINIMAL_BASIC.
79795         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
79796         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
79797         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
79798         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
79799         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
79800         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
79801         (REG_FIXED): Renamed from REGS_FIXED.
79802         (REG_NREGS): Renamed from RE_NREGS.
79803
79804         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
79805         of other REG_* macros, since POSIX says the user is allowed to
79806         #undef these macros selectively.
79807
79808         (reg_errcode_t): Update comment stating what other tables need
79809         to be consistent.
79810
79811         Rename the following enum values to obey POSIX requirements.
79812         The old names are still visible as macros.
79813         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
79814         is not defined, since GNU is supposed to be a superset of POSIX as
79815         much as possible, and since we want reg_errcode_t to be a signed
79816         type for implementation consistency.
79817         (_REG_NOERROR): Renamed from REG_NOERROR.
79818         (_REG_NOMATCH): Renamed from REG_NOMATCH.
79819         (_REG_BADPAT): Renamed from REG_BADPAT.
79820         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
79821         (_REG_ECTYPE): Renamed from REG_ECTYPE.
79822         (_REG_EESCAPE): Renamed from REG_EESCAPE.
79823         (_REG_ESUBREG): Renamed from REG_ESUBREG.
79824         (_REG_EBRACK): Renamed from REG_EBRACK.
79825         (_REG_EPAREN): Renamed from REG_EPAREN.
79826         (_REG_EBRACE): Renamed from REG_EBRACE.
79827         (_REG_BADBR): Renamed from REG_BADBR.
79828         (_REG_ERANGE): Renamed from REG_ERANGE.
79829         (_REG_ESPACE): Renamed from REG_ESPACE.
79830         (_REG_BADRPT): Renamed from REG_BADRPT.
79831         (_REG_EEND): Renamed from REG_EEND.
79832         (_REG_ESIZE): Renamed from REG_ESIZE.
79833         (_REG_ERPAREN): Renamed from REG_ERPAREN.
79834         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
79835         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
79836         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
79837         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
79838
79839         (_REG_RE_NAME, _REG_RM_NAME): New macros.
79840         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
79841         changed.  But support the old name if the new one is not defined
79842         and if _REGEX_SOURCE.
79843
79844         Change the following member names in struct re_pattern_buffer.
79845         The old names are still supported if !_REGEX_SOURCE.
79846         The new names are always supported, regardless of _REGEX_SOURCE.
79847         (re_buffer): Renamed from buffer.
79848         (re_allocated): Renamed from allocated.
79849         (re_used): Renamed from used.
79850         (re_syntax): Renamed from syntax.
79851         (re_fastmap): Renamed from fastmap.
79852         (re_translate): Renamed from translate.
79853         (re_can_be_null): Renamed from can_be_null.
79854         (re_regs_allocated): Renamed from regs_allocated.
79855         (re_fastmap_accurate): Renamed from fastmap_accurate.
79856         (re_no_sub): Renamed from no_sub.
79857         (re_not_bol): Renamed from not_bol.
79858         (re_not_eol): Renamed from not_eol.
79859         (re_newline_anchor): Renamed from newline_anchor.
79860
79861         Change the following member names in struct re_registers.
79862         The old names are still supported if !_REGEX_SOURCE.
79863         The new names are always supported, regardless of _REGEX_SOURCE.
79864         (rm_num_regs): Renamed from num_regs.
79865         (rm_start): Renamed from start.
79866         (rm_end): Renamed from end.
79867
79868         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
79869         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
79870         Prepend __ to parameter names.
79871
79872         Undo yesterday's changes.
79873
79874 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79875
79876         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
79877         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
79878         lib/regex.c.
79879
79880 2005-08-24  Jim Meyering  <jim@meyering.net>
79881
79882         Sync from coreutils.
79883         * m4/fcntl-safer.m4: New file.
79884
79885         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
79886         and object files for this module.
79887
79888 2005-08-24  Jim Meyering  <jim@meyering.net>
79889
79890         Sync from coreutils.
79891         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
79892
79893 2005-08-24  Jim Meyering  <jim@meyering.net>
79894
79895         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
79896         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
79897
79898 2005-08-24  Jim Meyering  <jim@meyering.net>
79899
79900         * modules/fcntl-safer: New module.
79901         * modules/fts (Depends-on): Add fcntl-safer.
79902         * MODULES.html.sh (File descriptor based Input/Output):
79903         Add fcntl-safer.
79904
79905 2005-08-24  Bruno Haible  <bruno@clisp.org>
79906
79907         Support for unit test modules.
79908         * modules/README: Mention tests modules.
79909         * modules/TEMPLATE-TESTS: New file.
79910         * gnulib-tool: New options --extract-tests-module, --with-tests and
79911         --tests-base (unused for the moment).
79912         (testsbase, inctests): New variables.
79913         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
79914         (func_verify_module): Exclude TEMPLATE-TESTS.
79915         (func_verify_nontests_module, func_verify_tests_module): New functions.
79916         (func_get_dependencies): Add implicit dependency for tests modules.
79917         (func_get_tests_module): New function.
79918         (func_modules_transitive_closure): When --with-tests was specified,
79919         include the unit tests as well, unless explicitly avoided.
79920         (func_emit_lib_Makefile_am): Ignore the tests modules here.
79921         (func_emit_tests_Makefile_am): New function.
79922         (func_create_testdir): When --with-tests was specified, emit a
79923         tests/ directory.
79924         * MODULES.html.sh (Future developments): Update.
79925
79926 2005-08-24  Bruno Haible  <bruno@clisp.org>
79927
79928         * modules/tls-tests: New file.
79929         * tests/test-tls.c: New file, from GNU gettext.
79930
79931 2005-08-24  Bruno Haible  <bruno@clisp.org>
79932
79933         * modules/lock-tests: New file.
79934         * tests/test-lock.c: New file, from GNU gettext.
79935
79936 2005-08-24  Bruno Haible  <bruno@clisp.org>
79937
79938         * lib/lock.h: Add multiple inclusion guard.
79939         * lib/tls.h: Add multiple inclusion guard.
79940
79941 2005-08-24  Bruno Haible  <bruno@clisp.org>
79942
79943         * gnulib-tool: Add support for the --aux-dir option to
79944         --create-testdir, --create-megatestdir, --test, --megatest.
79945         (func_create_testdir, func_create_megatestdir): Optionally emit a
79946         AC_CONFIG_AUX_DIR directive.
79947         (create-testdir, create-megatestdir, test, megatest): Provide a
79948         default value for $auxdir.
79949
79950 2005-08-24  Bruno Haible  <bruno@clisp.org>
79951
79952         * gnulib-tool (import): Use compound statement instead of subshell
79953         where possible.
79954
79955 2005-08-24  Bruno Haible  <bruno@clisp.org>
79956
79957         * gnulib-tool (import): Change --aux-dir default to "build-aux".
79958
79959 2005-08-24  Bruno Haible  <bruno@clisp.org>
79960
79961         * gnulib-tool (func_version): Update.
79962
79963 2005-08-24  Bruno Haible  <bruno@clisp.org>
79964
79965         * gnulib-tool (func_import, func_create_testdir,
79966         func_create_megatestdir): Quote all autoconf macro arguments.
79967
79968 2005-08-24  Bruno Haible  <bruno@clisp.org>
79969
79970         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
79971         option --force, because --force causes the aclocal.m4 of each
79972         subdirectory to be newer than the corresponding config.h.in.
79973
79974 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79975
79976         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
79977         All contents moved to gl_REGEX.
79978         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
79979         assume that it does.
79980
79981 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79982
79983         * lib/regex.h (REG_NOSYS)
79984         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
79985         Define, since POSIX requires it as of 2001.
79986         (_REG_ENOSYS)
79987         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
79988         New private symbol, used to keep the enum signed in all cases.
79989         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
79990         Youngman in
79991         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
79992
79993         * lib/regex_internal.c (re_string_skip_chars, register_state):
79994         (calc_state_hash):
79995         Remove forward decls; no longer needed now that we use prototypes.
79996         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
79997         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
79998         (clean_state_log_if_needed): Likewise.
79999
80000 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80001
80002         * config/srclist.txt: Add glibc bugs 1231-1233.
80003
80004 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80005
80006         Fix problems reported by Sam Steingold in
80007         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
80008         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
80009         assumed that reg_errcode_t is a signed type, which is not
80010         necessarily true if _XOPEN_SOURCE is not defined.
80011         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
80012         since some compilers warn about it otherwise.
80013
80014 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80015
80016         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
80017         (init_word_char, create_initial_state, duplicate_node_closure):
80018         (fetch_token, peek_token_bracket, build_range_exp):
80019         (build_collating_symbol): Remove forward decls; no longer needed
80020         now that we use prototypes.
80021
80022         * lib/regcomp.c:
80023         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
80024         (re_compile_fastmap_iter, regcomp, regerror, regfree):
80025         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
80026         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
80027         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
80028         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
80029         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
80030         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
80031         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
80032         (build_range_exp, build_collating_symbol, parse_bracket_exp):
80033         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
80034         (build_charclass, build_charclass_op, fetch_number, create_tree):
80035         (create_token_tree, mark_opt_subexp, duplicate_tree):
80036         Use prototypes rather than old-style definitions.
80037
80038         * lib/regex_internal.c:
80039         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
80040         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
80041         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80042         (re_string_reconstruct, re_string_peek_byte_case):
80043         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
80044         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80045         (re_node_set_init_copy, re_node_set_add_intersect):
80046         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80047         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80048         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80049         (re_acquire_state, re_acquire_state_context, register_state):
80050         (create_ci_newstate, create_cd_newstate, free_state):
80051         Likewise.
80052         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
80053         re_search_2):
80054         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
80055         (re_search_internal, prune_impossible_nodes):
80056         (acquire_init_state_context, check_matching, static):
80057         (check_halt_node_context, check_halt_state_context, proceed_next_node):
80058         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
80059         (update_regs, sift_states_backward, build_sifted_states):
80060         (clean_state_log_if_needed, merge_state_array):
80061         (update_cur_sifted_state, add_epsilon_src_nodes):
80062         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
80063         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
80064         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
80065         (find_recover_state, check_subexp_matching_top, transit_state_mb):
80066         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
80067         (check_arrival, check_arrival_add_next_nodes):
80068         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80069         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80070         (check_node_accept_bytes, check_node_accept, extend_buffers):
80071         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
80072         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
80073         (sift_ctx_init):
80074         Likewise.
80075
80076         * lib/regex_internal.h:
80077         (re_string_allocate, re_string_construct, re_string_reconstruct):
80078         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
80079         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
80080         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
80081         (re_string_context_at, re_string_peek_byte_case):
80082         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
80083         is defined, since we now use prototypes always.
80084
80085         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
80086         C89 or better.  All uses removed.
80087
80088 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80089
80090         * config/srclist.txt: Add glibc bugs 1220-1227.
80091
80092 2005-08-20  Jim Meyering  <jim@meyering.net>
80093
80094         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
80095         of unused local, dfa.
80096
80097 2005-08-20  Bruno Haible  <bruno@clisp.org>
80098
80099         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
80100
80101 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80102
80103         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
80104         (re_node_set_insert_last, re_dfa_add_node):
80105         Rename local variables to avoid GCC shadowing warnings.
80106
80107 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80108
80109         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
80110         [defined lint]: Suppress bogus uninitialized-variable warnings.
80111
80112         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
80113         and let the caller return REG_ESPACE if out of space.  This
80114         removes an uninitialied-variable warning with GCC 4.0.1, and also
80115         avoids taking the address of a local variable.  All callers
80116         changed.
80117
80118 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80119
80120         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
80121         $LIBCSRC/posix/regexec.c.
80122         Add glibc bug 1217 for regcomp.c.
80123
80124 2005-08-19  Jim Meyering  <jim@meyering.net>
80125
80126         * lib/regexec.c (proceed_next_node): Redo local variables to
80127         avoid GCC shadowing warnings.
80128
80129 2005-08-18  Bruno Haible  <bruno@clisp.org>
80130
80131         * lib/strstr.c (strstr): Fix return value in multibyte case.
80132         * lib/strcasestr.c (strcasestr): Likewise.
80133
80134 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80135
80136         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
80137
80138 2005-08-17  Jim Meyering  <jim@meyering.net>
80139
80140         Make the %s format (seconds since the epoch) work for a negative
80141         number and when used with a zero-padded field width, e.g. %015s.
80142
80143         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
80144         label so that it precedes the code to set `digits'.  Otherwise,
80145         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
80146         print `00-22'.  Now, it prints `-0022', as it should.
80147
80148 2005-08-17  Bruno Haible  <bruno@clisp.org>
80149
80150         * modules/strstr (Files): Add m4/mbrtowc.m4.
80151         (Depends-on): Add mbuiter.
80152
80153 2005-08-17  Bruno Haible  <bruno@clisp.org>
80154
80155         * modules/strcasestr: New file.
80156         * MODULES.html.sh (String handling, based on ANSI C 89): Add
80157         strcasestr.
80158
80159 2005-08-17  Bruno Haible  <bruno@clisp.org>
80160
80161         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
80162
80163 2005-08-17  Bruno Haible  <bruno@clisp.org>
80164
80165         * modules/mbuiter: New file.
80166         * MODULES.html.sh (Extended multibyte and wide character utilities):
80167         Add mbuiter.
80168
80169 2005-08-17  Bruno Haible  <bruno@clisp.org>
80170
80171         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
80172         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
80173
80174 2005-08-17  Bruno Haible  <bruno@clisp.org>
80175
80176         * m4/strcasestr.m4: New file.
80177
80178 2005-08-17  Bruno Haible  <bruno@clisp.org>
80179
80180         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
80181         * lib/strstr.c: Completely rewritten, with multibyte locale support.
80182
80183 2005-08-17  Bruno Haible  <bruno@clisp.org>
80184
80185         * lib/strcasestr.h: New file.
80186         * lib/strcasestr.c: New file.
80187
80188 2005-08-17  Bruno Haible  <bruno@clisp.org>
80189
80190         * lib/strcasecmp.c: Use mbuiter.h.
80191
80192 2005-08-17  Bruno Haible  <bruno@clisp.org>
80193
80194         * lib/mbuiter.h: New file.
80195
80196 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80197
80198         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
80199         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
80200         and gl_GETOPT are both invoked via different paths (as happens
80201         with GNU tar CVS because it uses both argp and getopt), the former
80202         wins.
80203
80204 2005-08-16  Bruno Haible  <bruno@clisp.org>
80205
80206         * modules/tls: New file.
80207         * MODULES.html.sh (Multithreading): Add tls.
80208
80209 2005-08-16  Bruno Haible  <bruno@clisp.org>
80210
80211         * modules/strnlen1: New file.
80212         * MODULES.html.sh (String handling): Add strnlen1.
80213
80214 2005-08-16  Bruno Haible  <bruno@clisp.org>
80215
80216         * modules/strcase (Files): Add m4/mbrtowc.m4.
80217         (Depends-on): Add strnlen1, mbchar.
80218
80219 2005-08-16  Bruno Haible  <bruno@clisp.org>
80220
80221         * modules/mbiter: New file.
80222         * MODULES.html.sh (Extended multibyte and wide character utilities):
80223         Add mbiter.
80224
80225 2005-08-16  Bruno Haible  <bruno@clisp.org>
80226
80227         * modules/mbfile: New file.
80228         * MODULES.html.sh (Extended multibyte and wide character utilities):
80229         Add mbfile.
80230
80231 2005-08-16  Bruno Haible  <bruno@clisp.org>
80232
80233         * modules/mbchar: New file.
80234         * MODULES.html.sh (Extended multibyte and wide character utilities):
80235         New section.
80236
80237 2005-08-16  Bruno Haible  <bruno@clisp.org>
80238
80239         * m4/tls.m4: New file, from GNU gettext.
80240
80241 2005-08-16  Bruno Haible  <bruno@clisp.org>
80242
80243         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
80244         always.
80245         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
80246
80247 2005-08-16  Bruno Haible  <bruno@clisp.org>
80248
80249         * m4/mbiter.m4: New file.
80250
80251 2005-08-16  Bruno Haible  <bruno@clisp.org>
80252
80253         * m4/mbfile.m4: New file.
80254
80255 2005-08-16  Bruno Haible  <bruno@clisp.org>
80256
80257         * m4/mbchar.m4: New file.
80258
80259 2005-08-16  Bruno Haible  <bruno@clisp.org>
80260
80261         * lib/tls.h: New file, from GNU gettext.
80262         * lib/tls.c: New file, from GNU gettext.
80263
80264 2005-08-16  Bruno Haible  <bruno@clisp.org>
80265
80266         * lib/strnlen1.h: New file.
80267         * lib/strnlen1.c: New file.
80268
80269 2005-08-16  Bruno Haible  <bruno@clisp.org>
80270
80271         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
80272         (mbi_init): Update.
80273         (mbi_avail, mbi_advance): Let the iteration end before the terminating
80274         NUL byte, not after it.
80275
80276 2005-08-16  Bruno Haible  <bruno@clisp.org>
80277
80278         * lib/strcase.h (strcasecmp): Add note in comments.
80279         * lib/strncasecmp.c: Use code from strcasecmp.c.
80280         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
80281         (strcasecmp): Work correctly in multibyte locales.
80282
80283 2005-08-16  Bruno Haible  <bruno@clisp.org>
80284
80285         * lib/mbiter.h: New file.
80286
80287 2005-08-16  Bruno Haible  <bruno@clisp.org>
80288
80289         * lib/mbfile.h: New file.
80290
80291 2005-08-16  Bruno Haible  <bruno@clisp.org>
80292
80293         * lib/mbchar.h: New file.
80294         * lib/mbchar.c: New file.
80295
80296 2005-08-16  Bruno Haible  <bruno@clisp.org>
80297
80298         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
80299         the valid ones. Makes the comparison operations transitive:
80300         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
80301         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
80302
80303 2005-08-15  Simon Josefsson  <jas@extundo.com>
80304
80305         * modules/ssize_t (License): Change to 'unlimited'.
80306
80307         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
80308
80309 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80310
80311         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
80312         Add comments for each pending glibc patch.
80313
80314 2005-08-15  Bruno Haible  <bruno@clisp.org>
80315
80316         * lib/regex.h (__restrict_arr): Don't define to __restrict if
80317         __cplusplus is defined.
80318
80319 2005-08-14  Jim Meyering  <jim@meyering.net>
80320
80321         Sync from coreutils.
80322
80323         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
80324         Use the hash-table-based cycle-detection code not just when
80325         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
80326         Reported by James Youngman in
80327         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
80328         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
80329         FTS_TIGHT_CYCLE_CHECK.
80330         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
80331         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
80332         once again.
80333         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
80334         * lib/fts.c (fd_safer): Remove decl.
80335         Include fcntl--.h rather than unistd-safer.h
80336         (fts_safe_changedir): Don't call fd_safer; no longer needed
80337         now that we include fcntl--.h.
80338
80339 2005-08-12  Simon Josefsson  <jas@extundo.com>
80340
80341         * modules/getndelim2: Use ssize_t module.
80342         * modules/getnline: Likewise.
80343         * modules/safe-read: Likewise.
80344         * modules/xreadlink: Likewise.
80345
80346         * modules/ssize_t: New file.
80347
80348 2005-08-12  Simon Josefsson  <jas@extundo.com>
80349
80350         * m4/readline.m4: Look for termcap, curses or ncurses if required.
80351
80352 2005-08-12  Simon Josefsson  <jas@extundo.com>
80353
80354         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80355         ssize_t.
80356
80357 2005-08-12  Simon Josefsson  <jas@extundo.com>
80358
80359         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
80360         readline, getdelim and check_version.
80361         (Support for systems lacking ISO C 99: Sizes of integer types):
80362         Add size_max.
80363
80364 2005-08-12  Bruno Haible  <bruno@clisp.org>
80365
80366         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
80367
80368 2005-08-11  Simon Josefsson  <jas@extundo.com>
80369
80370         * modules/readline: New file.
80371
80372         * modules/strnlen (Files): Add strnlen.h.
80373
80374 2005-08-11  Simon Josefsson  <jas@extundo.com>
80375
80376         * m4/readline.m4: New file.
80377
80378 2005-08-11  Simon Josefsson  <jas@extundo.com>
80379
80380         * lib/readline.h, readline.c: New file.
80381
80382 2005-08-11  Simon Josefsson  <jas@extundo.com>
80383
80384         * doc/gnulib.texi (Initial import, Finishing touches): Mention
80385         gl_AVOID.
80386
80387 2005-08-11  Bruno Haible  <bruno@clisp.org>
80388
80389         * lib/strnlen.h (strnlen): Change parameter name to match comment.
80390
80391 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
80392
80393         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
80394
80395 2005-08-10  Simon Josefsson  <jas@extundo.com>
80396
80397         * tests/test-iconvme.c: New file.
80398
80399 2005-08-10  Simon Josefsson  <jas@extundo.com>
80400
80401         * m4/strnlen.m4: New file.
80402
80403         * m4/strndup.m4: Don't check for strnlen declaration, done in
80404         strnlen.m4.
80405
80406 2005-08-10  Simon Josefsson  <jas@extundo.com>
80407
80408         * lib/strndup.c: Use strnlen.h.
80409
80410         * lib/strnlen.h: New file.
80411
80412 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80413
80414         * README: Typos.
80415
80416 2005-08-02  Simon Josefsson  <jas@extundo.com>
80417
80418         * modules/readline: New file.
80419
80420 2005-08-02  Simon Josefsson  <jas@extundo.com>
80421
80422         * modules/getdelim: New file.
80423
80424         * modules/getline: Rewrite, don't use getndelim2.
80425
80426 2005-08-02  Simon Josefsson  <jas@extundo.com>
80427
80428         * m4/getline.m4: Separate out getdelim stuff into separate module.
80429
80430         * m4/getdelim.m4: New file.
80431
80432 2005-08-02  Simon Josefsson  <jas@extundo.com>
80433
80434         * lib/getline.h, getline.c: Rewrite.
80435
80436         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
80437
80438 2005-07-31  Bruno Haible  <bruno@clisp.org>
80439
80440         * lib/lock.h (gl_lock_initializer): New macro.
80441         (gl_lock_define_initialized): Use it.
80442         (gl_rwlock_initializer): New macro.
80443         (gl_rwlock_define_initialized): Use it.
80444         (gl_recursive_lock_initializer): New macro.
80445         (gl_recursive_lock_define_initialized): Use it.
80446
80447 2005-07-30  Karl Berry  <karl@gnu.org>
80448
80449         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
80450         Report from Ben Pfaff, regarding getopt.
80451
80452 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
80453
80454         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
80455         normal way.
80456         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
80457         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
80458         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
80459         (gl_GETOPT): Use the new macros.  Most of the implementation
80460         is moved to the new macros.  This is for programs like Emacs
80461         that don't want all the functionality of gl_GETOPT.
80462
80463 2005-07-26  Bruno Haible  <bruno@clisp.org>
80464
80465         * m4/lock.m4: Update from GNU gettext.
80466
80467 2005-07-26  Bruno Haible  <bruno@clisp.org>
80468
80469         * lib/lock.h: Update from GNU gettext.
80470         * lib/lock.c: Update from GNU gettext.
80471
80472 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
80473
80474         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
80475         obsolescent AC_TRY_RUN.  Include the default includes files, for
80476         'exit'.
80477
80478 2005-07-24  Bruno Haible  <bruno@clisp.org>
80479
80480         * modules/visibility: New file.
80481         * MODULES.html.sh (Misc): Add visibility.
80482
80483 2005-07-24  Bruno Haible  <bruno@clisp.org>
80484
80485         * m4/visibility.m4: New file.
80486
80487 2005-07-24  Bruno Haible  <bruno@clisp.org>
80488
80489         * doc/visibility.texi: New file.
80490
80491 2005-07-22  Bruno Haible  <bruno@clisp.org>
80492
80493         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
80494         $(ALLOCA_H), redundant through BUILT_SOURCES.
80495         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
80496         redundant through BUILT_SOURCES.
80497         * modules/byteswap (Makefile.am): Remove explicit dependency on
80498         $(BYTESWAP_H), redundant through BUILT_SOURCES.
80499         * modules/fnmatch (Makefile.am): Remove explicit dependency on
80500         $(FNMATCH_H), redundant through BUILT_SOURCES.
80501         * modules/getopt (Makefile.am): Remove explicit dependency on
80502         $(GETOPT_H), redundant through BUILT_SOURCES.
80503         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
80504         redundant through BUILT_SOURCES.
80505         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
80506         redundant through BUILT_SOURCES.
80507         * modules/stdbool (Makefile.am): Remove explicit dependency on
80508         $(STDBOOL_H), redundant through BUILT_SOURCES.
80509         * modules/stdint (Makefile.am): Remove explicit dependency on
80510         $(STDINT_H), redundant through BUILT_SOURCES.
80511         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
80512         Remove explicit dependency on $(SYSEXITS_H).
80513         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
80514
80515 2005-07-18  Simon Josefsson  <jas@extundo.com>
80516
80517         * lib/check-version.c (check_version): Accept identical versions too.
80518
80519 2005-07-18  Bruno Haible  <bruno@clisp.org>
80520
80521         * modules/lock: New file.
80522         * MODULES.html.sh (Multithreading): New section.
80523
80524 2005-07-18  Bruno Haible  <bruno@clisp.org>
80525
80526         * m4/lock.m4: New file, from GNU gettext.
80527
80528 2005-07-18  Bruno Haible  <bruno@clisp.org>
80529
80530         * lib/lock.h: New file, from GNU gettext.
80531         * lib/lock.c: New file, from GNU gettext.
80532
80533 2005-07-18  Bruno Haible  <bruno@clisp.org>
80534
80535         * lib/lock.h (gl_once_t): New type.
80536         (gl_once_define, gl_once): New macros.
80537         * lib/lock.c (fresh_once): New variable.
80538         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
80539         functions.
80540
80541 2005-07-16  Simon Josefsson  <jas@extundo.com>
80542
80543         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
80544         workaround, suggested by Bruno.
80545
80546 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
80547
80548         * modules/xalloc (Depends-on): Add xalloc-die.
80549         * modules/xvasprintf (Depends-on): Add xalloc-die.
80550
80551 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
80552
80553         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
80554         with a minor change.
80555
80556 2005-07-15  Bruno Haible  <bruno@clisp.org>
80557
80558         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
80559         When using lib/poll.c, define poll as rpl_poll.
80560
80561 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
80562
80563         * modules/argp (Depends-on): Remove unlocked-io.
80564
80565 2005-07-14  Derek Price  <derek@ximbiot.com>
80566
80567         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
80568         for glob symlink bug.
80569
80570 2005-07-14  Bruno Haible  <bruno@clisp.org>
80571
80572         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
80573         Instead, test for *_unlocked function declarations directly.
80574
80575 2005-07-11  Simon Josefsson  <jas@extundo.com>
80576
80577         * modules/size_max: New file.
80578
80579         * modules/xsize: Depend on size_max module for size_max.m4.
80580
80581 2005-07-11  Simon Josefsson  <jas@extundo.com>
80582
80583         * lib/size_max.h: New file.
80584
80585 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
80586
80587         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
80588         copyright symbol and the year.
80589         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
80590         (version_etc_va): Use parameterized copyright notice.
80591         Reword to conform to the current GNU coding standards.
80592
80593 2005-07-11  Karl Berry  <karl@gnu.org>
80594
80595         * doc/gnulib.texi (Quoting): new node.
80596         (Initial import): more info, from Patrice.
80597
80598 2005-07-11  Bruno Haible  <bruno@clisp.org>
80599
80600         * gnulib-tool (func_usage): Document option --avoid.
80601         (Command line options): Handle --avoid.
80602         (func_acceptable): New function.
80603         (func_modules_transitive_closure): Use it.
80604
80605 2005-07-11  Bruno Haible  <bruno@clisp.org>
80606
80607         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
80608         Reported by Jim Meyering.
80609
80610 2005-07-10  Bruno Haible  <bruno@clisp.org>
80611
80612         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
80613         Needed when size_t is smaller than 'unsigned int'.
80614         Reported by Paul Eggert.
80615
80616 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80617
80618         * modules/argp (Depends-on): Add unlocked-io
80619
80620 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80621
80622         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
80623         block of defines.
80624
80625 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80626
80627         * config/srclist.txt: Comment out regcomp.c, since we have a porting
80628         fix now.
80629
80630 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
80631         and Paul Eggert  <eggert@cs.ucla.edu>
80632
80633         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
80634         in wint_t, not wchar_t.  Remove now-unnecessary cast.
80635
80636 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80637
80638         * modules/regex (Files): Add lib/regex_internal.c,
80639         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
80640         (Depends-on): Add extensions.
80641         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
80642
80643 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80644
80645         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
80646         pathconf.
80647         * m4/same.m4 (gl_SAME): Likewise.
80648         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
80649
80650         * m4/regex.m4: Adjust to new libc regex implementation.
80651         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
80652         all the .c and .h parts of (the new) regex.
80653         Quote the m4 stuff better.
80654         Check for RE_ICASE bug of old gnulib.
80655         Check for REG_STARTEND of recent libc.
80656         Rename local variables from jm_* to gl_*.
80657         Quote operand of "test -f".
80658         Say "recent enough" version of libc, not "version 2".
80659         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
80660         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
80661         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
80662         Remove check for btowc, isascii.
80663         Require AM_LANGINFO_CODESET.
80664
80665 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80666
80667         * lib/regex.c, regex.h: Sync from libc.
80668         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
80669         * lib/regexec.c:
80670         New files, synced from libc, except that regex_internal.h
80671         currently has a small porting fix.
80672
80673 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80674
80675         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
80676         regex_internal.c, regexec.c.
80677         Add regex_internal.h too, but as a comment, since the libc version
80678         is currently broken in gnulib mode.
80679
80680 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80681
80682         Support programs like Emacs that use gnulib but not gettext.
80683         * MODULES.html.sh (Internationalization functions): Add gettext-h.
80684         * modules/gettext-h: New file.
80685         * modules/gettext (Files): Remove lib/gettext.h.
80686         (Depends-on): Add gettext-h.
80687         (Makefile.am): Remove lib_SOURCES.
80688         * modules/argmatch, modules/c-stack, modules/closeout:
80689         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
80690         * modules/execute, modules/file-type, modules/getaddrinfo:
80691         * modules/getopt, modules/human, modules/javacomp:
80692         * modules/javaexec, modules/mkdir-p, modules/obstack:
80693         * modules/openat, modules/pagealign_alloc, modules/pipe:
80694         * modules/quotearg, modules/regex, modules/rpmatch:
80695         * modules/unicodeio, modules/userspec, modules/version-etc:
80696         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
80697         * modules/xsetenv:
80698         Depend on gettext-h, not gettext.
80699
80700 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80701
80702         * gnulib-tool (func_import): Add support for 'public domain' license.
80703         * modules/alloca, modules/atexit, modules/memmove:
80704         Now public domain, not GPL.
80705         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
80706         * modules/realloc, modules/strerror, modules/strtod:
80707         Now LGPL, not GPL.
80708
80709 2005-07-05  Bruno Haible  <bruno@clisp.org>
80710
80711         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
80712         autoconf CVS. Needed for mingw.
80713
80714 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80715
80716         Remove the dependency of the strftime module on the tzset module.
80717         * modules/strftime (Depends-on): Remove dependency on tzset.
80718
80719 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80720
80721         Remove the dependency of the strftime module on the tzset module.
80722         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
80723         gl_FUNC_TZSET_CLOBBER.
80724
80725 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80726
80727         Remove the dependency of the strftime module on the tzset module.
80728         * lib/strftime.c (my_strftime)
80729         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
80730         Copy the input structure, to work around some of the bug with
80731         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
80732         Solaris releases, you should also use the tzset module, but we won't
80733         require it as a dependency any more since we don't want LGPLed code
80734         to depend on GPLed code.
80735
80736 2005-07-02  Jim Meyering  <jim@meyering.net>
80737
80738         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
80739         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
80740         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
80741         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
80742
80743 2005-07-02  Jim Meyering  <jim@meyering.net>
80744
80745         * lib/backupfile.c (backup_args): Change a `0' to NULL.
80746
80747 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80748
80749         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
80750         declares only 'struct timespec;' (!).
80751
80752 2005-07-01  Jim Meyering  <jim@meyering.net>
80753
80754         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
80755         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
80756         * lib/save-cwd.c, tempname.c:
80757         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80758         and don't include <sys/file.h>).
80759
80760 2005-06-29  Jim Meyering  <jim@meyering.net>
80761
80762         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
80763         type name.  Use the variable name instead.
80764         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
80765         Likewise.
80766
80767 2005-06-28  Simon Josefsson  <jas@extundo.com>
80768
80769         * modules/check-version (Files): Add check-version.m4.
80770
80771 2005-06-28  Simon Josefsson  <jas@extundo.com>
80772
80773         * m4/check-version.m4: New file, suggested by Jim Meyering
80774         <jim@meyering.net>.
80775
80776 2005-06-28  Simon Josefsson  <jas@extundo.com>
80777
80778         * lib/check-version.h, lib/check-version.c: New files.
80779
80780 2005-06-28  Simon Josefsson  <jas@extundo.com>
80781
80782         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
80783         collision with global variable.  Better indentation.  Don't
80784         increment buffer pointer beyond buffer end.  Based on comments
80785         from Paul Eggert <eggert@cs.ucla.edu>.
80786
80787         * lib/base64.h: Indent.
80788
80789 2005-06-28  Simon Josefsson  <jas@extundo.com>
80790
80791         * doc/gnulib.texi (Library version handling): New section.
80792
80793 2005-06-28  Jim Meyering  <jim@meyering.net>
80794
80795         * check-module (find_included_lib_files): Hard-code another
80796         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
80797         but modules/fts-lgpl (correctly) does not list those files.
80798
80799         * modules/canonicalize (Files): Add lib/pathmax.h.
80800
80801 2005-06-25  Simon Josefsson  <jas@extundo.com>
80802
80803         * modules/check-version: New file.
80804
80805 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
80806
80807         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
80808         initializer of struct addrinfo, as an indication that we don't
80809         care how many members the structure has.
80810
80811 2005-06-24  Derek Price  <derek@ximbiot.com>
80812         and Bruno Haible  <bruno@clisp.org>
80813
80814         Remove stat module & update lstat.
80815         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
80816         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80817         * m4/stat.m4: Remove this file.
80818
80819 2005-06-24  Derek Price  <derek@ximbiot.com>
80820         and Bruno Haible  <bruno@clisp.org>
80821
80822         Remove stat module & update lstat.
80823         * lib/stat.c: Remove this file...
80824         (slash_aware_lstat): ...moving this content and its support...
80825         * lib/lstat.c (rpl_lstat): ...into here.
80826         * lib/lstat.h: New file.
80827
80828 2005-06-24  Derek Price  <derek@ximbiot.com>
80829         and Bruno Haible  <bruno@clisp.org>
80830
80831         Remove stat module & update lstat.
80832         * config/srclist.txt (libc sources): Remove stat.
80833
80834 2005-06-24  Derek Price  <derek@ximbiot.com>
80835         and Bruno Haible  <bruno@clisp.org>
80836
80837         Remove stat module & update lstat.
80838         * MODULES.html.sh (stat): Remove.
80839         * MODULES.html: Regenerated.
80840         * modules/lstat (Description): Correct function name.
80841         (Files): Add "lstat.h".
80842         (Depends-on): Remove stat, add xalloc, stat-macros.
80843         * modules/stat: Remove this file.
80844         (Include): Add "lstat.h", remove <sys/stat.h>.
80845
80846 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
80847
80848         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
80849         (ranged_convert): Don't save conversion in a temporary struct.
80850         This causes a warning with GCC 4.0.0, and anyway in the typical
80851         case it's not worth the extra 100 bytes or so of code.
80852         (ranged_convert, __mktime_internal): When calling a function via a
80853         pointer P, use P () rather than (*P) (), as we now assume C89 or
80854         better.
80855
80856 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80857
80858         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
80859         "who -r" failed to give output.  Problem reported by Tim Waugh.
80860
80861         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
80862         (xcalloc): Use it to avoid needless tests.
80863         Problem reported by Jim Meyering.
80864
80865 2005-06-20  Derek Price  <derek@ximbiot.com>
80866
80867         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
80868         unnecessary for Autoconfs > 2.59c.
80869
80870 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80871
80872         * lib/argp.h (__option_is_short): Check upper limit of
80873         __key. Isprint() requires its argument to have the value
80874         of an unsigned char or EOF.
80875
80876 2005-06-16  Jim Meyering  <jim@meyering.net>
80877
80878         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
80879         when either N or S is zero.
80880
80881 2005-06-16  Derek Price  <derek@ximbiot.com>
80882
80883         * m4/bison.m4: Declare YACC & YFLAGS precious.
80884
80885 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
80886
80887         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
80888         multibyte string or pattern, fall back on unibyte matching.
80889         Problem reported by James Youngman.
80890
80891 2005-06-08  Bruno Haible  <bruno@clisp.org>
80892
80893         * modules/csharpcomp: New file.
80894         * MODULES.html.sh (C#): Add csharpcomp.
80895
80896 2005-06-08  Bruno Haible  <bruno@clisp.org>
80897
80898         * m4/csharpcomp.m4: New file, from GNU gettext.
80899
80900 2005-06-08  Bruno Haible  <bruno@clisp.org>
80901
80902         * lib/csharpcomp.h: New file, from GNU gettext.
80903         * lib/csharpcomp.c: New file, from GNU gettext.
80904         * lib/csharpcomp.sh.in: New file, from GNU gettext.
80905
80906 2005-06-08  Bruno Haible  <bruno@clisp.org>
80907
80908         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
80909         warning on mingw.
80910
80911 2005-06-07  Derek Price  <derek@ximbiot.com>
80912
80913         Sync from CVS.
80914         * lib/glob_.h: Indent nested #ifdef.
80915
80916 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
80917
80918         Sync from coreutils.
80919         Use "file name" when talking about file names, instead of "filename"
80920         or "path", as per the GNU coding standards.
80921         * lib/mkdir-p.c: Renamed from makepath.c.
80922         (make_dir_parents): Renamed from make_path.  All callers changed.
80923         * lib/mkdir-p.h: Likewise.  All includers changed.
80924         * lib/filenamecat.c: Renamed from path-concat.c.
80925         (file_name_concat): Renamed from path_concat.  All callers changed.
80926         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
80927         * lib/filenamecat.h: Likewise.  All includers changed.
80928         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
80929         in comments or local variable names.
80930         * lib/basename.c: Likewise.
80931         * lib/canonicalize.c, canonicalize.h: Likewise.
80932         * lib/dirname.c, dirname.h: Likewise.
80933         * lib/euidaccess.c: Likewise.
80934         * lib/exclude.c: Likewise
80935         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
80936         * lib/fsusage.c, fsuage.h: Likewise.
80937         * lib/fts.c, fts_.h: Likewise.
80938         * lib/getcwd.c: Likewise.
80939         * lib/getloadavg.c: Likewise.
80940         * lib/mkstemp.c: Likewise.
80941         * lib/mountlist.c, mountlist.h: Likewise.
80942         * lib/openat.c, openat.h: Likewise.
80943         * lib/readlink-stub.c: Likewise.
80944         * lib/readutmp.c, readutmp.h: Likewise.
80945         * lib/rename.c: Likewise.
80946         * lib/rmdir.c: Likewise.
80947         * lib/same.c: Likewise.
80948         * lib/savedir.c: Likewise.
80949         * lib/stripslash.c: Likewise.
80950         * lib/tempname.c: Likewise.
80951         * lib/xreadlink.c: Likewise.
80952         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
80953         All uses changed.
80954         * lib/exclude.h: Likewise.
80955
80956         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
80957         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
80958         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
80959         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
80960         * lib/pathmax.h: Include <limits.h> unconditionally, since other
80961         files have been getting away with it for years (MORE/BSD 4.3
80962         is extinct now).
80963         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
80964         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
80965
80966         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
80967         Define to 256, not 255, as per modern POSIX.
80968
80969 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
80970
80971         Sync from coreutils.
80972         Use "file name" when talking about file names, instead of "filename"
80973         or "path", as per the GNU coding standards.
80974         * MODULES.html.sh: mkdir-p renamed from makepath.
80975         filenamecat renamed from path-concat.
80976         * modules/filenamecat: Renamed from modules/path-concat.
80977         (Files): filenamecat.h and filenamecat.c renamed from
80978         path-concat.h and path-concat.c.
80979         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
80980         (Include): filenamecat.h, not path-concat.h.
80981         * modules/mkdir-p: Renamed from modules/makepath.
80982         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
80983         makepath.c.
80984         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
80985         (Include): mkdir-p.h, not makepath.h.
80986
80987 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
80988
80989         Sync from coreutils.
80990         * m4/mkdir-p.m4: Renamed from makepath.m4.
80991         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
80992         Rename files from makepath.c to mkdir-p.c, and from
80993         makepath.h to mkdir-p.h.
80994         * m4/filenamecat.m4: Renamed from path-concat.m4.
80995         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
80996         Rename files from path-concat.c to filenamecat.c,
80997         and from path-concat.h to filenamecat.h.
80998         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
80999         "file name" in local variables or comments.
81000         * m4/rename.m4: Likewise.
81001
81002 2005-06-01  Bruno Haible  <bruno@clisp.org>
81003
81004         * modules/csharpexec: New file.
81005         * MODULES.html.sh (C#): New section.
81006
81007 2005-06-01  Bruno Haible  <bruno@clisp.org>
81008
81009         * m4/csharp.m4: New file, from GNU gettext.
81010         * m4/csharpexec.m4: New file, from GNU gettext.
81011
81012 2005-06-01  Bruno Haible  <bruno@clisp.org>
81013
81014         * lib/csharpexec.h: New file, from GNU gettext.
81015         * lib/csharpexec.c: New file, from GNU gettext.
81016         * lib/csharpexec.sh.in: New file, from GNU gettext.
81017
81018 2005-05-31  Derek Price  <derek@ximbiot.com>
81019             Paul Eggert  <eggert@cs.ucla.edu>
81020
81021         Sync from cvs.
81022         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81023
81024 2005-05-31  Derek Price  <derek@ximbiot.com>
81025             Paul Eggert  <eggert@cs.ucla.edu>
81026
81027         Sync from cvs.
81028         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81029
81030 2005-05-29  Derek Price  <derek@ximbiot.com>
81031
81032         * config/srclist.txt (glob_.h, glob.c): Add these files.
81033
81034 2005-05-29  Derek Price  <derek@ximbiot.com>
81035
81036         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
81037         * modules/glob: New file.
81038         * modules/getlogin_r: Add link to POSIX spec in description.
81039
81040 2005-05-29  Derek Price  <derek@ximbiot.com>
81041             Paul Eggert  <eggert@cs.ucla.edu>
81042
81043         * m4/glob.m4: New file.
81044
81045 2005-05-29  Derek Price  <derek@ximbiot.com>
81046             Paul Eggert  <eggert@cs.ucla.edu>
81047
81048         * lib/glob_.h, lib/glob.c: New files.
81049
81050 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81051
81052         * modules/fts (Files): Remove m4/inttypes-pri.m4.
81053         * modules/fts-lgpl (Depends-on): Remove gettext.
81054
81055 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81056
81057         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
81058         and don't require gt_INTTYPES_PRI.
81059
81060 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81061
81062         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
81063
81064         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
81065         the configuration hassle isn't worth it.
81066         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
81067         (LONGEST_MODIFIER, PRIuMAX): Remove.
81068
81069 2005-05-27  Bruno Haible  <bruno@clisp.org>
81070
81071         * lib/getlogin_r.h: Remove second include of <stddef.h>.
81072
81073 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
81074
81075         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
81076         _POSIX_PTHREAD_SEMANTICS for Solaris.
81077
81078 2005-05-25  Derek Price  <derek@ximbiot.com>
81079
81080         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
81081
81082 2005-05-25  Derek Price  <derek@ximbiot.com>
81083             Paul Eggert  <eggert@cs.ucla.edu>
81084
81085         * modules/getlogin_r, m4/getlogin_r.m4: New files.
81086         * lib/getlogin_r.c, getlogin_r.h: New files.
81087
81088 2005-05-25  Bruno Haible  <bruno@clisp.org>
81089             Derek Price  <derek@ximbiot.com>
81090
81091         * lib/getlogin_r.h: Simplify API documentation.
81092
81093 2005-05-23  Derek Price  <derek@ximbiot.com>
81094
81095         * modules/minmax (Files): Add m4/minmax.m4.
81096         (configure.ac): Add gl_MINMAX.
81097
81098 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81099
81100         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
81101         so that unistd-safer.h (GPL'ed code) need not be included.
81102
81103 2005-05-22  Bruno Haible  <bruno@clisp.org>
81104
81105         * m4/minmax.m4: New file.
81106         Based on a patch by Derek Price <derek@ximbiot.com>.
81107
81108 2005-05-22  Bruno Haible  <bruno@clisp.org>
81109
81110         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
81111         (INT64_MIN): Fix definition.
81112         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
81113
81114         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
81115         NEED_SIGNED_INT_TYPES.
81116
81117         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
81118         HAVE_SYSTEM_INTTYPES.
81119
81120 2005-05-22  Bruno Haible  <bruno@clisp.org>
81121
81122         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
81123         Also include <sys/param.h> if it defines MIN, MAX.
81124         Based on a patch by Derek Price <derek@ximbiot.com>.
81125
81126 2005-05-21  Jim Meyering  <jim@meyering.net>
81127
81128         * modules/fts (Files): Add m4/inttypes-pri.m4.
81129         (Depends-on): Add lstat and remove gettext.  Alphabetize.
81130
81131 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81132
81133         New fts module.
81134         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
81135         (setup_dir, free_dir): New functions.
81136         (enter_dir, leave_dir): Define trivial
81137         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
81138         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
81139         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
81140         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
81141         Move to fts-cycle.c.
81142         (fts_open): Use setup_dir.
81143         (fts_close): Use free_dir.
81144         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
81145         This adds a label and some gotos, but the alternatives were messier.
81146         Check for memory allocation failure when entering a dir.
81147         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
81148         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
81149         (FTS): New member fts_cycle, that is a union that contains the
81150         old active_dir_ht and cycle_state.  All uses changed to mention
81151         fts_cycle.ht and fts_cycle.state.
81152         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
81153         fts.c, with the following changes:
81154         (setup_dir, free_dir): New functions.
81155         (enter_dir): Now returns bool.  Return true if successful, false
81156         if memory exhausted.  All callers changed.
81157         Do not bother partly cleaning up on
81158         memory allocation failure; that is free_dir's job.
81159         However, free ad if hash_insert fails, to avoid memory leak.
81160         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
81161         fts->fts_options to see which union member to use.
81162
81163 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81164
81165         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
81166         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
81167
81168 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81169
81170         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
81171
81172 2005-05-20  Jim Meyering  <jim@meyering.net>
81173
81174         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
81175         Now a macro, to pacify GCC.
81176
81177 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81178
81179         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
81180         of -1.
81181
81182 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81183
81184         * lib/chown.c (rpl_chown): Return -1 on failure.
81185
81186 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81187
81188         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
81189         Don't check for stddef.h.
81190         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
81191         don't use its results.
81192         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
81193         since we include them unconditionally.  Don't require
81194         AM_STDBOOL_H, since stdbool is a prerequisite.
81195         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
81196         since we assume C89 or better.
81197         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
81198         as we don't use their results.
81199         Don't check for fchdir, memmove, memset, strrchr, as we use
81200         them unconditionally.
81201         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
81202         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
81203
81204 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81205
81206         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
81207         Include <stddef.h> unconditionally, since we assume C89 now.
81208         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
81209         * lib/fts.c: Include fts_.h first, to check interface.
81210         Do not include intprops.h; no longer needed.
81211         Include cycle-check.h and hash.h, since fts_.h no longer does.
81212         Remove unnecessary casts of closedir to void.
81213         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
81214         decide whether to decrement nlinks.
81215         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
81216         (FTS): Use struct hash_table * instead of Hash_table, so that
81217         we no longer need to include hash.h here.
81218
81219 2005-05-18  Jim Meyering  <jim@meyering.net>
81220
81221         * modules/dirfd (License): Change to LGPL.  Most of the code
81222         is already in the public domain.
81223
81224 2005-05-18  Jim Meyering  <jim@meyering.net>
81225
81226         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
81227         Reported by Yoann Vandoorselaere.
81228
81229 2005-05-17  Jim Meyering  <jim@meyering.net>
81230
81231         * m4/fts.m4: New file, from coreutils.
81232
81233 2005-05-17  Jim Meyering  <jim@meyering.net>
81234
81235         * lib/fts.c, lib/fts_.h: New files, from coreutils.
81236
81237 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81238
81239         Sync from coreutils.
81240         * m4/unlinkdir.m4: New file.
81241
81242 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81243
81244         Sync from coreutils.
81245         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
81246         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
81247         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
81248         White space changes only.
81249         * lib/makepath.c (make_path): Port to hosts where leading "//" is
81250         special.
81251         * lib/yesno.c: Include getline.h, not ctype.h.
81252         (yesno): Don't remove leading white space; POSIX doesn't allow it.
81253         Use getline to remove arbitrary restriction on response length.
81254
81255 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81256
81257         * config/srclist-update: Spell out "Street" in FSF postal
81258         mail address; this is the style the FSF seems to prefer.
81259
81260         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
81261         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
81262         this updates FSF postal mail address.
81263
81264         Sync from coreutils.
81265         * modules/unlinkdir: New file.
81266         * modules/yesno (Depends-on): Add getline.
81267         * MODULES.html.sh (File system functions): Add unlinkdir.
81268
81269 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81270
81271         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
81272         lib/strsep.h:
81273         Change the initial comment to refer to GPL, not LGPL.
81274         gnulib-tool will change it to LGPL as needed.
81275
81276         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
81277         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
81278         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
81279         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
81280         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
81281         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
81282         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
81283         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
81284         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
81285         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
81286         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
81287         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
81288         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
81289         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
81290         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
81291         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
81292         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
81293         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
81294         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
81295         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
81296         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
81297         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
81298         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
81299         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
81300         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
81301         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
81302         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
81303         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
81304         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
81305         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
81306         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
81307         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
81308         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
81309         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
81310         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
81311         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
81312         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
81313         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
81314         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
81315         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
81316         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
81317         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
81318         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
81319         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
81320         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
81321         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
81322         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
81323         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
81324         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
81325         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
81326         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81327         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
81328         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
81329         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
81330         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
81331         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
81332         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
81333         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
81334         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
81335         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
81336         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
81337         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
81338         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
81339         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
81340         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
81341         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
81342         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
81343         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
81344         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
81345         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
81346         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
81347         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
81348         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
81349         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
81350         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
81351         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
81352         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
81353         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
81354         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
81355         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
81356         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
81357         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
81358         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
81359         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
81360         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
81361         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
81362         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
81363         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
81364         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
81365         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
81366         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
81367         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
81368         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
81369         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
81370         lib/yesno.c, lib/yesno.h:
81371         Update FSF postal mail address.
81372
81373 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81374
81375         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
81376         tests/test-memmem.c, tests/test-stpncpy.c:
81377         Update FSF postal mail address.
81378
81379 2005-05-13  Bruno Haible  <bruno@clisp.org>
81380
81381         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
81382         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
81383         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
81384         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
81385         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
81386         Add support for 64-bit integers in the MSVC compiler.
81387
81388 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81389
81390         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
81391
81392 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
81393
81394         * gnulib-tool (func_import): Sort and uniquify recommended includes.
81395
81396 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
81397
81398         * doc/getdate.texi (General date syntax): Don't say that date
81399         date --iso-8601=ns generates acceptable dates; it doesn't yet.
81400         Problem reported by Nic Ferrier.
81401
81402 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81403
81404         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
81405         specified in ai_socktype. Fix invalid ai_protocol
81406         check. ai_protocol is usually set to 0 or depending on
81407         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
81408         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
81409         ai_socktype / ai_protocol in the returned addrinfo structure.
81410
81411 2005-05-10  Simon Josefsson  <jas@extundo.com>
81412
81413         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
81414         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81415
81416 2005-05-10  Karl Berry  <karl@gnu.org>
81417
81418         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
81419         (from http://www.gnu.org/licenses).
81420         * doc/COPYING.LIB: also rename to COPYING.LESSER.
81421         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
81422         fdl.texi suffices.
81423
81424 2005-05-10  Karl Berry  <karl@gnu.org>
81425
81426         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
81427         (COPYING.DOC): remove.
81428
81429         * config/srclist-update: new FSF address.
81430
81431 2005-05-10  Derek Price  <derek@ximbiot.com>
81432
81433         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
81434         possible.
81435
81436 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81437             Bruno Haible  <bruno@clisp.org>
81438
81439         * modules/inet_ntop: New file.
81440         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81441         inet_ntop.
81442
81443 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81444             Bruno Haible  <bruno@clisp.org>
81445
81446         * m4/inet_ntop.m4: New file.
81447
81448 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81449             Bruno Haible  <bruno@clisp.org>
81450
81451         * lib/inet_ntop.h: New file.
81452         * lib/inet_ntop.c: New file, from glibc with modifications.
81453
81454 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
81455
81456         * modules/time_r (License): Change to LGPL.
81457         * modules/extensions (License): Change to LGPL.  Actually,
81458         the license is more permissive than that, but currently gnulib-tool
81459         doesn't know how to handle more-permissive licenses.
81460
81461         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
81462         Problem reported by Dave Love.
81463
81464 2005-05-08  Jim Meyering  <jim@meyering.net>
81465
81466         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
81467         blank.
81468
81469 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81470
81471         * modules/argmatch (Depends-on): Add stdbool.
81472         * modules/backupfile (Depends-on): Likewise.
81473         * modules/chdir-long (Depends-on): Likewise.
81474         * modules/closeout (Depends-on): Likewise.
81475         * modules/cycle-check (Depends-on): Likewise.
81476         * modules/dirname (Depends-on): Likewise.
81477         * modules/fnmatch (Depends-on): Likewise.
81478         * modules/fsusage (Depends-on): Likewise.
81479         * modules/fwriteerror (Depends-on): Likewise.
81480         * modules/getcwd (Depends-on): Likewise.
81481         * modules/getloadavg (Depends-on): Likewise.
81482         * modules/hard-locale (Depends-on): Likewise.
81483         * modules/makepath (Depends-on): Likewise.
81484         * modules/mountlist (Depends-on): Likewise.
81485         * modules/nanosleep (Depends-on): Likewise.
81486         * modules/posixtm (Depends-on): Likewise.
81487         * modules/quotearg (Depends-on): Likewise.
81488         * modules/readtokens (Depends-on): Likewise.
81489         * modules/readtokens0 (Depends-on): Likewise.
81490         * modules/readutmp (Depends-on): Likewise.
81491         * modules/save-cwd (Depends-on): Likewise.
81492         * modules/strftime (Depends-on): Likewise.
81493         * modules/userspec (Depends-on): Likewise.
81494         * modules/utimecmp (Depends-on): Likewise.
81495         * modules/xgetcwd (Depends-on): Likewise.
81496         * modules/xnanosleep (Depends-on): Likewise.
81497         * modules/xstrtod (Depends-on): Likewise.
81498         * modules/yesno (Depends-on): Likewise.
81499
81500 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
81501
81502         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
81503         needless checks.
81504
81505 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81506
81507         Merge from coreutils.  Among other things,
81508         add bulletproofing for cases where stdin, stdout, or stderr are closed.
81509         * lib/fd-safer.c: New file.
81510         * lib/fcntl-safer.h, open-safer.c: Remove.
81511         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
81512         * lib/dup-safer.c: Include unistd-safer.h first.
81513         Don't include errno.h.
81514         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
81515         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
81516         * lib/file-type.c: Rely on file-type.h change.
81517         * lib/getloadavg.c: Include unistd-safer.h.
81518         (getloadavg): Use safer open.
81519         * lib/getusershell.c: Include "stdio-safer.h".
81520         (getusershell): Use safer fopen.
81521         * lib/long-options.c (long_options): Use NULL rather than 0.
81522         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
81523         'free'.
81524         * lib/modechange.c: Likewise.
81525         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
81526         (MODE_DONE): New constant.
81527         (struct mode_change): Remove 'next' member.
81528         (make_node_op_equals): New function; like the old one of the
81529         same name, except it allocates an array.
81530         (mode_compile, mode_create_from_ref): Use it.
81531         (mode_compile): Allocate result as an array, not a linked list.
81532         Parse octal string ourself, so that we catch mistakes like "+0".
81533         (mode_adjust): Arg is an array, not a linked list.
81534         * lib/modechange.c: Include stat-macros.h, xalloc.h.
81535         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
81536         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
81537         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
81538         Remove.  This is now stat-macros.h's job.
81539         (talloc): Remove.  All callers replaced by xalloc, so that
81540         our invokers don't have to worry about reporting memory failures.
81541         (make_node_op_equals): Remove.
81542         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
81543         New constants.
81544         (struct mode_change): Moved here from modechange.h.
81545         (mode_append_entry): Remove.
81546         (mode_compile): Remove MASKED_OPS arg, since it encouraged
81547         apps to have incorrect behavior.  Use simpler algorithm for head
81548         and tail.  Don't futz with umask; that's now the job of mode_adjust.
81549         Detect more invalid usages rather than having somewhat-random behavior.
81550         Don't insert an "a=" action, as that leads to incorrect behavior.
81551         (mode_compile, mode_create_from_ref): Return NULL on error instead
81552         of an enum, since now there's only one way to have an error.  All
81553         callers changed.
81554         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
81555         at the correct time.  Simplify calculation of "+u" and its ilk.
81556         Don't mishandle "+X".
81557         (mode_free): Remove "register" and localize decls.
81558         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
81559         (struct mode_change): Move to modechange.c; callers don't
81560         need to see this stuff.
81561         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
81562         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
81563         (mode_change, mode_adjust): Reflect the new signatures noted above.
81564         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
81565         that might redefine system include files.
81566         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
81567         (my_usleep): Use NULL rather than (void *) 0.
81568         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
81569         Use siginterrupt to specify that system calls should be interrupted.
81570         (rpl_nanosleep): Move initialization of suspended closer to call of
81571         my_usleep.
81572         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
81573         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
81574         (desirable_utmp_entry): New function.
81575         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
81576         using x2nrealloc, to simplify logic.
81577         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
81578         size calculation.  Do not assume utmp file is a regular file.
81579         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
81580         (READ_UTMP_CHECK_PIDS): New constant.
81581         * lib/save-cwd.c: Include unistd-safer.h.
81582         (save_cwd): Use fd_safer.
81583         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
81584         [!_LIBC] Include "stat-macros.h" instead.
81585         * lib/unistd-safer.h (fd_safer): New decl.
81586
81587 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81588
81589         * modules/getloadavg (Depends-on): Add unistd-safer.
81590         * modules/getusershell (Depends-on): Add stdio-safer.
81591         * modules/lstat (Depends-on): Remove xalloc.
81592         * modules/mkstemp (Depends-on): Add stat-macros.
81593         * modules/modechange (Depends-on): Remove xstrtol.
81594         Add stat-macros, xalloc.
81595         * modules/save-cwd (Depends-on): Add unistd-safer.
81596         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
81597         * modules/unistd-safer (Files): Add lib/fd-safer.c
81598         (Makefile.am): Remove lib_SOURCES.
81599
81600         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
81601         Remove fcntl-safer; unistd-safer supersedes it.
81602
81603 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81604
81605         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
81606         AC_HEADER_STAT.
81607         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
81608         (gl_PREREQ_CHOWN): Remove.
81609         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
81610         it.  Don't require AC_HEADER_STAT.
81611         (gl_PREREQ_LSTAT): Remove.
81612         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
81613         Don't require AC_HEADER_STAT.
81614         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
81615         (gl_PREREQ_RMDIR): Remove.
81616         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
81617         mention stat-macros.h or AC_HEADER_STAT, since we'll make
81618         the stat-macros module a prerequisite.
81619         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
81620         * m4/filemode.m4 (gl_FILEMODE): Likewise.
81621         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
81622         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
81623         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
81624         variable names.
81625         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
81626         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
81627         variable prefixes.
81628         * m4/fcntl-safer.m4: Remove.
81629         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
81630         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
81631         Invoke gl_PREREQ_FD_SAFER.
81632         (gl_PREREQ_FD_SAFER): New macro.
81633         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
81634         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
81635         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
81636         Remove duplicate call to AC_LIBOBJ(readutmp).
81637         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
81638
81639         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
81640         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
81641
81642 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81643
81644         * MODULES.html.sh (Misc): Add byteswap.
81645
81646 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81647
81648         * modules/getcwd (Depends-on): Add extensions.
81649         * modules/openat (Depends-on): Likewise.
81650
81651 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81652
81653         * modules/byteswap: New file.
81654
81655 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81656
81657         * m4/byteswap.m4: New file.
81658
81659 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81660
81661         * lib/byteswap_.h: New file.
81662
81663 2005-04-25  Karl Berry  <karl@gnu.org>
81664
81665         * m4/gettext.m4: Update from GNU gettext 0.14.4.
81666
81667 2005-04-25  Albert Chin  <china@thewrittenword.com>
81668
81669         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
81670         Toolkit C bug.
81671
81672 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
81673
81674         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
81675         (func_ln_if_changed): Remove forcibly for no error message
81676         in case file does not exist.
81677
81678 2005-04-19  Simon Josefsson  <jas@extundo.com>
81679
81680         * gnulib-tool (Options): Make --symlink mean --symbolic.
81681
81682 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
81683
81684         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
81685
81686 2005-04-16  Simon Josefsson  <jas@extundo.com>
81687
81688         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
81689
81690 2005-04-15  Simon Josefsson  <jas@extundo.com>
81691
81692         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
81693
81694 2005-04-15  Simon Josefsson  <jas@extundo.com>
81695
81696         * gnulib-tool: Rename --symlink to --symbolic.
81697
81698 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
81699
81700         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
81701         symbolic links to files instead of copying/moving.  Add --aux-dir,
81702         specifying directory relative --dir where auxiliary build tools
81703         are placed.
81704
81705 2005-04-14  Bruno Haible  <bruno@clisp.org>
81706
81707         * modules/allocsa (License): Change to LGPL.
81708         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
81709
81710 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81711
81712         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
81713         that "UTC +1 second" continues to work.  Problem reported
81714         by Dmitry V. Levin.
81715         (relunit_snumber): New rule.
81716         (relunit): Use it.
81717
81718 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81719
81720         * lib/getdate.y (universal_time_zone_table): New constant.
81721         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
81722         universal_time_zone_table.
81723         (lookup_zone): Prefer universal_time_zone_table to
81724         local_time_zone_table, so that "GMT" time stamps are allowed in
81725         London during the summer.  Problem reported by Ian Abbott.
81726
81727 2005-04-12  Jim Meyering  <jim@meyering.net>
81728
81729         * lib/human.c (humblock): Set *options even when returning due to
81730         xstrtoumax conversion failure.  Thanks to a used-uninitialized
81731         warning from gcc-4.
81732
81733 2005-04-09  Jim Meyering  <jim@meyering.net>
81734
81735         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
81736         -Wuninitialized: initialize tm0.tm_year.
81737
81738 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
81739
81740         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
81741         count, since there's no maximum.  All uses changed.
81742         Add member dsts_seen.
81743         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
81744         not being INT_MAX.
81745         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
81746         Use pc_rels_seen to decide whther a date is absolute.
81747
81748         * lib/getdate.y (number): Don't overwrite year.
81749         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
81750         check.
81751
81752 2005-04-02  Simon Josefsson  <jas@extundo.com>
81753
81754         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
81755         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
81756
81757 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
81758
81759         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
81760         where no absolute path name can be longer than PATH_MAX.
81761
81762 2005-03-27  Jim Meyering  <jim@meyering.net>
81763
81764         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
81765
81766 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
81767
81768         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
81769         "one's complement" -> "ones' complement" in comment, as per Knuth.
81770         "value of type" -> "type or expression" in comment.
81771         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
81772
81773 2005-03-26  Jim Meyering  <jim@meyering.net>
81774
81775         Comment nits.
81776         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
81777         Correct typos: s/or/of/.
81778
81779 2005-03-26  Jim Meyering  <jim@meyering.net>
81780
81781         * modules/check-include-files: Move to ../ and rename to...
81782         * check-module: ...this.
81783
81784 2005-03-25  Jim Meyering  <jim@meyering.net>
81785
81786         * modules/xvasprintf (Files): Add xalloc.h.
81787
81788 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
81789
81790         * modules/gettext (Files): config/config.rpath ->
81791         build-aux/config.rpath
81792         * modules/iconv (Files): Likewise.
81793         Problem reported by Oskar Liljeblad.
81794
81795 2005-03-23  Jim Meyering  <jim@meyering.net>
81796
81797         * modules/check-include-files: New script to check for
81798         missing dependencies, multiple includes, etc.
81799
81800         * modules/c-strtold (Depends-on): Add xalloc.
81801         * modules/c-strtod (Depends-on): Add xalloc.
81802         * modules/hash (Depends-on): Add xalloc.
81803         (Files): Remove lib/xalloc.h.
81804
81805         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
81806         * modules/userspec (Files): Add lib/inttostr.h.
81807
81808 2005-03-23  Jim Meyering  <jim@meyering.net>
81809
81810         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
81811
81812 2005-03-22  Jim Meyering  <jim@meyering.net>
81813
81814         * modules/stat-macros: New module.
81815         * modules/canonicalize, modules/euidaccess, modules/file-type,
81816         * modules/filemode, modules/lchown, modules/makepath,
81817         * modules/rmdir, modules/stat: Depend on new stat-macros module
81818         rather than listing lib/stat-macros.h manually.
81819         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
81820
81821 2005-03-22  Jim Meyering  <jim@meyering.net>
81822
81823         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
81824
81825 2005-03-22  Bruno Haible  <bruno@clisp.org>
81826
81827         * config/srclist.txt: Replace target directory 'config' with
81828         'build-aux'.
81829         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
81830         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
81831         ../build-aux/.
81832
81833 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
81834
81835         * modules/chdir-long (Depends-on): Add mempcpy.
81836
81837         * modules/acl, modules/backupfile, modules/c-strtod,
81838         modules/c-strtold, modules/canon-host, modules/canonicalize,
81839         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
81840         modules/exclude, modules/exitfail, modules/file-type,
81841         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
81842         modules/getdate, modules/getline, modules/getpagesize,
81843         modules/getpass, modules/getugroups, modules/group-member,
81844         modules/hard-locale, modules/hash, modules/human, modules/idcache,
81845         modules/inttostr, modules/long-options, modules/makepath,
81846         modules/md5, modules/memcasecmp, modules/memcoll,
81847         modules/modechange, modules/mountlist, modules/path-concat,
81848         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
81849         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
81850         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
81851         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
81852         modules/strftime, modules/strndup, modules/strverscmp,
81853         modules/timespec, modules/unlocked-io, modules/userspec,
81854         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
81855         modules/yesno:
81856         Remove lib_SOURCES line from Makefile.am section, as this is now
81857         done automatically by the corresponding Autoconf macro.
81858
81859 2005-03-21  Jim Meyering  <jim@meyering.net>
81860
81861         Changes imported from coreutils.
81862
81863         * lib/cycle-check.c: Don't include xalloc.h.
81864
81865         * lib/path-concat.c: Don't include assert.h.
81866         (path_concat): Remove assertion that would have triggered
81867         for ABASE starting with more than one slash.
81868         Reported by Andreas Schwab.
81869
81870         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
81871         properly when ABASE is an absolute file name.
81872         Correct the description of this function.
81873         Include <assert.h>.
81874         Add an assertion and a test driver.
81875         This fixes a bug introduced on 2004-07-02.
81876         Andreas Schwab reported the resulting failure of cp --parents:
81877         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
81878
81879 2005-03-21  Jim Meyering  <jim@meyering.net>
81880
81881         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
81882         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
81883
81884 2005-03-21  Jim Meyering  <jim@meyering.net>
81885         and  Paul Eggert  <eggert@cs.ucla.edu>
81886
81887         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
81888         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
81889         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
81890         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
81891         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
81892         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
81893         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
81894         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
81895         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
81896         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
81897         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
81898         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
81899         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
81900         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
81901         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
81902         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
81903         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
81904         for these modules.
81905
81906 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
81907
81908         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
81909         (which shouldn't happen), generate nothing instead of returning 0
81910         immediately, so that nstrftime (NULL, ...) doesn't return 0.
81911
81912 2005-03-16  Bruno Haible  <bruno@clisp.org>
81913
81914         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
81915         HAVE_LONGLONG_64BIT.
81916
81917 2005-03-16  Bruno Haible  <bruno@clisp.org>
81918
81919         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
81920         HAVE_LONGLONG_64BIT.
81921
81922 2005-03-16  Bruno Haible  <bruno@clisp.org>
81923
81924         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
81925         HAVE_LONGLONG_64BIT.
81926
81927 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
81928
81929         * lib/strftime.c (my_strftime): Prepend space to format so that we can
81930         reliably distinguish strftime failure from empty output on POSIX
81931         hosts.
81932
81933 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
81934
81935         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
81936         (iconv_string): Don't guess a size-zero buffer, as that might cause
81937         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
81938         result would be 'too large', where 'too large' is (heuristically)
81939         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
81940         overflow concerns.  This will prevent some unwanted malloc failures
81941         when the inputs are very large.
81942
81943 2005-03-15  Karl Berry  <karl@gnu.org>
81944
81945         * config/srclist.txt (config.rpath): from gettext.
81946         * config/config.rpath: update.
81947
81948 2005-03-15  Bruno Haible  <bruno@clisp.org>
81949
81950         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
81951         to 'negate'.
81952
81953         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
81954         variable.
81955
81956         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
81957         results.
81958
81959 2005-03-14  Simon Josefsson  <jas@extundo.com>
81960
81961         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
81962         <fx@gnu.org>.
81963
81964 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
81965
81966         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
81967         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
81968         intprops.h.
81969         * lib/strtol.c: Likewise.
81970
81971 2005-03-14  Jim Meyering  <jim@meyering.net>
81972
81973         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
81974         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
81975         to be nonzero so that we (and caller) can detect the difference
81976         between a valid zero-length expansion and an error return, even
81977         when the underlying strftime fails before writing anything into
81978         that location.
81979
81980 2005-03-14  Bruno Haible  <bruno@clisp.org>
81981
81982         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
81983         Update from GNU gettext 0.14.3.
81984
81985 2005-03-10  Jim Meyering  <jim@meyering.net>
81986
81987         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
81988
81989 2005-03-10  Jim Meyering  <jim@meyering.net>
81990
81991         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
81992         so that this module works on systems without fchdir.
81993
81994 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
81995
81996         Factor int-properties macros into a single file, except for
81997         glibc-related files.
81998         * lib/intprops.h: New file.
81999         * lib/getloadavg.c: Include it instead of limits.h.
82000         (INT_STRLEN_BOUND): Remove.
82001         * lib/human.c: Include intprops.h.
82002         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
82003         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
82004         302/1000.
82005         * lib/inttostr.h: Include intprops.h instead of limits.h.
82006         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
82007         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
82008         for consistency with intprops.h.
82009         (time_t_is_integer, twos_complement_arithmetic): Use them.
82010         * lib/sig2str.h: Include <signal.h>, intprops.h.
82011         (INT_STRLEN_BOUND): Remove.
82012         * lib/strftime.c (TYPE_SIGNED): Remove.
82013         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
82014         * lib/strtol.c: Adjust comments to match intprops.h.
82015         * lib/userspec.c: Include intprops.h.
82016         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
82017         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
82018         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
82019         instead of rolling our own expressions.
82020         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
82021
82022         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
82023         instead of int.
82024         (my_strftime): Do not mishandle years close to INT_MAX, by doing
82025         the right thing even if adding 1900 would overflow.  Similarly
82026         for tm_mon + 1 and tm_yday + 1.
82027         Make %Y always equivalent to %C%y, and similarly for %G and %g.
82028         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
82029         (DO_SIGNED_NUMBER): New macro.
82030         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
82031
82032 2005-03-07  Bruno Haible  <bruno@clisp.org>
82033
82034         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
82035
82036 2005-03-07  Bruno Haible  <bruno@clisp.org>
82037
82038         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
82039
82040 2005-03-04  Derek R. Price  <derek@ximbiot.com>
82041
82042         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
82043         (func_import): Only replace files via --import when they have actually
82044         changed.
82045
82046 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82047
82048         * m4/mmap-anon.m4: New file.
82049         * m4/pagealign_alloc.m4: New file.
82050
82051 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82052             Bruno Haible  <bruno@clisp.org>
82053
82054         * modules/pagealign_alloc: New file.
82055         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
82056
82057 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82058             Bruno Haible  <bruno@clisp.org>
82059
82060         * lib/pagealign_alloc.h: New file.
82061         * lib/pagealign_alloc.c: New file.
82062
82063 2005-03-03  Bruno Haible  <bruno@clisp.org>
82064
82065         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
82066         Use an all-permissive copyright notice, recommended by RMS.
82067
82068 2005-03-02  Bruno Haible  <bruno@clisp.org>
82069
82070         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
82071         of AIX, the replacement has to be done only after <string.h> is
82072         included, therefore not in config.h. stpncpy.h does the replacement,
82073         and stpncpy.c uses it.
82074
82075 2005-03-02  Bruno Haible  <bruno@clisp.org>
82076
82077         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
82078         stpncpy.c uses it.
82079
82080 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82081
82082         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
82083         The workaround isn't strictly needed for POSIX conformance, and
82084         it's too much of a pain to configure and maintain.  We'll ask
82085         people to fix their kernels instead.
82086         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
82087         (NANOSLEEP_BUG_WORKAROUND): Remove.
82088         (xnanosleep): Remove the workaround.
82089
82090 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82091
82092         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
82093         Reported by Derek Price.
82094         (Include): Add "timespec.h".
82095
82096         * modules/xnanosleep (Depends-on): Remove gethrxtime.
82097
82098 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82099
82100         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
82101         to detect nanosleep bug.
82102
82103 2005-03-01  Bruno Haible  <bruno@clisp.org>
82104
82105         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
82106
82107 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82108
82109         * modules/gethrxtime: New file.
82110         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
82111         (Depends-on): Add gethrxtime.
82112         (configure.ac): Add gl_XNANOSLEEP.
82113         (Makefile.am): Remove lib_SOURCES line.
82114
82115 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82116
82117         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
82118         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
82119
82120 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82121
82122         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
82123         * lib/timespec.h (gettime): Return void, since it always
82124         succeeds now.  All uses changed.
82125         * lib/gettime.c (gettime): Likewise.
82126         [HAVE_NANOTIME]: Prefer nanotime.
82127         Assume gettimeofday succeeds, as POSIX requires.
82128         Assime time () succeeds, since other code already does.
82129         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
82130         (timespec_subtract): Remove.
82131         (NANOSLEEP_BUG_WORKAROUND): New constant.
82132         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
82133         things considerably.  Use it only on GNU/Linux hosts, since the
82134         workaround shouldn't be needed elsewhere.
82135
82136 2005-02-24  Bruno Haible  <bruno@clisp.org>
82137
82138         * modules/gettext (Files): Add m4/glibc2.m4.
82139
82140 2005-02-24  Bruno Haible  <bruno@clisp.org>
82141
82142         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
82143         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
82144         * m4/progtest.m4:
82145         Update from GNU gettext 0.14.2.
82146         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
82147
82148 2005-02-24  Bruno Haible  <bruno@clisp.org>
82149
82150         * lib/localcharset.c: Update from GNU gettext 0.14.2.
82151         * lib/config.charset: Update from GNU gettext 0.14.2.
82152
82153 2005-02-24  Bruno Haible  <bruno@clisp.org>
82154
82155         * lib/gettext.h: Update from GNU gettext 0.14.2.
82156
82157 2005-02-23  Simon Josefsson  <jas@extundo.com>
82158
82159         * m4/iconvme.m4: New file.
82160
82161 2005-02-23  Jim Meyering  <jim@meyering.net>
82162
82163         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
82164         change.
82165         Thanks to Bruno Haible for catching it.
82166
82167 2005-02-22  Simon Josefsson  <jas@extundo.com>
82168
82169         * modules/iconvme: New file.
82170
82171         * MODULES.html.sh: Add iconvme.
82172
82173 2005-02-22  Simon Josefsson  <jas@extundo.com>
82174
82175         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
82176
82177 2005-02-22  Simon Josefsson  <jas@extundo.com>
82178
82179         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
82180
82181 2005-02-22  Jim Meyering  <jim@meyering.net>
82182
82183         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
82184         s/ifndef/ifdef/.
82185
82186 2005-02-20  Neil Conway  <neilc@samurai.com>
82187
82188         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
82189         returned by OSX/Darwin if the specified buffer is not large
82190         enough for the hostname.
82191
82192 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82193
82194         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
82195         pass it to _help, otherwise the latter coredumps trying to
82196         dereference state.root_argp.
82197
82198 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82199
82200         * modules/chdir-long (Depends-on): Add memrchr.
82201         * modules/memrchr (Files): Add lib/memrchr.h.
82202         (Include): "memrchr.h".
82203
82204 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82205
82206         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
82207
82208 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82209
82210         * lib/memrchr.h: New file.
82211         * lib/chdir-long.c: Include it.
82212         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
82213         Don't bother including stddef.h.
82214
82215 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
82216
82217         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
82218         inclusion.
82219         Include <sys/types.h>, for dev_t.
82220         (ME_DUMMY, ME_REMOTE): Move from here....
82221         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
82222         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
82223         Dmitry V. Levin.
82224         Include mountlist.h first, to test the interface.
82225
82226 2005-01-29  Bruno Haible  <bruno@clisp.org>
82227
82228         * lib/progname.c (program_name): Initialize.
82229         Needed when linking statically on MacOS X.
82230
82231 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
82232
82233         Sync from coreutils.
82234         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
82235         (Depends-on): Add c-strtod.
82236         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
82237
82238 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
82239
82240         Sync from coreutils.
82241         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
82242
82243         Remove files that are specific to coreutils.
82244         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
82245
82246 2005-01-28  Bruno Haible  <bruno@clisp.org>
82247
82248         * modules/javacomp: New file.
82249         * MODULES.html.sh (Java): Add javacomp.
82250
82251 2005-01-28  Bruno Haible  <bruno@clisp.org>
82252
82253         * m4/javacomp.m4: New file, from GNU gettext.
82254
82255 2005-01-28  Bruno Haible  <bruno@clisp.org>
82256
82257         * lib/javacomp.sh.in: New file, from GNU gettext.
82258         * lib/javacomp.h: New file, from GNU gettext.
82259         * lib/javacomp.c: New file, from GNU gettext.
82260
82261 2005-01-26  Simon Josefsson  <jas@extundo.com>
82262
82263         * lib/gai_strerror.c: Use GPL in header.
82264
82265 2005-01-26  Bruno Haible  <bruno@clisp.org>
82266
82267         * modules/javaexec: New file.
82268         * MODULES.html.sh (Java): Add javaexec.
82269
82270 2005-01-26  Bruno Haible  <bruno@clisp.org>
82271
82272         * m4/javaexec.m4: New file, from GNU gettext.
82273
82274 2005-01-26  Bruno Haible  <bruno@clisp.org>
82275
82276         * lib/javaexec.sh.in: New file, from GNU gettext.
82277         * lib/javaexec.h: New file, from GNU gettext.
82278         * lib/javaexec.c: New file, from GNU gettext.
82279
82280 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82281
82282         * modules/lchown (Depends-on): Remove lchown.h
82283
82284 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82285
82286         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
82287         must be defined if the header file was not found, in order
82288         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
82289
82290 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82291
82292         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
82293         initializers for struct pentry_state.
82294         (__argp_error): Check return value of __asprintf
82295         (__argp_failure): Translate error message
82296
82297         * lib/argp-parse.c: Removed braces around the expansion of N_()
82298
82299 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82300
82301         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
82302         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
82303         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
82304         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
82305         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
82306         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
82307         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
82308         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
82309         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
82310         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
82311         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
82312         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
82313         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
82314         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
82315         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
82316         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
82317         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
82318         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
82319         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
82320         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
82321         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
82322         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
82323         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
82324         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
82325         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
82326         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
82327         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
82328         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
82329         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
82330         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
82331         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
82332         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
82333         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
82334         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
82335         xstrtol.m4, xstrtoumax.m4, yesno.m4:
82336         Use an all-permissive copyright notice, recommended by RMS.
82337
82338 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
82339
82340         * modules/chdir-long (Depends-on): Remove mempcpy.
82341
82342 2005-01-21  Jim Meyering  <jim@meyering.net>
82343
82344         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
82345         same value as for Solaris 9.
82346
82347         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
82348         component length.  This included changing the parameter to be
82349         of type `char *' rather than `char const *'.
82350         * lib/chdir-long.h (chdir_long): Update prototype.
82351
82352         * lib/openat.c (fdopendir, fstatat): New functions.
82353         * lib/openat.h: Include headers required for use of DIR and struct
82354         stat.
82355         [AT_SYMLINK_NOFOLLOW]: Define.
82356         (fdopendir, fstatat): Add prototypes.
82357
82358 2005-01-21  Bruno Haible  <bruno@clisp.org>
82359
82360         * modules/classpath: New file.
82361         * MODULES.html.sh (Java): Add classpath.
82362
82363 2005-01-21  Bruno Haible  <bruno@clisp.org>
82364
82365         * lib/classpath.h: New file, from GNU gettext.
82366         * lib/classpath.c: New file, from GNU gettext.
82367
82368 2005-01-20  Simon Josefsson  <jas@extundo.com>
82369
82370         * modules/version-etc-fsf: New file.
82371
82372 2005-01-20  Simon Josefsson  <jas@extundo.com>
82373
82374         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
82375         * lib/version-etc.c: Remove version_etc_copyright.
82376         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
82377         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
82378
82379 2005-01-20  Simon Josefsson  <jas@extundo.com>
82380
82381         * lib/base64.h (isbase64): Add.
82382
82383         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
82384         using a unsigned prototype, don't inline.
82385         (base64_decode): Use it.
82386
82387 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82388
82389         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
82390         it.
82391
82392 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82393
82394         * lib/save-cwd.c (save_cwd): Remove code to support the case
82395         where fchdir is missing or flaky.
82396
82397 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82398
82399         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
82400
82401 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
82402
82403         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
82404         AC_LIBSOURCES now does this.
82405         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
82406         with new ullong_max module.
82407
82408 2005-01-19  Bruno Haible  <bruno@clisp.org>
82409
82410         * modules/sh-quote: New file.
82411         * MODULES.html.sh (Executing programs): Add sh-quote.
82412
82413 2005-01-19  Bruno Haible  <bruno@clisp.org>
82414
82415         * lib/sh-quote.h: New file, from GNU gettext.
82416         * lib/sh-quote.c: New file, from GNU gettext.
82417
82418 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
82419
82420         Merge from coreutils.
82421         * m4/ullong_max.m4: New file.
82422         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
82423         (gl_MACROS): Assume localeconv exists.
82424
82425 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
82426
82427         Merge changes from coreutils, as described below in several
82428         changelogs dated today.
82429
82430         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
82431         (O_DIRECTORY): Remove; not needed here, since "." must be
82432         a directory.  All uses removed.
82433         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
82434         universal on Suns, and we also need to test for IRIX.
82435         Revamp code to use 'if' rather than '#if'.
82436         Avoid unnecessary comparison of cwd->desc to 0.
82437
82438         * lib/utimens.c (futimens): Robustify the previous patch, by checking
82439         for known valid error numbers rather than observed invalid ones.
82440
82441 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
82442
82443         * modules/ullong_max: New file.
82444
82445         * modules/chdir-long, modules/openat: New files.
82446         * modules/save-cwd (Depends-on): Depend on chdir-long.
82447         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
82448
82449 2005-01-18  Jim Meyering  <jim@meyering.net>
82450
82451         Merge from coreutils.
82452         * m4/chdir-long.m4, m4/openat.m4: New files.
82453         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
82454         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
82455         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
82456         is sane and DOES follow symlinks.  Besides, testing 20 different
82457         systems found no broken chown implementations.
82458         Prompted by a change in rsync's copy of this macro.
82459         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
82460
82461         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
82462
82463         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
82464         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
82465         NULL-means-set-to-current-time semantics.
82466         Remove temporary file immediately, rather than waiting
82467         for configure's at-exit trap code to do it.
82468
82469 2005-01-18  Jim Meyering  <jim@meyering.net>
82470
82471         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82472
82473         * lib/utimens.c (futimens): Account for the fact that futimes
82474         can also fail with errno == ENOSYS or errno == ENOENT.
82475         Patch from Dmitry V. Levin.
82476
82477         Change the name of the robust chdir function from chdir to chdir_long.
82478         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
82479         (restore_cwd): Use chdir_long, not chdir.
82480         * lib/chdir-long.c: Renamed from chdir.c.
82481         * lib/chdir-long.h: Renamed from chdir.h.
82482         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
82483         Hurd.
82484
82485 2005-01-18  Bruno Haible  <bruno@clisp.org>
82486
82487         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
82488         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
82489         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
82490         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
82491         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
82492         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
82493         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
82494         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
82495         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
82496         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
82497         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
82498         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
82499         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
82500         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
82501         Use an all-permissive copyright notice, recommended by RMS.
82502
82503 2005-01-18  Bob Proulx  <bob@proulx.com>
82504
82505         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
82506         simplify offsetof() macro construct to avoid compile failure with
82507         native HP-UX 11.0 ANSI C compiler.
82508
82509 2005-01-17  Bruno Haible  <bruno@clisp.org>
82510
82511         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
82512         redundant because stpncpy.m4 takes care of it.
82513
82514 2005-01-17  Bruno Haible  <bruno@clisp.org>
82515
82516         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
82517
82518 2005-01-17  Bruno Haible  <bruno@clisp.org>
82519
82520         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
82521         used.
82522
82523 2005-01-17  Bruno Haible  <bruno@clisp.org>
82524
82525         * lib/fwriteerror.h (fwriteerror): Change specification to include
82526         fclose.
82527         * lib/fwriteerror.c: Include <stdbool.h>.
82528         (fwriteerror): At the end, close the file stream. Record whether
82529         stdout was already closed.
82530
82531 2005-01-17  Bruno Haible  <bruno@clisp.org>
82532
82533         * lib/execute.c (environ): Declare if needed.
82534         * lib/pipe.c (environ): Likewise.
82535         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
82536
82537 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82538
82539         * modules/argp: Depend on vsnprintf
82540
82541 2005-01-10  Jim Meyering  <jim@meyering.net>
82542
82543         * modules/closeout (Depends-on): Add atexit.
82544
82545 2005-01-06  Bruno Haible  <bruno@clisp.org>
82546
82547         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
82548
82549 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82550
82551         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
82552         definitions to be after all include files, to avoid collisions.
82553         Problem reported by Bob Proulx.
82554
82555 2005-01-04  Jim Meyering  <jim@meyering.net>
82556
82557         Changes imported from coreutils.
82558         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
82559         as the mkstemp template, use a temporary directory and an
82560         8.3-friendly template to avoid trouble on systems like DJGPP.
82561         Reported by Juan M. Guerrero via Stepan Kasal.
82562         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
82563         close. Remove the temporary directory right away, rather than waiting
82564         for configure's at-exit trap code to do it.
82565         Suggestion from Stepan Kasal.
82566
82567 2005-01-01  Simon Josefsson  <jas@extundo.com>
82568
82569         * gnulib-tool: Print #include directives when --import'ing.
82570
82571 2004-12-28  Simon Josefsson  <jas@extundo.com>
82572
82573         * tests/test-base64.c: Include required header files.  Remove
82574         unused variables.
82575
82576 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
82577
82578         * modules/error (Depends-on): Remove gettext.
82579
82580 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
82581
82582         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
82583         not needed.  This removes a dependency on the gettext module.
82584         [defined _LIBC]: Do not include <libintl.h>; not needed.
82585
82586 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
82587
82588         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
82589         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
82590
82591 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
82592
82593         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
82594         HAVE_DECL_STRTOLD.
82595
82596 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
82597
82598         * modules/getdate (Depends-on): Remove alloca-opt.
82599
82600 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
82601
82602         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
82603
82604 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
82605
82606         * lib/argp-parse.c: Include <stddef.h>.
82607         (alignof, alignto): New macros.
82608         (parser_init): Don't assume that void * is aligned sufficiently
82609         for struct option.
82610
82611         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
82612         need to extend the stack.
82613         (YYINITDEPTH): New macro, so that the initial stack isn't overly
82614         large.
82615
82616 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82617
82618         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
82619
82620 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
82621
82622         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
82623         (2004-10-24) change.  Apparently this was a false alarm.
82624
82625         * modules/getdate: Depend on alloca-opt, not alloca.
82626
82627 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
82628
82629         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
82630         Remove now-obsolete comment about AIX.
82631         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
82632         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
82633         (YYMAXDEPTH): New macro.
82634
82635 2004-12-18  Simon Josefsson  <jas@extundo.com>
82636
82637         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
82638
82639 2004-12-18  Bruno Haible  <bruno@clisp.org>
82640
82641         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
82642
82643 2004-12-18  Bruno Haible  <bruno@clisp.org>
82644
82645         * lib/fatal-signal.c (fatal_signals): Make non-const.
82646         (init_fatal_signals): New function.
82647         (uninstall_handlers, install_handlers): Ignore signals that were set to
82648         SIG_IGN.
82649         (at_fatal_signal): Call init_fatal_signals.
82650         (init_fatal_signal_set): Likewise. Ignore signals that were set to
82651         SIG_IGN.
82652         Reported by Paul Eggert.
82653
82654 2004-12-18  Bruno Haible  <bruno@clisp.org>
82655
82656         * doc/alloca.texi: New file.
82657         * doc/alloca-opt.texi: New file.
82658
82659 2004-12-17  Jim Meyering  <jim@meyering.net>
82660
82661         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
82662         Otherwise, install-sh could exit with improper exit status when
82663         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
82664
82665 2004-12-16  Simon Josefsson  <jas@extundo.com>
82666
82667         * tests/test-base64.c: Add license.
82668
82669 2004-12-15  Stepan Kasal  <address@hidden>
82670
82671         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
82672
82673 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
82674
82675         * modules/getcwd (Files): Add m4/d-ino.m4.
82676         Suggested by Mark D. Baushke.
82677
82678 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
82679
82680         * lib/getdate.y (textint): New member "negative".
82681         (time_zone_hhmm): New function.
82682         Expect 14 shift-reduce conflicts, not 13.
82683         (o_colon_minutes): New rule.
82684         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
82685         (yylex): Set the "negative" member of signed numbers.
82686
82687 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
82688
82689         * doc/getdate.texi (Time of day items, Time zone items):
82690         Describe new formats +00:00, UTC+00:00.
82691
82692 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82693
82694         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
82695         spurious "-l"s.  Problem reported by Stepan Kasal.
82696
82697 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
82698
82699         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
82700         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
82701
82702 2004-12-04  Simon Josefsson  <jas@extundo.com>
82703
82704         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
82705         Vandoorselaere <yoann@prelude-ids.org>.
82706
82707 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
82708
82709         Changes imported from coreutils.
82710         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
82711         exist.
82712         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
82713
82714 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
82715
82716         Changes imported from coreutils.
82717         * lib/hard-locale.c: Assume <locale.h> exists.
82718         Include "strdup.h".
82719         (GLIBC_VERSION): New macro.
82720         (hard_locale): Assume setlocale exists.
82721         Rewrite to avoid #ifdef.
82722         Use strdup rather than malloc + strcpy.
82723         * lib/human.c: Assume <locale.h> exists.
82724         (human_readable): Assume localeconv exists.
82725
82726 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
82727
82728         * modules/hard-locale (Depends-on): Add strdup.
82729
82730 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
82731
82732         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
82733         convert T2, not T.  (Imported from libc.)
82734
82735 2004-11-30  Simon Josefsson  <jas@extundo.com>
82736
82737         * modules/restrict (License): Change to LGPL.
82738
82739 2004-11-30  Simon Josefsson  <jas@extundo.com>
82740
82741         * m4/restrict.m4: Add copyright and copying conditions.
82742
82743 2004-11-30  Simon Josefsson  <jas@extundo.com>
82744
82745         * m4/base64.m4: New file.
82746
82747 2004-11-30  Simon Josefsson  <jas@extundo.com>
82748
82749         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
82750         base64.
82751
82752         * tests/test-base64.c: New file.
82753
82754         * modules/base64: New file.
82755
82756 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
82757
82758         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
82759         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
82760
82761         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
82762
82763 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
82764
82765         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
82766         (__getcwd.c): Don't restore errno; glibc doesn't.
82767         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
82768         first, falling back to our code only if its results look suspicious.
82769         Ensure that the resulting buffer is only as large as necessary.
82770
82771         * lib/readutmp.c: Include readutmp.h first.
82772         Include <errno.h>, since readutmp.h no longer does that.
82773         * lib/readutmp.h: Don't include <errno.h>,
82774         <sys/param.h>, <time.h>; not needed to establish interface.
82775         (errno): Remove decl.
82776         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
82777         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
82778         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
82779
82780 2004-11-28  Simon Josefsson  <jas@extundo.com>
82781
82782         * lib/base64.h, base64.c: New file.
82783
82784 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
82785
82786         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
82787
82788 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
82789
82790         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
82791         (Depends-on): Remove pathmax, same.  Add mempcpy.
82792         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
82793         (Makefile.am): Append getcwd.h to lib_SOURCES.
82794         (Include): Add getcwd.h.
82795         (Maintainer): Change from Jim Meyering to "all, glibc",
82796         since getdate now uses intended-for-glibc code.
82797         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
82798         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
82799
82800 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82801
82802         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
82803         HP's ANSI C compiler.
82804         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
82805         Declaring int functions causes warnings on some modern systems and
82806         shouldn't be needed to compile on ancient ones.
82807         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
82808         defined.
82809
82810         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
82811         with the following changes.
82812         (__set_errno): Parenthesize properly.
82813         Include <stdbool.h>.
82814         (MIN, MAX, MATCHING_INO): New macros.
82815         (__getcwd): Define with prototype, not K&R form.
82816         Use heuristics to allocate default buffer on stack if possible.
82817         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
82818         behavior, and to avoid the PATH_MAX limit when computing
82819         ../../../../...
82820         Use MATCHING_INO to compare inode number to file.
82821         Check for arithmetic overflow in size calculations.
82822         Fix bug in reallocation of dot array that caused getcwd to fail
82823         on directories nested deeper than 75.
82824         Be more careful about saving errno on error.
82825         Do not use realloc; use only free+malloc, as this is a bit
82826         more flexible and avoids a needless copy operation.
82827         Do not inspect st_dev and st_ino for symbolic links; POSIX
82828         doesn't specify the latter.
82829         Check for closedir errors.
82830         Avoid needless casts.
82831         Use "#ifdef weak_alias" around weak_alias, to be like other
82832         glibc code.
82833         The following changes to getcwd.c have effect only when used in
82834         gnulib; they have no effect inside glibc proper.
82835         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
82836         as alloca isn't used.
82837         (alloca, __alloca): Likewise.
82838         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
82839         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82840         unconditionally, as gnulib assumes C89 or better.
82841         Do not include <sys/param.h>.
82842         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
82843         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
82844         better.
82845         (NULL) [!defined NULL]: Remove; we assume C89 or better.
82846         Include <dirent.h> in a way that is compatible with modern Autoconf.
82847         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
82848         New macros, if not already defined.
82849         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
82850         Use "_LIBC", not "defined _LIBC", for consistency.
82851         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
82852         a mempcpy module.
82853         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
82854         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
82855         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
82856         credit only to Jim Meyering and adjust the copyright dates.
82857         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
82858         <stdlib.h>, <unistd.h>, "pathmax.h".
82859         Instead, include "xgetcwd.h" (first) and "getcwd.h".
82860         (INITIAL_BUFFER_SIZE): Remove.
82861         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
82862
82863 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82864
82865         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
82866         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
82867         Use the _ONCE methods, for efficiency.
82868         Check for fcntl.h.  In test program, include <errno.h>
82869         and <fcntl.h> if available.  Remove old K&R cruft from
82870         test program.  Check for common errors in GNU/Linux,
82871         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
82872         don't do AC_LIBOBJ, as that's getcwd.m4's job.
82873         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
82874         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
82875         name accordingly.
82876         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
82877         accommodate new getcwd.c.
82878         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
82879         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
82880         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
82881         that's all we need now.
82882
82883 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82884
82885         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
82886         argp-parse.c depends on getopt internals, that means we should
82887         always use our getopt, to be on the safe side.
82888         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
82889         order not to spoil the result of an eventual previous invocation
82890         of gl_GETOPT_SUBSTITUTE.
82891
82892 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82893
82894         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
82895         redefinition warnings. To avoid them, include the defines
82896         in `#if !defined __need_getopt ... #endif'. The only place
82897         where __getopt_argv_const is used is in definitions
82898         of getopt_long and getopt_long_only below, which are as well
82899         protected by `#ifndef __need_getopt'.
82900         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
82901         __need_getopt after including <stdio.h> and <unistd.h> These
82902         headers might have defined it.
82903
82904 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
82905
82906         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
82907
82908 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
82909
82910         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
82911         (futimens): New function, which uses futimes if available.
82912         (futimens, utimens): Support timespec==NULL, with same semantics
82913         as utime and utimens.
82914         * lib/utimens.h (futimens): New decl.
82915
82916 2004-11-23  Jim Meyering  <jim@meyering.net>
82917
82918         * lib/getopt_.h: Remove trailing blanks.
82919
82920 2004-11-23  Jim Meyering  <jim@meyering.net>
82921
82922         * lib/__fpending.c: Add comment.
82923
82924 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
82925
82926         * modules/canonicalize (Depends-on): Add xreadlink.
82927         Problem reported by James Youngman.
82928
82929 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
82930
82931         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
82932         New macros.
82933         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
82934         optopt): Use them instead of invoking ## directly; otherwise, the
82935         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
82936
82937 2004-11-19  Bruno Haible  <bruno@clisp.org>
82938
82939         * lib/strtok_r.c: Move comments from here...
82940         * lib/strtok_r.h: ... to here.
82941
82942 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
82943
82944         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
82945         implementations that mishandle size_t overflow.
82946
82947 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
82948
82949         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
82950         might fail.  Problem reported by Yoann Vandoorselaere.
82951         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
82952         implementations that mishandle size_t overflow.
82953
82954 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82955
82956         * modules/canon-host (Depends-on): Add strdup.
82957
82958 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82959
82960         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
82961
82962 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82963
82964         * lib/canon-host.c: Include "strdup.h".
82965         (canon_host): Use getaddrinfo if available, so that IPv6 works.
82966         Use strdup instead of malloc/strcpy to duplicate strings.
82967
82968         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
82969         (human_space_before_unit): New constant.
82970         * lib/human.c (human_readable): Support it.
82971
82972         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
82973         (xgetcwd): Set errno correctly when failing.
82974         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
82975         the failure is actually due to a PATH_MAX problem.
82976
82977         Further getopt changes to make it more likely that glibc will
82978         buy the changes back.
82979         * lib/getopt.c (POSIXLY_CORRECT): New constant.
82980         (getopt): Use it, so to preserve glibc semantic
82981         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
82982         when compiling for libc.
82983         * lib/getopt_.h (__getopt_argv_const): Bring it back.
82984         (getopt_long, getopt_long_only): Use it.
82985
82986         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
82987         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
82988         (getopt): Argv is now char * const *, as per standard.
82989         (_getopt_internal_r, _getopt_internal): Argv is now char **,
82990         not char *__getopt_argv_const *.
82991         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
82992         _getopt_long_only_r): Likewise.
82993         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
82994         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
82995         _getopt_long_r, _getopt_long_only_r): Likewise.
82996         * lib/getopt_.h (__getopt_argv_const): Remove.
82997         (getopt): Argv is now char * const *, as per standard.
82998
82999         * lib/getdate.y (tORDINAL): New token.
83000         (day, relunit): Allow it for relative times.
83001         (relative_time_table): Use tORDINAL for ordinals.
83002
83003 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83004
83005         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
83006         Document that "second" isn't allowed as an ordinal number.
83007
83008 2004-11-16  Jim Meyering  <jim@meyering.net>
83009
83010         * modules/closeout (Depends-on): Add fpending.
83011
83012 2004-11-15  Jim Meyering  <jim@meyering.net>
83013
83014         * lib/closeout.c: Include "__fpending.h" once again.
83015         Include <stdbool.h>.
83016         (close_stdout): Don't fail just because stdout was closed initially,
83017         since some programs don't write to stdout in the normal course of
83018         operation (other than --version and --help), and we don't want this
83019         function to make e.g. `touch file >&-' fail.
83020         But do fail if it was closed and someone has tried to write to it.
83021         E.g., `printf foo >&-' must fail.
83022
83023 2004-11-13  Jim Meyering  <jim@meyering.net>
83024
83025         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
83026
83027 2004-11-12  Simon Josefsson  <jas@extundo.com>
83028
83029         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
83030         small doc fix is still pending.
83031
83032 2004-11-11  Simon Josefsson  <jas@extundo.com>
83033
83034         * modules/strtok_r: New file.
83035
83036         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83037         strtok_r.
83038
83039 2004-11-11  Simon Josefsson  <jas@extundo.com>
83040
83041         * m4/strtok_r.m4: New file.
83042
83043         * m4/getopt.m4: Replace opterr.
83044
83045 2004-11-11  Simon Josefsson  <jas@extundo.com>
83046
83047         * lib/strtok_r.h, strtok_r.c: New file.
83048
83049 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83050
83051         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
83052         of replacing opterr, getopt, etc.  This should handle the
83053         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
83054
83055 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83056
83057         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
83058         we can stop lying to compilers about the constness of argv when we
83059         are compiled outside glibc.
83060         (getopt, getopt_long, getopt_long_only): Use it.
83061         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83062         _getopt_internal, getopt): Likewise.
83063         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83064         _getopt_long_only_r): Likewise.
83065         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83066         _getopt_long_r, _getopt_long_only_r): Likewise.
83067
83068         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
83069         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
83070         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
83071         the other external symbols.
83072         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
83073         declaration, since the above renaming now works around collisions.
83074
83075 2004-11-11  Jim Meyering  <jim@meyering.net>
83076
83077         * lib/linebreak.c: Remove trailing blanks.
83078         * lib/alloca_.h: Likewise.
83079         * lib/acosl.c: Likewise.
83080         * lib/euidaccess.c: Likewise.
83081         * lib/allocsa.h: Likewise.
83082
83083 2004-11-10  Simon Josefsson  <jas@extundo.com>
83084
83085         * m4/getaddrinfo.m4: New file.
83086
83087 2004-11-10  Simon Josefsson  <jas@extundo.com>
83088
83089         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
83090
83091 2004-11-10  Simon Josefsson  <jas@extundo.com>
83092
83093         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83094         getaddrinfo.
83095
83096         * modules/getaddrinfo: New file.
83097
83098 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83099
83100         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
83101
83102 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83103
83104         * lib/mktime.c (SHR): New macro, which is a portable
83105         substitute for >> that should work even on Crays.
83106         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
83107         Problem reported by Mark D. Baushke in
83108         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
83109         * lib/getdate.y (SHR): Likewise.
83110         (tm_diff): Use it.
83111         * lib/strftime.c (SHR): Likewise.
83112         (tm_diff): Use it.
83113         * lib/quotearg.c (struct quoting_options): Use unsigned int for
83114         quote_these_too, so that right shifts are well defined.  All uses
83115         changed.
83116
83117 2004-11-10  Jim Meyering  <jim@meyering.net>
83118
83119         Ensure that no close failure goes unreported.
83120         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
83121         return early when it seems there's nothing to flush.
83122         Don't include __fpending.h.
83123
83124 2004-11-10  Jim Meyering  <jim@meyering.net>
83125
83126         * modules/closeout (Depends-on): Remove fpending.
83127
83128 2004-11-10  Jim Meyering  <jim@meyering.net>
83129
83130         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
83131
83132 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83133
83134         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
83135         gl_FUNC_STRFTIME.
83136         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
83137         and AC_REQUIRE when possible, to avoid duplicate checks.
83138         Check for <wchar.h>.
83139
83140 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83141
83142         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
83143
83144 2004-11-09  Bruno Haible  <bruno@clisp.org>
83145
83146         * m4/sockpfaf.m4: New file.
83147
83148 2004-11-05  Bruno Haible  <bruno@clisp.org>
83149
83150         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
83151         Reported by Mark D. Baushke <mdb@cvshome.org>.
83152
83153 2004-11-04  Bruno Haible  <bruno@clisp.org>
83154
83155         2004-09-11  Bruno Haible  <bruno@clisp.org>
83156                 * allocsa.valgrind: New file.
83157         2004-02-06  Bruno Haible  <bruno@clisp.org>
83158                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
83159                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
83160                 Reported by Christopher Seip <chris.seip@hp.com>.
83161
83162 2004-11-04  Bruno Haible  <bruno@clisp.org>
83163
83164         * modules/allocsa (Files): Add lib/allocsa.valgrind.
83165         (Makefile.am): Distribute it.
83166
83167 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
83168
83169         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
83170         with errno == ERANGE if the buffer is too small.
83171         Problem reported by Mark D. Baushke.
83172
83173 2004-11-03  Albert Chin  <china@thewrittenword.com>
83174             Paul Eggert  <eggert@cs.ucla.edu>
83175
83176         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
83177         equivalent, substitute $ac_type for equivalent type rather than
83178         blindly using uint32_t *always* which won't work if uint32_t is not
83179         available.  Define _UINT32_T to work around typedef of uint32_t if
83180         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
83181         2.5.1.
83182
83183 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83184
83185         * m4/jm-macros.m4: Sync from coreutils.
83186         (gl_MACROS): Check for mbrlen, for pathchk.
83187         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
83188
83189 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83190
83191         * lib/xreadlink.c (MAXSIZE): New macro.
83192         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
83193         size does not exceed MAXSIZE.  Avoid cast.
83194         As suggested by Mark D. Baushke in
83195         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
83196         if readlink fails with buffer size just under MAXSIZE, try again
83197         with MAXSIZE.
83198
83199 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83200
83201         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
83202
83203 2004-11-02  Derek R. Price  <derek@ximbiot.com>
83204         and  Paul Eggert  <eggert@cs.ucla.edu>
83205
83206         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
83207         (get_date): Overparenthesize to avoid GCC warning.
83208
83209 2004-11-02  Bruno Haible  <bruno@clisp.org>
83210
83211         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
83212         returns void.
83213
83214 2004-11-02  Bruno Haible  <bruno@clisp.org>
83215
83216         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
83217         function returns void.
83218
83219 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83220
83221         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
83222         fflush_unlocked, flockfile, funlockfile, funlockfile,
83223         fputs_unlocked, putc_unlocked.
83224
83225 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83226
83227         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
83228         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
83229         already declared.
83230
83231 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83232
83233         * modules/getdate (Files): Add doc/getdate.texi.
83234         (Depends-on): Add setenv, xalloc.
83235
83236 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83237
83238         * lib/getdate.y: Add support for TZ="foo" within a date string.
83239         Fix some bugs near time_t boundaries.  Reject dates with
83240         out-of-range components, e.g., "Sept 31".
83241         Include <stdlib.h>, "setenv.h", "xalloc.h".
83242         (ISDIGIT_LOCALE): Remove; unused.
83243         Note that the TZ and time functions used here are not reentrant.
83244         (mktime_ok, get_tz): New functions.
83245         (TZBUFSIZE): New constant.
83246         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
83247         This requires that we sometimes generate our own TZ="XXX..." setting.
83248
83249 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83250
83251         * doc/getdate.texi: New file, from coreutils with modifications for
83252         the new TZ parsing.
83253
83254 2004-10-27  Derek R. Price  <derek@ximbiot.com>
83255
83256         * lib/mktime.c (not_equal_tm): Remove redundant check.
83257
83258 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83259
83260         * modules/regex (lib_SOURCES): Add regex.c.
83261         Reported by James Youngman in
83262         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
83263
83264 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83265
83266         * lib/getdate.y: Use Bison 1.875 features, and some minor
83267         code cleanups.  This change does not affect semantics.
83268         Don't include <stdlib.h>; no longer needed.
83269         Don't include unlocked-io.h; only the "#if TEST" code uses
83270         stdio, and performance isn't crucial there.
83271         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
83272         Bison 1.875 features as described below.
83273         All uses of "PC." replaced by "pc->".
83274         (YYSTYPE): Add a forward declaration.
83275         (yylex, yyerror): Use full prototypes in forward decls.
83276         Use "%pure-parser" rather than obsolescent "%pure_parser".
83277         Use %parse-param and %lex-param instead of obsolescent
83278         YYPARSE_PARAM and YYLEX_PARAM.
83279         (meridian_table, month_and_day_table, time_units_table,
83280         relative_time_table, time_zone_table, military_table,
83281         lookup_zone, lookup_word, get_date):
83282         Use NULL instead of 0 where appropriate.
83283         (to_hour): Avoid abort (), to avoid a dependency on
83284         stdlib.h.
83285         (yyerror, yylex): Now accepts parser_control * arg.
83286         (main) [TEST]: Use '\0' rather than 0 for char.
83287
83288 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83289
83290         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
83291
83292 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83293
83294         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
83295         It's now the caller's responsibility to handle the case where
83296         !HAVE_GETPAGESIZE && !defined getpagesize.
83297
83298         * lib/mktime.c (leapyear): Arg is long int, not int.
83299
83300 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
83301
83302         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
83303
83304 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
83305
83306         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
83307         missing.  Problem reported by James Youngman.
83308
83309 2004-10-16  Simon Josefsson  <jas@extundo.com>
83310
83311         * gnulib-tool: Fix comments.  Fix parse problem.
83312         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
83313
83314 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
83315
83316         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
83317         implementation of getopt_long.  Problem reported by Alexander Taler in:
83318         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
83319
83320 2004-10-15  Bruno Haible  <bruno@clisp.org>
83321
83322         * gnulib-tool: Untabify. Initialize supplied_libname.
83323         (func_usage): More homogenous output.
83324         (func_modules_transitive_closure, func_modules_to_filelist,
83325         func_emit_lib_Makefile_am): New functions.
83326         (func_import): New function, extracted from big case statement. Use
83327         func_get_license, func_modules_transitive_closure,
83328         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
83329         opt_lgpl. Don't use test -a, as it's not portable.
83330         (func_create_testdir): Use func_modules_transitive_closure,
83331         func_modules_to_filelist, func_emit_lib_Makefile_am.
83332
83333 2004-10-15  Bruno Haible  <bruno@clisp.org>
83334
83335         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
83336
83337 2004-10-15  Bruno Haible  <bruno@clisp.org>
83338
83339         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
83340         the portions belonging to each module.
83341         Suggested by Derek Robert Price <derek@ximbiot.com>.
83342
83343 2004-10-12  Simon Josefsson  <jas@extundo.com>
83344
83345         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
83346         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
83347         to real functions.
83348
83349 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83350
83351         * modules/vsnprintf: New file.
83352
83353 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83354
83355         * m4/vsnprintf.m4: New file.
83356
83357 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83358
83359         * lib/vsnprintf.h: New file.
83360         * lib/vsnprintf.c: New file.
83361
83362 2004-10-11  Bruno Haible  <bruno@clisp.org>
83363
83364         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
83365         vsnprintf.
83366
83367 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83368
83369         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
83370
83371 2004-10-07  Bruno Haible  <bruno@clisp.org>
83372
83373         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
83374         fits into the provided buffer.
83375
83376 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83377
83378         * lib/diacrit.c, diacrit.h: Add GPL notice.
83379
83380         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
83381         notice.
83382         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
83383         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
83384         This avoids a potential constant-folding bug.
83385
83386 2004-10-05  Bruno Haible  <bruno@clisp.org>
83387
83388         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
83389         for the declaration of strsep.
83390
83391 2004-10-05  Bruno Haible  <bruno@clisp.org>
83392
83393         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
83394
83395 2004-10-04  Simon Josefsson  <jas@extundo.com>
83396
83397         * modules/memmem: New file.
83398         * tests/test-memmem.c: New file.
83399         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
83400
83401 2004-10-04  Simon Josefsson  <jas@extundo.com>
83402
83403         * m4/memmem.m4: New file.
83404
83405 2004-10-04  Simon Josefsson  <jas@extundo.com>
83406
83407         * lib/memmem.h: New file.
83408         * lib/memmem.c: New file, taken from glibc.
83409
83410 2004-10-04  Simon Josefsson  <jas@extundo.com>
83411
83412         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
83413         '#ifdef USE_UNLOCKED_IO'.
83414
83415 2004-10-04  Simon Josefsson  <jas@extundo.com>
83416
83417         * config/srclist.txt: Add memmem from glibc.
83418
83419 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83420
83421         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
83422
83423         * modules/argmatch, modules/argp, modules/closeout, modules/error,
83424         modules/exclude, modules/getdate, modules/getline,
83425         modules/getndelim2, modules/getpass, modules/getpass-gnu,
83426         modules/getusershell, modules/linebuffer, modules/md5,
83427         modules/mountlist, modules/posixtm, modules/readtokens,
83428         modules/readutmp, modules/regex, modules/sha1,
83429         modules/version-etc, modules/yesno:
83430         Remove dependency on unlocked-io.
83431
83432 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83433
83434         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
83435
83436         * m4/unlocked-io.m4: Add copyright notice.
83437         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
83438
83439 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83440
83441         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
83442         * lib/xmalloc.c (xmemdup): Likewise.
83443         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
83444         XFREE): Remove these long-obsolescent macros.
83445         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
83446         * lib/xstrdup.c: Remove.
83447
83448         * lib/regex.c (re_comp): Cast gettext return value to char *,
83449         Problem reported by Martin Neitzel via Mark D. Baushke.
83450
83451 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83452
83453         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
83454         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
83455         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
83456         regex.c, sha1.c, version-etc.c, yesno.c:
83457         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
83458         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
83459         the includer's responsibility.
83460
83461         Sync from coreutils.
83462
83463         * lib/modechange.c (mode_compile): Don't decrement a pointer that
83464         points to the start of a string, as the C Standard says the
83465         resulting behavior is undefined.
83466
83467         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
83468         simple -> simple_backups, numbered_existing ->
83469         numbered_existing_backups, numbered -> numbered_backups
83470         to avoid shadowing problems.  All uses changed.
83471         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
83472         * lib/backupfile.c (check_extension, numbered_backup):
83473         Rename locals to avoid shadowing 'basename'.
83474         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
83475         once.
83476
83477         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
83478         * lib/.cvsignore: Add getopt.h.
83479
83480 2004-10-04  Bruno Haible  <bruno@clisp.org>
83481
83482         * modules/README: New file.
83483         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
83484         not a module.
83485
83486 2004-10-02  Jim Meyering  <jim@meyering.net>
83487
83488         * lib/dirfd.h, getpagesize.h: Add copyright notice.
83489
83490 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83491
83492         * modules/strsep: New file.
83493
83494 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83495
83496         * m4/strsep.m4: New file.
83497
83498 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83499
83500         * lib/strsep.h: New file.
83501         * lib/strsep.c: New file.
83502
83503 2004-10-01  Simon Josefsson  <jas@extundo.com>
83504
83505         * lib/snprintf.c (snprintf): Handle size==0.
83506
83507 2004-10-01  Simon Josefsson  <jas@extundo.com>
83508             Bruno Haible  <bruno@clisp.org>
83509
83510         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
83511         (snprintf): Declare 'args'.
83512
83513 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
83514
83515         * lib/snprintf.c: Remove comments as to why each header is needed.
83516
83517 2004-10-01  Bruno Haible  <bruno@clisp.org>
83518
83519         * MODULES.html.sh: Add strsep.
83520
83521 2004-09-30  Simon Josefsson  <jas@extundo.com>
83522
83523         * modules/snprintf: New file.
83524
83525 2004-09-30  Simon Josefsson  <jas@extundo.com>
83526
83527         * m4/snprintf.m4: New file.
83528
83529 2004-09-30  Simon Josefsson  <jas@extundo.com>
83530
83531         * lib/snprintf.h, lib/snprintf.c: New files.
83532
83533 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83534
83535         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
83536         (hol_entry_help): Never translate an empty string.
83537         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
83538         * lib/argp.h (OPTION_NO_TRANS): New option.
83539
83540 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83541
83542         * modules/argp (Maintainer): Replace Simon Josefsson
83543         by Sergey Poznyakoff.
83544
83545 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83546
83547         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
83548         changes merged back into glibc.
83549
83550 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83551
83552         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
83553
83554 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
83555
83556         * lib/xvasprintf.c: Include xalloc.h.
83557         (xvasprintf): Use xalloc_die, not xmalloc_die.
83558
83559 2004-09-29  Bruno Haible  <bruno@clisp.org>
83560
83561         * modules/alloca-opt: New file, derived from modules/alloca.
83562         * modules/allocsa: Depend on alloca-opt instead of alloca.
83563         * modules/setenv: Likewise.
83564         * modules/vasnprintf: Likewise.
83565         * MODULES.html.sh: Add alloca-opt.
83566
83567 2004-09-28  Simon Josefsson  <jas@extundo.com>
83568
83569         * gnulib-tool: New parameter --lgpl, to asseert that modules are
83570         LGPL, and to replace license template from GPL to LGPL.
83571
83572 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
83573
83574         * modules/dummy: Change license to LGPL.
83575
83576 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
83577
83578         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
83579
83580 2004-09-24  Simon Josefsson  <jas@extundo.com>
83581
83582         * modules/minmax (License): Change from GPL to LGPL.
83583
83584 2004-09-23  Simon Josefsson  <jas@extundo.com>
83585
83586         * gnulib-tool (--import): Typo.
83587
83588 2004-09-23  Simon Josefsson  <jas@extundo.com>
83589
83590         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
83591
83592 2004-09-22  Bruno Haible  <bruno@clisp.org>
83593
83594         * modules/*: Add 'License' field.
83595         * gnulib-tool: Accept --extract-license option.
83596         (func_get_license): New function.
83597
83598 2004-09-21  Bruno Haible  <bruno@clisp.org>
83599
83600         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
83601         Reported by Simon Josefsson.
83602
83603 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
83604
83605         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
83606         gl_AC_TYPE_LONG_LONG.
83607
83608 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
83609
83610         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
83611
83612 2004-09-18  Simon Josefsson  <jas@extundo.com>
83613         and  Paul Eggert  <eggert@cs.ucla.edu>
83614
83615         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
83616         calls with autoreconf.  Define GL_LIB.
83617
83618 2004-09-14  Karl Berry  <karl@gnu.org>
83619
83620         * config/srclist.txt: unsync setenv.c, sigh.
83621
83622 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
83623
83624         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
83625         Problem reported by Bruno Haible in:
83626         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
83627
83628 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
83629
83630         * config/srclist.txt: Comment out argp-pvh.c.
83631
83632 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
83633
83634         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
83635         in case some system header has #define'd it.  Problem reported by
83636         Soeren D. Schulze in
83637         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
83638
83639 2004-09-09  Karl Berry  <karl@gnu.org>
83640
83641         * regex.[ch]: delete from the root.  These were supposed to be
83642                 synced with emacs cvs, but this has not happened for about
83643                 a year, and anyway nothing else uses emacs regex.[ch].
83644                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
83645                 lib/regex[.ch] is untouched.
83646
83647 2004-09-09  Bruno Haible  <bruno@clisp.org>
83648
83649         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
83650
83651 2004-09-09  Bruno Haible  <bruno@clisp.org>
83652
83653         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
83654         modifications.
83655         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
83656
83657 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
83658
83659         * modules/xvasprintf: New file.
83660         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
83661
83662 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
83663
83664         * lib/xvasprintf.h: New file.
83665         * lib/xvasprintf.c: New file.
83666         * lib/xasprintf.c: New file.
83667
83668 2004-09-08  Bruno Haible  <bruno@clisp.org>
83669
83670         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
83671
83672 2004-09-08  Bruno Haible  <bruno@clisp.org>
83673
83674         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
83675         length is > INT_MAX.
83676         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
83677         more.
83678
83679 2004-09-08  Bruno Haible  <bruno@clisp.org>
83680
83681         * lib/stdint_.h: New file, taken from GNU clisp.
83682
83683 2004-09-08  Bruno Haible  <bruno@clisp.org>
83684             Oskar Liljeblad  <oskar@osk.mine.nu>
83685
83686         * modules/stdint: New file.
83687         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
83688
83689 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83690
83691         Import from coreutils.
83692         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
83693         strings on unbounded length.  alloca's performance benefits aren't
83694         that important here.
83695         (V_STRDUP): Remove.
83696         (parse_with_separator): New function, with most of the internals
83697         of the old parse_user_spec.  Allow user to omit both user and group,
83698         for compatibility with FreeBSD.
83699         Clone only the user name, not the entire spec.
83700         Do not set *uid, *gid unless entirely successful.
83701         Avoid memory leak in some failing cases.
83702         Fix regression for USER.GROUP reported by Dmitry V. Levin in
83703         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
83704         (parse_user_spec): Rewrite to use parse_with_separator.
83705
83706 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83707
83708         * modules/userspec: Don't depend on alloca.
83709
83710 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83711
83712         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
83713
83714 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
83715
83716         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
83717         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
83718         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
83719
83720 2004-08-16  Simon Josefsson  <jas@extundo.com>
83721
83722         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
83723         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
83724         Add --dry-run for --import.
83725         Let user provided command line parameters override configure.ac
83726         settings.
83727
83728 2004-08-12  Simon Josefsson  <jas@extundo.com>
83729
83730         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
83731         as discussed with Paul Eggert in threads rooted at
83732         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
83733         and
83734         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
83735         Before, the test was empty, and relied on ELIDE_CODE in source
83736         code.)
83737         (gl_PREREQ_GETOPT): New macro.
83738         (gl_GETOPT): Use them.
83739
83740 2004-08-12  Simon Josefsson  <jas@extundo.com>
83741
83742         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
83743         * lib/getopt_.h: Renamed from getopt.h.
83744
83745 2004-08-12  Simon Josefsson  <jas@extundo.com>
83746
83747         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
83748         Change default library name from libfoo to libgnu.
83749         Now, if you have a configure.ac that says:
83750                 gl_SOURCE_BASE(gl)
83751                 gl_M4_BASE(gl/m4)
83752                 gl_MODULES(error getopt etcetera)
83753                 gl_INIT
83754         you can import all you need by running:
83755                 ../gnulib/gnulib-tool --import
83756
83757         * modules/getopt (Files): Rename getopt.h to getopt_.h.
83758         (Makefile.am): Rewrite, use logic from argz.
83759         (Include): Use <getopt.h> instead of "getopt.h".
83760
83761 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83762
83763         * modules/argp (Files): Add m4/unlocked-io.m4.
83764         (Depends-on): Add extensions.
83765
83766 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83767
83768         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
83769         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
83770         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
83771         Check for program_invocation_name, program_invocation_short_name,
83772         flockfile, funlockfile, features.h, _getopt_long_only_r.
83773
83774 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83775
83776         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
83777         its complicated substitute.
83778         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
83779         and program_invocation_name.
83780         (__argp_basename) [!_LIBC]: Remove; the only use was
83781         replaced by its body.
83782         (__argp_short_program_name): Change condition from
83783         !defined __argp_short_program_name to
83784         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
83785         to match argp-namefrob.h.
83786         (__argp_failure): Don't assume strerror_r returns char *.
83787         * lib/argp-parse.c (N_): Define unconditionally.
83788         (argp_default_options): Fill out initializers with 0 to avoid
83789         gcc warnings.
83790
83791 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83792
83793         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
83794         getopt1.c.
83795
83796 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83797
83798         Merge from coreutils.
83799
83800         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
83801
83802         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
83803         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
83804
83805 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83806
83807         Merge from coreutils.
83808
83809         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
83810         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
83811         for Reliant Unix 5.43.
83812
83813         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
83814         (union fooround): Use uintmax_t, not long int.
83815         The rest is a merge from libc:
83816         [defined _LIBC]: Include <shlib-compat.h>.
83817         (_obstack) [defined _LIBC]: Remove after 2.3.4.
83818
83819         * lib/settime.c (settime): Recode to avoid warning with
83820         Sun Forte C 6U2.
83821
83822         * lib/strverscmp.c: Convert to UTF-8.
83823
83824 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83825
83826         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83827         m4/uintmax_t.m4.
83828
83829 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
83830
83831         * modules/xalloc-die: New file.
83832         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
83833
83834         * modules/md5 (Files): Add m4/uint32_t.m4.
83835         * modules/sha1: Renamed from modules/sha.
83836         (Files):
83837         Rename lib/sha.h to lib/sha1.h.
83838         Rename lib/sha.c to lib/sha1.c.
83839         Rename m4/sha.m4 to m4/sha1.m4.
83840         (lib_SOURCES): Likewise.
83841         (configure.ac): Rename gl_SHA to gl_SHA1.
83842         (Include): sha.h -> sha1.h.
83843
83844 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
83845
83846         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
83847         * m4/sha1.m4: Renamed from sha.m4.
83848         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
83849
83850 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
83851
83852         * lib/obstack.h (obstack_empty_p):
83853         Don't assume that chunk->contents is suitably aligned.
83854         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
83855         Likewise. Problem reported by Benno in
83856         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
83857
83858         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
83859         readable.  This could be improved further but it'd take some work.
83860
83861 2004-08-08  Simon Josefsson  <jas@extundo.com>
83862
83863         * modules/xgethostname (Depends-on): Remove exit and error (not
83864         used).
83865
83866         * modules/getpass-gnu: Add getpass.h.
83867         (Depends-on): Add stdbool.
83868         * modules/getpass: Add getpass.h.
83869
83870 2004-08-08  Simon Josefsson  <jas@extundo.com>
83871
83872         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
83873         Check getpass declaration.
83874
83875 2004-08-08  Simon Josefsson  <jas@extundo.com>
83876
83877         * lib/xgethostname.c: Don't include error.h (not used).
83878
83879         * lib/getpass.h: Add.
83880         * lib/getpass.c: Include getpass.h first.
83881
83882 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
83883
83884         * lib/xalloc-die.c: New file.
83885         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
83886         All uses removed.
83887         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
83888         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
83889         xalloc-die.c.
83890         (_, N_, xalloc_die): Move to xalloc-die.c.
83891         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
83892         so that we needn't mess with xalloc_msg_memory_exhausted.
83893
83894         * lib/sha1.h: Renamed from sha.h.
83895         (SHA1_H): Renamed from _SHA_H.
83896         (sha1_ctx): Renamed from sha_ctx.
83897         (sha1_init_ctx): Renamed from sha_init_ctx.
83898         (sha1_process_block): Renamed from sha_process_block.
83899         (sha1_process_bytes): Renamed from sha_process_bytes.
83900         (sha1_finish_ctx): Renamed from sha_finish_ctx.
83901         (sha1_read_ctx): Renamed from sha_read_ctx.
83902         (sha1_stream): Renamed from sha_stream.
83903         (sha1_buffer): Renamed from sha_buffer.
83904         * lib/sha1.c: Likewise; renamed from sha.c.
83905         Do not include <sys/types.h>.
83906         Include <stddef.h> rather than <stdlib.h>.
83907
83908 2004-08-08  Bruno Haible  <bruno@clisp.org>
83909
83910         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
83911         FILESYSTEM_PREFIX_LEN.
83912         * lib/progreloc.c: Likewise.
83913         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
83914
83915 2004-08-06  Simon Josefsson  <jas@extundo.com>
83916
83917         * modules/progname (Depends-on): Don't depend on stdbool.
83918
83919 2004-08-06  Simon Josefsson  <jas@extundo.com>
83920
83921         * modules/getsubopt: New file.
83922         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83923         getsubopt.
83924
83925 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
83926
83927         More merge from coreutils.
83928
83929         * m4/utimens.m4, m4/utimecmp.m4: New files.
83930         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
83931         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
83932         prereq.m4, sha.m4: Import changes from coreutils.
83933
83934 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
83935
83936         More merge from coreutils.
83937         * modules/raise, modules/readtokens0, modules/utimens:
83938         * modules/utimecmp, module/xnanosleep: New files.
83939         * modules/strftime: Add lib/strftime.h.
83940         Change include from <time.h> to "strftime.h".
83941         * modules/yesno: Add lib/yesno.h.
83942         * modules/backupfile: Remove lib/addext.c.
83943         * modules/euidaccess: Add stat-macros.h.
83944         * modules/canonicalize, modules/euidaccess,
83945         modules/filemode, modules/lchown, modules/makepath,
83946         modules/rmdir, modules/stat: Likewise.
83947
83948 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
83949
83950         Merge from tar.
83951         * lib/argp-help.c (make_hol, hol_append): Don't assume that
83952         SIZE_MAX is a valid preprocessor constant.
83953         (__argp_basename): Change from "#ifndef _LIBC"
83954         to "#ifndef __argp_short_program_name", so that
83955         we don't compile these functions for tar.
83956
83957         More merges from coreutils.
83958         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
83959         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
83960         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
83961         * lib/addext.c: Remove; no longer needed.
83962         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
83963         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
83964         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
83965         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
83966         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
83967         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
83968         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
83969         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
83970         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
83971         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83972         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
83973         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
83974         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
83975         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
83976         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
83977         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
83978         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
83979         Import changes from coreutils.
83980
83981 2004-08-05  Simon Josefsson  <jas@extundo.com>
83982
83983         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
83984
83985 2004-08-05  Simon Josefsson  <jas@extundo.com>
83986
83987         * m4/getsubopt.m4: New file.
83988
83989 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
83990
83991         Merge from coreutils.
83992
83993         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
83994         * m4/getcwd-path-max.m4: New files.
83995
83996         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
83997         FILESYSTEM_PREFIX_LEN ->
83998         FILE_SYSTEM_PREFIX_LEN.
83999         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
84000         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
84001         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
84002         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
84003
84004         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
84005         prerequisite modules now handle the DOS stuff.
84006         Don't check for unistd.h.
84007
84008 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84009
84010         Merge from coreutils.
84011
84012         * lib/.gdb-history: Remove; this doesn't belong here.
84013
84014         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
84015         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
84016         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
84017         * lib/getcwd.c: New files.
84018
84019         * lib/dirname.h: Include <stdbool.h>.
84020         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
84021         for consistency with POSIX terminology.  All uses changed.
84022         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
84023         (strip_trailing_slashes): Use bool for booleans.
84024         * lib/stripslash.c (strip_trailing_slashes): Likewise.
84025
84026         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
84027         sometimes returns a positive errno value even when it succeeds.
84028         (print_errno_message) [!LIBC]: Fall back on strerror if
84029         __strerror_r fails.
84030
84031         * lib/path-concat.c (mempcpy): Don't define if a system header defines
84032         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
84033         (longest_relative_suffix): New function.
84034         (path_concat): Use it.  Assume first argument is not NULL.
84035         Port to DOS.  Omit redundant separators.
84036         Report an error instead of returning NULL.
84037         Use mempcpy instead of memcpy.
84038         (xpath_concat): Remove: not declared or used.
84039
84040         * lib/same.h: Include <stdbool.h>
84041         (same_name): Return bool, not int.
84042         * lib/same.c (same_name): Likewise.
84043         (errno): Don't declare; we assume C89 or better now.
84044
84045         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
84046         if not already defined.
84047
84048         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
84049         * lib/dup-safer.c (errno): Likewise.
84050
84051 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84052
84053         Merge from coreutils.
84054         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
84055         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
84056         * modules/path-concat: Don't depend on strdup.
84057
84058 2004-08-03  Simon Josefsson  <jas@extundo.com>
84059
84060         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
84061         * lib/progname.h: Don't include stdbool.h.
84062
84063 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84064
84065         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
84066         * MODULES.html.sh (func_all_modules): Remove fatal.
84067
84068 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84069
84070         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
84071
84072 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84073
84074         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
84075         working.
84076
84077 2004-08-02  Simon Josefsson  <jas@extundo.com>
84078
84079         * lib/getsubopt.h: New file, with comments from Bruno Haible.
84080         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
84081         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
84082
84083 2004-08-01  Simon Josefsson  <jas@extundo.com>
84084
84085         * lib/xgetdomainname.c: Include stdlib.h, for free().
84086
84087 2004-07-19  Bruno Haible  <bruno@clisp.org>
84088
84089         * MODULES.html.sh (func_all_modules): Add dummy.
84090
84091 2004-07-16  Simon Josefsson  <jas@extundo.com>
84092
84093         * modules/dummy: New file.
84094
84095 2004-07-16  Simon Josefsson  <jas@extundo.com>
84096
84097         * lib/dummy.c: New file.
84098
84099 2004-07-16  Bruno Haible  <bruno@clisp.org>
84100
84101         * lib/backupfile.h: Add extern "C" for C++.
84102         * lib/closeout.h: Likewise.
84103         * lib/copy-file.h: Likewise.
84104         * lib/findprog.h: Likewise.
84105         * lib/full-write.h: Likewise.
84106         * lib/pathname.h: Likewise.
84107         * lib/progname.h: Likewise.
84108         * lib/stpcpy.h: Likewise.
84109         * lib/stpncpy.h: Likewise.
84110         * lib/strcase.h: Likewise.
84111         * lib/strstr.h: Likewise.
84112         * lib/xalloc.h: Likewise.
84113
84114         * lib/mbswidth.h: Add extern "C" for C++.
84115         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
84116
84117 2004-07-13  Robert Millan  <robertmh@gnu.org>
84118
84119         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
84120
84121 2004-07-09  Simon Josefsson  <jas@extundo.com>
84122
84123         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
84124         failed without this.)
84125
84126 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84127
84128         * modules/chown (Files): Add lib/fchown-stub.c, since
84129         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
84130
84131 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84132
84133         * lib/fchown-stub.c: New file.
84134
84135 2004-06-24  Jim Meyering  <jim@meyering.net>
84136
84137         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
84138
84139 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84140
84141         * modules/argz: Omit "#include".
84142
84143         * MODULES.html.sh (func_all_modules): Add calloc, to match
84144         2004-06-01 addition of calloc module.
84145
84146 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84147
84148         * m4/argz.m4: New file, which is autoupdated from libtool.
84149
84150 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84151
84152         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
84153         libtool.
84154
84155 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84156
84157         * config/srclist-update: Don't insist on "USA." before the
84158         close-comment, as libtool omits the period and puts the */ on a
84159         separate line.
84160         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
84161         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
84162
84163 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
84164
84165         * modules/argz: New file.
84166         * MODULES.html.sh (func_all_modules): Add argz.
84167
84168 2004-06-12  Jim Meyering  <jim@meyering.net>
84169         and  Paul Eggert  <eggert@cs.ucla.edu>
84170
84171         * modules/hash (Files): Add lib/xalloc.h.
84172         * modules/pipe (Depends-on): Add wait-process.
84173         * modules/stat (Depends-on): Add xalloc.
84174         * modules/userspec (Files): Add lib/userspec.h.
84175         * modules/xstrto
84176
84177         Upgrade from gettext-0.13.
84178         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
84179         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
84180         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
84181
84182 2004-06-10  Jim Meyering  <jim@meyering.net>
84183
84184         * lib/calloc.c: New file.
84185
84186 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
84187
84188         * lib/getdate.y (yylex): Allow space between sign and number.
84189         Problem reported by Dan Jacobson.
84190
84191 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84192
84193         Merge from coreutils CVS.
84194
84195         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
84196         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
84197         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
84198         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
84199         xstrtol.m4: Fix copyright date and/or serial number.
84200
84201         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
84202         See if we need an fchown replacement.
84203         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
84204         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
84205         and use the replacement function if we detect either defect.
84206
84207         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
84208         gl_UTIMECMP.
84209
84210 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84211         and  Jim Meyering  <jim@meyering.net>
84212
84213         Merge from coreutils CVS.
84214
84215         * lib/stat-macros.h: New file, with contents from file-type.h
84216         and coreutils' system.h.
84217         * lib/file-type.c: Include "stat-macros.h".
84218         * lib/file-type.h (file_type): Move all macro definitions to new file,
84219         stat-macros.h.
84220
84221         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
84222         Wrap old code with this conditional.
84223         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
84224         function that does not dereference symlinks.
84225         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
84226
84227         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
84228         dependency problems.
84229         (xreadlink): Accept new arg SIZE, for efficiency.
84230         All decls and uses changed.
84231         * lib/xreadlink.h: Include <stddef.h>, for size_t.
84232
84233         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
84234         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
84235
84236         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
84237         sysexits.h.
84238
84239 2004-06-01  Jim Meyering  <jim@meyering.net>
84240
84241         * m4/calloc.m4: New file.
84242
84243 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
84244
84245         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
84246         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
84247         Also, fix a typo in a diagnostic.
84248
84249 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
84250
84251         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
84252         or AC_FUNC_REALLOC.
84253
84254 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
84255
84256         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
84257         macros to be defined.
84258         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
84259         the allocator returns NULL because the requested size is zero.
84260
84261 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84262
84263         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
84264         var.  Add comment explaining why libc still defines it.  This
84265         merges the following patch from glibc:
84266         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
84267
84268 2004-05-20  Andreas Schwab  <schwab@suse.de>
84269
84270         * m4/free.m4: Replace free if it not known to work, not the other
84271         way round.
84272
84273 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
84274
84275         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
84276         present in glibc since revision 1.1 of this file.
84277         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
84278         obstack_alignment_mask, obstack_alloc, obstack_base,
84279         obstack_blank, obstack_blank_fast, obstack_chunk_size,
84280         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
84281         obstack_grow0, obstack_init, obstack_int_grow,
84282         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
84283         obstack_next_free, obstack_object_size, obstack_ptr_grow,
84284         obstack_ptr_grow_fast, obstack_room): Remove declarations of
84285         nonexistent functions.
84286
84287 2004-05-18  Karl Berry  <karl@gnu.org>
84288
84289         * config/srclist.txt: break link for vasnprintf.c.
84290
84291 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84292
84293         Port obstack to the AS/400, where pointers are 16 bytes wide and
84294         you cannot cast an integer to a valid pointer.  This patch is
84295         currently waiting to be integrated into glibc; see
84296         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
84297
84298         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
84299         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
84300         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
84301         (struct obstack): temp member is now a union of a pointer and
84302         an integer, instead of an integer.  All integer uses changed.
84303         This does not affect the physical layout of struct obstack,
84304         except on hosts (like the AS/400) where the size or alignment of
84305         void * is greater than that of ptrdiff_t.
84306         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
84307         __STDC__)]: Store temporary in pointer member of union, not
84308         integer member.
84309         * lib/obstack.c: Include <stddef.h>, for offsetof.
84310         (struct fooalign): Remove; it doesn't need a name.
84311         (union fooround): Change double to long double, and add void *.
84312         (DEFAULT_ALIGNMENT): Use offsetof to compute.
84313         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
84314         not a macro.  Hence the values are always int; so remove all
84315         casts-to-int in uses.
84316
84317 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84318
84319         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
84320         we can get this patch merged into glibc.
84321
84322 2004-05-17  Derek R. Price  <derek@ximbiot.com>
84323             Paul Eggert  <eggert@cs.ucla.edu>
84324
84325         * m4/argp: Depend on alloca.
84326
84327 2004-05-17  Derek R. Price  <derek@ximbiot.com>
84328             Paul Eggert  <eggert@cs.ucla.edu>
84329
84330         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
84331         freecoding.
84332
84333 2004-05-17  Bruno Haible  <bruno@clisp.org>
84334
84335         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
84336         precision that consists of a '.' followed by an empty digit string.
84337         Patch by Tor Lillqvist <tml@iki.fi>.
84338
84339 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84340
84341         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
84342         for backward compatibility with older code.  We need our own
84343         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
84344         it under some other name, and our alloca.h will define it.
84345
84346 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84347             Derek Price  <derek@ximbiot.com>
84348
84349         * lib/alloca.c: Include <alloca.h>, to get our interface.
84350         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
84351         include <alloca.h> first.  Use C89 prototype for alloca; this
84352         requires including <stddef.h> for size_t.  Use extern "C" if C++.
84353         Use #elif for simplicity, since we can assume C89 now.
84354         Don't try to source the system alloca.h since it will not be found
84355         and to prevent recursively including its replacement.
84356         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
84357         * lib/regex.c: Likewise.
84358
84359 2004-05-16  Derek Price  <derek@ximbiot.com>
84360             Paul Eggert  <eggert@cs.ucla.edu>
84361
84362         getline cleanup.  This changes the getndelim2 API: both order of
84363         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
84364         no delimiter).
84365
84366         * lib/getline.c: Don't include stddef.h or stdio.h, since our
84367         interface does that.
84368         (getline): Always use getdelim, so that we don't have two
84369         copies of this code.
84370         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
84371         if available.
84372         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
84373         (GETNDELIM2_MAXIMUM): New macro.
84374         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
84375         instead of the old practice of delim2==0.  All callers changed.
84376         Return -1 on overflow, instead of returning junk.
84377         Do not set *linesize unless allocation succeeds.
84378         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
84379         that we include sys/types.h.
84380         * lib/getnline.h: Likewise.
84381         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
84382         (getndelim2): Reorder arguments.
84383         * lib/getnline.c (getnline, getndelim):
84384         Don't discard the NMAX argument.
84385         (getnline): Invoke getndelim, to avoid code duplication.
84386         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
84387         of (size_t) -1 by callers of the getnline family.
84388
84389 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84390
84391         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
84392         Check for gettimeofday.
84393         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
84394         Check for settimeofday, stime.
84395
84396 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84397
84398         * lib/nanosleep.c (suspended): Change its type from int to
84399         sig_atomic_t volatile.
84400         (first_call): Make it private to rpl_nanosleep, and have it
84401         be zero initially as that's a bit faster.
84402         (my_usleep): Round up fractional times instead of truncating them,
84403         as this is the usual meaning for 'sleep'.
84404
84405         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
84406         doesn't work.
84407         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
84408         (ENOSYS): Define if not defined.
84409         (settime): Fall back on stime if it exists and settimeofday fails.
84410         But don't bother with fallbacks if a method fails with errno == EPERM.
84411
84412 2004-05-11  Jim Meyering  <jim@meyering.net>
84413
84414         Prior to this change, the save_cwd caller required read access to the
84415         current directory on most systems (ones with the fchdir function).
84416
84417         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
84418         fails, try write-only, and finally, resort to using xgetcwd.
84419
84420 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84421
84422         * lib/obstack.c, obstack.h: Import changes from libc.
84423
84424 2004-04-28  Bruno Haible  <bruno@clisp.org>
84425
84426         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
84427         also implicitly appends .exe to executables.
84428         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
84429         accepts Windows pathnames.
84430         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
84431         Treat Cygwin like Windows, since it now accepts Windows pathnames.
84432         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
84433         Treat Cygwin like Windows, since it now accepts Windows pathnames.
84434         Reported by Derek Robert Price <derek@ximbiot.com>.
84435
84436 2004-04-21  Karl Berry  <karl@gnu.org>
84437
84438         * config/srclist.txt (localcharset.c): break sync.
84439
84440 2004-04-20  Paul Eggert  <eggert@twinsun.com>
84441
84442         * m4/host-os.m4: Add a copyright notice.
84443
84444 2004-04-20  Jim Meyering  <jim@meyering.net>
84445
84446         Change UTILS_ to gl_ in AC_DEFINE'd names.
84447         Change utils_- and jm_-prefixed variables, too.
84448         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
84449         UTILS_FUNC_MKDIR_TRAILING_SLASH.
84450         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
84451
84452         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
84453         Don't emit trailing blanks.
84454         Also rename jm_-prefixed variables to have gl_ prefix.
84455
84456         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
84457         Also rename jm_-prefixed variables to have gl_ prefix.
84458
84459         * m4/jm-macros.m4: Reflect the renamings.
84460         * m4/prereq.m4: Likewise.
84461
84462 2004-04-20  Jim Meyering  <jim@meyering.net>
84463
84464         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
84465         memory.
84466
84467 2004-04-20  Jim Meyering  <jim@meyering.net>
84468             Bruno Haible  <bruno@clisp.org>
84469
84470         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
84471         memory when realloc fails.
84472
84473 2004-04-19  Jim Meyering  <jim@meyering.net>
84474
84475         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
84476         now that readutmp.c may call `free (0)'.
84477
84478 2004-04-19  Bruno Haible  <bruno@clisp.org>
84479
84480         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
84481         * m4/inttypes_h.m4: Likewise.
84482         * m4/stdint_h.m4: Likewise.
84483         * m4/intmax_t.m4: Likewise.
84484         * m4/uintmax_t.m4: Likewise.
84485
84486 2004-04-18  Jim Meyering  <jim@meyering.net>
84487
84488         * m4/prereq.m4: Don't forbid jm_ prefix.
84489
84490         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
84491         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
84492         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
84493         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
84494         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
84495         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
84496         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
84497         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
84498         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
84499         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
84500         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
84501         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
84502         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
84503         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
84504         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
84505         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
84506         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
84507         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
84508         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
84509
84510 2004-04-18  Jim Meyering  <jim@meyering.net>
84511
84512         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
84513         failure, don't leak memory and do call END_UTMP_ENT.
84514
84515 2004-04-16  Jim Meyering  <jim@meyering.net>
84516
84517         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
84518         coreutils' stat program.
84519         (gl_PREREQ): Don't require jm_PREREQ_STAT.
84520
84521 2004-04-11  Paul Eggert  <eggert@twinsun.com>
84522
84523         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
84524         C89.
84525         (CHAR_BIT): Remove, since we assume C89.
84526         Include <stdint.h> if available, as per current Autoconf CVS advice.
84527
84528 2004-03-31  Jim Meyering  <jim@meyering.net>
84529
84530         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
84531         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
84532         * m4/xalloc.m4: Likewise.
84533
84534 2004-03-30  Paul Eggert  <eggert@twinsun.com>
84535
84536         Merge from coreutils.
84537
84538         * m4/inttostr.m4: New file.
84539         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
84540         Require AM_STDBOOL_H and gl_TIMESPEC instead.
84541         Require gl_CLOCK_TIME.
84542         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
84543
84544 2004-03-30  Paul Eggert  <eggert@twinsun.com>
84545
84546         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
84547         not bool, to be more consistent with Unix conventions.
84548         Suggested by Bruno Haible.
84549
84550         Merge from coreutils.
84551
84552         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
84553         * lib/umaxtostr.c: New files.
84554
84555         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
84556         the usual <time.h> dance.
84557         (get_date): Change signature to support fractional time stamps.
84558         All callers changed.
84559         * lib/getdate.y: Include "getdate.h" first, as we can now
84560         assume C89 and don't need to worry about 'const'.
84561         Similarly, include "unlocked-io.h" near start, not in middle.
84562         Include <limits.h>.
84563         (textint.value): Use long int rather than int.
84564         (textint.digits): Use size_t rather than int.
84565         (BILLION, LOG10_BILLION): New constants.
84566         (parser_control): New member rel_ns.  Members day_ordinal,
84567         time_zone, month, day, hour, minutes, rel_year, rel_month,
84568         rel_day, rel_hour, rel_minutes, rel_seconds
84569         are now long int, not int.  Member seconds is now struct timespec,
84570         not int.  New member timespec_seen.  Members dates_seen, days_seen,
84571         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
84572         not int.
84573         (%union.intval): Now long int, not int.
84574         New member timespec.
84575         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
84576         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
84577         (spec): Now is a timespec or an item list.
84578         (timespec, items): New nonterminals.
84579         (time, rel, relunit, number, get_date):
84580         Add support for fractional seconds.
84581         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
84582         (gmtime, localtime, mktime): Remove decls; not needed with C89.
84583         (to_hour): First arg is now long int, not int.
84584         (to_year): Returns long int, not int.
84585         Don't treat year -70 like 70.
84586         (tm_diff): Returns long int, not int.
84587         (lookup_word): Use bool instead of int when appropriate.
84588         (yylex): Use size_t for count, not int.
84589         Detect overflow when parsing large integer constants.
84590         Add support for fractions.
84591         (get_date): Make pointers 'const' if possible.
84592         Use more-portable code to detect integer overflow.
84593         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
84594         Don't use ctime; it's not reliable if the year has >4 digits.
84595
84596         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
84597         This is for compatibility with BSD.
84598
84599         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
84600         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
84601         From coreutils' system.h.
84602
84603         * lib/userspec.c: Don't include "posixver.h".
84604         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
84605         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
84606         compatible extension.  Simplify code by removing a boolean int
84607         that was always nonzero if a string was nonnull.
84608
84609 2004-03-30  Jim Meyering  <jim@meyering.net>
84610
84611         Merge from coreutils.
84612
84613         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
84614         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
84615         on some systems one must include <grp.h> before it.
84616         Reported by Christian Krackowizer.
84617
84618 2004-03-30  Jim Meyering  <jim@meyering.net>
84619
84620         Merge from coreutils.
84621
84622         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
84623
84624         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
84625         an empty input stream.
84626
84627         * lib/readtokens.c: Include <stdbool.h>.
84628         (readtoken): Use `size_t' rather than int/long.
84629         All callers adjusted.
84630         Use `bool' rather than `int' where appropriate.
84631         Use memset rather than an explicit loop.
84632         Use x2nrealloc rather than xrealloc.
84633         Allow the use of `\0' as a delimiter.
84634         (readtokens): Likewise.
84635         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
84636
84637 2004-03-30  Jim Meyering  <jim@meyering.net>
84638
84639         * m4/realloc.m4: Remove file, since now it does no more than
84640         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
84641         the `configure.ac' section of module/realloc.
84642         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
84643
84644 2004-03-30  Bruno Haible  <bruno@clisp.org>
84645
84646         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
84647         nonnull.
84648
84649 2004-03-29  Paul Eggert  <eggert@twinsun.com>
84650
84651         Merge changes to getloadavg.c from coreutils and Emacs.
84652
84653         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
84654         Define to an expression, not to the empty string.
84655         Include cloexec.h and xalloc.h.
84656         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
84657         Use set_cloexec_flag rather than rolling our own.
84658         * lib/cloexec.c, lib/cloexec.h: New files.
84659
84660 2004-03-29  Paul Eggert  <eggert@twinsun.com>
84661
84662         * m4/cloexec.m4: New file.
84663
84664 2004-03-18  Paul Eggert  <eggert@twinsun.com>
84665
84666         * lib/getopt.h: Sync with libc CVS.
84667
84668 2004-03-18  Paul Eggert  <eggert@twinsun.com>
84669             Bruno Haible  <bruno@clisp.org>
84670
84671         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
84672         mbswidth.
84673
84674 2004-03-18  Paul Eggert  <eggert@twinsun.com>
84675             Bruno Haible  <bruno@clisp.org>
84676
84677         * lib/mbswidth.h: Include <wchar.h> only if
84678         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
84679         <wchar.h>.
84680         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
84681
84682 2004-03-09  Paul Eggert  <eggert@twinsun.com>
84683
84684         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
84685         Sync with libc CVS.
84686         * lib/getopt_int.h: New file, also synced from libc.
84687
84688 2004-03-09  Paul Eggert  <eggert@twinsun.com>
84689
84690         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
84691         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
84692         Bring back getopt.c, getopt.h, getopt1.c.
84693
84694 2004-03-07  Paul Eggert  <eggert@twinsun.com>
84695
84696         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
84697         All uses changed.  Check for sa_sigaction member; this fixes
84698         a bug first reported by Jason Andrade in
84699         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
84700
84701 2004-03-07  Paul Eggert  <eggert@twinsun.com>
84702
84703         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
84704         '#if' expressions.  Unlike the code it replaces, it does not
84705         depend on (defined _SC_PAGESIZE).  However, it does depend on
84706         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
84707         first reported by Jason Andrade in
84708         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
84709
84710 2004-02-25  Simon Josefsson  <jas@extundo.com>
84711
84712         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
84713
84714 2004-02-25  Simon Josefsson  <jas@extundo.com>
84715
84716         * lib/strdup.h: New file.
84717         * lib/strdup.c: Include it.
84718         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
84719         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
84720
84721 2004-02-23  Karl Berry  <karl@gnu.org>
84722
84723         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
84724         (from fencepost.gnu.org:/gd/gnuorg).
84725
84726 2004-02-23  Karl Berry  <karl@gnu.org>
84727
84728         * config/srclistvars.sh (GNUORG) [karl]: redefine.
84729         * config/srclist.txt: add maintain/standards documents.
84730
84731 2004-02-18  Bruno Haible  <bruno@clisp.org>
84732
84733         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
84734         Reported by Derek Robert Price <derek@ximbiot.com>.
84735
84736 2004-02-16  Karl Berry  <karl@gnu.org>
84737
84738         * config/mkinstalldirs, install-sh: update from automake.
84739
84740 2004-02-06  Karl Berry  <karl@gnu.org>
84741
84742         * m4/po.m4: update from gettext 0.14.1.
84743
84744 2004-02-06  Karl Berry  <karl@gnu.org>
84745
84746         * lib/config.charset: update from gettext 0.14.1.
84747
84748 2004-02-05  Paul Eggert  <eggert@twinsun.com>
84749
84750         Add comments and code, prompted by suggestions from Bruno Haible
84751         for sh-quote.
84752         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
84753         describing the enum quoting_style values.
84754         * lib/quotearg.c (quotearg_alloc): New function.
84755         (quotearg_buffer_restyled): Treat lone { and } as special.
84756         Treat = as special.  Work around bug with older shells
84757         that "see" a '\' that is really the 2nd byte of a multibyte char.
84758         Quote empty string with shell_quoting_style.
84759
84760 2004-02-03  Bruno Haible  <bruno@clisp.org>
84761
84762         * m4/pipe.m4: New file, from GNU gettext.
84763
84764 2004-02-03  Bruno Haible  <bruno@clisp.org>
84765
84766         * lib/pipe.h: New file, from GNU gettext.
84767         * lib/pipe.c: New file, from GNU gettext.
84768
84769 2004-01-27  Bruno Haible  <bruno@clisp.org>
84770
84771         * m4/execute.m4: New file, from GNU gettext.
84772
84773 2004-01-27  Bruno Haible  <bruno@clisp.org>
84774
84775         * lib/execute.h: New file, from GNU gettext.
84776         * lib/execute.c: New file, from GNU gettext.
84777         * lib/w32spawn.h: New file, from GNU gettext.
84778
84779 2004-01-24  Paul Eggert  <eggert@twinsun.com>
84780
84781         Merge from diffutils.
84782
84783         * lib/file-type.c (file_type): Add typed memory objects.
84784         * lib/file-type.h (S_TYPEISTMO): New macro.
84785
84786         * lib/c-stack.h (c_stack_action): Remove argv argument.
84787         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
84788         (die): Don't calculate message unless segv_action returns.
84789         (get_stack_location, min_address_from_argv, max_address_from_argv,
84790         volatile stack_base, volatile_stack_size): Remove.
84791         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
84792         that every segmentation violation is a stack overflow.  (Ouch!)
84793         See Debian bug 136249 (still outstanding) for more info about why
84794         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
84795
84796 2004-01-24  Paul Eggert  <eggert@twinsun.com>
84797
84798         Exit-status fix from coreutils.
84799
84800         Use exit_failure consistently in place of EXIT_FAILURE,
84801         so that program exit statuses are consistent on failure.
84802
84803         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
84804         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
84805         * lib/argmatch.h: Comment fix to match the above.
84806         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
84807         Now a macro referring to exit_failure, instead of a separate
84808         variable.  Include "exitfail.h" to get it.
84809         * lib/xstrtol.h: Include "exitfail.h".
84810         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
84811
84812         * lib/long-options.c (parse_long_options): Use prototype
84813         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
84814         for clarity.
84815
84816 2004-01-21  Jim Meyering  <jim@meyering.net>
84817
84818         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
84819         so as not to conflict with a different-sized __mktime_internal
84820         function in GNU libc.
84821         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
84822         Problem building statically-linked `ls' reported by Michael Brunnbauer.
84823
84824 2004-01-20  Karl Berry  <karl@gnu.org>
84825
84826         * config/config.guess: update from config.
84827
84828         * config/srclistvars.sh: GNUWWWLICENSES for karl.
84829
84830 2004-01-20  Bruno Haible  <bruno@clisp.org>
84831
84832         Safer stack allocation.
84833         * lib/setenv.c: Include allocsa.h.
84834         (alloca): Remove fallback definition.
84835         (freea): Remove macro.
84836         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
84837         instead of freea.
84838
84839 2004-01-20  Bruno Haible  <bruno@clisp.org>
84840
84841         * m4/eealloc.m4: New file, from GNU gettext.
84842
84843 2004-01-20  Bruno Haible  <bruno@clisp.org>
84844
84845         * m4/allocsa.m4: New file, from GNU gettext.
84846
84847 2004-01-20  Bruno Haible  <bruno@clisp.org>
84848
84849         * lib/xallocsa.h: New file, from GNU gettext.
84850         * lib/xallocsa.c: New file, from GNU gettext.
84851
84852 2004-01-20  Bruno Haible  <bruno@clisp.org>
84853
84854         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
84855
84856 2004-01-20  Bruno Haible  <bruno@clisp.org>
84857
84858         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
84859         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
84860         specially.
84861
84862 2004-01-20  Bruno Haible  <bruno@clisp.org>
84863
84864         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
84865         patch.
84866
84867 2004-01-20  Bruno Haible  <bruno@clisp.org>
84868
84869         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
84870
84871 2004-01-20  Bruno Haible  <bruno@clisp.org>
84872
84873         * lib/eealloc.h: New file.
84874
84875 2004-01-20  Bruno Haible  <bruno@clisp.org>
84876
84877         * lib/binary-io.h: Avoid warnings on Cygwin.
84878
84879 2004-01-20  Bruno Haible  <bruno@clisp.org>
84880
84881         * lib/allocsa.h: New file, from GNU gettext.
84882         * lib/allocsa.c: New file, from GNU gettext.
84883
84884 2004-01-18  Karl Berry  <karl@gnu.org>
84885
84886         * doc/gpl.texi, doc/lgpl.texi: new files.
84887
84888 2004-01-18  Karl Berry  <karl@gnu.org>
84889
84890         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
84891         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
84892
84893 2004-01-15  Paul Eggert  <eggert@twinsun.com>
84894
84895         Merge from coreutils.
84896
84897         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
84898         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
84899         (gl_DEFAULT_POSIX2_VERSION): Move
84900         the documentation from 'configure' into 'config.hin',
84901         so that 'configure --help' isn't burdened by it and
84902         we don't have to worry about its formatting there.
84903         Reword the documentation so that it's more succinct
84904         and can be run together into a single paragraph.
84905         * m4/same.m4 (gl_SAME): Check for pathconf.
84906
84907 2004-01-15  Paul Eggert  <eggert@twinsun.com>
84908
84909         Merge from coreutils.
84910
84911         * lib/posixver.c: Include posixver.h.
84912
84913         * lib/same.c: Include <stdbool.h>, <limits.h>.
84914         (_POSIX_NAME_MAX): Define if not defined.
84915         (MIN): New macro.
84916         (same_name): If file names are silently truncated, report
84917         that the file names are the same if they are the same after
84918         the silent truncation.
84919
84920         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
84921         conversion function.
84922         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
84923         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
84924         longer needed.
84925
84926 2004-01-15  Jim Meyering  <jim@meyering.net>
84927
84928         Merge from coreutils.
84929
84930         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
84931         if no library is required.
84932         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
84933         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
84934         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
84935         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
84936         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
84937         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
84938         value, $ac_cv_search_crypt, if it's "none required".
84939         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
84940         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
84941         not gl_FUNC_GETLOADAVG.
84942         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
84943         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
84944
84945 2004-01-15  Jim Meyering  <jim@meyering.net>
84946
84947         Merge from coreutils.
84948
84949         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
84950         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
84951         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
84952
84953         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
84954         optional configure-time default.
84955
84956         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84957
84958         * lib/xreadlink.c (xreadlink): Correct outdated comment.
84959
84960 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
84961
84962         Merge from coreutils.
84963
84964         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
84965         value, $ac_cv_search_nanosleep, if it's "none required".
84966
84967 2004-01-14  Paul Eggert  <eggert@twinsun.com>
84968
84969         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
84970         with like-named macro in fnmatch.c.
84971         (EXT): Use an internal constant instead.
84972
84973         Merge fnmatch patches from glibc.
84974         * lib/fnmatch.c (mbsinit): Remove define.
84975         Add libc_hidden_ver (__fnmatch, fnmatch).
84976         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
84977         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
84978
84979 2004-01-14  Karl Berry  <karl@gnu.org>
84980
84981         * config/install-sh: update from automake.
84982
84983 2004-01-13  Karl Berry  <karl@gnu.org>
84984
84985         * config/install-sh: update from automake.
84986
84987 2004-01-09  Karl Berry  <karl@gnu.org>
84988
84989         * config/install-sh: update from automake.
84990
84991 2004-01-05  Karl Berry  <karl@gnu.org>
84992
84993         * config/config.{sub,guess}: update from config.
84994
84995 2003-12-31  Karl Berry  <karl@gnu.org>
84996
84997         * config/depcomp: update from automake.
84998
84999 2003-12-14  Karl Berry  <karl@gnu.org>
85000
85001         * lib/config.charset: update from gettext-runtime.
85002
85003 2003-12-03  Paul Eggert  <eggert@twinsun.com>
85004
85005         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
85006         Bug reported by Alfred M. Szmidt.
85007
85008 2003-12-03  Bruno Haible  <bruno@clisp.org>
85009
85010         * m4/gettext.m4: Upgrade from gettext-0.13.
85011         * m4/po.m4: Upgrade from gettext-0.13.
85012         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
85013         * m4/intmax.m4: New file, from gettext-0.13.
85014         * m4/printf-posix.m4: New file, from gettext-0.13.
85015
85016 2003-11-29  Karl Berry  <karl@gnu.org>
85017
85018         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
85019
85020 2003-11-25  Paul Eggert  <eggert@twinsun.com>
85021             Bruno Haible  <bruno@clisp.org>
85022
85023         * lib/printf-parse.h: Don't include sys/types.h.
85024         (ARG_NONE): New macro.
85025         (char_directive): Change type of *arg_index fields to size_t.
85026         * lib/printf-parse.c: Don't include sys/types.h.
85027         (SSIZE_MAX): Remove macro.
85028         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
85029         Remove unnecessary overflow check.
85030         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
85031         fields.
85032
85033 2003-11-25  Bruno Haible  <bruno@clisp.org>
85034
85035         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
85036
85037 2003-11-25  Bruno Haible  <bruno@clisp.org>
85038
85039         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
85040         gt_TYPE_SSIZE_T.
85041
85042 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85043
85044         * modules/alloca: Remove dependency on xalloc.
85045
85046 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85047
85048         * lib/alloca.c: Remove dependency on xalloc module.
85049         (xalloc_die): Remove.
85050         (memory_full) [!defined emacs]: New macro.
85051         [!defined emacs]: Don't include xalloc.h.
85052         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
85053         address arithmetic overflows.  Change datatypes a bit to avoid
85054         unnecessary casts.
85055
85056 2003-11-22  Jim Meyering  <jim@meyering.net>
85057
85058         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
85059         s/size/size_t/.
85060
85061 2003-11-21  Karl Berry  <karl@gnu.org>
85062
85063         * config/config.{sub,guess}: update from config.
85064
85065 2003-11-18  Karl Berry  <karl@gnu.org>
85066
85067         * config/config.{sub,guess}: update from config.
85068
85069         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
85070
85071 2003-11-17  Paul Eggert  <eggert@twinsun.com>
85072
85073         * README: Mention that S+T cannot overflow if S is the size of
85074         an existing object and T is sufficiently small.
85075
85076 2003-11-17  Jim Meyering  <jim@meyering.net>
85077
85078         On systems without utime and without a utimes function capable of
85079         dealing with a NULL struct utimbuf* argument, this utime replacement
85080         could -- in unusual circumstances -- leak a file descriptor.
85081         * lib/utime.c: Include <unistd.h> and <errno.h>.
85082         (utime_null): Be sure to close `fd' and to preserve errno.
85083         Reported by Geoff Collyer via Arnold Robbins.
85084
85085 2003-11-17  Bruno Haible  <bruno@clisp.org>
85086
85087         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
85088         (Depends-on): Add xsize.
85089
85090 2003-11-17  Bruno Haible  <bruno@clisp.org>
85091
85092         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
85093
85094 2003-11-17  Bruno Haible  <bruno@clisp.org>
85095
85096         * lib/vasnprintf.c (alloca): Remove fallback definition.
85097         (freea): Remove definition.
85098         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
85099         Reported by Paul Eggert.
85100
85101 2003-11-16  Paul Eggert  <eggert@twinsun.com>
85102             Bruno Haible  <bruno@clisp.org>
85103
85104         Protect against address arithmetic overflow.
85105         * lib/printf-args.h: Include stddef.h.
85106         (arguments): Change type of field 'count' to size_t.
85107         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
85108         'unsigned int' where appropriate.
85109         * lib/printf-parse.h: Include sys/types.h.
85110         (char_directive): Change type of *arg_index fields to ssize_t.
85111         (char_directives): Change type of fields 'count', max_*_length to
85112         size_t.
85113         * lib/printf-parse.c: Include sys/types.h and xsize.h.
85114         (SSIZE_MAX): Define fallback value.
85115         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
85116         instead of 'int' where appropriate. Check a_allocated, d_allocated
85117         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
85118         * lib/vasnprintf.c: Include xsize.h.
85119         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
85120         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
85121         overflow. Avoid wraparound when converting a width or precision from
85122         decimal to binary.
85123
85124 2003-11-16  Bruno Haible  <bruno@clisp.org>
85125
85126         Update from GNU gettext.
85127         * lib/printf-parse.c: Generalize to it can be compiled for wide
85128         strings.
85129         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
85130         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
85131         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
85132         SNPRINTF): New macros.
85133         Don't include <alloca.h> if the file is used inside libintl.
85134         (local_wcslen): New function, for Solaris 2.5.1.
85135         (VASNPRINTF): Use it instead of wcslen.
85136
85137 2003-11-16  Bruno Haible  <bruno@clisp.org>
85138
85139         * lib/xsize.h (xmax): New function.
85140         (xsum, xsum3, xsum4): Declare as "pure" functions.
85141
85142 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85143
85144         * modules/xalloc (Files): Undo latest change, since xalloc.h
85145         no longer needs SIZE_MAX or PTRDIFF_MAX.
85146
85147 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85148
85149         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
85150         gl_PTRDIFF_MAX.
85151
85152 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85153
85154         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
85155         "return", to pacify some unknown compiler.  Problem reported
85156         by Joerg Schilling.
85157
85158 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85159
85160         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
85161         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
85162         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
85163         heuristic is just as accurate as far as we know, and it removes a
85164         dependency on size_max.m4 and ptrdiff_max.m4.
85165
85166 2003-11-11  Bruno Haible  <bruno@clisp.org>
85167
85168         * modules/xsize (Files): Add m4/size_max.m4.
85169         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
85170
85171 2003-11-11  Bruno Haible  <bruno@clisp.org>
85172
85173         * m4/size_max.m4: New file.
85174         * m4/ptrdiff_max.m4: New file.
85175         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
85176         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
85177         (gl_XALLOC): Invoke it.
85178
85179 2003-11-11  Bruno Haible  <bruno@clisp.org>
85180
85181         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
85182         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
85183         defined.
85184
85185 2003-11-10  Paul Eggert  <eggert@twinsun.com>
85186
85187         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
85188         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
85189         rejected some allocations of exactly SIZE_MAX - 2 bytes.
85190         From Bruno Haible.
85191         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
85192         not (size_t) -1, since it's defined here.
85193
85194 2003-11-09  Karl Berry  <karl@gnu.org>
85195
85196         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
85197
85198 2003-11-06  Paul Eggert  <eggert@twinsun.com>
85199
85200         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
85201         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
85202         Reject sizes of exactly SIZE_MAX bytes.
85203         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
85204         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
85205
85206 2003-11-05  Bruno Haible  <bruno@clisp.org>
85207
85208         * lib/xsize.h: Include limits.h, to avoid a possible collision with
85209         SIZE_MAX defined in <limits.h> on Solaris.
85210
85211 2003-11-04  Jim Meyering  <jim@meyering.net>
85212
85213         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
85214         variable names, rather than @VAR@.
85215         * modules/poll: Likewise.
85216
85217 2003-11-04  Bruno Haible  <bruno@clisp.org>
85218
85219         * modules/xsize: New file.
85220         * modules/linebreak: Depend on xsize.
85221         * MODULES.html.sh (func_all_modules): Add xsize.
85222
85223 2003-11-04  Bruno Haible  <bruno@clisp.org>
85224
85225         * m4/xsize.m4: New file.
85226
85227 2003-11-04  Bruno Haible  <bruno@clisp.org>
85228
85229         * lib/xsize.h: New file.
85230         * lib/linebreak.c: Include xsize.h.
85231         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
85232         argument for overflow.
85233         Suggested by Paul Eggert.
85234
85235 2003-11-03  Karl Berry  <karl@gnu.org>
85236
85237         * config/config.{guess,sub}: update from config.
85238
85239 2003-11-03  Jim Meyering  <jim@meyering.net>
85240
85241         * modules/userspec (lib_SOURCES): Add userspec.h.
85242         (Include): Add "userspec.h".
85243         Improve description.
85244
85245 2003-11-03  Jim Meyering  <jim@meyering.net>
85246
85247         * lib/userspec.c: Include "userspec.h".
85248         * lib/userspec.h: New file.
85249
85250 2003-11-03  Bruno Haible  <bruno@clisp.org>
85251
85252         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
85253
85254 2003-11-03  Bruno Haible  <bruno@clisp.org>
85255
85256         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
85257         available, to avoid (extremely rare) race condition.
85258         Suggested by Paul Eggert.
85259
85260 2003-11-02  Karl Berry  <karl@gnu.org>
85261
85262         * config/srclist.txt (vasprintf.c): sync broken, sigh.
85263
85264 2003-10-31  Paul Eggert  <eggert@twinsun.com>
85265
85266         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
85267         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
85268         (read_filesystem_list): Set and use me_type_malloced.
85269         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
85270         whatever the type happens to be), for brevity and consistency.
85271         Check for size calculation overflow on Alphas running OSF/1.
85272
85273 2003-10-31  Jim Meyering  <jim@meyering.net>
85274
85275         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
85276
85277         * lib/linebuffer.c: Include <string.h> for declaration of memset.
85278
85279 2003-10-30  Paul Eggert  <eggert@twinsun.com>
85280             Bruno Haible  <bruno@clisp.org>
85281
85282         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
85283         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
85284
85285 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
85286
85287         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
85288         netbsd*-gnu*.  Suggested by Robert Millan.
85289
85290 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85291
85292         * modules/group-member: Depend on stdbool.
85293
85294 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85295
85296         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
85297
85298 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85299
85300         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
85301         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
85302         after the 'gnu' in these cases.  This fixes some bugs in the
85303         previous change, and is based on suggestions by Robert Millan.
85304
85305 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85306
85307         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
85308         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
85309         no longer needed.
85310         * lib/quotearg.c (quotearg_n_options): Use it.
85311         * lib/group-member.c: Include <stdbool.h>.
85312         (free_group_info): Arg is now const *; don't free arg.
85313         (get_group_info): Now returns bool and accepts struct group_info *,
85314         rather than returning a malloc'ed struct group_info *.
85315         All uses changed.  Check for overflow in internal size calculation.
85316
85317         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
85318         rather than xmalloc/xrealloc.
85319         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
85320         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
85321         conformance bug: the old code used a pointer after freeing the
85322         storage that it addressed.
85323         * lib/hash.c (hash_initialize): Simplify the code by using
85324         xalloc_oversized rather than doing it by hand.
85325         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
85326         the buffer preserved.  Use free and xmalloc instead.
85327         * lib/quotearg.c (quotearg_n_options): Likewise.
85328         Use a simpler test for size overflow.  Don't use xalloc_oversized
85329         because unsigned int might be wider than size_t (!); this suggests
85330         that we should switch from unsigned int to size_t for slot numbers.
85331
85332 2003-10-28  Paul Eggert  <eggert@twinsun.com>
85333
85334         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
85335         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
85336         NetBSD kernels.  Requested by Richard Stallman.
85337
85338 2003-10-27  Paul Eggert  <eggert@twinsun.com>
85339
85340         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
85341         to allocate the returned structure.  Do not allocate a subarray,
85342         as x2nrealloc will do that.
85343         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
85344         instead of xnrealloc.
85345         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
85346
85347 2003-10-27  Bruno Haible  <bruno@clisp.org>
85348
85349         * lib/stdbool_.h: Better support for BeOS.
85350
85351 2003-10-26  Paul Eggert  <eggert@twinsun.com>
85352
85353         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
85354         now uses inline.
85355
85356 2003-10-26  Paul Eggert  <eggert@twinsun.com>
85357
85358         * lib/xalloc.h (xalloc_oversized): New static inline function, for
85359         callers that want to do their own size-overflow checking.  Include
85360         <stdbool.h>, since xalloc_oversized returns bool.
85361         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
85362         to use xalloc_oversized.
85363
85364         Add two functions x2realloc, x2nrealloc, for programs that grow
85365         arrays dynamically by doubling their sizes.
85366         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
85367         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
85368         New functions.
85369
85370         Port to C99 semantics for 'inline' of external functions.
85371         Bug reported by Bruno Haible.
85372         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
85373         with the old contents of xnmalloc.
85374         (xnmalloc, xmalloc): Use it.
85375         (xnrealloc_inline): New static inline function,
85376         with the old contents of xnrealloc.
85377         (xnrealloc, xrealloc): Use it.
85378
85379         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
85380         that.
85381
85382 2003-10-26  Karl Berry  <karl@gnu.org>
85383
85384         * config/srclist.txt (COPYING.DOC): no longer available from
85385         /gd/gnuorg; don't know where the ultimate source is.
85386
85387 2003-10-25  Paul Eggert  <eggert@twinsun.com>
85388
85389         Fix several address-calculation bugs in the hash modules,
85390         plus some minor code cleanup.
85391
85392         * lib/hash.h: Include <stdbool.h>, for bool.
85393         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
85394         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
85395         hash_get_n_entries, hash_get_max_bucket_length,
85396         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
85397         hash_rehash): Use size_t rather than unsigned.
85398         * lib/hash.c (struct hash_table, hash_get_n_buckets,
85399         hash_get_n_buckets_used, hash_get_n_entries,
85400         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
85401         hash_get_entries, hash_do_for_each, hash_string, is_prime,
85402         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
85403         Likewise.
85404         (SIZE_MAX): Define if not defined.
85405         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
85406         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
85407         hash_print):
85408         Use const * when possible.
85409         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
85410         (check_tuning): Fix bug: if tuning parameters were very close to
85411         0 or 1, rounding errors could have caused subscript violations.
85412         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
85413         (hash_initialize): Add 'fail:' label
85414         to free table and return NULL, and use it to simplify code.
85415         Use calloc rather than clearing the storage ourself.
85416         (hash_initialize, hash_rehash): Check for arithmetic overflow in
85417         buffer size calculations.
85418         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
85419         Include <stddef.h>, for size_t.
85420         * lib/hash-pjw.c (hash_pjw): Likewise.
85421         Switch to method described by Bruno Haible.
85422         Include <limits.h>, for CHAR_BIT.
85423         (SIZE_BITS): New macro.
85424
85425 2003-10-23  Paul Eggert  <eggert@twinsun.com>
85426
85427         * m4/getline.m4 (AM_FUNC_GETLINE):
85428         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
85429         hosts.  Problem reported by Derek Robert Price in
85430         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
85431         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
85432         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
85433
85434 2003-10-21  Paul Eggert  <eggert@twinsun.com>
85435
85436         * lib/getndelim2.c (getndelim2): When size calculation overflows,
85437         ceiling the allocation at NMAX bytes rather than silently
85438         discarding input bytes before NMAX is reached.  This makes
85439         a difference only if NMAX exceeds SIZE_MAX / 2.
85440
85441         * lib/obstack.c: Merge from glibc.
85442         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
85443         Add libc_hidden_def (_obstack_newchunk).
85444         (_obstack_free) [! defined _LIBC]: Remove.
85445         [defined _LIBC]: Make a strong alias from obstack_free, rather than
85446         a clone of the function body.
85447         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
85448         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
85449
85450         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
85451         glibc.
85452         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
85453         arg to memcpy.
85454
85455         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
85456         (obstack_ptr_grow_fast, obstack_int_grow_fast):
85457         Don't use lvalue casts, as GCC plans to remove support for them
85458         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
85459         was also present in the non-GCC version, indicating that this
85460         code had always been buggy and had never been widely used.
85461         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
85462         Use the fast variant of each macro, rather than copying the
85463         definiens of the fast variant; that way, we'll be more likely to
85464         catch future bugs in the fast variants.
85465
85466 2003-10-20  Bruno Haible  <bruno@clisp.org>
85467
85468         * modules/wait-process: New file.
85469         * MODULES.html.sh (func_all_modules): Add wait-process.
85470
85471 2003-10-20  Bruno Haible  <bruno@clisp.org>
85472
85473         * m4/wait-process.m4: New file.
85474
85475 2003-10-20  Bruno Haible  <bruno@clisp.org>
85476
85477         * lib/wait-process.h: New file, from GNU gettext.
85478         * lib/wait-process.c: New file, from GNU gettext.
85479
85480 2003-10-19  Jim Meyering  <jim@meyering.net>
85481
85482         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
85483         HPUX 10.20.
85484
85485 2003-10-18  Karl Berry  <karl@gnu.org>
85486
85487         * config/config.guess: update from config.
85488
85489 2003-10-16  Paul Eggert  <eggert@twinsun.com>
85490
85491         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
85492         (getgroups): First arg is int, not size_t.
85493         Don't let 'free' mangle errno.
85494
85495 2003-10-16  Paul Eggert  <eggert@twinsun.com>
85496
85497         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
85498
85499 2003-10-16  Karl Berry  <karl@gnu.org>
85500
85501         * config/config.{guess,sub}: update from config.
85502
85503 2003-10-16  Jim Meyering  <jim@meyering.net>
85504
85505         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
85506         memcpy.
85507
85508 2003-10-15  Paul Eggert  <eggert@twinsun.com>
85509
85510         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
85511         (SIZE_MAX): Remove.
85512         (new_exclude, add_exclude_file): Initial size no longer needs to
85513         be a power of 2.
85514         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
85515         our own address arithmetic overflow checking.
85516
85517         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
85518         (fnmatch): Do not alloca more than 2000 wide characters;
85519         instead, use malloc for large buffers.
85520         Check for address arithmetic overflow, and return -1
85521         with errno set to ENOMEM in that case.
85522         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
85523         (NEW_PATTERN): Do not alloca more than 8000 bytes;
85524         instead, return -1.  Check for address arithmetic overflow.
85525
85526 2003-10-14  Paul Eggert  <eggert@twinsun.com>
85527
85528         Handle invalid suffixes and overflow independently, so that
85529         callers can treat them independently as needed.  Fix some bugs in
85530         suffix handling, e.g., "100k@" was not diagnosed as an invalid
85531         suffix for a human-readable blocksize.  The major caller-visible
85532         change is the addition of a new
85533         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
85534         that both overflow and suffix chars were found.
85535
85536         * lib/human.c (humblock): Don't check separately for invalid suffix
85537         char; that is xstrtoumax's job (now that its bug is fixed).
85538         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
85539         INTMAX_MAX]: New macros.
85540         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
85541         TYPE_MAXIMUM): New macros.
85542         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
85543         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
85544         if overflow occurs, as it's what __strtol does and it's more useful
85545         in practice.
85546         (__xstrtol): If __strtol reports some error other than ERANGE,
85547         reflect it to the caller as LONGINT_INVALID.  If it reports
85548         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
85549         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
85550         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
85551         value.
85552         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
85553         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
85554         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
85555         [defined UINTMAX_MAX]: New macros.
85556
85557 2003-10-14  Bruno Haible  <bruno@clisp.org>
85558
85559         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
85560
85561 2003-10-14  Bruno Haible  <bruno@clisp.org>
85562
85563         * m4/sig_atomic_t: New file, from GNU gettext.
85564         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
85565
85566 2003-10-14  Bruno Haible  <bruno@clisp.org>
85567
85568         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
85569         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
85570         Also use volatile where needed.
85571
85572 2003-10-12  Paul Eggert  <eggert@twinsun.com>
85573
85574         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
85575         Change maintainer from Bruno Haible to 'all'.
85576
85577 2003-10-12  Paul Eggert  <eggert@twinsun.com>
85578
85579         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
85580
85581 2003-10-12  Paul Eggert  <eggert@twinsun.com>
85582
85583         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
85584         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
85585         and define in terms of the other primitives.
85586         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
85587         (SIZE_MAX): Define if not already defined.
85588         (array_size_overflow): New function.
85589         (xalloc_die): Abort instead of exiting if 'error' returns.
85590         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
85591         (xmalloc, xrealloc): Use them.
85592         (xcalloc): Check for address arithmetic overflow.
85593         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
85594         a bit faster than strcpy.
85595
85596 2003-10-10  Simon Josefsson  <jas@extundo.com>
85597
85598         * modules/argp (Depends-on): Add restrict and strcase.
85599
85600 2003-10-10  Simon Josefsson  <jas@extundo.com>
85601
85602         * m4/argp.m4: Add AC_C_INLINE.
85603
85604 2003-10-08  Paul Eggert  <eggert@twinsun.com>
85605
85606         Merge getpass from libc, plus a few fixes.
85607
85608         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
85609         Include <stdbool.h>.
85610         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
85611         __fsetlocking to empty.
85612         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
85613         do include <bits/libc-lock.h>.
85614         Do not include <fcntl.h>; not needed.
85615         [_LIBC]: Include <wchar.h>.
85616         (NOTCANCEL_MODE): New macro.
85617         (flockfile, funlockfile) [_LIBC]: New macros.
85618         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
85619         [!_LIBC]: New macros.
85620         (call_fclose): New function.
85621         (getpass): Use it.  Save tty stream separately; this simplifies the
85622         code and makes it more reliable if stdin happens to equal stdout.
85623         Invoke __fsetlocking on tty.
85624         Handle thread cancellation if needed.
85625         Namespace cleanup (use __tcgetattr, __getline).
85626         Use bool for Booleans.
85627         [USE_IN_LIBIO]: Handle wide streams.
85628         [!_LIBC]: Unconditionally do the fseek, since we don't know what
85629         stream might go where.
85630
85631         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
85632         doesn't have to include <stdio.h> before us.
85633         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
85634         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
85635         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
85636         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
85637         if not declared, so that we can use getpass.c code from libc without
85638         rewriting it.
85639         (flockfile, ftrylockfile, funlockfile): New macros.
85640
85641 2003-10-08  Paul Eggert  <eggert@twinsun.com>
85642
85643         * modules/getpass: Depend on stdbool.
85644
85645 2003-10-08  Paul Eggert  <eggert@twinsun.com>
85646
85647         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
85648
85649 2003-10-07  Karl Berry  <karl@gnu.org>
85650
85651         * config/config.{guess,sub}: update from config.
85652
85653 2003-10-06  Jim Meyering  <jim@meyering.net>
85654             Bruno Haible  <bruno@clisp.org>
85655
85656         This lets translators provide better translations for the
85657         "Written by ..." part of --version output.
85658         * lib/version-etc.h: Include stdarg.h.
85659         (version_etc_copyright): Declare as readonly.
85660         (version_etc): Make this function variadic with a NULL-terminated list
85661         of author name strings.
85662         (version_etc_va): New declaration.
85663         * lib/version-etc.c: Include stdarg.h, stdlib.h.
85664         (version_etc_copyright): Declare as readonly.
85665         (version_etc_va): New function. Provide a different translatable string
85666         for each possible number of authors < 10. Abbreviate when there are 10
85667         authors or more.
85668         (version_etc): Make this function variadic. Call version_etc_va.
85669         Suggestion from Gary V. Vaughan.
85670
85671         * lib/long-options.h (parse_long_options): Change prototype: the
85672         authors string is moved to the end and becomes variadic.
85673         * lib/long-options.c: Include stdarg.h.
85674         (parse_long_options): Make this function variadic, too.
85675         Call version_etc_va, not version_etc.
85676
85677 2003-10-06  Bruno Haible  <bruno@clisp.org>
85678
85679         * modules/version-etc-2: Remove file.
85680         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
85681
85682 2003-10-06  Bruno Haible  <bruno@clisp.org>
85683
85684         * modules/fatal-signal: New file.
85685         * MODULES.html.sh (func_all_modules): Add fatal-signal.
85686
85687 2003-10-06  Bruno Haible  <bruno@clisp.org>
85688
85689         * m4/fatal-signal.m4: New file.
85690         * m4/signalblocking.m4: New file, from GNU gettext.
85691
85692 2003-10-06  Bruno Haible  <bruno@clisp.org>
85693
85694         * lib/version-etc-2.h: Remove file.
85695         * lib/version-etc-2.c: Remove file.
85696
85697 2003-10-06  Bruno Haible  <bruno@clisp.org>
85698
85699         * lib/fatal-signal.h: New file, from GNU gettext.
85700         * lib/fatal-signal.c: New file, from GNU gettext.
85701
85702 2003-10-05  Paul Eggert  <eggert@twinsun.com>
85703
85704         * README: Rework advice for preventing empty .o files.
85705         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
85706         not <sys/types.h>.
85707
85708 2003-10-04  Karl Berry  <karl@gnu.org>
85709
85710         * lib/argp*: update from libc.
85711
85712 2003-10-04  Karl Berry  <karl@gnu.org>
85713
85714         * config/config.{guess,sub}: update from config.
85715
85716 2003-10-02  Bruno Haible  <bruno@clisp.org>
85717
85718         * modules/lchown (Include): Add lchown.h.
85719         * modules/time_r (Include): Use "..." syntax.
85720         * modules/xgetdomainname (Include): Add xgetdomainname.h.
85721
85722 2003-10-01  Simon Josefsson  <jas@extundo.com>
85723
85724         * MODULES.html.sh (func_all_modules): Move gethostname from section
85725         'based on' to section 'lacking' POSIX:2001.
85726
85727 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
85728
85729         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
85730         to output mode on the same stream.
85731
85732 2003-09-29  Paul Eggert  <eggert@twinsun.com>
85733
85734         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
85735         Fix arg typo in previous patch.
85736
85737 2003-09-28  Jim Meyering  <jim@meyering.net>
85738
85739         * lib/error.c: Correct cpp indentation.
85740
85741 2003-09-27  Paul Eggert  <eggert@twinsun.com>
85742
85743         * modules/free: New file.
85744
85745 2003-09-27  Paul Eggert  <eggert@twinsun.com>
85746
85747         * m4/free.m4: New file.
85748
85749 2003-09-27  Paul Eggert  <eggert@twinsun.com>
85750
85751         * lib/minmax.h (MIN, MAX)
85752         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
85753         Omit the special code that used __typeof__, since we worry that
85754         it could be more trouble than it's worth.  See:
85755         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
85756         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
85757
85758         * lib/free.c: New file.
85759
85760 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
85761
85762         Trivial fixes to Makefile.am parts of module listings.
85763         * modules/strstr: Append strstr.h to lib_SOURCES.
85764         * modules/strcase: Likewise, for strcase.h.
85765
85766 2003-09-27  Karl Berry  <karl@gnu.org>
85767
85768         * config/mkinstalldirs: update from automake.
85769
85770 2003-09-26  Paul Eggert  <eggert@twinsun.com>
85771
85772         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
85773         (error_tail): Do not loop, reallocating temporary buffer, since
85774         the output cannot contain more wide characters than the input
85775         contains bytes, the size must be big enough already.  This avoids
85776         one potential size overflow calculation.  Check for size overflow
85777         when calculating temporary buffer size.  Free temporary buffer
85778         when done, if it was allocated with malloc; this plugs a memory
85779         leak.  Remove casts from void * to pointers, that are no longer
85780         needed now that we're assuming C89 or better.
85781
85782         Merge error changes from glibc.
85783
85784         * lib/error.c, error.h: Update copyright notice header to match glibc.
85785         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
85786         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
85787         Disable cancellation while printing error.
85788         * lib/error.h: Prepend __ to parameter names.
85789
85790 2003-09-26  Jim Meyering  <jim@meyering.net>
85791
85792         * lib/error.c (error_tail): Move some declarations
85793         into inner scope where the local variables are used.
85794
85795 2003-09-26  Bruno Haible  <bruno@clisp.org>
85796
85797         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
85798         stpncpy().
85799         Don't define stpncpy through config.h; it's now done through stpncpy.h.
85800
85801 2003-09-26  Bruno Haible  <bruno@clisp.org>
85802
85803         * lib/stpncpy.h (gnu_stpncpy): New declaration.
85804         (stpncpy): Define as alias for gnu_stpncpy.
85805         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
85806
85807 2003-09-25  Simon Josefsson  <jas@extundo.com>
85808
85809         * lib/xgetdomainname.h: New file.
85810         * lib/xgetdomainname.c: New file.
85811
85812 2003-09-25  Simon Josefsson  <jas@extundo.com>
85813             Bruno Haible  <bruno@clisp.org>
85814
85815         * modules/getdomainname: New file.
85816         * modules/xgetdomainname: New file.
85817         * MODULES.html.sh (func_all_modules): Add getdomainname,
85818         xgetdomainname.
85819
85820 2003-09-25  Simon Josefsson  <jas@extundo.com>
85821             Bruno Haible  <bruno@clisp.org>
85822
85823         * m4/getdomainname.m4: New file.
85824
85825 2003-09-25  Simon Josefsson  <jas@extundo.com>
85826             Bruno Haible  <bruno@clisp.org>
85827
85828         * lib/getdomainname.h: New file.
85829         * lib/getdomainname.c: New file.
85830
85831 2003-09-25  Karl Berry  <karl@gnu.org>
85832
85833         * lib/argp-fmtstream.c, argp-help.c: update from libc.
85834
85835 2003-09-25  Karl Berry  <karl@gnu.org>
85836
85837         * config/install-sh: update from automake.
85838
85839 2003-09-25  Bruno Haible  <bruno@clisp.org>
85840
85841         * modules/version-etc-2: New file, from modules/version-etc with
85842         modifications.
85843         * MODULES.html.sh (func_all_modules): Add version-etc-2.
85844
85845 2003-09-25  Bruno Haible  <bruno@clisp.org>
85846
85847         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
85848         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
85849
85850 2003-09-24  Simon Josefsson  <jas@extundo.com>
85851
85852         * modules/xgethostname: Add xgethostname.h.
85853
85854 2003-09-24  Paul Eggert  <eggert@twinsun.com>
85855
85856         * lib/linebuffer.c (freebuffer): Don't free the argument, just
85857         the buffer associated with the argument.  Bug reported by
85858         Simon Josefsson.
85859
85860 2003-09-24  Paul Eggert  <eggert@twinsun.com>
85861
85862         * README: Document assumptions that 'int' is at least 32 bits
85863         wide, that integer arithmetic is 2's complement without overflow,
85864         that there are no holes in integer values, that adding sizes of
85865         two nonoverlapping objects can't overflow, and that all-bits-zero
85866         yields scalar zero.  Fix spelling and capitalization typos.
85867
85868 2003-09-19  Karl Berry  <karl@gnu.org>
85869
85870         * lib/argp.h: update from libc.
85871
85872 2003-09-17  Paul Eggert  <eggert@twinsun.com>
85873
85874         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
85875         to avoid spurious warnings like "AC_RUN_IFELSE was called before
85876         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
85877
85878 2003-09-17  Paul Eggert  <eggert@twinsun.com>
85879
85880         * gnulib-tool: Use "test -h", not "test -L", for portability
85881         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
85882         (tags_regexp): Remove, since \| doesn't conform to POSIX.
85883         (sed_extract_prog): Issue s commands one-by-one, rather than
85884         using \| in one s command.
85885
85886 2003-09-16  Paul Eggert  <eggert@twinsun.com>
85887
85888         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
85889         input error, instead of returning NULL the next time we are called
85890         (and therefore losing track of errno).
85891
85892 2003-09-16  Bruno Haible  <bruno@clisp.org>
85893
85894         * gnulib-tool (func_create_testdir): Warn about duplicated
85895         dependencies.
85896
85897 2003-09-15  Paul Eggert  <eggert@twinsun.com>
85898
85899         * modules/argmatch, modules/fatal, modules/obstack,
85900         modules/xalloc, modules/xgethostname: Sort dependencies by
85901         importance, not alphabetically.
85902
85903 2003-09-15  Paul Eggert  <eggert@twinsun.com>
85904
85905         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
85906         fails, so that the caller gets the proper errno.
85907
85908         * lib/readutmp.c (read_utmp): Likewise.
85909         Check for fstat error.  Close stream and free storage
85910         when failing.
85911
85912 2003-09-14  Karl Berry  <karl@gnu.org>
85913
85914         * config/srclist.txt (strdup.c): disable for c89 changes.
85915
85916 2003-09-14  Jim Meyering  <jim@meyering.net>
85917
85918         * lib/getloadavg.c: Correct cpp indentation.
85919         * lib/strdup.c: Likewise.
85920         * lib/vasnprintf.c: Likewise.
85921
85922 2003-09-14  Bruno Haible  <bruno@clisp.org>
85923
85924         * modules/fwriteerror: New file.
85925         * MODULES.html.sh (func_all_modules): Add fwriteerror.
85926
85927 2003-09-14  Bruno Haible  <bruno@clisp.org>
85928
85929         * lib/fwriteerror.h: New file.
85930         * lib/fwriteerror.c: New file.
85931
85932 2003-09-12  Paul Eggert  <eggert@twinsun.com>
85933
85934         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
85935         modules/xgethostname, modules/xalloc: Depend on exit.
85936
85937 2003-09-12  Paul Eggert  <eggert@twinsun.com>
85938
85939         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
85940
85941         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
85942         and AC_MINIX, too, so that their extensions are available.
85943
85944         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
85945         This macro has been superseded by gl_BACKUPFILE.
85946
85947         More patches to assume C89 or better.
85948
85949         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
85950
85951         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
85952         unconditionally.
85953         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
85954         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
85955         Include <string.h>, <stdlib.h> unconditionally.
85956         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
85957         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
85958         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
85959         headers or for string.h.
85960         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
85961         or strtoul.
85962
85963         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
85964         headers.
85965         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
85966         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85967         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
85968         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
85969         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85970         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
85971         memcpy, memset.
85972         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
85973         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
85974         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
85975         strtol.
85976         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
85977         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
85978         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
85979         strtoul.
85980
85981 2003-09-12  Paul Eggert  <eggert@twinsun.com>
85982
85983         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
85984         * lib/obstack.c [!defined _LIBC]: Likewise.
85985         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
85986         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
85987         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
85988
85989         More changes to assume C89 or better.
85990
85991         * lib/error.c (error_tail): Assume vprintf.
85992
85993         * lib/argmatch.c (getenv): Remove decl.
85994         * lib/progreloc.c (get_full_program_name): Define via prototype.
85995         * lib/setenv.c (clearenv): Likewise.
85996         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
85997         needed.
85998         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
85999         (malloc, memcpy): Remove decls.
86000         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
86001         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
86002         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86003         (memcpy): Remove macro.
86004         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
86005         (__P): Remove.  All uses removed.
86006         (PTR): Remove.  All uses changed to void *.
86007         (CHAR_BIT, NULL): Remove.
86008         (spaces, zeros, memset_space, memset_zero)
86009         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
86010         Remove.
86011         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
86012         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
86013         Define with prototype.
86014         Remove now-unnecessary prototype decl.
86015         (extra_args_spec): Assume ANSI C.  All uses changed.
86016         (extra_args_spec_iso): Remove.
86017         (my_strftime, emacs_strftimeu): Define via prototype.
86018         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
86019         unconditionally.
86020         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
86021         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
86022         (strtoul, strtol): Remove decls.
86023         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
86024         LONG_MAX): Remove.
86025         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86026         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
86027         (LOCALE_PARAM_PROTO): New macro.
86028         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
86029         (INTERNAL (strtol), strtol): Define with a prototype.
86030         (PARAMS): Remove.  All uses removed.
86031         * lib/tempname.c: Include <string.h> unconditionally.
86032         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
86033         * lib/xgethostname.c (main): Define with a prototype.
86034         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
86035         Include <stdlib.h> unconditionally.
86036         (calloc, malloc, realloc, free): Remove decls.
86037         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
86038         Include <stdlib.h> unconditionally.  Sort include file names.
86039         (strtod): Remove.
86040         (xstrtod): Define with a prototype.
86041         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
86042         (strtol, strtoul): Remove decls.
86043
86044 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86045
86046         More patches to assume C89 or better.
86047         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
86048         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
86049         string.h, memchr, STDC_HEADERS.
86050
86051 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86052
86053         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
86054         Include <stdlib.h>, <string.h> unconditionally.
86055         Remove now-unnecessary cast to char *.
86056         * lib/strnlen.c: Include <string.h> unconditionally.
86057         * lib/yesno.c (yesno): Define with a prototype.
86058
86059 2003-09-11  Bruno Haible  <bruno@clisp.org>
86060
86061         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
86062
86063 2003-09-10  Jim Meyering  <jim@meyering.net>
86064
86065         * lib/error.c: Correct indentation of cpp directives.
86066
86067 2003-09-10  Bruno Haible  <bruno@clisp.org>
86068
86069         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
86070         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
86071         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
86072         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
86073         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
86074         <stdlib.h> and <string.h> checks.
86075         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
86076         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
86077
86078 2003-09-10  Bruno Haible  <bruno@clisp.org>
86079
86080         * lib/strcspn.c: Include <string.h> unconditionally.
86081         * lib/strpbrk.c: Include <string.h> unconditionally.
86082         * lib/strstr.c: Include <string.h> unconditionally.
86083         * lib/unicodeio.c: Include <string.h> unconditionally.
86084         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
86085         * lib/unsetenv.c: Likewise.
86086         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
86087         * lib/yesno.c: Include <stdlib.h> unconditionally.
86088         (rpmatch): Add prototype.
86089
86090 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86091
86092         More patches to assume C89 or better.
86093         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
86094         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
86095         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
86096         or for string.h.
86097         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
86098         stdlib.h.
86099         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
86100         C headers.
86101         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
86102         string.h.
86103         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
86104         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
86105         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
86106         or for string.h.
86107         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
86108         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
86109         C headers.
86110         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
86111         memcpy.
86112         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
86113         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
86114         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
86115         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
86116         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
86117         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
86118         string.h, free.
86119         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
86120         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
86121         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
86122         C headers, or for string.h.
86123         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
86124         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
86125         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
86126         headers, memory.h, stdlib.h, string.h, strings.h.
86127         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
86128         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
86129         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
86130         strchr.
86131         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
86132         headers, memory.h, string.h.
86133         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
86134         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
86135         free.
86136         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
86137         headers.
86138         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
86139         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
86140         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
86141         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
86142         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
86143
86144 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86145
86146         More K&R removal.
86147
86148         * lib/acosl.c (main): Use a prototype.
86149         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
86150         tanl.c: Likewise.
86151
86152         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
86153
86154         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
86155         (getopt, etopt_long, getopt_long_only, _getopt_internal)
86156         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
86157         with a prototype.
86158         * lib/getopt.c (const): Remove macro.
86159         Include <string.h> unconditionally.
86160         (my_index): Remove; all uses changed to strchr.
86161         (strlen): Remove decl.
86162         (exchange): Remove forward decl; no longer needed.
86163         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
86164         Define with prototype.
86165         * lib/getopt1.c (const): Remove macro.
86166         (getopt_long, getopt_long_only, main): Define with prototype.
86167
86168         * lib/getugroups.c: Include <string.h> unconditionally.
86169
86170         * lib/getusershell.c: Include <stdlib.h> unconditionally.
86171         (getusershell, setusershell, endusershell, readname, main):
86172         Define with prototypes.
86173
86174         * lib/group-member.c: Include group-member.h first.
86175         Include <stdlib.h> unconditionally.
86176
86177         * lib/hard-locale.c: Include hard-locale.h first.
86178         Include <stdlib.h>, <string.h> unconditionally.
86179
86180         * lib/hash.c (free, malloc): Remove decls.
86181         Include <stdlib.h> unconditionally.
86182
86183         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
86184         (getenv): Do not declare.
86185
86186         * lib/idcache.c: Include <string.h> unconditionally.
86187
86188         * lib/long-options.c: Include long-options.h first, to test interface.
86189         Include <stdlib.h> unconditionally.
86190
86191         * lib/makepath.c: Include makepath.h first, to test interface.
86192         Include <stdlib.h> and <string.h> unconditionally.
86193
86194         * lib/linebuffer.c: Include <stdlib.h>.
86195         (free): Remove decl.
86196
86197         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
86198         stddef.h. rpl_malloc returns void *, not char *.
86199         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
86200         prototype.
86201
86202         * lib/md5.h: Include <limits.h> unconditionally.
86203         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
86204         (__P): Remove; all uses removed.
86205         * lib/md5.c: Include "md5.h" first.
86206         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
86207         md5_buffer, md5_process_bytes, md5_process_block):
86208         Define with prototypes.
86209         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
86210         * lib/sha.c: Include "sha.h" first.
86211         Include <stdlib.h>, <string.h> unconditionally.
86212
86213         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
86214         * lib/memcmp.c (__ptr_t): Likewise.
86215         * lib/memrchr.c (__ptr_t): Likewise.
86216         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
86217         Include <string.h> unconditionally.
86218         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
86219         * lib/memchr.c: Include <stdlib.h> unconditionally.
86220         * lib/memchr.c (LONG_MAX): Remove.
86221         * lib/memrchr.c (LONG_MAX): Likewise.
86222         * lib/memchr.c (__memchr): Define via a prototype.
86223         * lib/memrchr.c (__memrchr): Likewise.
86224         * lib/memcmp.c (__P): Remove, and remove all uses.
86225         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
86226         Remove forward decls; no longer needed.
86227         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
86228         Use types required by C89 in prototype.
86229
86230         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
86231         * lib/savedir.c: Likewise.
86232         * lib/mkdir.c (free): Remove decl.
86233         * lib/rmdir.c (rmdir): Define with a prototype.
86234         * lib/savedir.c: Include savedir.h first, to test interface.
86235
86236         * lib/mktime.c (STDC_HEADERS): Remove.
86237         Include <stdlib.h>, <string.h> unconditionally.
86238
86239         * lib/modechange.c: Include <stdlib.h> unconditionally.
86240         (malloc): Remove decl.
86241
86242         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
86243         (free): Remove decl.
86244
86245         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
86246         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
86247         (This type really should be intptr_t, but that's a C99ism.)
86248         (_obstack_memcpy): Remove: all uses changed to memcpy.
86249         Include <string.h> unconditionally.
86250         (struct obstack): Assume __STDC__ for types of members
86251         chunkfun, freefun, extra_arg.
86252         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
86253         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
86254         obstack_begin, obstack_specify_allocation,
86255         obstack_specify_allocation_with_arg, obstack_chunkfun,
86256         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
86257         Remove unprototyped decls and the macros that use them.
86258         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
86259         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
86260         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
86261         (defined __STDC__ && __STDC__)]:
86262         Remove nonprototyped code.
86263         Include <stdlib.h> unconditionally.
86264         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
86265         _obstack_allocated_p, _obstack_free, obstack_free,
86266         _obstack_memory_used, print_and_abort):
86267         Define using prototypes.
86268         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
86269         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
86270         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
86271         obstack_next_free, obstack_object_size, obstack_room) [0]:
86272         Remove unused, unprototyped code.
86273
86274         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
86275
86276         * lib/physmem.c (physmem_total, physmem_available, main): Define
86277         with prototypes.
86278
86279         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
86280         (main): Define with a prototype.
86281
86282         * lib/posixver.c (getenv): Remove decl.
86283
86284         * lib/putenv.c (malloc): Returns void *, not char *.
86285         Include <string.h> unconditionally.
86286         (strchr, memcpy, NULL): Do not define.
86287
86288         * lib/readtokens.c: Include readtokens.h first, to test interface.
86289         Include <stdlib.h>, <string.h> unconditionally.
86290         (init_tokenbuffer): Define with a prototype.
86291
86292         * lib/regex.c (PARAMS): Remove.  All uses removed.
86293         All uses of _RE_ARGS removed, too.
86294         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
86295         unconditionally.
86296         (bzero): Assume memset exists.
86297         (memcmp, memcpy, NULL): Remove.
86298         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
86299         char, or assignments to local vars of type signed char.
86300         (init_syntax_once, PREFIX(extract_number_and_incr),
86301         PREFIX(print_partial_compiled_pattern),
86302         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
86303         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
86304         PREFIX(regex_grow_registers), PREFIX(regex_compile),
86305         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
86306         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
86307         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
86308         wcs_compile_range, byte_compile_range, truncate_wchar,
86309         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
86310         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
86311         count_mbs_length, wcs_re_match_2_internal,
86312         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
86313         PREFIX(alt_match_null_string_p),
86314         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
86315         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
86316         regfree, PREFIX(extract_number)): Define with prototype.  Remove
86317         now-unnecessary declaration, if any.
86318         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
86319         regcomp, regexec):
86320         Remove now-unnecessary casts among pointer types.
86321         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
86322
86323         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
86324         (free): Remove decl.
86325
86326         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
86327
86328         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
86329         (free): Remove decl.
86330
86331         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
86332         * lib/xgetcwd.c: Likewise.
86333
86334         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
86335         (free): Remove decl.
86336
86337         * lib/strchrnul.c (strchrnul): Define with a prototype.
86338         Fix bug: c_in was not converted to char before searching.
86339
86340         The following changes are not K&R related:
86341
86342         * lib/group-member.h: Include <sys/types.h>, so that this file is
86343         self-contained.
86344         * lib/makepath.h: Likewise.
86345
86346         * lib/getusershell.c (readname, default_index, line_size, readname):
86347         Use size_t, not int, for sizes.
86348         (readname): If the size overflows, report an error instead of
86349         looping forever.
86350
86351 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86352
86353         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
86354         libc.
86355
86356 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86357
86358         * README: New section: portability guidelines.
86359
86360 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
86361
86362         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
86363         C89 spec.
86364
86365 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
86366
86367         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
86368
86369 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86370
86371         Assume C89 or better; remove K&R cruft.
86372         A few of these changes were first proposed by Derek Robert Price
86373         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
86374
86375         * lib/addext.c: Include <string.h> unconditionally.
86376         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
86377         Don't declare getenv or malloc.
86378
86379         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
86380         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
86381         (NULL): Remove.
86382         (find_stack_direction, alloca): Use prototypes.
86383
86384         * lib/atexit.c (atexit): Define using a prototype.
86385
86386         * lib/basename.c, dirname.c, stripslash.c:
86387         Include <string.h> unconditionally.
86388
86389         * lib/bcopy.c: Include <stddef.h>.
86390         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
86391
86392         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
86393
86394         * lib/error.h (error, error_at_line, error_print_progname)
86395         [! (defined (__STDC__) && __STDC__)]: Remove decls.
86396         * lib/error.c: Include error.h first, to check interface.
86397         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
86398         (VA_START): Remove; all uses changeed to va_start.
86399         (exit, strerror): Remove decls.
86400         (error_print_progname): Prototype uncondionally.
86401         Don't include <errno.h>; no longer needed.
86402         (private_strerror): Remove.
86403         (error_tail): Always define.
86404         (error, error_at_line): Assume C89 or better; always use prototypes.
86405         * lib/fatal.c: Include "fatal.h" first, to test interface.
86406         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
86407         (VA_START): Remove; all uses changed to va_start.
86408         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
86409         this case.
86410         (exit): Remove decl.
86411         (fatal): Prototype unconditionally.  Assume va_start works.
86412         Abort at end, to pacify gcc.
86413
86414         * lib/euidaccess.c (main): Define with a prototype.
86415
86416         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
86417
86418         * lib/exitfail.c: Include <stdlib.h> unconditionally.
86419
86420         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
86421         prototypes.
86422         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
86423         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
86424         (getenv): Remove decl.
86425         (fnmatch): Define using a prototype.
86426         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
86427         (FCT): Define using a prototype.
86428
86429         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
86430
86431         * lib/gethostname.c: Include <stddef.h>.
86432         (gethostname): Define with prototype.  Length is size_t, not int.
86433
86434 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86435
86436         Assume C89 or better; remove K&R cruft.
86437         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
86438         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
86439         string.h, getenv, malloc.
86440         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
86441         headers.
86442         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
86443         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
86444         do not check for strerror.
86445         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
86446         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
86447         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
86448         do not check for doprnt or vprintf.
86449         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
86450         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
86451
86452 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86453
86454         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
86455         getversion.c should have been removed then, but was accidentally
86456         preserved.
86457
86458         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
86459         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
86460
86461 2003-09-08  Karl Berry  <karl@gnu.org>
86462
86463         * config/config.sub, config.guess, srclistvars.sh: update from savannah
86464                 config, forget about prep.
86465
86466         * config/depcomp, missing: update from automake.
86467
86468 2003-09-07  Paul Eggert  <eggert@twinsun.com>
86469
86470         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
86471         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
86472
86473 2003-09-07  Paul Eggert  <eggert@twinsun.com>
86474
86475         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
86476         copy_tm_result.  Bug reported by Simon Josefsson in
86477         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
86478
86479 2003-09-06  Paul Eggert  <eggert@twinsun.com>
86480
86481         * m4/time_r.m4: New file.
86482         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
86483         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
86484         is. Check for timegm declaration.
86485         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
86486         Do not check for gmtime_r.
86487         Replace mktime if __mktime_internal does not exist and if mktime
86488         hasn't been replaced already.
86489
86490 2003-09-06  Paul Eggert  <eggert@twinsun.com>
86491
86492         * lib/time_r.c, lib/time_r.h: New files.
86493
86494         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
86495         __localtime_r.
86496         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
86497         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
86498
86499         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
86500         __gmtime_r.
86501         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
86502         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
86503         Include <time_r.h>.
86504
86505         * lib/timegm.c: Switch to glibc implementation, with the following
86506         changes:
86507         [defined HAVE_CONFIG_H]: Include <config.h>.
86508         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
86509         (__mktime_internal) [!defined _LIBC]: New decl.
86510         (__gmtime_r) [!defined _LIBC]: New macro and function.
86511         (timegm): Use a prototype, since gnulib assumes C89.
86512         Do not bother declaring tmp to be const, as it's not really usefu.
86513         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
86514         (timegm): Declare only if HAVE_DECL_TIMEGM.
86515
86516 2003-09-06  Paul Eggert  <eggert@twinsun.com>
86517
86518         * MODULES.html.sh (func_all_modules): Add time_r.
86519         * modules/time_r: New file.
86520         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
86521         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
86522
86523 2003-09-03  Paul Eggert  <eggert@twinsun.com>
86524
86525         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
86526         Bug reported by Lute Kamstra in
86527         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
86528
86529         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
86530         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
86531         course with correspondingly smaller numbers for tomorrow and
86532         yesterday.  From Tadayoshi Funaba.  Originally installed into
86533         sh-utils on 1999-08-07, but the patch got lost (I guess during the
86534         coreutils merge?).
86535
86536 2003-08-31  Simon Josefsson  <jas@extundo.com>
86537
86538         * modules/timegm: New file.
86539         * MODULES.html.sh (func_all_modules): Add timegm.
86540
86541 2003-08-31  Simon Josefsson  <jas@extundo.com>
86542
86543         * m4/timegm.m4: New file.
86544
86545 2003-08-31  Simon Josefsson  <jas@extundo.com>
86546
86547         * lib/timegm.h: New file.
86548         * lib/timegm.c: New file.  Based on
86549         wget-1.8.2/src/http.c:mktime_from_utc.
86550
86551 2003-08-31  Karl Berry  <karl@gnu.org>
86552
86553         * lib/argp.h: update from libc.
86554
86555 2003-08-28  Bruno Haible  <bruno@clisp.org>
86556
86557         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
86558         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
86559         followed by '#define fnmatch fnmatch_posix' gives an error.
86560
86561 2003-08-28  Bruno Haible  <bruno@clisp.org>
86562
86563         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
86564         warning on QNX, which defines O_BINARY to 000000.
86565
86566 2003-08-27  Jim Meyering  <jim@meyering.net>
86567
86568         * m4/mkstemp.m4: Require that the system mkstemp be able to create
86569         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
86570         would fail after 32.  Reported by Danny Levinson.  Details here:
86571         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
86572
86573 2003-08-24  Bruno Haible  <bruno@clisp.org>
86574
86575         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
86576         MSVC7 <stdio.h> is included later.
86577
86578 2003-08-22  Simon Josefsson  <jas@extundo.com>
86579
86580         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
86581
86582 2003-08-20  Karl Berry  <karl@gnu.org>
86583
86584         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
86585
86586 2003-08-20  Bruno Haible  <bruno@clisp.org>
86587
86588         * modules/progname: New file.
86589         * MODULES.html.sh (func_all_modules): Add progname.
86590
86591 2003-08-20  Bruno Haible  <bruno@clisp.org>
86592
86593         * lib/progname.h: New file, from GNU gettext.
86594         * lib/progname.c: New file, from GNU gettext.
86595         * lib/progreloc.c: New file, from GNU gettext.
86596
86597 2003-08-19  Jim Meyering  <jim@meyering.net>
86598
86599         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
86600         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
86601
86602 2003-08-19  Bruno Haible  <bruno@clisp.org>
86603
86604         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
86605         more.
86606
86607 2003-08-19  Bruno Haible  <bruno@clisp.org>
86608
86609         * lib/xstrdup.c: Assume <string.h> exists.
86610
86611 2003-08-18  Paul Eggert  <eggert@twinsun.com>
86612
86613         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
86614         in makefile rules.
86615
86616 2003-08-18  Jim Meyering  <jim@meyering.net>
86617
86618         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
86619         * m4/lib-ld.m4: Likewise.
86620
86621 2003-08-18  Jim Meyering  <jim@meyering.net>
86622
86623         * lib/setenv.h: Indent nested cpp directive.
86624         * lib/vasnprintf.c: Remove trailing blanks.
86625
86626 2003-08-17  Simon Josefsson  <jas@extundo.com>
86627
86628         * modules/xstrndup: New file.
86629         * MODULES.html.sh (func_all_modules): Add xstrndup.
86630
86631 2003-08-17  Simon Josefsson  <jas@extundo.com>
86632
86633         * modules/argp: Fix autoconf macro name. Add more dependencies.
86634
86635 2003-08-17  Simon Josefsson  <jas@extundo.com>
86636
86637         * m4/xstrndup.m4: New file.
86638
86639 2003-08-17  Simon Josefsson  <jas@extundo.com>
86640
86641         * m4/argp.m4: New file.
86642
86643 2003-08-17  Simon Josefsson  <jas@extundo.com>
86644             Bruno Haible  <bruno@clisp.org>
86645
86646         * lib/xstrndup.h: New file.
86647         * lib/xstrndup.c: New file.
86648
86649 2003-08-17  Bruno Haible  <bruno@clisp.org>
86650
86651         * modules/strndup (Files, Include): Add lib/strndup.h.
86652
86653 2003-08-17  Bruno Haible  <bruno@clisp.org>
86654
86655         * modules/euidaccess (Files): Add lib/euidaccess.h.
86656
86657 2003-08-17  Bruno Haible  <bruno@clisp.org>
86658
86659         * lib/strndup.h: New file.
86660
86661 2003-08-17  Bruno Haible  <bruno@clisp.org>
86662
86663         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
86664         like AC_GNU_SOURCE.
86665         * modules/extensions (configure.ac): Comment out the invocation of
86666         gl_USE_SYSTEM_EXTENSIONS.
86667
86668 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86669
86670         Merges from coreutils, etc.
86671         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
86672         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
86673         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
86674         fixing a typo.
86675         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
86676         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
86677
86678 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86679
86680         Document merge from coreutils.
86681         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
86682         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
86683         * modules/utime: Add m4/utimes-null.m4.
86684
86685 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86686
86687         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
86688         space, undoing this 2003-08-12 change:
86689         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
86690
86691 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86692
86693         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
86694         strtoul.c from libc, undoing this 2003-08-12 change:
86695         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
86696
86697 2003-08-16  Jim Meyering  <jim@meyering.net>
86698
86699         Merges from coreutils.
86700         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
86701         prefix.  Adjust cache variables similarly.  Create 500 rather than
86702         just 300 files, to exercise bug on Darwin6.5, too.
86703         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
86704         $missing_dir.
86705         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
86706         AM_SYS_POSIX_TERMIOS.
86707         Reported by mkc@mathdogs.com.
86708         Also change use of $am_cv_sys_posix_termios
86709         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
86710         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
86711         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
86712         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
86713         in /proc/mounts until it finds one with matching device number.  This
86714         is unnecessary when the FILE argument *is* a mount point.  No stat call
86715         is necessary in that case.  So, disable the statvfs-testing code on
86716         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
86717         as RedHat bug# 84846.
86718         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
86719         to 1MB, so as not to render systems with no stack size limit (e.g.,
86720         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
86721         Include <unistd.h>.  On some systems,
86722         it is required for the definition of _SC_PAGESIZE.
86723
86724 2003-08-16  Jim Meyering  <jim@meyering.net>
86725
86726         Merge from coreutils.
86727         * lib/xstrtoimax.c: #else #if -> #elif.
86728         * lib/xstrtoumax.c: Likewise.
86729
86730 2003-08-16  Jim Meyering  <jim@meyering.net>
86731
86732         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
86733         * m4/utimes.m4: Removed.
86734         * m4/utimes-null.m4: Renamed from utimes.m4.
86735
86736         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
86737         to 1MB, so as not to render systems with no stack size limit (e.g.,
86738         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
86739         Include <unistd.h>.  On some systems,
86740         it is required for the definition of _SC_PAGESIZE.
86741
86742 2003-08-16  Jim Meyering  <jim@meyering.net>
86743         and Paul Eggert  <eggert@cs.ucla.edu>
86744
86745         Merges from coreutils, etc.
86746
86747         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
86748         using the latest version from cvs.  This avoids problems with #line
86749         directives using a vendor (Sun) compiler.
86750         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
86751         Don't set GETGROUPS_LIB here; now it's
86752         done via getgroups.m4's wrapper function.
86753         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
86754         rather than just in sh-util/configure.in, so that the
86755         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
86756         same.
86757         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
86758         AC_FUNC_GETLOADAVG where to find getloadavg.c.
86759         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
86760         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
86761         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
86762         Remove code that is now done by the newly-required macros.
86763         Append $(EXEEXT) to DF_PROG.
86764         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
86765         Do not invoke or require the following here,
86766         since prereq.m4 or some gnulib .m4 now does this for us:
86767         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
86768         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
86769         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
86770         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
86771         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
86772         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
86773         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
86774         AC_FUNC_OBSTACK.
86775         Do not replace the following functions, as this is now the job
86776         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
86777         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
86778         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
86779         atexit getpass, strdup, getpagesize.
86780         Replace 'raise'.
86781         Do not check for the following functions, as this is now the job
86782         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
86783         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
86784         setregid.
86785         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
86786         Check for sys/sysctl.h.
86787         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
86788         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
86789         of checking for ssize_t ourselves.
86790
86791         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
86792         Require every macro that gnulib/modules/* suggests for us.
86793         (jm_PREREQ_ADDEXT): New macro.
86794         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
86795         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
86796
86797         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
86798         (gl_PHYSMEM): Use it.
86799         Also check for `table' function.
86800         Check for new headers and functions.
86801         Add check for sys/sysmp.h.
86802         With suggestions from Kaveh Ghazi.
86803         Ignore headers that are present but cannot be compiled.  This
86804         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
86805         C 5.4.
86806
86807 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86808
86809         Document merge from coreutils.
86810         * modules/userspec: Depend on posixver.
86811         * modules/strftime: Depend on tzset.
86812
86813 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86814
86815         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
86816         rather than tab, after '#' in shell-script copyright notices.
86817         Suggested by Bruno Haible.
86818
86819 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86820
86821         * config/srclist-update: Use three spaces, rather than tab, after '#'
86822         in shell-script copyright notices.  Suggested by Bruno Haible.
86823         Remove unnecessary parenthesization in regular expression.
86824
86825 2003-08-15  Jim Meyering  <jim@meyering.net>
86826
86827         Merge from coreutils.
86828         * lib/xgethostname.c: Include <stdlib.h>.
86829         (xghostname): Don't exit for anything other than memory-related
86830         failure; just return NULL.
86831         * lib/userspec.c: Include "posixver.h".
86832         (parse_user_spec): Accept `.' as a separator only
86833         in pre-POSIX-200112 mode.
86834         * lib/strtoimax.c: Use #elif rather than #else #if.
86835         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
86836         Remove function, now that we can rely on a working tzset function.
86837         [!_LIBC]: Ensure that the required autoconf test has been run.
86838         [!defined _NL_CURRENT && HAVE_STRFTIME]:
86839         Use underlying_strftime for %r.
86840         * lib/sha.c: Merge in some clean-up and optimization changes from
86841         glibc.
86842         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
86843         Ensure that it is a multiple of 64.
86844         Rearrange loop exit tests so as to avoid performing an
86845         additional fread after encountering an error or EOF.
86846         * lib/realloc.c: Update copyright date.
86847
86848 2003-08-15  Jim Meyering  <jim@meyering.net>
86849         and Paul Eggert  <eggert@twinsun.com>
86850
86851         Merge from coreutils.
86852         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
86853         member but strut utmpx does not.  Needed for AIX 4.3.3.
86854         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
86855
86856 2003-08-15  Jim Meyering  <jim@meyering.net>
86857         and Paul Eggert  <eggert@cs.ucla.edu>
86858
86859         Merges from coreutils, etc.
86860         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
86861         Require gl_FUNC_TZSET_CLOBBER.
86862         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
86863         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
86864         members.
86865
86866 2003-08-14  Paul Eggert  <eggert@twinsun.com>
86867
86868         Help the merge from coreutils.
86869         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
86870         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
86871         * m4/tzset.m4: Use it too.
86872
86873 2003-08-14  Paul Eggert  <eggert@twinsun.com>
86874
86875         * modules/tzset: New file.
86876
86877 2003-08-14  Jim Meyering  <jim@meyering.net>
86878
86879         Merges from coreutils.
86880         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
86881         variable names, rather than @FNMATCH_H@.
86882         * modules/alloca: Likewise for $(ALLOCA_H).
86883
86884         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
86885         the three copies of the literal target, `fnmatch.h'.
86886         * modules/alloca (alloca.h): Likewise.
86887
86888 2003-08-14  Jim Meyering  <jim@meyering.net>
86889
86890         Merge from coreutils.
86891         * m4/tzset.m4: New file.
86892         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
86893         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
86894         otherwise, AIX 5.1 systems would end up using the latter.
86895         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
86896         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
86897         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
86898         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
86899
86900 2003-08-14  Jim Meyering  <jim@meyering.net>
86901
86902         Merge from coreutils.
86903         * lib/obstack.h: Whitespace changes.
86904         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
86905         and xcalloc return values.
86906         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
86907         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
86908         hang on OSF/1 5.1 for DIR on both local and remote file systems.
86909         Reported by (and fix confirmed by) Nelson H. F. Beebe.
86910         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
86911         error from mntctl.
86912         Use mntctl's return value to drive the entry-processing loop, since
86913         we can't rely on the value of the vmt_length member in the last
86914         entry.  On some systems doing so could result in exhausting
86915         virtual memory.  Based in part on a patch from Mike Jetzer.
86916
86917 2003-08-14  Jim Meyering  <jim@meyering.net>
86918         and Paul Eggert  <eggert@twinsun.com>
86919
86920         Merges from coreutils, plus other fixes.
86921         * lib/physmem.c: Merge in portability changes from gcc/libiberty
86922         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
86923         for credits and details.  Thanks to Kaveh Ghazi for helping
86924         to keep these files in sync.
86925         (ARRAY_SIZE): Define it.
86926         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
86927         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
86928         (memcasecmp): Don't assume size_t fits in unsigned int.
86929         Remove casts and duplicate code.
86930         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
86931         (memcpy): Remove definition.
86932         Merge in some clean-up and optimization changes from glibc.
86933         [BLOCKSIZE]: Move definition to top of file.
86934         Ensure that it is a multiple of 64.
86935         Rearrange loop exit tests so as to avoid performing an
86936         additional fread after encountering an error or EOF.
86937         * lib/md5.h (md5_uintptr): Define.
86938         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
86939         return to the initial working directory.  Preserve errno
86940         for caller.
86941         * lib/idcache.c: Include "xalloc.h".
86942         (xmalloc, xrealloc): Remove decls.
86943         (getuser): Remove casts no longer required in C89.
86944         * lib/human.c: Include stdio.h, for sprintf.
86945         * lib/group-member.c: Include "xalloc.h".
86946         (xmalloc, xrealloc): Remove decls.
86947         (get_group_info): Remove casts no longer required in C89.
86948         * lib/getusershell.c (readname): Remove casts no longer required in
86949         C89.
86950         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
86951         * lib/getline.c: Whitespace fix, from coreutils.
86952
86953 2003-08-13  Paul Eggert  <eggert@twinsun.com>
86954
86955         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
86956         Check for isascii.
86957
86958         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
86959         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
86960         Undo previous (whitespace-only) change.
86961
86962 2003-08-13  Paul Eggert  <eggert@twinsun.com>
86963
86964         * lib/exclude.c: Include <ctype.h>
86965         (IN_CTYPE_DOMAIN): New macro.
86966         (is_space): New fn.
86967         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
86968         and empty lines.
86969
86970         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
86971         Undo previous (whitespace-only) change.
86972
86973 2003-08-13  Paul Eggert  <eggert@twinsun.com>
86974
86975         * config/srclist-update: Change update back to the old behavior,
86976         leaving whitespace alone.  Use one 'sed' command rather than a
86977         pipeline.
86978         (fixlicense): Now a variable, not a function.
86979         (remove_trailing_blanks): Remove.
86980         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
86981         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
86982         Undo previous (whitespace-only) change.
86983
86984 2003-08-12  Paul Eggert  <eggert@twinsun.com>
86985
86986         Merge from coreutils.
86987         * modules/euidaccess: Add lib_SOURCES, include for new
86988         file euidaccess.h
86989
86990 2003-08-12  Paul Eggert  <eggert@twinsun.com>
86991
86992         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
86993         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
86994         Normalize leading white space and remove trailing white space.
86995
86996         Merge from coreutils
86997         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
86998
86999         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
87000         0.12.1.  These files are now being upgraded automatically by
87001         ../config/srclist-update.
87002
87003 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87004
87005         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87006         Normalize leading white space and remove trailing white space.
87007         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
87008         notice, as per ../config/srclist-update.
87009
87010         Merge from coreutils.
87011         * lib/euidaccess.h: New file.
87012         * lib/euidaccess.c: Include it.
87013         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
87014         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
87015         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
87016
87017 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87018
87019         * config/srclist-update: Add copyright notice.
87020         (remove_id_lines, remove_trailing_blanks): New constants.
87021         (fixfile): Use them to normalize spacing a bit in copied files.
87022         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87023         Normalize leading white space and remove trailing white space.
87024
87025         * config/texinfo.tex: Sync with texinfo.
87026
87027         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
87028         strtoul.c from libc, to merge coreutils whitespace changes.
87029
87030         * config/srclist.txt: Get the following m4 files from gettext:
87031         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
87032         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
87033         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
87034         wint_t.m4.
87035
87036 2003-08-12  Karl Berry  <karl@gnu.org>
87037
87038         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
87039         been made.
87040
87041 2003-08-11  Paul Eggert  <eggert@twinsun.com>
87042
87043         * modules/gnu-source, m4/gnu-source.m4:
87044         Remove; we're assuming Autoconf 2.54 or later now.
87045         Suggested by Bruno Haible.
87046         * MODULES.html.sh (func_all_modules): Remove gnu-source.
87047
87048 2003-08-11  Bruno Haible  <bruno@clisp.org>
87049
87050         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
87051
87052 2003-08-11  Bruno Haible  <bruno@clisp.org>
87053
87054         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
87055         (vasnprintf): Use it instead of wcslen.
87056
87057 2003-08-11  Bruno Haible  <bruno@clisp.org>
87058
87059         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
87060         value to ensure that _Bool promotes to int. Use #define for _Bool when
87061         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
87062
87063 2003-08-10  Karl Berry  <karl@gnu.org>
87064
87065         * lib/regex.h: update from libc (whitespace fix).
87066
87067 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87068
87069         Merge some files from coreutils.  These changes were
87070         originally made by Jim Meyering.
87071         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
87072         many older Unixes require this.
87073         * lib/alloca.c (alloca): Remove cast to argument of free;
87074         no longer needed in C89.
87075         * lib/alloca_.h, regex.h: Fix white space to match
87076         what GNU indent does.
87077
87078 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87079
87080         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
87081         apparently Emacs's Unicode mode got confused before my 2003-08-05
87082         checkin.
87083
87084 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87085
87086         * m4/extensions.m4: New file.
87087         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
87088         Require gl_USE_SYSTEM_EXTENSIONS.
87089         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
87090         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
87091
87092 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87093
87094         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
87095         * modules/extensions, modules/gnu-source: New files.
87096         * modules/timespec, modules/unlocked-io: Depend on extensions.
87097
87098 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87099
87100         * modules/restrict: New file.
87101         * MODULES.html.sh (func_all_modules): Add restrict.
87102         * modules/regex: Depend on restrict.
87103
87104 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87105
87106         * m4/restrict.m4: New file.
87107         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
87108
87109 2003-08-07  Bruno Haible  <bruno@clisp.org>
87110
87111         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
87112         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
87113
87114 2003-08-07  Bruno Haible  <bruno@clisp.org>
87115
87116         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
87117         makes the module 'getndelim2' compatible with the module 'getline'.
87118
87119 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87120
87121         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
87122         byte with "\201" to avoid glitches when editing that source file
87123         with multi-gnome-terminal.
87124
87125 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87126
87127         * lib/bumpalloc.h: Remove.
87128
87129 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87130
87131         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
87132         * modules/bumpalloc: Remove.
87133
87134 2003-08-04  Paul Eggert  <eggert@twinsun.com>
87135
87136         * lib/getloadavg.c: Change copyright notice and spacing to conform to
87137         GNU coding style.
87138
87139         Merge from coreutils.
87140         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
87141         1. From glibc.
87142         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
87143         from Karl Berry, implemented by Jim Meyering.
87144         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
87145         from Dmitry V. Levin.
87146         Remove anachronistic cast of xrealloc.
87147         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
87148         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
87149         type. Otherwise, it wouldn't compile with at least /bin/cc on
87150         ymp-cray-unicos9.0.2.X.
87151         Combine two mostly-identical uses of alloca into one.
87152         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
87153
87154 2003-08-04  Dave Love  <d.love@dl.ac.uk>
87155
87156         [From Emacs.]
87157
87158         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
87159         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
87160         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
87161         obsolete NLIST_NAME_UNION.
87162         [__GNU__]: Undef BSD and FSCALE.
87163         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
87164
87165 2003-08-03  Paul Eggert  <eggert@twinsun.com>
87166
87167         * lib/stdbool_.h (_Bool): Make it signed char, instead of
87168         an enum type, so that it's guaranteed to promote to int.  See:
87169         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
87170
87171 2003-08-03  Karl Berry  <karl@gnu.org>
87172
87173         * config/depcomp: update from automake.
87174
87175 2003-07-31  Paul Eggert  <eggert@twinsun.com>
87176
87177         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
87178         (strerror): Don't assume that a printable int fits in 14 bytes.
87179
87180 2003-07-31  Bruno Haible  <bruno@clisp.org>
87181
87182         * modules/getpass-gnu: New file.
87183         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
87184
87185 2003-07-31  Bruno Haible  <bruno@clisp.org>
87186
87187         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
87188
87189 2003-07-24  Karl Berry  <karl@gnu.org>
87190
87191         * config/missing: update from automake.
87192
87193 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
87194             Bruno Haible  <bruno@clisp.org>
87195
87196         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
87197         * lib/getline.c (getline, getdelim): Likewise.
87198         Remove _GNU_SOURCE define; now it's defined in config.h through
87199         m4/getline.m4.
87200
87201 2003-07-23  Karl Berry  <karl@gnu.org>
87202
87203         * config/config.sub: update from prep.
87204
87205 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87206
87207         * modules/xalloc (Depends-on): Add exitfail.
87208         * modules/xmemcoll: Likewise.
87209
87210 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87211
87212         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
87213         over-parenthesization in macros.
87214
87215         Sync with coreutils.
87216
87217         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
87218         required by C99.
87219
87220         Use `exit_failure' for xalloc and xmemcoll instead of their own
87221         private exit-failure variables.
87222         * lib/xalloc.h (xalloc_exit_failure): Remove.
87223         * lib/xmalloc.c: Likewise.  Include exitfail.h.
87224         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
87225         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
87226         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
87227         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
87228
87229 2003-07-20  Jim Meyering  <jim@meyering.net>
87230
87231         * modules/closeout (Depends-on): Add exitfail.
87232         Suggestion from Bruno Haible.
87233
87234 2003-07-19  Karl Berry  <karl@gnu.org>
87235
87236         * config/config.sub: update from prep.
87237
87238 2003-07-18  Paul Eggert  <eggert@twinsun.com>
87239
87240         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
87241         Remove.
87242         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
87243         to test that it can stand by itself.  Include "exitfail.h".
87244         Clients should set exit_failure instead.
87245         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
87246
87247 2003-07-18  Bruno Haible  <bruno@clisp.org>
87248
87249         * modules/getndelim2: New file.
87250         * modules/getline: Share files with module getndelim2.
87251         * modules/getnline: Depend on getndelim2 instead of sharing files with
87252         it. Add getnline.c to lib_SOURCES.
87253         * MODULES.html.sh (func_all_modules): Add getndelim2.
87254
87255 2003-07-18  Bruno Haible  <bruno@clisp.org>
87256
87257         * m4/getndelim2.m4: New file.
87258         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
87259         invoke gl_PREREQ_GETNDELIM2.
87260         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
87261         gl_PREREQ_GETNDELIM2.
87262         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
87263         gl_GETNDELIM2.
87264
87265 2003-07-18  Bruno Haible  <bruno@clisp.org>
87266
87267         * lib/getndelim2.h: New file.
87268         * lib/getndelim2.c: Make into a module of its own. Include config.h,
87269         getndelim2.h.
87270         (getndelim2): Make non-static. Change return type to ssize_t.
87271         * lib/getline.h: Change argument names.
87272         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
87273         * lib/getnline.c: Include getndelim2.h.
87274
87275 2003-07-18  Andreas Schwab  <schwab@suse.de>
87276
87277         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
87278
87279 2003-07-17  Karl Berry  <karl@gnu.org>
87280
87281         * config/config.sub: update from prep.
87282
87283 2003-07-17  Bruno Haible  <bruno@clisp.org>
87284
87285         * modules/getnline: New file.
87286         * modules/getline: Add lib/getndelim2.c to source file list.
87287         * MODULES.html.sh (func_all_modules): Add getnline.
87288
87289 2003-07-17  Bruno Haible  <bruno@clisp.org>
87290
87291         * m4/getnline.m4: New file.
87292
87293 2003-07-17  Bruno Haible  <bruno@clisp.org>
87294
87295         * m4/Makefile.am.in: Remove file.
87296         * m4/Makefile.am: Remove file.
87297         * m4/Makefile.in: Remove file.
87298
87299 2003-07-17  Bruno Haible  <bruno@clisp.org>
87300
87301         * lib/getnline.h: New file.
87302         * lib/getnline.c: New file.
87303         * lib/getndelim2.c: New file, extracted from getline.c.
87304         (getndelim2): Renamed from getdelim2, with added nmax argument.
87305         * lib/getline.c: Include getndelim2.c.
87306         (getdelim2): Moved out to getndelim2.c.
87307         (getline, getdelim): Update.
87308
87309 2003-07-17  Bruno Haible  <bruno@clisp.org>
87310
87311         * lib/Makefile.am: Remove file.
87312         * lib/Makefile.in: Remove file.
87313
87314 2003-07-17  Bruno Haible  <bruno@clisp.org>
87315
87316         * configure.in: Remove file.
87317         * Makefile.in: Remove file.
87318
87319 2003-07-17  Bruno Haible  <bruno@clisp.org>
87320
87321         * MODULES.html.sh: Put the </BODY> right before </HTML>.
87322
87323 2003-07-16  Karl Berry  <karl@gnu.org>
87324
87325         * config/srclist-update: was running fixlicense twice, which caused
87326                 texinfo.tex to be nullified for some reason.  Simplify,
87327                 $gplsrc is no longer needed as far as I can see?
87328
87329 2003-07-16  Jim Meyering  <jim@meyering.net>
87330
87331         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
87332
87333 2003-07-15  Paul Eggert  <eggert@twinsun.com>
87334
87335         * config/srclist.txt: Get the following files from gettext-runtime/intl
87336         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
87337         ref-del.sin.  From Bruno Haible.
87338         * config/srclist-update (fixfile): Change grep pattern again, since the
87339         previous fix didn't work (there was another trailing $).  Use
87340         '[$]' to escape the $s.
87341
87342 2003-07-15  Karl Berry  <karl@gnu.org>
87343
87344         * lib/vasnprintf.c: update from gettext.
87345
87346 2003-07-15  Karl Berry  <karl@gnu.org>
87347
87348         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
87349         gets expanded when surrounded by '$'.
87350
87351 2003-07-15  Jim Meyering  <jim@meyering.net>
87352
87353         * modules/save-cwd: Don't depend on error.  From Derek Price.
87354
87355 2003-07-15  Jim Meyering  <jim@meyering.net>
87356
87357         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
87358
87359 2003-07-14  Simon Josefsson  <jas@extundo.com>
87360
87361         * modules/mempcpy: New file.
87362         * MODULES.html.sh (func_all_modules): Add mempcpy.
87363
87364 2003-07-14  Simon Josefsson  <jas@extundo.com>
87365
87366         * m4/mempcpy.m4: New file.
87367
87368 2003-07-14  Simon Josefsson  <jas@extundo.com>
87369
87370         * lib/mempcpy.h: New file.
87371         * lib/mempcpy.c: New file.
87372
87373 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87374
87375         * modules/getdate, modules/posixtm: Depend on mktime.
87376
87377 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87378
87379         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
87380         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
87381         unicodeio.c, unicodeio.h, unlocked-io.h:
87382         Switch from LGPL to GPL.
87383
87384 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87385
87386         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
87387         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
87388         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
87389         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
87390         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
87391         updated automatically by ../config/srclist-update.  This changes
87392         their license from LPGL to GPL.
87393
87394 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87395
87396         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
87397         assumed to refer to the root of the most recent stable gettext version.
87398         * config/srclistvars.sh: Add defaults for eggert.
87399         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
87400         Match "This program" as well as "The program".  This is needed
87401         for gettext.
87402
87403 2003-07-14  Jim Meyering  <jim@meyering.net>
87404
87405         Don't emit diagnostics.  Let callers do that.
87406         * lib/save-cwd.c: Don't include "error.h".
87407         (save_cwd): Don't call error.  Ensure that errno is valid
87408         when returning nonzero.
87409
87410         * lib/save-cwd.h (restore_cwd): Update prototype.
87411         * lib/save-cwd.c (restore_cwd): Remove two parameters.
87412         Simplify.  Don't call error upon failure.  Let callers do that.
87413         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
87414         when auditing is enabled.  But don't bother updating the #if.
87415
87416 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
87417
87418         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
87419         it breaks C++ compilation.
87420         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
87421
87422 2003-07-10  Simon Josefsson  <jas@extundo.com>
87423
87424         * modules/strchrnul (Makefile.am): Add strchrnul.h.
87425
87426 2003-07-10  Jim Meyering  <jim@meyering.net>
87427
87428         * m4/clock_time.m4: Remove trailing blank.
87429         * m4/intmax_t.m4: Likewise.
87430
87431 2003-07-10  Jim Meyering  <jim@meyering.net>
87432
87433         * lib/vasnprintf.c: Remove trailing blanks.
87434         Make cpp indentation consistent.
87435
87436 2003-07-09  Paul Eggert  <eggert@twinsun.com>
87437
87438         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
87439         posixver.c, strftime.c, strnlen.c, strverscmp.c:
87440         Switch from LGPL to GPL.
87441
87442 2003-07-09  Paul Eggert  <eggert@twinsun.com>
87443
87444         * config/srclist.txt: Sort sublists.  Add
87445         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
87446         that differ from gnulib for one reason or another; we'd like this list
87447         to be smaller but for now let's document what we have.
87448
87449 2003-07-08  Paul Eggert  <eggert@twinsun.com>
87450
87451         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
87452         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
87453         and sweeter "eval x=$x".
87454         * config/srclist.txt: Get lib/argp* from glibc.
87455
87456 2003-07-07  Paul Eggert  <eggert@twinsun.com>
87457
87458         * lib/mktime.c: Fix some boundary cases and remove need for floating
87459         point.
87460
87461         Issue a compile-time diagnostic if time_t is floating point, or if
87462         two's complement arithmetic is not in effect, or if arithmetic
87463         right shift does not propagate the sign.  These assumptions were
87464         all in the original code but they weren't checked.
87465
87466         (TIME_T_MIDPOINT, verify): New macros.
87467         (__isleap): Remove; it has integer overflow problems.
87468         (leapyear): New function, without those problems.
87469         (ydhms_tm_diff): Remove; splitting into two parts.
87470         (ydhms_diff): New function, containing the arithmetic part of
87471         the old ydhms_tm_diff function.  Issue a compile-time
87472         diagnostic if we are not using C99 integer division.
87473         Avoid casts when possible.
87474         (guess_time_tm): New function, containing the checking part of
87475         the old ydhms_tm_diff function.  Return the new value, rather than
87476         the difference between it and the old.  Accept a new argument T
87477         so that *T specifies the old value.  Check for overflow in the result.
87478
87479         (__mktime_internal): Use a time_t offset, not a long int offset.
87480         This undoes the 2003-06-04 change, which is no longer needed now
87481         that we have better overflow checking.
87482         (localtime_offset): Likewise.
87483
87484         (__mktime_internal): Avoid harmful overflow on hosts where time_t
87485         and long are 64-bit but int is only 32-bit.
87486         (ydhms_diff): Use long int to store year1 and yday1.
87487         Issue a compile-time diagnostic if long int is not wide enough.
87488
87489         (__mktime_internal): Use long int to store adjusted year and yday.
87490         Use plain C rather than preprocessor commands, if that doesn't
87491         affect efficiency.
87492         Check for overflow (and try to repair) after each probe
87493         rather than checking only at the very end.  This avoids some bugs
87494         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
87495         does not equal GMT offset at maximum time).
87496         Use integer to check for overflow rather than floating point; this
87497         is more portable to non-IEEE hosts, and is a tad faster.
87498         When we detect that we are oscillating between two values,
87499         don't check whether tm_isdst has the requested value, since
87500         we already know the answer.  When tm_isdst has the wrong value,
87501         use a different heuristic to find the right one, based on the
87502         extreme values actually observed in practice in tz2003a,
87503         rather than the (overly optimistic) "previous 3 calendar quarters".
87504
87505         (not_equal_tm, print_tm, check_result): Use "const T" rather than
87506         "T const" to accommodate glibc style.
87507         (check_result): Use less-confusing report format.  "long" -> "long int.
87508         (main): Likewise.
87509         Don't loop if the iteration overflows time_t.
87510         Allow a negative step in the iteration.
87511
87512 2003-07-06  Karl Berry  <karl@gnu.org>
87513
87514         * config/depcomp: update from automake.
87515         * config/config.sub: update from prep.
87516
87517 2003-07-03  Karl Berry  <karl@gnu.org>
87518
87519         * config/config.guess: update from prep.
87520
87521 2003-07-01  Paul Eggert  <eggert@twinsun.com>
87522
87523         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
87524         xreadlink.c now includes it unconditionally.
87525
87526 2003-07-01  Paul Eggert  <eggert@twinsun.com>
87527
87528         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
87529         having it depend on HAVE_SYS_TYPES_H.
87530
87531 2003-07-01  Bruno Haible  <bruno@clisp.org>
87532
87533         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
87534         <sys/types.h> should be sufficient.
87535         Reported by Paul Eggert.
87536
87537 2003-06-26  Karl Berry  <karl@gnu.org>
87538
87539         * config/depcomp: update from automake.
87540
87541 2003-06-26  Bruno Haible  <bruno@clisp.org>
87542
87543         * modules/human: Depend on module stdbool.
87544
87545 2003-06-25  Bruno Haible  <bruno@clisp.org>
87546
87547         * modules/readlink: New file.
87548         * modules/xreadlink: Depend on it.
87549         * MODULES.html.sh (func_all_modules): Add readlink.
87550
87551 2003-06-25  Bruno Haible  <bruno@clisp.org>
87552
87553         * m4/readlink.m4: New file.
87554
87555 2003-06-25  Bruno Haible  <bruno@clisp.org>
87556
87557         * lib/readlink.c: New file.
87558
87559 2003-06-22  Karl Berry  <karl@gnu.org>
87560
87561         * config/srclist.txt: update mkinstalldirs from automake.
87562         * config/mkinstalldirs: update.
87563
87564 2003-06-22  Bruno Haible  <bruno@clisp.org>
87565
87566         Portability to mingw32.
87567         * m4/ssize_t.m4: New file, from GNU gettext.
87568         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
87569         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
87570
87571 2003-06-22  Bruno Haible  <bruno@clisp.org>
87572
87573         * modules/safe-read: Add m4/ssize_t.m4.
87574         * modules/xreadlink: Add m4/ssize_t.m4.
87575
87576 2003-06-20  Bruno Haible  <bruno@clisp.org>
87577
87578         Assume C89, so PARAMS isn't needed.
87579         * lib/unicodeio.h (PARAMS): Remove.
87580         * lib/unicodeio.c: Don't use PARAMS.
87581
87582 2003-06-18  Karl Berry  <karl@gnu.org>
87583
87584         * config/config.{guess,sub}: update from prep.
87585
87586 2003-06-18  Jim Meyering  <jim@meyering.net>
87587
87588         Merge changes from coreutils.
87589         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
87590         Remove explicit declarations of xmalloc and realloc.
87591         Include xalloc.h.
87592         (read_utmp): Remove anachronistic cast of xmalloc.
87593
87594 2003-06-17  Paul Eggert  <eggert@twinsun.com>
87595
87596         Assume C89, so PARAMS isn't needed.
87597         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
87598         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
87599         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
87600         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
87601         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
87602         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
87603         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
87604         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
87605         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
87606         lib/xstrtod.h, lib/xstrtol.h: Likewise.
87607         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
87608         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
87609         no longer needed. Anyway, config.h should always be included before any
87610         other file.
87611
87612 2003-06-11  Simon Josefsson  <jas@extundo.com>
87613
87614         * modules/sysexits: New file.
87615         * MODULES.html.sh (func_all_modules): Add sysexits.
87616
87617 2003-06-11  Simon Josefsson  <jas@extundo.com>
87618
87619         * lib/sysexit_.h: New file.
87620
87621 2003-06-11  Derek Price  <derek@ximbiot.com>
87622
87623         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
87624         necessary.
87625
87626 2003-06-11  Bruno Haible  <bruno@clisp.org>
87627
87628         * m4/sysexits.m4: New file.
87629
87630 2003-06-10  Simon Josefsson  <jas@extundo.com>
87631
87632         * lib/argp.h: New file, from glibc.
87633         * lib/argp-ba.c: New file, from glibc.
87634         * lib/argp-eexst.c: New file, from glibc.
87635         * lib/argp-fmtstream.c: New file, from glibc.
87636         * lib/argp-fmtstream.h: New file, from glibc.
87637         * lib/argp-fs-xinl.c: New file, from glibc.
87638         * lib/argp-help.c: New file, from glibc.
87639         * lib/argp-namefrob.h: New file, from glibc.
87640         * lib/argp-parse.c: New file, from glibc.
87641         * lib/argp-pv.c: New file, from glibc.
87642         * lib/argp-pvh.c: New file, from glibc.
87643         * lib/argp-xinl.c: New file, from glibc.
87644
87645 2003-06-10  Simon Josefsson  <jas@extundo.com>
87646
87647         * modules/strchrnul: New file.
87648
87649 2003-06-10  Simon Josefsson  <jas@extundo.com>
87650
87651         * modules/argp: New file.
87652
87653 2003-06-10  Simon Josefsson  <jas@extundo.com>
87654
87655         * m4/strchrnul.m4: New file.
87656
87657 2003-06-10  Simon Josefsson  <jas@extundo.com>
87658
87659         * lib/strchrnul.h: New file.
87660         * lib/strchrnul.c: New file.
87661
87662 2003-06-10  Bruno Haible  <bruno@clisp.org>
87663
87664         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
87665
87666 2003-06-07  Karl Berry  <karl@gnu.org>
87667
87668         * config/config.{guess,sub}: update from prep.
87669
87670 2003-06-07  Jim Meyering  <jim@meyering.net>
87671
87672         * modules/strtod: Use $(...) notation, not @...@ for
87673         AC_REPLACE'd variables.
87674         * modules/localcharset: Likewise.
87675
87676 2003-06-07  Jim Meyering  <jim@meyering.net>
87677
87678         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
87679         in place of my name in the copyright comment.
87680         Remove definition and uses of __P.
87681
87682         From coreutils.
87683         * lib/stat.c: Don't declare xmalloc explicitly.
87684         Instead, include "xalloc.h".
87685         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
87686         xrealloc, and xcalloc return values.
87687         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
87688         Improve comment.
87689         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
87690
87691 2003-06-07  Bruno Haible  <bruno@clisp.org>
87692
87693         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
87694         avoid AC_CONFIG_LINKS.
87695         * modules/fnmatch (Makefile.am): Use explicit creation rule for
87696         fnmatch.h, to avoid AC_CONFIG_LINKS.
87697         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
87698
87699 2003-06-07  Bruno Haible  <bruno@clisp.org>
87700
87701         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
87702         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
87703         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
87704         directory.
87705         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
87706         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
87707         directory.
87708
87709 2003-06-06  Jim Meyering  <jim@meyering.net>
87710
87711         Merge from coreutils.
87712         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
87713         Consolidate declarations and initializations of *_base* locals.
87714
87715         Merge from coreutils.
87716         This avoids a core dump on systems without GNU putenv,
87717         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
87718         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
87719         (unsetenv): New static function, from GNU libc.
87720         (rpl_putenv): Use it.
87721
87722         * lib/modechange.c: Remove trailing blanks.
87723
87724         Merge from coreutils.
87725         * lib/fsusage.c: Remove declaration of statfs.
87726         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
87727
87728         * lib/posixtm.c: Include <stdbool.h> unconditionally.
87729
87730 2003-06-06  Jim Meyering  <jim@meyering.net>
87731
87732         * lib/stdbool_.h: Renamed from stdbool.h.in.
87733
87734 2003-06-06  Jim Meyering  <jim@meyering.net>
87735             Bruno Haible  <bruno@clisp.org>
87736
87737         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
87738         Adjust Makefile.am snippet not to redirect directly to target.
87739         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
87740
87741 2003-06-05  Paul Eggert  <eggert@twinsun.com>
87742
87743         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
87744         mismatch, look in future quarters as well as past.  This fixes a
87745         bug when processing fall-backwards gaps immediately after a long
87746         period of daylight-saving time.
87747
87748         * lib/mktime.c: Assume freestanding C89 or better.
87749         (HAVE_LIMITS_H): Remove.  Assume it's 1.
87750         (__P): Remove; not used.
87751         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
87752         (mktime, not_equal_tm, print_tm, check_result,
87753         main): Use prototypes.  Use const * where appropriate.
87754         (main): Fix typo in testing code that uncovered by above changes.
87755         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
87756
87757 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87758
87759         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
87760         locale.h, localeconv.  This merges changes from coreutils.
87761
87762         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
87763         It can be removed after the next Autoconf is released.
87764         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
87765         needed.
87766
87767 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87768
87769         * lib/mktime.c: Fix Debian bug 177940
87770         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
87771         (localtime_offset): Now long int, not time_t, because we want it
87772         to be guaranteed to be signed.  All uses changed.
87773         (__mktime_internal): If overflow would occur when adding offset,
87774         don't add it.
87775
87776         Merge 'human' changes from coreutils.  Rewrite to support
87777         locale-specific notations like thousands separators.
87778         * lib/human.c: Simplify authorship notice.
87779         Include human.h immediately after config.h.
87780         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
87781         <limits.h>: Do not include, since human.h does.
87782         (SIZE_MAX, UINTMAX_MAX): New macros.
87783         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
87784         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
87785         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
87786         (power_letter): Renamed from suffixes.
87787         (generate_suffix_backwards): Remove.
87788         (adjust_value): Now takes int style (because of human.h changes)
87789         and long double value (for greater precision on some platforms).
87790         (group_number): New function.
87791         (human_readable): Use it.  Use integer options, not enum.
87792         Put the options before the sizes in the arg list.
87793         Support all the new options.
87794         The old human_readable function has been removed;
87795         use inttostr.h instead.
87796         (human_readable, default_block_size, humblock):
87797         Use uintmax_t, not int, for block sizes.
87798         (human_readable_inexact, block_size_types): Remove.
87799         (block_size_opts): New constant.
87800         (human_options): Renamed from human_block_size, with new signature
87801         that allows block sizes up to UINTMAX_MAX.  All callers changed.
87802         * lib/human.h: Add copyright and authorship notice.
87803         Include <limits.h> and <stdbool.h> unconditionally.
87804         (PARAMS): Remove.  All uses removed.
87805         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
87806         (enum human_inexact_style): Remove tag; now a nameless enum.
87807         (human_floor, human_ceiling, human_round_to_even): Now have
87808         values 2, 0, 1 rather than -1, 1, 0.
87809         (human_group_digits, human_suppress_point_zero, human_autoscale,
87810         human_base_1024, human_SI, human_B): New constants.
87811         (human_readable_inexact, human_block_size): Remove.
87812         (human_readable): Size args are now uintmax_t, not int.
87813         (human_options): New decl.
87814
87815         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
87816         unnecessary now that we assume C89 or better.  This change
87817         imported from coreutils.
87818
87819         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
87820         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
87821         in the 2003-05-30 sync from glibc.
87822
87823         .h files should stand alone, but we shouldn't include <sys/types.h>
87824         if we can get away with just <stddef.h>.
87825
87826         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
87827         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
87828         rather than <sys/types.h>, as we merely need size_t.
87829         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
87830         to get size_t.
87831         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
87832         Include <stdio.h>, to get FILE.
87833         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
87834         memcasecmp.h has included <stddef.h> and all we need is size_t.
87835         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
87836         our interface, instead of including <sys/types.h>
87837
87838 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87839
87840         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
87841         now, as glibc mktime is buggy on non-glibc systems.
87842
87843 2003-06-03  Karl Berry  <karl@gnu.org>
87844
87845         * config/config.sub: update from prep.
87846
87847 2003-06-02  Paul Eggert  <eggert@twinsun.com>
87848
87849         [from coreutils]
87850         Fix some minor time-related bugs with POSIX time arguments.
87851         Some valid time stamps were being rejected (notably -1, and
87852         time stamps before 1900 on 64-bit hosts).  And some invalid
87853         time stamps were being accepted, e.g. September 31.
87854
87855         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
87856         that we can return (time_t) -1 successfully.
87857         * lib/posixtm.c: Likewise.
87858         [HAVE_STDBOOL_H]: Include <stdbool.h>.
87859         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
87860         (t): Remove static var.
87861         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
87862         of static var.  All uses changed.
87863         (year): Do not reject years before 1900; they can occur with
87864         64-bit time_t.
87865         (posix_time_parse): Do not check for out-of-range components;
87866         that is now the caller's responsibility, since our checks were
87867         only approximations.
87868         (posixtime): Use mktime to check for out-of-range components,
87869         since it knows them exactly.
87870         If mktime returns (time_t) -1, check whether an error actually occurred
87871         by invoking localtime on -1.
87872         (main) [TEST_POSIXTIME]: Check for input data errors, and report
87873         posixtime failures better.
87874         Improve the test data (in comments only).
87875
87876 2003-06-02  Karl Berry  <karl@gnu.org>
87877
87878         * config/mkinstalldirs (version): new variable.
87879         (--version): new option.
87880         (usage): improve message.
87881
87882 2003-05-30  Karl Berry  <karl@gnu.org>
87883
87884         * lib/mktime.c: update from libc.
87885
87886 2003-05-30  Bruno Haible  <bruno@clisp.org>
87887
87888         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
87889         * config/config.rpath: Upgrade to gettext-0.12.1.
87890
87891 2003-05-30  Bruno Haible  <bruno@clisp.org>
87892
87893         * m4/gettext.m4: Upgrade to gettext-0.12.1.
87894         * m4/nls.m4: New file, from gettext-0.12.1.
87895         * m4/po.m4: New file, from gettext-0.12.1.
87896         * m4/progtest.m4: Upgrade to gettext-0.12.1.
87897
87898 2003-05-30  Bruno Haible  <bruno@clisp.org>
87899
87900         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
87901         * lib/localcharset.h: Likewise.
87902         * lib/localcharset.c: Likewise.
87903
87904 2003-05-29  Karl Berry  <karl@gnu.org>
87905
87906         * config/config.rpath: update from gettext.
87907
87908 2003-05-28  Paul Eggert  <eggert@twinsun.com>
87909
87910         Assume the headers required for C89 freestanding compilers.
87911         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
87912         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
87913         * m4/human.m4 (gl_HUMAN): Likewise.
87914         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
87915         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
87916         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87917         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
87918         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87919         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
87920
87921 2003-05-28  Paul Eggert  <eggert@twinsun.com>
87922
87923         Assume the headers required for C89 freestanding compilers.
87924         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
87925         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
87926         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
87927         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
87928         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
87929         define, since <limits.h> is guaranteed to do that.
87930         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
87931         * lib/exclude.c: Include <stdbool.h> unconditionally.
87932         * lib/tempname.c: Include <stddef.h> unconditionally.
87933         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
87934         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
87935         <stddef.h> does that.
87936         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
87937         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
87938         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
87939         needed.
87940         * lib/xstrtol.c: Likewise.
87941         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
87942         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
87943
87944         * lib/addext.c (addext): Use assignment rather than cast, to avoid
87945         warnings on some platforms.
87946
87947         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
87948         arbitrarily.
87949
87950 2003-05-26  Jim Meyering  <jim@meyering.net>
87951
87952         Merge in a change from coreutils:
87953         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
87954         that is guaranteed to be `no'.  Use `no_such_member' to indicate
87955         that condition, rather than `-1' which is slightly misleading.
87956         Change the name of the cache variable to have the gl_ prefix.
87957         Prompted by a patch from Richard Dawe for DJGPP.
87958
87959 2003-05-24  Karl Berry  <karl@gnu.org>
87960
87961         * config/config.guess: update from prep.
87962
87963 2003-05-22  Karl Berry  <karl@gnu.org>
87964
87965         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
87966
87967 2003-05-20  Karl Berry  <karl@gnu.org>
87968
87969         * config/config.guess: update from prep.
87970
87971 2003-05-18  Karl Berry  <karl@gnu.org>
87972
87973         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
87974         might actually be set by the user.
87975
87976         * config/depcomp, install-sh, mdate-sh: update from automake.
87977
87978 2003-05-17  Bruno Haible  <bruno@clisp.org>
87979
87980         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
87981         invalid expansion for AC_EGREP_CPP.
87982         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
87983         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
87984         Suggested by Akim Demaille <akim@epita.fr> in
87985         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
87986
87987 2003-05-12  Jim Meyering  <jim@meyering.net>
87988
87989         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
87990         the space-padded-by-default conversion specifiers, %e, %k, %l.
87991
87992 2003-05-12  Bruno Haible  <bruno@clisp.org>
87993
87994         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
87995         the string is longer than 4 KB.
87996
87997 2003-05-11  Karl Berry  <karl@gnu.org>
87998
87999         * config/config.{guess,sub}: update from prep.
88000
88001 2003-05-09  Bruno Haible  <bruno@clisp.org>
88002
88003         * modules/error: Add m4/strerror_r.m4 to file list.
88004
88005 2003-05-03  Bruno Haible  <bruno@clisp.org>
88006
88007         Upgrade to Unicode-4.0.
88008         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
88009         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
88010         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
88011         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
88012         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
88013         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
88014         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
88015         Change width of U+E0100..U+E01EF from 1 to 0.
88016
88017 2003-04-25  Jim Meyering  <jim@meyering.net>
88018
88019         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
88020         of type size_t, not int.
88021
88022 2003-04-25  Bruno Haible  <bruno@clisp.org>
88023
88024         * lib/copy-file.c: Include <stddef.h>, for size_t.
88025
88026 2003-04-21  Paul Eggert  <eggert@twinsun.com>
88027
88028         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
88029         code which expansion is under static control.  Patch imported from
88030         Akim Demaille's patch to Bison; see
88031         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
88032
88033 2003-04-14  Bruno Haible  <bruno@clisp.org>
88034
88035         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
88036
88037 2003-04-11  Jim Meyering  <jim@meyering.net>
88038
88039         Merge changes from Coreutils.
88040
88041         2003-03-22  Jim Meyering  <jim@meyering.net>
88042
88043         * lib/strftime.c (widen): Cast alloca return value to proper type.
88044
88045         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
88046
88047         From GNU libc.
88048         * lib/strftime.c (my_strftime): Handle very large width
88049         specifications for numeric values correctly.  Improve checks for
88050         overflow.
88051
88052         2003-01-19  Jim Meyering  <jim@meyering.net>
88053
88054         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
88055         definitions.
88056         (nl_get_alt_digit) [! defined my_strftime]: Define.
88057         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
88058         _nl_get_alt_digit and _nl_get_walt_digit.
88059
88060         * lib/strftime.c (my_strftime): Merge in locale-related changes from
88061         libc. These changes have no effect outside of _LIBC.
88062
88063 2003-04-10  Bruno Haible  <bruno@clisp.org>
88064
88065         * modules/findprog: New file.
88066         * MODULES.html.sh (func_all_modules): Add it.
88067
88068 2003-04-10  Bruno Haible  <bruno@clisp.org>
88069
88070         * m4/findprog.m4: New file.
88071         * m4/eaccess.m4: New file.
88072
88073 2003-04-10  Bruno Haible  <bruno@clisp.org>
88074
88075         * lib/findprog.h: New file, from GNU gettext.
88076         * lib/findprog.c: New file, from GNU gettext.
88077
88078 2003-04-05  Jim Meyering  <jim@meyering.net>
88079
88080         Merge changes from Coreutils.
88081
88082         * lib/exclude.h (PARAMS): Remove definition and uses.
88083         * lib/exclude.c: Remove uses of `PARAMS'.
88084
88085         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
88086         Add test-cases for DOS filenames. Declare program_name.
88087         (main): Set up program_name.  Patch by Rich Dawe.
88088
88089         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88090         error from mntctl.
88091         Use mntctl's return value to drive the entry-processing loop, since
88092         we can't rely on the value of the vmt_length member in the last
88093         entry.  On some systems doing so could result in exhausting
88094         virtual memory.  Based in part on a patch from Mike Jetzer.
88095
88096 2003-04-04  Bruno Haible  <bruno@clisp.org>
88097
88098         * modules/linebreak: New file.
88099         * MODULES.html.sh (func_all_modules): Add it.
88100
88101 2003-04-04  Bruno Haible  <bruno@clisp.org>
88102
88103         * m4/linebreak.m4: New file.
88104
88105 2003-04-04  Bruno Haible  <bruno@clisp.org>
88106
88107         * lib/linebreak.h: New file, from GNU gettext.
88108         * lib/linebreak.c: New file, from GNU gettext with slight
88109         modifications.
88110         * lib/lbrkprop.h: New file, from GNU gettext.
88111
88112 2003-04-03  Bruno Haible  <bruno@clisp.org>
88113
88114         * modules/utf8-ucs4: New file.
88115         * modules/utf16-ucs4: New file.
88116         * modules/ucs4-utf8: New file.
88117         * modules/ucs4-utf16: New file.
88118         * MODULES.html.sh (func_all_modules): Add them.
88119
88120 2003-04-03  Bruno Haible  <bruno@clisp.org>
88121
88122         * m4/utf-ucs4.m4: New file.
88123         * m4/ucs4-utf.m4: New file.
88124
88125 2003-04-03  Bruno Haible  <bruno@clisp.org>
88126
88127         * lib/utf8-ucs4.h: New file, from GNU gettext.
88128         * lib/utf16-ucs4.h: New file, from GNU gettext.
88129         * lib/ucs4-utf8.h: New file, from GNU gettext.
88130         * lib/ucs4-utf16.h: New file, from GNU gettext.
88131
88132 2003-04-02  Bruno Haible  <bruno@clisp.org>
88133
88134         * modules/binary-io: New file.
88135         * MODULES.html.sh (func_all_modules): Add it.
88136
88137 2003-04-02  Bruno Haible  <bruno@clisp.org>
88138
88139         * lib/binary-io.h: New file, from GNU gettext.
88140
88141 2003-04-01  Bruno Haible  <bruno@clisp.org>
88142
88143         * modules/pathname: New file.
88144         * MODULES.html.sh (func_all_modules): Add it.
88145
88146 2003-04-01  Bruno Haible  <bruno@clisp.org>
88147
88148         * lib/pathname.h: New file, from GNU gettext.
88149         * lib/concatpath.c: New file, from GNU gettext.
88150
88151 2003-03-30  Bruno Haible  <bruno@clisp.org>
88152
88153         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
88154
88155 2003-03-30  Bruno Haible  <bruno@clisp.org>
88156
88157         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
88158         function chown() doesn't exist.
88159
88160 2003-03-28  Bruno Haible  <bruno@clisp.org>
88161
88162         * modules/copy-file: New file.
88163         * MODULES.html.sh (func_all_modules): Add it.
88164
88165 2003-03-28  Bruno Haible  <bruno@clisp.org>
88166
88167         * m4/copy-file.m4: New file.
88168
88169 2003-03-28  Bruno Haible  <bruno@clisp.org>
88170
88171         * lib/copy-file.h: New file, from GNU gettext.
88172         * lib/copy-file.c: New file, from GNU gettext.
88173
88174 2003-03-18  Jim Meyering  <jim@meyering.net>
88175
88176         * lib/quote.c (quote_n): Fix typo in comment.
88177
88178 2003-03-18  Bruno Haible  <bruno@clisp.org>
88179
88180         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
88181         checking.
88182         * m4/onceonly_2_57.m4: Likewise.
88183
88184 2003-03-17  Bruno Haible  <bruno@clisp.org>
88185
88186         * m4/onceonly.m4: Require autoconf 2.54 or newer.
88187         (m4_quote): Remove macro.
88188         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
88189
88190 2003-03-14  Jim Meyering  <jim@meyering.net>
88191
88192         Merge changes from Coreutils.
88193         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
88194         to be const, in order to avoid warnings.
88195         (obstack_room): Likewise.
88196         (obstack_empty_p): Likewise.
88197
88198 2003-03-14  Bruno Haible  <bruno@clisp.org>
88199
88200         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
88201         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
88202
88203 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88204
88205         Merge changes from Bison.
88206         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
88207         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
88208         when compiling Bison 1.875's `bitset bset = obstack_alloc
88209         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
88210         * lib/hash.c: Include <stdbool.h> unconditionally.
88211
88212 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88213
88214         * m4/onceonly.m4 (m4_quote): New macro.
88215         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
88216         Quote AC_FOREACH variable-expansions properly.
88217
88218 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88219
88220         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
88221
88222 2003-03-09  Paul Eggert  <eggert@twinsun.com>
88223
88224         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
88225         Reported by Bruce Becker; see:
88226         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
88227
88228 2003-03-03  Paul Eggert  <eggert@twinsun.com>
88229             Bruno Haible  <bruno@clisp.org>
88230
88231         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
88232         Reported by John Hughes, see
88233         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
88234
88235 2003-02-20  Bruno Haible  <bruno@clisp.org>
88236
88237         * MODULES.html.sh (func_all_modules): Add poll.
88238
88239 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88240
88241         * modules/poll: New file.
88242
88243 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88244
88245         * lib/poll_.h: New file.
88246         * lib/poll.c: New file.
88247
88248 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88249
88250         * m4/poll.m4: New file.
88251
88252 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88253
88254         * modules/mathl: New file.
88255
88256 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88257
88258         * lib/mathl.h: New file.
88259         * lib/acosl.c: New file.
88260         * lib/asinl.c: New file.
88261         * lib/atanl.c: New file.
88262         * lib/ceill.c: New file.
88263         * lib/cosl.c: New file.
88264         * lib/expl.c: New file.
88265         * lib/floorl.c: New file.
88266         * lib/frexpl.c: New file.
88267         * lib/ldexpl.c: New file.
88268         * lib/logl.c: New file.
88269         * lib/sincosl.c: New file.
88270         * lib/sinl.c: New file.
88271         * lib/sqrtl.c: New file.
88272         * lib/tanl.c: New file.
88273         * lib/trigl.c: New file.
88274         * lib/trigl.h: New file.
88275
88276 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88277
88278         * m4/mathl.m4: New file.
88279
88280 2003-02-18  Bruno Haible  <bruno@clisp.org>
88281
88282         * MODULES.html.sh (func_all_modules): Add mathl.
88283
88284 2003-02-17  Bruno Haible  <bruno@clisp.org>
88285
88286         * modules/mkdtemp: New module.
88287         * MODULES.html.sh (func_all_modules): Add it.
88288
88289 2003-02-17  Bruno Haible  <bruno@clisp.org>
88290
88291         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
88292
88293 2003-02-17  Bruno Haible  <bruno@clisp.org>
88294
88295         * lib/mkdtemp.h: New file, from GNU gettext.
88296         * lib/mkdtemp.c: New file, from GNU gettext.
88297
88298 2003-02-02  Jim Meyering  <jim@meyering.net>
88299
88300         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
88301         e.g. glibc-2.2.93.
88302
88303 2003-01-31  Bruno Haible  <bruno@clisp.org>
88304
88305         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
88306         'rpl_rename'.
88307         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
88308         'rpl_strnlen'.
88309         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
88310         'rpl_strtod'.
88311         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
88312         'rpl_utime'.
88313
88314 2003-01-31  Bruno Haible  <bruno@clisp.org>
88315
88316         * lib/rename.c: #undef rename before defining rpl_rename.
88317         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
88318
88319 2003-01-30  Bruno Haible  <bruno@clisp.org>
88320
88321         * modules/vasnprintf, modules/vasprintf: New modules.
88322         * MODULES.html.sh (func_all_modules): Add them.
88323
88324 2003-01-30  Bruno Haible  <bruno@clisp.org>
88325
88326         * m4/signed.m4: New file, from GNU gettext.
88327         * m4/longdouble.m4: New file, from GNU gettext.
88328         * m4/wchar_t.m4: New file, from GNU gettext.
88329         * m4/wint_t.m4: New file, from GNU gettext.
88330         * m4/vasnprintf.m4: New file.
88331         * m4/vasprintf.m4: New file.
88332
88333 2003-01-30  Bruno Haible  <bruno@clisp.org>
88334
88335         * lib/printf-args.h: New file, from GNU gettext.
88336         * lib/printf-args.c: New file, from GNU gettext.
88337         * lib/printf-parse.h: New file, from GNU gettext.
88338         * lib/printf-parse.c: New file, from GNU gettext.
88339         * lib/vasnprintf.h: New file, from GNU gettext.
88340         * lib/vasnprintf.c: New file, from GNU gettext.
88341         * lib/asnprintf.c: New file, from GNU gettext.
88342         * lib/vasprintf.h: New file, from GNU gettext with modifications.
88343         * lib/vasprintf.c: New file, from GNU gettext.
88344         * lib/asprintf.c: New file, from GNU gettext.
88345
88346 2003-01-29  Bruno Haible  <bruno@clisp.org>
88347
88348         * modules/stpncpy: New module.
88349         * MODULES.html.sh (func_all_modules): Add it.
88350
88351 2003-01-29  Bruno Haible  <bruno@clisp.org>
88352
88353         * m4/stpncpy.m4: New file.
88354
88355 2003-01-29  Bruno Haible  <bruno@clisp.org>
88356
88357         * lib/stpncpy.h: New file, from GNU gettext with modifications.
88358         * lib/stpncpy.c: New file, from GNU gettext with modifications.
88359
88360 2003-01-28  Bruno Haible  <bruno@clisp.org>
88361
88362         * modules/c-ctype: New module.
88363         * MODULES.html.sh (func_all_modules): Add it.
88364
88365 2003-01-28  Bruno Haible  <bruno@clisp.org>
88366
88367         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
88368         Paul Eggert.
88369         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
88370         Paul Eggert.
88371
88372 2003-01-27  Bruno Haible  <bruno@clisp.org>
88373
88374         * modules/xsetenv: New module.
88375         * MODULES.html.sh (func_all_modules): Add it.
88376
88377 2003-01-27  Bruno Haible  <bruno@clisp.org>
88378
88379         * lib/xsetenv.h: New file, from GNU gettext.
88380         * lib/xsetenv.c: New file, from GNU gettext.
88381
88382 2003-01-23  Jim Meyering  <jim@meyering.net>
88383
88384         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
88385         from working on systems without dirfd (at least Irix and OSF1/Tru64).
88386
88387 2003-01-23  Bruno Haible  <bruno@clisp.org>
88388
88389         * modules/minmax: New module.
88390         * MODULES.html.sh (func_all_modules): Add it.
88391
88392 2003-01-23  Bruno Haible  <bruno@clisp.org>
88393
88394         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
88395         Eggert.
88396
88397 2003-01-22  Bruno Haible  <bruno@clisp.org>
88398
88399         * modules/exit: New module.
88400         * MODULES.html.sh (func_all_modules): Add it.
88401
88402 2003-01-22  Bruno Haible  <bruno@clisp.org>
88403
88404         * lib/exit.h: New file, from GNU gettext.
88405
88406 2003-01-19  Bruno Haible  <bruno@clisp.org>
88407
88408         * gnulib-tool: Recognize option --extract-maintainer.
88409         (func_get_maintainer): New function.
88410         * modules/*: Add Maintainer entry.
88411
88412 2003-01-16  Jim Meyering  <jim@meyering.net>
88413
88414         * m4/regex.m4: The `regex' struct is both input and output.
88415         Initialize it before each use.  Patch by Tim Waugh.
88416
88417 2003-01-16  Bruno Haible  <bruno@clisp.org>
88418
88419         * MODULES.html.sh: Add a table of contents. Add the module name as
88420         leftmost column. Add hyperlinks.
88421
88422 2003-01-15  Bruno Haible  <bruno@clisp.org>
88423
88424         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
88425
88426 2003-01-15  Bruno Haible  <bruno@clisp.org>
88427
88428         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
88429         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
88430         suffix.
88431
88432 2003-01-15  Bruno Haible  <bruno@clisp.org>
88433
88434         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
88435
88436 2003-01-15  Bruno Haible  <bruno@clisp.org>
88437
88438         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
88439         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
88440
88441 2003-01-14  Jim Meyering  <jim@meyering.net>
88442
88443         * lib/same.c (same_name): Tweak a comment.
88444
88445 2003-01-14  Bruno Haible  <bruno@clisp.org>
88446
88447         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
88448         when a string comparison is sufficient.
88449
88450 2003-01-14  Bruno Haible  <bruno@clisp.org>
88451
88452         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
88453         'unsigned int'.
88454
88455 2003-01-14  Bruno Haible  <bruno@clisp.org>
88456
88457         * lib/hash-pjw.c: Add comment about low quality of this function.
88458
88459 2003-01-13  Bruno Haible  <bruno@clisp.org>
88460
88461         * modules/stpcpy: Distribute lib/stpcpy.h.
88462         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
88463
88464 2003-01-13  Bruno Haible  <bruno@clisp.org>
88465
88466         * modules/*: Add a description.
88467         * modules/strpbrk: Fix Makefile.am snippet.
88468         * modules/strtoimax: Fix dependencies.
88469         * modules/strtoumax: Likewise.
88470
88471 2003-01-13  Bruno Haible  <bruno@clisp.org>
88472
88473         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
88474         * modules/alloca (Makefile.am): All object files depend on alloca.h.
88475         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
88476
88477 2003-01-13  Bruno Haible  <bruno@clisp.org>
88478
88479         * gnulib-tool (func_create_testdir): Store config/* files in the main
88480         directory.
88481         * config.rpath: Move to ...
88482         * config/config.rpath: ... here.
88483         * modules/gettext: Contains config/config.rpath, not config.rpath.
88484         * modules/iconv: Likewise.
88485
88486 2003-01-12  Paul Eggert  <eggert@twinsun.com>
88487
88488         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
88489         to avoid collisions with libcurses and libreadline.
88490
88491         * m4/getstr.m4: Remove.
88492         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
88493
88494 2003-01-12  Paul Eggert  <eggert@twinsun.com>
88495
88496         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
88497         to avoid collisions with libcurses and libreadline.
88498
88499         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
88500         * lib/getstr.h, getstr.c: Remove.
88501         * lib/getline.c: Include "getline.h", to check interface.
88502         Move body of old getstr.c here: this defines MIN_CHUNK and
88503         declares getdelim2, which is renamed from getstr.
88504         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
88505
88506         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
88507         All uses changed.
88508         * lib/linebuffer.h: Likewise.
88509         (readline): Remove backward-compatibility macro.
88510
88511 2003-01-12  Paul Eggert  <eggert@twinsun.com>
88512
88513         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
88514         to avoid collisions with libcurses and libreadline.
88515         * getstr: Remove.
88516         * MODULES.html.sh: Remove getstr.
88517         * modules/getline: Depend on unlocked-io, not getstr.
88518
88519 2003-01-12  Jim Meyering  <jim@meyering.net>
88520
88521         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
88522
88523 2003-01-10  Bruno Haible  <bruno@clisp.org>
88524
88525         * modules/alloca: Change Makefile.am requirements. Simplify Include
88526         requirements. Add lib/alloca_.h to file list.
88527
88528 2003-01-10  Bruno Haible  <bruno@clisp.org>
88529
88530         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
88531
88532 2003-01-10  Bruno Haible  <bruno@clisp.org>
88533
88534         * lib/alloca_.h: New file.
88535         * lib/getdate.y: Unconditionally include alloca.h.
88536         * lib/makepath.c: Likewise.
88537         * lib/setenv.c: Likewise.
88538         * lib/userspec.c: Likewise.
88539
88540 2003-01-09  Karl Berry  <karl@gnu.org>
88541
88542         * MODULES.html.sh: include `dirname $0` in PATH, to find
88543         gnulib-tool.
88544
88545 2003-01-09  Bruno Haible  <bruno@clisp.org>
88546
88547         * modules/stdbool: Change configure.ac, Makefile.am requirements.
88548         Simplify Include requirements. Add lib/stdbool.h.in to file list.
88549
88550 2003-01-09  Bruno Haible  <bruno@clisp.org>
88551
88552         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
88553
88554 2003-01-09  Bruno Haible  <bruno@clisp.org>
88555
88556         * lib/stdbool.h.in: New file.
88557
88558 2003-01-09  Bruno Haible  <bruno@clisp.org>
88559
88560         * gnulib-tool (func_all_modules): Ignore files ending in ~.
88561         * MODULES.html.sh: Likewise.
88562
88563 2003-01-08  Jim Meyering  <jim@meyering.net>
88564
88565         * lib/full-write.c: Undefine and define-away `const' after inclusion
88566         of errno.h, not before.  Suggestion from Bruno Haible.
88567
88568 2003-01-08  Bruno Haible  <bruno@clisp.org>
88569
88570         * modules/full-read: Depend on full-write.
88571
88572 2003-01-08  Bruno Haible  <bruno@clisp.org>
88573
88574         * lib/safe-read.c: Include specification header first, to ensure its
88575         selfcontainedness.
88576         * lib/full-write.c: Likewise.
88577
88578 2003-01-07  Jim Meyering  <jim@meyering.net>
88579
88580         * lib/full-write.c: Rework so that it may serve to define full_read,
88581         too.
88582         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
88583
88584 2003-01-07  Bruno Haible  <bruno@clisp.org>
88585
88586         * lib/strtoimax.c: Include <stdint.h> as an alternative to
88587         <inttypes.h>.
88588         * lib/xstrtol.h: Likewise.
88589         * lib/xstrtoimax.c: Likewise.
88590         * lib/xstrtoumax.c: Likewise.
88591         * lib/human.h: Likewise.
88592
88593         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
88594         on systems that have <inttypes.h> but not <stdint.h>.
88595
88596 2003-01-07  Bruno Haible  <bruno@clisp.org>
88597
88598         * MODULES.html.sh: Add copyright notice.
88599         (missed_files): Omit CVS directory entries.
88600         (func_module): Make it work with sed-3.02.
88601         * MODULES.txt: Remove file.
88602
88603 2003-01-06  Jim Meyering  <jim@meyering.net>
88604
88605         * lib/version-etc.c: Update year in translatable copyright string.
88606
88607 2003-01-03  Karl Berry  <karl@gnu.org>
88608
88609         * config/config.{guess,sub}: update from prep.
88610
88611 2003-01-02  Karl Berry  <karl@gnu.org>
88612
88613         * doc/COPYING.DOC: belatedly updated to 1.2.
88614
88615 2003-01-01  Karl Berry  <karl@gnu.org>
88616
88617         * gnulib-tool (func_verify_module): report module name $module in
88618         error message, not $1.
88619         * gnulib-tool (create-testdir): don't complain if destdir couldn't
88620         be created, only if it doesn't exist.
88621         * gnulib-tool (last_checkin_date): don't expand the $Date here.
88622
88623 2002-12-31  Paul Eggert  <eggert@twinsun.com>
88624
88625         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
88626
88627 2002-12-31  Paul Eggert  <eggert@twinsun.com>
88628
88629         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
88630         memcmp if strcoll doesn't work.
88631
88632 2002-12-31  Bruno Haible  <bruno@clisp.org>
88633
88634         * lib/utime.c (utime_null): No need to call ftruncate if the file was
88635         nonempty.
88636
88637 2002-12-31  Bruno Haible  <bruno@clisp.org>
88638
88639         * lib/memcoll.c (STRCOLL): New macro.
88640         (memcoll): Use it.
88641
88642 2002-12-31  Bruno Haible  <bruno@clisp.org>
88643
88644         * lib/localcharset.h: New file.
88645         * lib/localcharset.c: Include it.
88646         * lib/unicodeio.c: Likewise.
88647
88648 2002-12-31  Bruno Haible  <bruno@clisp.org>
88649
88650         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
88651         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
88652
88653 2002-12-31  Bruno Haible  <bruno@clisp.org>
88654
88655         * lib/getline.h: Include <stddef.h>, for size_t.
88656
88657         * lib/unicodeio.h: Include <stddef.h>, for size_t.
88658         * lib/unicodeio.c: Don't include <stddef.h>.
88659
88660 2002-12-31  Bruno Haible  <bruno@clisp.org>
88661
88662         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
88663         HAVE_TM_ZONE.
88664
88665 2002-12-24  Karl Berry  <karl@gnu.org>
88666
88667         * config/config.guess: update from prep.
88668
88669 2002-12-24  Bruno Haible  <bruno@clisp.org>
88670
88671         General infrasructure.
88672         * m4/README: Rewritten.
88673         * m4/onceonly.m4: New file.
88674         * m4/onceonly_2_57.m4: New file.
88675
88676         Module atexit.
88677         * m4/atexit.m4: New file.
88678
88679         Module strtod.
88680         * m4/strtod.m4: New file.
88681
88682         Module strtol.
88683         * m4/strtol.m4: New file.
88684
88685         Module strtoul.
88686         * m4/strtoul.m4: New file.
88687
88688         Module memchr.
88689         * m4/memchr.m4: New file.
88690
88691         Module memcmp.
88692         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
88693         (jm_FUNC_MEMCMP): Invoke it.
88694
88695         Module memcpy.
88696         * m4/memcpy.m4: New file.
88697
88698         Module memmove.
88699         * m4/memmove.m4: New file.
88700
88701         Module memset.
88702         * m4/memset.m4: New file.
88703
88704         Module strcspn.
88705         * m4/strcspn.m4: New file.
88706
88707         Module strpbrk.
88708         * m4/strpbrk.m4: New file.
88709
88710         Module strstr.
88711         * m4/strstr.m4: New file.
88712
88713         Module strerror.
88714         * m4/strerror.m4: New file.
88715
88716         Module mktime.
88717         * m4/mktime.m4: Renamed from jm-mktime.m4.
88718         (gl_PREREQ_MKTIME): New macro.
88719         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
88720
88721         Module malloc.
88722         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
88723         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
88724         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
88725
88726         Module realloc.
88727         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
88728         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
88729         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
88730
88731         Module strftime.
88732         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
88733         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
88734         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
88735         gl_TM_GMTOFF.
88736         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
88737
88738         Module xalloc.
88739         * m4/xalloc.m4: New file.
88740
88741         Module alloca.
88742         * m4/alloca.m4: New file.
88743
88744         Module putenv.
88745         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
88746         (jm_FUNC_PUTENV): Invoke it.
88747
88748         Module setenv.
88749         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
88750         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
88751         when invoked twice.
88752         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
88753         gt_FUNC_SETENV.
88754
88755         Module memrchr.
88756         * m4/memrchr.m4: New file.
88757
88758         Module stpcpy.
88759         * m4/stpcpy.m4: New file.
88760
88761         Module strcase.
88762         * m4/strcase.m4: New file.
88763
88764         Module strdup.
88765         * m4/strdup.m4: New file.
88766
88767         Module strnlen.
88768         * m4/strnlen.m4: New file.
88769
88770         Module strndup.
88771         * m4/strndup.m4: New file.
88772
88773         Module xstrtod.
88774         * m4/xstrtod.m4: New file.
88775
88776         Module xstrtol.
88777         * m4/xstrtol.m4: New file.
88778
88779         Module getdate.
88780         * m4/getdate.m4: New file.
88781
88782         Module unlocked-io.
88783         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
88784         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
88785         * m4/jm-glibc-io.m4n: Remove file.
88786
88787         Module long-options.
88788         * m4/long-options.m4: New file.
88789
88790         Module md5.
88791         * m4/md5.m4: New file.
88792
88793         Module sha.
88794         * m4/sha.m4: New file.
88795
88796         Module getstr.
88797         * m4/getstr.m4: New file.
88798
88799         Module getline.
88800         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
88801         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
88802         <sys/types.h>, for size_t. Use the function name gnu_getline, not
88803         simply getline. Infoke gl_PREREQ_GETLINE.
88804
88805         Module obstack.
88806         * m4/obstack.m4: New file.
88807
88808         Module hash.
88809         * m4/hash.m4: New file.
88810
88811         Module readtokens.
88812         * m4/readtokens.m4: New file.
88813
88814         Module strverscmp.
88815         * m4/strverscmp.m4: New file.
88816
88817         Module stdbool.
88818         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
88819         OSF/1.
88820
88821         Module strtoll.
88822         * m4/strtoll.m4: New file.
88823
88824         Module strtoull.
88825         * m4/strtoull.m4: New file.
88826
88827         Module strtoimax.
88828         * m4/strtoimax.m4: New file.
88829
88830         Module strtoumax.
88831         * m4/strtoumax.m4: New file.
88832
88833         Module xstrtoimax.
88834         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
88835         jm_AC_PREREQ_XSTRTOIMAX.
88836         Moved the strtol prerequisites to strtol.m4.
88837         Moved the strtoll prerequisites to strtoll.m4.
88838         Moved the strtoimax prerequisites to strtoimax.m4.
88839
88840         Module xstrtoumax.
88841         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
88842         jm_AC_PREREQ_XSTRTOUMAX.
88843         Moved the strtoul prerequisites to strtoul.m4.
88844         Moved the strtoull prerequisites to strtoull.m4.
88845         Moved the strtoumax prerequisites to strtoumax.m4.
88846
88847         Module chown.
88848         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
88849         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
88850
88851         Module dup2.
88852         * m4/dup2.m4: New file.
88853
88854         Module ftruncate.
88855         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
88856         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
88857
88858         Module getgroups.
88859         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
88860         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
88861
88862         Module gettimeofday.
88863         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
88864         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
88865         gl_PREREQ_GETTIMEOFDAY.
88866
88867         Module mkdir.
88868         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
88869         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
88870
88871         Module mkstemp.
88872         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
88873         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
88874         jm_AC_TYPE_UINTMAX_T.
88875         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
88876
88877         Module stat.
88878         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
88879         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
88880
88881         Module lstat.
88882         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
88883         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
88884
88885         Module timespec.
88886         * m4/timespec.m4 (gl_TIMESPEC): New macro.
88887         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
88888         * m4/st_mtim.m4: Indentation.
88889
88890         Module nanosleep.
88891         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
88892         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
88893         gl_PREREQ_NANOSLEEP.
88894
88895         Module regex.
88896         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
88897         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
88898         (gl_REGEX): New macro.
88899
88900         Module rename.
88901         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
88902         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
88903
88904         Module rmdir.
88905         * m4/rmdir.m4: New file.
88906
88907         Module utime.
88908         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
88909         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
88910         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
88911
88912         Module dirname.
88913         * m4/dirname.m4: New file.
88914
88915         Module getopt.
88916         * m4/getopt.m4: New file.
88917
88918         Module unistd-safer.
88919         * m4/unistd-safer.m4: New file.
88920
88921         Module fnmatch.
88922         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
88923         declaration.
88924         (gl_PREREQ_FNMATCH_EXTRA): New macro.
88925         (gl_FUNC_FNMATCH_POSIX): New macro.
88926         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
88927         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
88928         simply fnmatch.
88929
88930         Module exclude.
88931         * m4/exclude.m4: New file.
88932
88933         Module human.
88934         * m4/human.m4: New file.
88935
88936         Module acl.
88937         * m4/acl.m4: Nop.
88938
88939         Module backupfile.
88940         * m4/backupfile.m4: New file.
88941         * m4/d-ino.m4: Indentation.
88942
88943         Module fsusage.
88944         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
88945         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
88946         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
88947
88948         Module dirfd.
88949         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
88950         requirements.
88951
88952         Module euidaccess.
88953         * m4/euidaccess.m4: New file.
88954
88955         Module file-type.
88956         * m4/file-type.m4: New file.
88957
88958         Module fileblocks.
88959         * m4/fileblocks.m4: New file.
88960
88961         Module filemode.
88962         * m4/filemode.m4: New file.
88963
88964         Module isdir.
88965         * m4/isdir.m4: New file.
88966
88967         Module lchown.
88968         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
88969         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
88970
88971         Module makepath.
88972         * m4/makepath.m4: New file.
88973
88974         Module modechange.
88975         * m4/modechange.m4: New file.
88976
88977         Module mountlist.
88978         * m4/mountlist.m4: New file.
88979         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
88980         Indentation.
88981
88982         Module path-concat.
88983         * m4/path-concat.m4: New file.
88984
88985         Module pathmax.
88986         * m4/pathmax.m4: New file.
88987
88988         Module same.
88989         * m4/same.m4: New file.
88990
88991         Module save-cwd.
88992         * m4/save-cwd.m4: New file.
88993
88994         Module savedir.
88995         * m4/savedir.m4: New file.
88996
88997         Module xgetcwd.
88998         * m4/xgetcwd.m4: New file.
88999         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
89000
89001         Module xreadlink.
89002         * m4/xreadlink.m4: New file.
89003
89004         Module safe-read.
89005         * m4/safe-read.m4: New file.
89006
89007         Module safe-write.
89008         * m4/safe-write.m4: New file.
89009
89010         Module closeout.
89011         * m4/closeout.m4: New file.
89012
89013         Module stdio-safer.
89014         * m4/stdio-safer.m4: New file.
89015
89016         Module getpass.
89017         * m4/getpass.m4: New file.
89018
89019         Module getugroups.
89020         * m4/getugroups.m4: New file.
89021
89022         Module group-member.
89023         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
89024         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
89025
89026         Module idcache.
89027         * m4/idcache.m4: New file.
89028
89029         Module userspec.
89030         * m4/userspec.m4: New file.
89031
89032         Module gettime.
89033         * m4/clock_time.m4: New file.
89034         * m4/gettime.m4: New file.
89035
89036         Module settime.
89037         * m4/settime.m4: New file.
89038
89039         Module posixtm.
89040         * m4/posixtm.m4: New file.
89041
89042         Module gethostname.
89043         * m4/gethostname.m4: New file.
89044
89045         Module canon-host.
89046         * m4/canon-host.m4: New file.
89047
89048         Module gettext.
89049         * m4/codeset.m4: New file, from gettext-0.11.5.
89050         * m4/gettext.m4: New file, from gettext-0.11.5.
89051         * m4/glibc21.m4: New file, from gettext-0.11.5.
89052         * m4/iconv.m4: New file, from gettext-0.11.5.
89053         * m4/intdiv0.m4: New file, from gettext-0.11.5.
89054         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
89055         * m4/inttypes.m4: New file, from gettext-0.11.5.
89056         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
89057         * m4/isc-posix.m4: New file, from gettext-0.11.5.
89058         * m4/lcmessage.m4: New file, from gettext-0.11.5.
89059         * m4/lib-ld.m4: New file, from gettext-0.11.5.
89060         * m4/lib-link.m4: New file, from gettext-0.11.5.
89061         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
89062         * m4/progtest.m4: New file, from gettext-0.11.5.
89063         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
89064         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
89065         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
89066
89067         Module localcharset.
89068         * m4/localcharset.m4: New file.
89069
89070         Module hard-locale.
89071         * m4/hard-locale.m4: New file.
89072
89073         Module mbswidth.
89074         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
89075         onceonly macros.
89076         * m4/mbrtowc.m4: Add comment.
89077
89078         Module memcasecmp.
89079         * m4/memcasecmp.m4: New file.
89080
89081         Module memcoll.
89082         * m4/memcoll.m4: New file.
89083
89084         Module unicodeio.
89085         * m4/unicodeio.m4: New file.
89086
89087         Module rpmatch.
89088         * m4/rpmatch.m4: New file.
89089
89090         Module yesno.
89091         * m4/yesno.m4: New file.
89092
89093         Module exitfail.
89094         * m4/exitfail.m4: New file.
89095
89096         Module c-stack.
89097         * m4/c-stack.m4 (gl_C_STACK): New macro.
89098         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
89099
89100         Module error.
89101         * m4/error.m4 (gl_ERROR): New macro.
89102         (jm_PREREQ_ERROR): Use onceonly macros.
89103
89104         Module fatal.
89105         * m4/fatal.m4: New file.
89106
89107         Module getloadavg.
89108         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
89109         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
89110
89111         Module getpagesize.
89112         * m4/getpagesize.m4: New file.
89113
89114         Module getusershell.
89115         * m4/getusershell.m4: New file.
89116
89117         Module physmem.
89118         * m4/physmem.m4: New file.
89119
89120         Module posixver.
89121         * m4/posixver.m4: New file.
89122
89123         Module quotearg.
89124         * m4/quotearg.m4: New file.
89125
89126         Module quote.
89127         * m4/quote.m4: New file.
89128
89129         Module readutmp.
89130         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
89131
89132         Module sig2str.
89133         * m4/sig2str.m4: New file.
89134
89135         Other.
89136         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
89137         ulonglong.m4.
89138         * m4/intmax_t.m4: New file.
89139         * m4/d-type.m4: Indentation.
89140         * m4/jm-macros.m4: Update.
89141         * m4/prereq.m4 (jm_PREREQ): Update.
89142         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
89143         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
89144         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
89145         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
89146         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
89147         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
89148         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
89149         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
89150         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
89151         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
89152         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
89153         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
89154         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
89155         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
89156         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
89157         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
89158         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
89159         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
89160         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
89161
89162 2002-12-24  Bruno Haible  <bruno@clisp.org>
89163
89164         * MODULES.txt: Update according to m4/ changes.
89165
89166         Module gettext.
89167         * config.rpath: New file, from gettext-0.11.5.
89168
89169         * modules/*: New module descriptions.
89170         * gnulib-tool: New file.
89171         * MODULES.html.sh: New file.
89172
89173 2002-12-21  Karl Berry  <karl@gnu.org>
89174
89175         * doc/fdl.texi: update to version 1.2.
89176
89177 2002-12-19  Karl Berry  <karl@gnu.org>
89178
89179         * config/config.guess: update from prep.
89180
89181 2002-12-18  Bruno Haible  <bruno@clisp.org>
89182
89183         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
89184         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
89185
89186 2002-12-17  Bruno Haible  <bruno@clisp.org>
89187
89188         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
89189         stdlib.h, string.h.
89190
89191 2002-12-17  Bruno Haible  <bruno@clisp.org>
89192
89193         * lib/canon-host.c (strdup): Remove unused declaration.
89194
89195         * lib/fsusage.c: Include full_read.h.
89196         (get_fs_usage): Use full_read instead of safe_read.
89197
89198         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
89199
89200 2002-12-12  Karl Berry  <karl@gnu.org>
89201
89202         * config/config.guess: update from prep.
89203
89204 2002-12-11  Bruno Haible  <bruno@clisp.org>
89205
89206         * m4/setenv.m4: New file, from gettext-0.11.5.
89207
89208 2002-12-11  Bruno Haible  <bruno@clisp.org>
89209
89210         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
89211         not unsetenv().
89212         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
89213         modifications:
89214
89215         2002-12-11  Bruno Haible  <bruno@clisp.org>
89216
89217                 * setenv.c (alloca): Fall back to malloc.
89218                 (freea): New macro.
89219                 (setenv): Use freea() to free memory allocated with alloca().
89220
89221         2002-11-13  Bruno Haible  <bruno@clisp.org>
89222
89223                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
89224                 function declarations.
89225                 * unsetenv.c (unsetenv): Likewise.
89226
89227         2002-03-04  Bruno Haible  <bruno@clisp.org>
89228
89229                 Portability to AIX 4.3.3.
89230                 * unsetenv.c: New file, extracted from setenv.c.
89231                 * setenv.c: Move the unsetenv() function to unsetenv.c.
89232
89233         2001-12-20  Bruno Haible  <bruno@clisp.org>
89234
89235                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
89236                 use malloc instead. For SunOS 4.
89237
89238         2001-12-11  Bruno Haible  <bruno@clisp.org>
89239
89240                 * setenv.c: Declare alloca.
89241                 (compar_fn_t): New typedef.
89242                 (KNOWN_VALUE, STORE_VALUE): Use it.
89243
89244         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
89245         setenv.h.
89246
89247 2002-12-10  Paul Eggert  <eggert@twinsun.com>
89248
89249         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
89250         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
89251         Choose values that are less likely to collide with system fnmatch
89252         options.
89253         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
89254         defined (e.g., a pure POSIX system).
89255         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
89256         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
89257
89258 2002-12-06  Paul Eggert  <eggert@twinsun.com>
89259
89260         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
89261         a pain in practice to deal with generated m4 files.  This change
89262         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
89263
89264         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
89265         and jm-glibc-io.m4, as they are no longer a special case.
89266         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
89267         kludge and the auto-generation stuff.  Check only whether the
89268         functions are declared, not whether they exist, since older hosts
89269         that don't declare the functions can't use the optimization anyway.
89270
89271 2002-12-06  Jim Meyering  <jim@meyering.net>
89272
89273         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
89274
89275         Merge in changes from libc's misc/error.c, in preparation
89276         for the merge of gnulib's changes back into libc.
89277
89278         * lib/error.c (_): Define only if not already defined.
89279         Move definition to follow all #include directives.
89280         Include unlocked-io.h only if !_LIBC.
89281         [_LIBC]: Include <libio/libioP.h>.
89282         [USE_IN_LIBIO]: Include <libio/iolibio.h>
89283         (fflush): Tweak definition to use INTUSE.
89284         (putc): Define.
89285
89286 2002-12-05  Paul Eggert  <eggert@twinsun.com>
89287
89288         * lib/alloca.c [defined emacs]: Include "lisp.h".
89289         (xalloc_die) [defined emacs]: New macro.
89290         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
89291         [! defined emacs]: Include <xalloc.h>.
89292         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
89293         (pointer): Typedef to POINTER_TYPE *.
89294         (malloc): Remove decl; we now always use xmalloc.
89295         (alloca): Use old-style definition, since Emacs needs this.
89296         Check for arithmetic overflow when computing combined size.
89297
89298 2002-12-04  Paul Eggert  <eggert@twinsun.com>
89299
89300         Do not generate unlocked-io.h automatically, since it's easier to
89301         maintain it by hand.
89302
89303         * lib/unlocked-io.h: New file, from GNU diffutils,
89304         but with proper copyright notice and attribution.
89305         * lib/gen-uio: Remove.
89306         * lib/Makefile.am: Add copyright notice.
89307         (libfetish_a_SOURCES): Add unlocked-io.h.
89308         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
89309         (DISTCLEANFILES, io_functions): Remove macros.
89310         (EXTRA_DIST): Remove gen_uio.
89311         (unlocked-io.h): Remove rule.
89312
89313 2002-12-04  Jim Meyering  <jim@meyering.net>
89314
89315         Reflect the fact that stat.c and lstat.c are no longer generated.
89316         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
89317         (DISTCLEANFILES): Likewise.
89318         (EXTRA_DIST): Likewise.
89319         (all_local): Don't depend on stat.c or lstat.c.
89320         (stat.c, lstat.c): Remove rules.
89321         (EXTRA_DIST): Remove xstat.in.
89322
89323         * lib/xstat.in: Remove file.  Contents moved into stat.c.
89324         * lib/stat.c: New file.  Contents mostly from xstat.in.
89325         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
89326         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
89327
89328         * lib/safe-read.c: Rework so that it may serve to define safe_write,
89329         too.
89330         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
89331
89332 2002-12-03  Jim Meyering  <jim@meyering.net>
89333
89334         * lib/safe-read.c, safe-write.c: Change variable names and comments,
89335         but not semantics, to minimize the differences between these two files.
89336         (safe_read): Change comment to mention SAFE_READ_ERROR.
89337
89338         * lib/safe-read.c (IS_EINTR): Define.
89339         (safe_read): Use IS_EINTR in place of in-function cpp directives.
89340
89341 2002-12-02  Jim Meyering  <jim@meyering.net>
89342
89343         * lib/safe-read.c (EINTR): Define.
89344         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89345         (INT_MAX): Provide fallback.
89346         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
89347
89348         * lib/safe-read.h (SAFE_READ_ERROR): Define.
89349
89350 2002-12-02  Bruno Haible  <bruno@clisp.org>
89351
89352         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
89353         Define, taken from safe-read.c.
89354         (INT_MAX): Provide fallback.
89355         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
89356         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
89357
89358         * lib/safe-read.c (EINTR): Remove definition.
89359         (safe_read): Don't use EINTR if it is absent.
89360
89361 2002-12-01  Jim Meyering  <jim@meyering.net>
89362
89363         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
89364         zero.
89365         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
89366
89367 2002-11-27  Paul Eggert  <eggert@twinsun.com>
89368
89369         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
89370         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
89371         with `if (! (value < limit)) abort ();', for readability.
89372
89373 2002-11-26  Karl Berry  <karl@gnu.org>
89374
89375         * lib/strdup.c: copy from libc again, with jim's ok.
89376         * lib/.cppi-disable: re-add strdup.c
89377
89378 2002-11-25  Karl Berry  <karl@gnu.org>
89379
89380         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
89381         instead of "strtol.c".
89382
89383 2002-11-25  Karl Berry  <karl@gnu.org>
89384
89385         * config/install-sh: update from automake for variable quoting, $0 in
89386         error msgs, etc.
89387
89388         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
89389         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
89390         entry.
89391
89392 2002-11-25  Jim Meyering  <jim@meyering.net>
89393
89394         * lib/mktime.c: Sync from libc, now that it has the latest fix.
89395
89396 2002-11-24  Karl Berry  <karl@gnu.org>
89397
89398         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
89399         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
89400
89401 2002-11-24  Jim Meyering  <jim@meyering.net>
89402
89403         Update from coreutils:
89404
89405         * lib/mktime.c: Merge in changes from libc.
89406
89407         Avoid a link-time failure on some Linux systems.
89408         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
89409         (otherwise).
89410         (__mon_yday): Declare with the STATIC attribute.
89411         (__mktime_internal): Likewise.
89412         Based on a report from Greg Schafer.
89413
89414 2002-11-23  Jim Meyering  <jim@meyering.net>
89415
89416         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
89417         Use `unsigned', not `int', as type of index.
89418
89419         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
89420
89421         * lib/fsusage.c: Remove unneeded parentheses around operands of
89422         `defined'.
89423
89424 2002-11-22  Paul Eggert  <eggert@twinsun.com>
89425
89426         * lib/quotearg.h: Allow multiple inclusion by surrounding with
89427         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
89428         so that we can be included first.
89429         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
89430         * lib/quotearg.c: Include quotearg.h immediately after config.h.
89431         No need to include stddef.h or sys/types.h any more.
89432         Surround local include files with "", not "<>".
89433         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
89434         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
89435         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
89436         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
89437         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
89438         (ISPRINT): Remove; no longer needed now that we assume C89.
89439
89440         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
89441         Preserve errno.
89442
89443         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
89444         quotearg_char): Use SIZE_MAX rather than
89445         (size_t) -1 when we are talking about "infinity".
89446
89447         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
89448
89449 2002-11-22  Paul Eggert  <eggert@twinsun.com>
89450
89451         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
89452         hint that one should use `if (! x) abort ();' rather than `assert
89453         (x);', and anyway it's one less thing to worry about configuring.
89454         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
89455         hash_rehash, hash_insert): Use abort rather than assert.
89456
89457 2002-11-22  Bruno Haible  <bruno@clisp.org>
89458
89459         * lib/safe-read.h: Assume C89. Add comments.
89460         (safe_read): Change return type to size_t.
89461         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
89462         byte counts > SSIZE_MAX correctly.
89463         * lib/safe-write.h: New file.
89464         * lib/safe-write.c: New file.
89465         * lib/full-read.h: New file.
89466         * lib/full-read.c: New file.
89467         * lib/full-write.h: Assume C89. Add comments.
89468         * lib/full-write.c: Include safe-write.h.
89469         (full_write): Rewritten to use safe_write.
89470         Suggested by Jim Meyering and Paul Eggert.
89471
89472 2002-11-21  Jim Meyering  <jim@meyering.net>
89473
89474         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
89475
89476         Merge in changes from the coreutils.
89477
89478         2002-09-25  Paul Eggert  <eggert@twinsun.com>
89479         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
89480         <stdint.h>.
89481         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
89482         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
89483         int.  Work more efficiently if X is the same width as uintmax_t.
89484         Do not compare X to -1, to avoid bogus compiler warning.
89485         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
89486         Don't assume that f_frsize and f_bsize are the same type.
89487
89488         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
89489         warning on FreeBSD.
89490
89491         * lib/makepath.c (make_path): Restore umask *before* creating the final
89492         component.
89493         (make_path): Minor reformatting.
89494
89495         * lib/xmalloc.c: Adjust to work with new autoconf macros,
89496         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
89497         HAVE_MALLOC/HAVE_REALLOC.
89498
89499         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
89500         dummy ones.  At least on GNU/Linux systems, `auto' means something
89501         else.
89502         From Michael Stone.
89503
89504 2002-11-21  Bruno Haible  <bruno@clisp.org>
89505
89506         Remove case insensitive option matching.
89507         * lib/argmatch.h (argcasematch): Remove declaration.
89508         (ARGCASEMATCH): Remove macro.
89509         (__xargmatch_internal): Remove case_sensitive argument.
89510         (XARGMATCH): Update.
89511         (XARGCASEMATCH): Remove macro.
89512         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
89513         case_sensitive argument.
89514         (argcasematch): Remove function.
89515         (__xargmatch_internal): Remove case_sensitive argument.
89516         (main): Use XARGMATCH instead of XARGCASEMATCH.
89517
89518         * lib/xmalloc.c: Change compile-time error message. Add comment about
89519         required autoconf version.
89520
89521 2002-11-20  Paul Eggert  <eggert@twinsun.com>
89522
89523         Merge argmatch cleanups from Bison.  Assume C89.
89524
89525         * lib/argmatch.c: Include config.h here, not in argmatch.h.
89526         Include stdlib.h, for EXIT_FAILURE.
89527         Always include <string.h>, since we assume C89.
89528         (EXIT_FAILURE): Remove pre-C89 bug workaround.
89529         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
89530         Include <stddef.h> instead, since it's all we need for size_t.
89531         (PARAMS): Remove.  All uses removed.
89532         (ARRAY_CARDINALITY): Do not bother to #undef.
89533         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
89534         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
89535         Remove unnecessary parentheses.
89536         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
89537         Insert necessary parentheses.
89538         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
89539         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
89540
89541 2002-11-19  Bruno Haible  <bruno@clisp.org>
89542
89543         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
89544         * lib/mbswidth.h: Include <stddef.h>, for size_t.
89545
89546         * lib/mbswidth.h (PARAMS): Remove macro.
89547         (mbswidth, mbsnwidth): Use ANSI C function declarations.
89548         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
89549
89550         * lib/gcd.h (PARAMS): Remove macro.
89551         (gcd): Use ANSI C function declarations.
89552         * lib/gcd.c (gcd): Likewise.
89553
89554 2002-11-15  Bruno Haible  <bruno@clisp.org>
89555
89556         * lib/strcspn.c: Include <stddef.h>.
89557         (strcspn): Use ANSI C function declaration. Change return type to
89558         size_t. Use NULL.
89559         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
89560         (strpbrk): Use NULL.
89561         * lib/strpbrk.h (PARAMS): Remove macro.
89562         (strpbrk): Use ANSI C function declaration.
89563         * lib/strstr.c: Don't include <sys/types.h>.
89564         * lib/strstr.h (PARAMS): Remove macro.
89565         (strstr): Use ANSI C function declarations.
89566
89567 2002-11-14  Karl Berry  <karl@gnu.org>
89568
89569         * config/mkinstalldirs: `do' on separate line, instead of
89570         `for var; do'.
89571
89572 2002-11-06  Bruno Haible  <bruno@clisp.org>
89573
89574         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
89575         * lib/gcd.c (gcd): Likewise.
89576
89577 2002-11-05  Bruno Haible  <bruno@clisp.org>
89578
89579         * lib/gcd.h: New file, from gettext-0.11.5.
89580         * lib/gcd.c: New file, from gettext-0.11.5.
89581
89582 2002-11-05  Bruno Haible  <bruno@clisp.org>
89583
89584         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89585         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89586         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89587         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89588
89589         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
89590         <libintl.h>.
89591         * lib/makepath.c: Include gettext.h instead of <locale.h> and
89592         <libintl.h>.
89593
89594         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
89595         * lib/human.c: Include gettext.h instead of <libintl.h>.
89596         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
89597         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
89598         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
89599         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
89600         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
89601         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
89602         (textdomain): Remove definition.
89603         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
89604
89605         * lib/long-options.c: Remove include of <libintl.h> and definition of
89606         _.
89607         * lib/same.c: Remove include of <libintl.h> and definition of _.
89608
89609 2002-11-04  Owen Taylor  <otaylor@redhat.com>
89610
89611         * lib/config.charset: A few additions for Solaris.
89612
89613 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
89614
89615         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
89616         * lib/localcharset.c (locale_charset): Declare as extern "C".
89617
89618 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
89619
89620         * lib/config.charset: msdos in uk_UA uses CP1125.
89621
89622 2002-11-04  Bruno Haible  <bruno@clisp.org>
89623
89624         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
89625         * lib/strcase.h: New file, from GNU gettext-0.11.5.
89626         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
89627         * lib/strstr.h: New file, from GNU gettext-0.11.5.
89628         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
89629
89630 2002-11-04  Bruno Haible  <bruno@clisp.org>
89631
89632         * lib/localcharset.c (locale_charset): Don't return an empty string.
89633
89634 2002-11-04  Bruno Haible  <bruno@clisp.org>
89635
89636         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
89637         aliases.
89638
89639 2002-11-04  Bruno Haible  <bruno@clisp.org>
89640
89641         * lib/config.charset: Update for newest glibc. Add canonical names
89642         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
89643
89644 2002-11-04  Bruno Haible  <bruno@clisp.org>
89645
89646         * lib/config.charset: Add support for NetBSD.
89647
89648 2002-11-04  Bruno Haible  <bruno@clisp.org>
89649
89650         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
89651
89652 2002-11-01  Bruno Haible  <bruno@clisp.org>
89653
89654         * configure.in: Add AC_CONFIG_AUX_DIR call.
89655         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
89656         test/Makefile.
89657         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
89658
89659 2002-09-28  Karl Berry  <karl@gnu.org>
89660
89661         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
89662         installed automake until the next release, since changes have been
89663         made.
89664
89665 2002-09-25  Karl Berry  <karl@gnu.org>
89666
89667         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
89668         * lib/getopt*: copy from libc/posix.
89669         * lib/gettext.h: copy from gettext.
89670         * lib/.cppi-disable: add strdup.c, gettext.h.
89671
89672 2002-09-25  Karl Berry  <karl@gnu.org>
89673
89674         * config/srclist.txt: enable gettext.h check.
89675         * config/config.{guess,sub}: update from prep.
89676         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
89677                 from automake 1.6.3.
89678         See srclist*.
89679
89680 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
89681
89682         * regex.c (PATFETCH): Remove the translating fetch.
89683         (PATFETCH_RAW): Rename to PATFETCH.
89684         (set_image_of_range): New fun.
89685         (SET_RANGE_TABLE_WORK_AREA): Use it.
89686         (regex_compile): Don't translate the pattern chars so eagerly.
89687         Only do it when inserting an `exactn' bytecode or when handling
89688         a char-range.
89689         (mutually_exclusive_p): Avoid empty statement.
89690
89691 2002-07-06  Jim Meyering  <meyering@lucent.com>
89692
89693         * m4/README: Don't mention Makefile.am.in.
89694         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
89695
89696 2002-07-01  Jim Meyering  <meyering@lucent.com>
89697
89698         * lib/c-stack.c: Include sys/time.h.
89699         From Volker Borchert.
89700
89701 2002-06-26  Paul Eggert  <eggert@twinsun.com>
89702
89703         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
89704
89705 2002-06-26  Paul Eggert  <eggert@twinsun.com>
89706
89707         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
89708         New macro.  Use it uniformly instead of
89709         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
89710         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
89711         reported by Vin Shelton.
89712
89713 2002-06-22  Paul Eggert  <eggert@twinsun.com>
89714
89715         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
89716         Do not assume SA_SIGINFO behavior.
89717         Bug reported by Jim Meyering on NetBSD 1.5.2.
89718
89719 2002-06-22  Jim Meyering  <meyering@lucent.com>
89720
89721         * m4/c-stack.m4: New file, from diffutils-2.8.2.
89722         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
89723
89724         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
89725         now that configure.ac uses AC_GNU_SOURCE.
89726         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
89727         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
89728
89729         Update to latest tools.  Suggestions from Paul Eggert.
89730         * m4/stdbool.m4: New file, from diffutils-2.8.2.
89731         * m4/gnu-source.m4: Update from diffutils-2.8.2.
89732         * m4/fnmatch.m4: Likewise.
89733         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
89734         to AC_HEADER_STDBOOL
89735
89736 2002-06-22  Jim Meyering  <meyering@lucent.com>
89737
89738         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
89739         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
89740
89741 2002-06-22  Jim Meyering  <meyering@lucent.com>
89742
89743         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
89744
89745         * lib/exitfail.c, exitfail.h: Likewise.
89746         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
89747
89748         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
89749         of fnmatch.h.
89750         (EXTRA_DIST): Add fnmatch_loop.c.
89751         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
89752
89753         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
89754         * lib/fnmatch.c: Update from diffutils-2.8.2.
89755         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
89756         * lib/fnmatch.h: Remove file.
89757
89758 2002-06-21  Jim Meyering  <meyering@lucent.com>
89759
89760         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
89761         * m4/mbrtowc.m4: Likewise.
89762
89763         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
89764         * m4/mbswidth.m4: Reflect name change:
89765         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
89766         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89767
89768         * m4/lib-link.m4: Update from gettext-0.11.2.
89769         * m4/gettext.m4: Likewise.
89770
89771         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
89772         From Alfred M. Szmidt.
89773
89774 2002-06-18  Paul Eggert  <eggert@twinsun.com>
89775
89776         * lib/file-type.h: Report an error if neither S_ISREG nor
89777         S_IFREG is defined, instead of using a test specific to glibc
89778         2.2.  This should be safe, since POSIX requires S_ISREG and
89779         Unix Version 7 had S_IFREG.  We don't need to check for
89780         <sys/types.h> since we don't use any symbols that it defines.
89781
89782 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
89783
89784         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
89785         $@-t, so that each temporary file name is unique and valid in the first
89786         8 characters, for operation under DOS.
89787
89788 2002-06-15  Paul Eggert  <eggert@twinsun.com>
89789
89790         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
89791
89792 2002-06-15  Jim Meyering  <meyering@lucent.com>
89793
89794         Work even with DJGPP 2.03, which lacks support for symlinks.
89795         From Richard Dawe.
89796         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
89797         is defined.
89798         * lib/lchown.c (S_ISLNK): Likewise.
89799
89800 2002-06-15  Jim Meyering  <meyering@lucent.com>
89801
89802         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
89803         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
89804         have been included before this file.
89805
89806 2002-06-14  Jim Meyering  <meyering@lucent.com>
89807
89808         * lib/file-type.h: Use the version from diffutils-2.8.2.
89809         * lib/file-type.c: Likewise.
89810
89811 2002-06-07  Jim Meyering  <meyering@lucent.com>
89812
89813         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
89814         They're needed at least for NetBSD 1.5.2.
89815         ($statxfs_includes): Include those same headers.
89816         ($statxfs_includes): Include sys/vfs.h if available.
89817         ($statxfs_includes): Likewise for sys/statvfs.h.
89818         Check for the following members in both structs statfs and statvfs:
89819         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
89820
89821 2002-06-01  Jim Meyering  <meyering@lucent.com>
89822
89823         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
89824         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
89825
89826 2002-05-28  Jim Meyering  <meyering@lucent.com>
89827
89828         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
89829         Reported by Volker Borchert.
89830
89831 2002-05-27  Jim Meyering  <meyering@lucent.com>
89832
89833         Fix a problem seen only on nonconforming systems whereby ls.c's
89834         use of localtime, and then of gettimeofday would cause trouble:
89835         the localtime call used to initialize rpl_gettimeofday's save
89836         mechanism would clobber ls's current local time information so
89837         that in any long listing the first file would always be listed
89838         with date 1970-01-01.  Analysis by Volker Borchert.
89839
89840         * lib/gettimeofday.c (localtime): Undefine.
89841         (rpl_localtime): New function.
89842
89843 2002-05-27  Jim Meyering  <meyering@lucent.com>
89844
89845         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
89846         localtime.
89847
89848         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
89849         use the replacement function; it wouldn't resolve at link time.
89850         Reported by Volker Borchert.
89851
89852 2002-05-22  Jim Meyering  <meyering@lucent.com>
89853
89854         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
89855         file-type.h.
89856         * lib/file-type.h: New file.
89857         * lib/file-type.c (file_type): New file/function.  Extracted from
89858         diffutils.
89859
89860 2002-04-30  Jim Meyering  <meyering@lucent.com>
89861
89862         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
89863
89864 2002-04-29  Paul Eggert  <eggert@twinsun.com>
89865
89866         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
89867
89868 2002-04-29  Paul Eggert  <eggert@twinsun.com>
89869
89870         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
89871         Do not check for alloca.h (no longer used) or stdbool.h (was never
89872         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
89873
89874 2002-04-29  Paul Eggert  <eggert@twinsun.com>
89875
89876         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
89877
89878 2002-04-29  Jim Meyering  <meyering@lucent.com>
89879
89880         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
89881         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
89882         Use AC_FUNC_STRNLEN here instead.
89883
89884         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
89885         With autoconf-2.53a, it's part of AC_PROG_CC.
89886
89887 2002-04-28  Paul Eggert  <eggert@twinsun.com>
89888
89889         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
89890         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
89891
89892 2002-04-28  Paul Eggert  <eggert@twinsun.com>
89893
89894         * lib/sig2str.h, lib/sig2str.c: New files.
89895         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
89896
89897 2002-04-28  Paul Eggert  <eggert@twinsun.com>
89898
89899         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
89900         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
89901         of 127, since 64 is the largest conceivable number for ancient
89902         nonstandard hosts.
89903         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
89904
89905 2002-04-28  Jim Meyering  <meyering@lucent.com>
89906
89907         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
89908
89909 2002-04-24  Jim Meyering  <meyering@lucent.com>
89910
89911         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
89912         (jm_PREREQ): Use it.
89913
89914         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
89915         mach/mach.h fcntl.h.
89916         Check for this function: setlocale.
89917
89918 2002-04-24  Jim Meyering  <meyering@lucent.com>
89919
89920         * lib/gettext.h: New file, from Gettext.
89921         * lib/Makefile.am (INCLUDES): Remove -I../intl.
89922         (libfetish_a_SOURCES): Add gettext.h.
89923
89924 2002-04-16  Jim Meyering  <meyering@lucent.com>
89925
89926         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
89927         ut_pid, ut_id, ut_exit.
89928
89929 2002-04-16  Jim Meyering  <meyering@lucent.com>
89930
89931         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
89932         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
89933         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
89934
89935 2002-04-12  Jim Meyering  <meyering@lucent.com>
89936
89937         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
89938         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
89939         existence of the getmntinfo function.  Needed for Darwin 5.3.
89940
89941         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
89942         This is necessary at least on Darwin 5.3.
89943
89944         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
89945         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
89946         strnlen.o in the library, and that makes some versions of ranlib
89947         object.
89948
89949 2002-04-12  Jim Meyering  <meyering@lucent.com>
89950
89951         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
89952
89953 2002-04-09  Jim Meyering  <meyering@lucent.com>
89954
89955         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
89956         to be more precise.  Rather than saying we're checking whether the
89957         function `works', say what we're testing.
89958         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
89959         Reported by Bruno Haible.
89960
89961 2002-03-10  Jim Meyering  <meyering@lucent.com>
89962
89963         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
89964         Suggestion from Santiago Vila.
89965
89966 2002-03-08  Jim Meyering  <meyering@lucent.com>
89967
89968         * lib/rename.c: Mention that this wrapper is needed also on
89969         mips-dec-ultrix4.4 systems.
89970
89971 2002-03-02  Jim Meyering  <meyering@lucent.com>
89972
89973         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
89974         not HAVE_CLOCK_SETTIME.
89975
89976 2002-02-27  Paul Eggert  <eggert@twinsun.com>
89977
89978         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
89979         Check for clock_settime.
89980
89981 2002-02-27  Paul Eggert  <eggert@twinsun.com>
89982
89983         * lib/nanosleep.h: Rename to....
89984         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
89985
89986         * lib/gettime.c: New file.
89987         * lib/settime.c: New file.
89988         * lib/stime.c: Remove.
89989
89990         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
89991         timespec.h.  Remove nanosleep.h.
89992
89993 2002-02-25  Paul Eggert  <eggert@twinsun.com>
89994
89995         * m4/acl.m4: New file.
89996         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
89997         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
89998
89999 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90000
90001         * lib/acl.c, lib/acl.h: New files.
90002         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
90003
90004 2002-02-24  Jim Meyering  <meyering@lucent.com>
90005
90006         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
90007         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
90008         cause trouble.  Reported by Nelson Beebe.
90009
90010 2002-02-23  Paul Eggert  <eggert@twinsun.com>
90011
90012         * lib/path-concat.c (xpath_concat): Reorder code to pacify
90013         compilers that don't know that xalloc_die never returns.
90014
90015 2002-02-20  Jim Meyering  <meyering@lucent.com>
90016
90017         * lib/getdate.c: Regenerate using bison-1.33.
90018
90019 2002-02-17  Jim Meyering  <meyering@lucent.com>
90020
90021         * config/config.guess (main): Don't use `head -1'; it's no longer
90022         portable. Use `sed 1q' instead.
90023
90024 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
90025
90026         * m4/codeset.m4: Upgrade to gettext-0.11.
90027         * m4/gettext.m4: Upgrade to gettext-0.11.
90028         * m4/glibc21.m4: Upgrade to gettext-0.11.
90029         * m4/iconv.m4: Upgrade to gettext-0.11.
90030         * m4/isc-posix.m4: Upgrade to gettext-0.11.
90031         * m4/lcmessage.m4: Upgrade to gettext-0.11.
90032         * m4/lib-ld.m4: New file, from gettext-0.11.
90033         * m4/lib-link.m4: New file, from gettext-0.11.
90034         * m4/lib-prefix.m4: New file, from gettext-0.11.
90035         * m4/progtest.m4: Upgrade to gettext-0.11.
90036
90037 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90038
90039         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
90040         (jm_PREREQ): Use it.
90041
90042 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90043
90044         * lib/posixver.c, lib/posixver.h: New files.
90045         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90046
90047 2002-02-02  Paul Eggert  <eggert@twinsun.com>
90048             Bruno Haible  <bruno@clisp.org>
90049
90050         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
90051         (fwrite_success_callback): New declaration.
90052         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
90053         print_unicode_char. Call failure callback instead of error.
90054         (fwrite_success_callback): New function.
90055         (exit_failure_callback): New function.
90056         (fallback_failure_callback): New function.
90057         (print_unicode_char): Call unicode_to_mb.
90058
90059 2002-01-26  Jim Meyering  <meyering@lucent.com>
90060
90061         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
90062         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
90063
90064 2002-01-26  Jim Meyering  <meyering@lucent.com>
90065
90066         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
90067
90068 2002-01-22  Paul Eggert  <eggert@twinsun.com>
90069
90070         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
90071
90072 2002-01-22  Jim Meyering  <meyering@lucent.com>
90073
90074         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
90075         Otherwise, some versions of automake would omit the rule that makes
90076         Makefile from Makefile.in.
90077
90078 2002-01-21  Paul Eggert  <eggert@twinsun.com>
90079
90080         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
90081         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90082         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
90083         (memcoll): Set errno to zero if there is no error.
90084
90085         * lib/quotearg.c (quotearg_buffer_restyled):
90086         Fix bug with quoting buffers containing NUL when backslashing escapes.
90087         This bug was exposed by the other changes in this patch.
90088         (quotearg_n_options): New arg ARGSIZE.
90089         All callers changed.
90090         (quoting_options_from_style): New function.
90091         (quotearg_n_style): Use it.
90092         (quotearg_n_style_mem): New function.
90093
90094         * lib/quotearg.h (quotearg_n_style_mem): New function.
90095
90096 2002-01-19  Jim Meyering  <meyering@lucent.com>
90097
90098         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
90099         Remove useless quotes: DF_PROG="df".
90100         * m4/strnlen.m4: New file.
90101
90102 2002-01-16  Paul Eggert  <eggert@twinsun.com>
90103
90104         * lib/backupfile.c (ISDIGIT): Comment fix.
90105         * lib/getdate.y (ISDIGIT): Likewise.
90106         * lib/posixtm.c (ISDIGIT, year): Likewise.
90107         * lib/strverscmp.c (ISDIGIT): Likewise.
90108         * lib/userspec.c (ISDIGIT): Likewise.
90109
90110 2002-01-16  Jim Meyering  <meyering@lucent.com>
90111
90112         * lib/getdate.y: Add three semicolons, each just before a closing
90113         brace. Bison (as of version 1.31) no longer papers over that mistake.
90114
90115 2002-01-05  Jim Meyering  <meyering@lucent.com>
90116
90117         * lib/version-etc.c (version_etc_copyright): Update copyright year.
90118
90119 2001-12-19  Paul Eggert  <eggert@twinsun.com>
90120
90121         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
90122         not silently exit merely because the output buffer happens to
90123         have nothing pending.
90124
90125 2001-12-18  Paul Eggert  <eggert@twinsun.com>
90126
90127         See the big note in ../ChangeLog.
90128         * lib/human.c (suffixes): Prefer K to k for 1024.
90129         (generate_suffix_backwards): New function.
90130         (human_readable_inexact): Use it.
90131         * lib/xstrtol.c (__xstrtol): If there is no number but there
90132         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
90133         Accept 'K' as well as 'k'.
90134
90135 2001-12-15  Jim Meyering  <meyering@lucent.com>
90136
90137         * lib/regex.h (__restrict_arr): Update from libc.
90138
90139         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
90140         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
90141         (STREQ): Define.
90142
90143 2001-12-14  Jim Meyering  <meyering@lucent.com>
90144
90145         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
90146         Suggestion from Bruno Haible.
90147
90148 2001-12-10  Jim Meyering  <meyering@lucent.com>
90149
90150         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
90151         xrealloc, Instead, include "xalloc.h".
90152         (initbuffer): Don't cast xmalloc return value to char*.
90153         (readline): Reword comment.
90154         Don't cast xrealloc return value to char*
90155         Return NULL, not 0.
90156
90157 2001-12-09  Jim Meyering  <meyering@lucent.com>
90158
90159         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
90160         about `signed and unsigned type in conditional expression'.
90161         * lib/posixtm.c (posix_time_parse): Likewise.
90162
90163         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
90164
90165         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
90166         to avoid a pedantic warning.
90167
90168         * lib/getstr.c: Don't include assert.h.
90169         (getstr): Remove warning-evoking assertions.
90170         Return -1 if offset parameter is out of bounds.
90171         Change the type of a local from int to size_t.
90172
90173         * lib/strftime.c (my_strftime_localtime_r): Include this function
90174         definition in the `#if ! HAVE_TM_GMTOFF' block.
90175
90176         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
90177         Include xalloc.h instead.
90178
90179 2001-12-02  Jim Meyering  <meyering@lucent.com>
90180
90181         * lib/tempname.c: Don't declare getenv, thus reverting the change of
90182         2001-11-18.  It's no longer necessary, now that stdlib.h is always
90183         included.
90184
90185         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
90186         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
90187
90188 2001-11-30  Akim Demaille  <akim@epita.fr>
90189
90190         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
90191         before being defined.
90192
90193 2001-11-27  Paul Eggert  <eggert@twinsun.com>
90194
90195         * lib/quotearg.h (quotearg_n, quotearg_n_style):
90196         First arg is int, not unsigned.
90197         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
90198         (SIZE_MAX, UINT_MAX): New macros.
90199         (quotearg_n_options): Abort if N is negative.
90200         Avoid overflow check on hosts where size_t is 64 bits and int
90201         is 32 bits, as overflow is impossible there.
90202         Fix off-by-one typo that caused unnecessary reallocation.
90203
90204 2001-11-27  Jim Meyering  <meyering@lucent.com>
90205
90206         * lib/tempname.c: Merge with version from libc.
90207         * lib/regex.c: Likewise.
90208
90209         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
90210         systems for which STDC_HEADERS is 0, it was not included, resulting in
90211         a warning about an integer-to-pointer conversion problem with getenv.
90212         Reported by Volker Borchert.
90213
90214 2001-11-26  Jim Meyering  <meyering@lucent.com>
90215
90216         * lib/gtod.h: Remove file.
90217         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
90218         * lib/gettimeofday.c: Don't include gtod.h.
90219         (GTOD_init): Remove function.
90220         (rpl_gettimeofday): Do its job here instead, rather than aborting.
90221         Suggestion from Volker Borchert.
90222
90223 2001-11-23  Jim Meyering  <meyering@lucent.com>
90224
90225         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
90226         it.
90227         * lib/hash.c (struct hash_table): Define it here instead.
90228
90229 2001-11-22  Jim Meyering  <meyering@lucent.com>
90230
90231         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
90232
90233 2001-11-20  Jim Meyering  <meyering@lucent.com>
90234
90235         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
90236         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
90237
90238 2001-11-19  Jim Meyering  <meyering@lucent.com>
90239
90240         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
90241         directory.  Use "conftestXXXXXX" as the template.
90242         Suggestion from Paul Eggert.
90243
90244         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
90245         immediately, so the test doesn't mistakenly hit the max-open-files
90246         limit.
90247
90248 2001-11-18  Paul Eggert  <eggert@twinsun.com>
90249
90250         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
90251         (TEMPORARIES): New macro.
90252         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
90253         removes an artificial limitation (e.g. HP-UX 10.20, where
90254         TMP_MAX is 17576).
90255
90256 2001-11-18  Jim Meyering  <meyering@lucent.com>
90257
90258         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
90259
90260 2001-11-18  Jim Meyering  <meyering@lucent.com>
90261
90262         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
90263         on SunOS 4.
90264
90265         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
90266         files will be created before anything else.
90267
90268 2001-11-17  Paul Eggert  <eggert@twinsun.com>
90269
90270         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
90271         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
90272
90273 2001-11-17  Jim Meyering  <meyering@lucent.com>
90274
90275         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
90276         Prompted by a report from Bob Proulx.
90277
90278         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
90279         Instead, require UTILS_FUNC_MKSTEMP.
90280
90281 2001-11-17  Jim Meyering  <meyering@lucent.com>
90282
90283         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
90284         Now, that's done as part of AC_FUNC_STRTOD.
90285
90286 2001-11-17  Jim Meyering  <meyering@lucent.com>
90287
90288         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
90289         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
90290         rather than group writable.  Patch by Juan F. Codagnone.
90291
90292         * lib/readtokens.c: Remove explicit declarations of xmalloc and
90293         xrealloc, Instead, include "xalloc.h".
90294
90295         * lib/mountlist.c: Include unlocked-io.h after all system headers.
90296         Remove explicit declarations of xmalloc, xrealloc,
90297         and xstrdup.  Instead, include "xalloc.h".
90298
90299         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
90300         unlocked-io.h.
90301         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
90302         Likewise.
90303         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
90304
90305         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
90306         Reported by Padraig Brady.
90307
90308         * lib/mkstemp.c: #undef mkstemp.
90309         Include config.h.
90310         (rpl_mkstemp): Rename from mkstemp.
90311         Protoize.
90312
90313 2001-11-16  Jim Meyering  <meyering@lucent.com>
90314
90315         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
90316         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
90317         determine the amount of total physical memory, use pstat_getstatic.
90318         HPUX-11 doesn't define _SC_PHYS_PAGES.
90319         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
90320         If sysconf couldn't be used to determine the amount of available
90321         physical memory, use both pstat_getstatic and pstat_getdynamic.
90322         Based on a patch from Bob Proulx.
90323
90324 2001-11-10  Jim Meyering  <meyering@lucent.com>
90325
90326         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
90327         (jm_PREREQ): Use it.
90328
90329 2001-11-09  Jim Meyering  <meyering@lucent.com>
90330
90331         * m4/jm-macros.m4: Require autoconf-2.52f.
90332         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
90333         Use these AC_-prefixed names, not the AM_-prefixed ones.
90334
90335         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
90336
90337 2001-11-05  Jim Meyering  <meyering@lucent.com>
90338
90339         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
90340
90341 2001-11-04  Jim Meyering  <meyering@lucent.com>
90342
90343         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
90344         $DEFS.
90345
90346 2001-11-03  Jim Meyering  <meyering@lucent.com>
90347
90348         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
90349         of AC_DEFUN.
90350
90351         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
90352         know the name of the variable in the macro definition.
90353
90354 2001-11-03  Jim Meyering  <meyering@lucent.com>
90355
90356         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
90357         in argmatch_to_argument call.
90358
90359         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
90360         argument.
90361
90362         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
90363         e.g., a fault due to an attempt to free a NULL pointer.
90364
90365 2001-11-01  Jim Meyering  <meyering@lucent.com>
90366
90367         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
90368         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
90369
90370 2001-11-01  Jim Meyering  <meyering@lucent.com>
90371
90372         * lib/dirfd.c, lib/dirfd.h: New files.
90373         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
90374
90375         * lib/hash.c (hash_print) [TESTING]: Clean up.
90376
90377 2001-10-22  Paul Eggert  <eggert@twinsun.com>
90378
90379         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
90380         to avoid a warning if -Wall.
90381
90382 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
90383
90384         * README: New file
90385         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
90386         (per RMS's instructions, this is now the canonical source)
90387         * lgpl/, gpl/: New directories.
90388
90389 2001-10-21  Paul Eggert  <eggert@twinsun.com>
90390
90391         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
90392
90393 2001-10-21  Jim Meyering  <meyering@lucent.com>
90394
90395         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
90396         this code would end up calling gettext even in packages built
90397         with --disable-nls.
90398         * lib/getopt.c (_): Likewise.
90399         * lib/regex.c (_): Likewise.
90400
90401 2001-10-20  Paul Eggert  <eggert@twinsun.com>
90402
90403         * m4/error.m4 (jm_PREREQ_ERROR):
90404         Do not invoke AC_CHECK_FUNCS with strerror_r, as
90405         AC_FUNC_STRERROR_R does that.
90406         Check for strerror declaration.
90407
90408         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
90409         are supposed to have them these days.
90410         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
90411         Merge changes from latest Autoconf CVS.
90412         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
90413         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
90414         POSIX decided to standardize on the int flavor of strerror_r.
90415
90416 2001-10-20  Paul Eggert  <eggert@twinsun.com>
90417
90418         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
90419         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
90420         Use strerror_r that is only a macro, even if it is not a function.
90421         (strerror): Check for HAVE_DECL_STRERROR before declaring.
90422         (private_strerror): Use prototypes, not old-style function definition.
90423         (print_errno_message): New function.
90424         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
90425         char*-flavored one.
90426         (error_tail, error, error_at_line): Use it.
90427
90428 2001-10-11  Jim Meyering  <meyering@lucent.com>
90429
90430         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
90431         and quote_n (1, ... to avoid clobbering a buffer.
90432
90433 2001-10-05  Jim Meyering  <meyering@lucent.com>
90434
90435         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
90436         hash-pjw.h.
90437         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
90438         * lib/hash-pjw.h: New file.
90439
90440 2001-09-30  Jim Meyering  <meyering@lucent.com>
90441
90442         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
90443         `struct fsstat' has the `f_fstypename' member.
90444         Use that to define FS_TYPE, which is now used to make
90445         the getfsstat link test tighter.
90446
90447 2001-09-30  Jim Meyering  <meyering@lucent.com>
90448
90449         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
90450         Include <sys/ucred.h>, for Apple Darwin.
90451         Include sys/mount.h and sys/fs_types.h only if available.
90452         (FS_TYPE): Define.
90453         (read_filesystem_list): Use FS_TYPE.
90454
90455 2001-09-29  Paul Eggert  <eggert@twinsun.com>
90456
90457         * lib/exclude.c (excluded_filename): 0 -> false, since it's
90458         a boolean context.
90459
90460 2001-09-29  Jim Meyering  <meyering@lucent.com>
90461
90462         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
90463         [one-argument getmntent function]): Include stdio.h before mntent.h.
90464         SunOS 4.1.x needs it for the declaration of `FILE'.
90465         Patch by Volker Borchert.
90466
90467         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
90468         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
90469         sys/fs_types.h, and make the link-test for getfsstat guard #include
90470         directives with appropriate #if HAVE_*_H tests so that we can
90471         detect getfsstat on Apple Darwin1.3.7 systems.
90472         Reported by Nelson Beebe.
90473         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
90474
90475 2001-09-28  Paul Eggert  <eggert@twinsun.com>
90476
90477         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
90478         #defines strtoimax.  Also treat the other strto* functions
90479         like strtoimax.
90480
90481         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
90482         Check for strtoul and strtoumax,
90483         as those declarations are made even in the signed case.
90484         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
90485         Likewise, for strtol and strtoimax.
90486
90487 2001-09-28  Paul Eggert  <eggert@twinsun.com>
90488
90489         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
90490         #defines strtoimax.  Also treat the other strto* functions
90491         like strtoimax.
90492
90493         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
90494         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
90495         (strtoimax, strtoumax): Do not declare if already defined as a macro.
90496
90497 2001-09-26  Jim Meyering  <meyering@lucent.com>
90498
90499         Most macros in unlocked-io.h had the wrong number of arguments.
90500         * lib/gen-uio: New script.
90501         (USE_UNLOCKED_IO): Define to 1 if not already defined.
90502         * lib/unlocked-io.hin: Remove file.
90503         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
90504         rather than trying to embed it here.
90505         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
90506         Reported by Padraig Brady.
90507
90508 2001-09-25  Volker Borchert  <bt@teknon.de>
90509
90510         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
90511         `result'.
90512
90513 2001-09-24  Jim Meyering  <meyering@lucent.com>
90514
90515         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
90516
90517 2001-09-23  Jim Meyering  <meyering@lucent.com>
90518
90519         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
90520         instead of the mere test for existence of mntent.h.  The latter
90521         would get a false-positive on AIX 3.4 systems.
90522         In the outer getmntent if-block, don't die if neither of the getmntent
90523         tests succeeds.  Instead, just fall through and continue with the
90524         remaining tests.
90525
90526 2001-09-23  Jim Meyering  <meyering@lucent.com>
90527
90528         * lib/mountlist.c: Remove useless parentheses in #if directives.
90529         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
90530         the deprecated MOUNTED symbol is no longer defined in mntent.h.
90531
90532 2001-09-22  Jim Meyering  <meyering@lucent.com>
90533
90534         * m4/gettext.m4: New file.  From gettext.
90535         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
90536         * m4/progtest.m4: Likewise
90537         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
90538         * m4/glibc21.m4: Likewise.
90539
90540         * m4/libintl.m4: Remove.  No longer used.
90541
90542 2001-09-22  Jim Meyering  <meyering@lucent.com>
90543
90544         * lib/localcharset.c: Update from latest gettext.
90545         * lib/config.charset: Likewise.
90546
90547 2001-09-20  Jim Meyering  <meyering@lucent.com>
90548
90549         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
90550         strtoimax.
90551         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
90552         strtoumax.
90553
90554 2001-09-20  Jim Meyering  <meyering@lucent.com>
90555
90556         * lib/xstrtol.c (strtoimax): Guard declaration with
90557         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
90558         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
90559         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
90560         (strtoumax): Likewise, for completeness (it wasn't necessary).
90561
90562 2001-09-17  Paul Eggert  <eggert@twinsun.com>
90563
90564         * lib/strtoimax.c (HAVE_LONG_LONG):
90565         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
90566         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
90567         to work around bug in IBM C compiler.
90568
90569 2001-09-17  Jim Meyering  <meyering@lucent.com>
90570
90571         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
90572         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
90573         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
90574         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
90575         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
90576         whenever the right hand side need not be expanded by the shell.
90577
90578 2001-09-16  Paul Eggert  <eggert@twinsun.com>
90579
90580         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
90581         library.  It's not correct, as some older glibcs are buggy.
90582         fnmatch wasn't fixed until glibc 2.2.
90583
90584         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
90585         special shell magic here.
90586
90587 2001-09-16  Jim Meyering  <meyering@lucent.com>
90588
90589         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
90590         * m4/jm-macros.m4: Require it.
90591
90592 2001-09-16  Jim Meyering  <meyering@lucent.com>
90593
90594         * lib/mkdir.c: New file.
90595
90596 2001-09-15  Jim Meyering  <meyering@lucent.com>
90597
90598         * m4/jm-macros.m4: Check for help2man.
90599
90600 2001-09-11  Jim Meyering  <meyering@lucent.com>
90601
90602         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
90603         The body, by Paul Eggert, was moved here from configure.in.
90604         * m4/jm-macros.m4: Require UTILS_HOST_OS.
90605
90606 2001-09-04  Paul Eggert  <eggert@twinsun.com>
90607
90608         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
90609         (jm_PREREQ): Use it.
90610
90611 2001-09-04  Paul Eggert  <eggert@twinsun.com>
90612
90613         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
90614         Use ssize_t, not int, to store result of readlink.
90615         Check for ssize_t overflow as well as size_t overflow,
90616         as POSIX says the result of readlink is implementation-defined
90617         when ssize_t overflows.
90618         Remove unnecessary cast to char*.
90619         Use free+malloc instead of realloc, as the storage doesn't need
90620         to be preserved and it's clearer and can be more efficient that way.
90621         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
90622         * lib/xreadlink.h (xreadlink): Update prototype.
90623
90624 2001-09-04  Paul Eggert  <eggert@twinsun.com>
90625
90626         * lib/xgetcwd.c: Revert some of the previous change; intead,
90627         fix the HAVE_GETCWD_NULL code to behave more like the
90628         !HAVE_GETCWD_NULL code used to.
90629
90630         Include "xalloc.h".
90631         (xgetcwd): Do not return NULL when memory is exhausted; instead,
90632         invoke xalloc_die.
90633
90634 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90635
90636         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
90637         sys/param.h, as pathmax.h includes them.
90638
90639 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90640
90641         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
90642         (jm_PREREQ_XGETCWD): New macro.
90643
90644         * m4/getcwd.m4: New file.
90645
90646 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90647
90648         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
90649         like the HAVE_GETCWD_NULL code.
90650         Include pathmax.h if not HAVE_GETCWD.
90651         Do not include xalloc.h.
90652         (INITIAL_BUFFER_SIZE): New symbol.
90653         Do not use xmalloc / xrealloc, since the caller is responsible for
90654         handling errors.  Preserve errno around `free' during failure.
90655         Do not overrun buffer when using getwd.
90656
90657 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90658
90659         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
90660         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
90661         getcwd (NULL, 0).
90662
90663 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90664
90665         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
90666         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
90667         spotted by Jim Meyering.
90668
90669 2001-09-03  Jim Meyering  <meyering@lucent.com>
90670
90671         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
90672         failure.
90673
90674 2001-09-02  Jim Meyering  <meyering@lucent.com>
90675
90676         * lib/error.c: Update from GNU libc.
90677
90678 2001-09-01  Jim Meyering  <meyering@lucent.com>
90679
90680         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
90681         Used by df.
90682
90683 2001-09-01  Jim Meyering  <meyering@lucent.com>
90684
90685         * lib/xreadlink.c: New file.
90686         * lib/xreadlink.h: New file.
90687         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
90688         xreadlink.h.
90689
90690         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
90691         doesn't conflict with sparc Solaris 7's definition in
90692         /usr/include/sys/int_types.h.
90693
90694         * lib/exclude.c: Use `""', not `<>' to #include non-system header
90695         files.
90696         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
90697         and strncasecmp as r-values.  Unixware didn't have declarations.
90698
90699 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90700
90701         * lib/xstrtol.h: Add copyright notice.
90702         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
90703         LONGINT_INVALID_SUFFIX_CHAR.
90704
90705 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90706
90707         * lib/xstrtol.c (strtoimax): New decl.
90708
90709 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90710
90711         * lib/xgetcwd.c: Don't include pathmax.h.
90712         Include stdlib.h and unistd.h if available.
90713         Include xalloc.h.
90714         (xmalloc, xstrdup, free): Remove decls.
90715         (xgetcwd): Don't assume sizes fit in unsigned.
90716         Check for overflow when computing sizes.
90717         Simplify reallocation code.
90718
90719 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90720
90721         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
90722         a directory's st_size can have an arbitrary value, so the old
90723         usage could waste an arbitrary amount of memory.  All uses
90724         changed.
90725         * lib/savedir.h: Update prototype.
90726
90727 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90728
90729         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
90730
90731         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
90732         old strtoimax.c.
90733
90734         Also, make the following further changes to make this file's
90735         configuration more similar to that of strtol.c:
90736         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
90737         (strtoumax, uintmax_t, strtoull, strtol): Remove.
90738         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
90739         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
90740         changed to signed values.
90741
90742         And make the following changes as well:
90743         Fix copyright notice, as 1999 was missing.
90744         (verify): New macro.
90745         (strtoimax): Check sizes at compile-time, not run-time.
90746         Prefer strtol to strtoll if both work.
90747         (main): Remove; it was not that useful and was a pain to maintain.
90748
90749         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
90750
90751 2001-08-31  Jim Meyering  <meyering@lucent.com>
90752
90753         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
90754         Use an initial, malloc'd, buffer of length 128 rather than
90755         a statically allocated one of length 1024.
90756
90757 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90758
90759         Simplify code, partly by assuming autoconf 2.52 semantics.
90760
90761         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
90762
90763         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
90764         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
90765         All uses removed.
90766         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
90767         Move AC_REQUIRE to next-to-top level, to avoid confusion.
90768         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
90769         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
90770         jm_AC_HEADER_INTTYPES_H.
90771         * m4/jm-macros.m4 (jm_MACROS): Likewise.
90772
90773         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
90774
90775         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
90776         Quote first arg of AC_DEFUN.
90777         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
90778         since they are needed to parse the include file even if we need
90779         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
90780         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
90781         but with opposite signedness.
90782
90783 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90784
90785         Merge 'exclude' changes from tar 1.13.22.
90786         This fixes one or two unlikely storage allocation overflow bugs,
90787         but doesn't change user-visible behavior otherwise.
90788
90789 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90790
90791         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
90792         (jm_PREREQ_EXCLUDE): New macro.
90793
90794 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90795
90796         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
90797         tm to be declared.
90798
90799 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90800
90801         * lib/hash.c: Remove '2001' from copyright notice.
90802
90803 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90804
90805         * lib/full-write.h: New file.
90806         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
90807         * lib/full-write.c: Correct credits, as cccp.c no longer
90808         exists and anyway it was so heavily changed from the old cccp
90809         code as to be unrecognizable.  Include full-write.h.
90810         (full_write): Return size_t, with short writes meaning failure.
90811         All callers changed.  This fixes a bug with large buffers
90812         on 64-bit hosts.
90813         * lib/utime.c: Include full-write.h.
90814
90815 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90816
90817         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
90818         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
90819         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
90820         Include if available.
90821         (<xalloc.h>): Include
90822         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
90823         (verify): New macro.  Use it to verify that EXCLUDE macros do not
90824         collide with FNM macros.
90825         (struct patopts): New struct.
90826         (struct exclude): Use it, as exclude patterns now come with options.
90827         (new_exclude): Support above changes.
90828         (new_exclude, add_exclude_file):
90829         Initial size must now be a power of two to simplify overflow checking.
90830         (free_exclude, fnmatch_no_wildcards): New function.
90831         (excluded_filename): No longer requires options arg, as the options
90832         are determined by add_exclude.  Now returns bool, not int.
90833         (excluded_filename, add_exclude):
90834         Add support for the fancy new exclusion options.
90835         (add_exclude, add_exclude_file): Now takes int options arg.
90836         Check for arithmetic overflow when computing sizes.
90837         (add_exclude_file): xrealloc might modify errno, so don't
90838         realloc until after errno might be used.
90839
90840         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
90841         New macros.
90842         (free_exclude): New decl.
90843         (add_exclude, add_exclude_file): Now takes int options arg.
90844         (excluded_filename): No longer requires options arg, as the options
90845         are determined by add_exclude.  Now returns bool, not int.
90846
90847 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90848
90849         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
90850
90851 2001-08-27  Jim Meyering  <meyering@lucent.com>
90852
90853         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
90854
90855         * lib/version-etc.c (N_): Remove definition.
90856         Revert most of last change.
90857         Instead, simply don't mark the `Copyright...' string for translation.
90858         Based on advice from Paul Eggert.
90859
90860         * lib/strtoxmax.c: Tweak comment.
90861
90862 2001-08-26  Jim Meyering  <meyering@lucent.com>
90863
90864         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
90865
90866         * m4/xstrtoimax.m4: New file.
90867         * m4/xstrtoumax.m4: Add comments explaining why we
90868         AC_REPLACE_FUNCS(strtol).
90869
90870 2001-08-26  Jim Meyering  <meyering@lucent.com>
90871
90872         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
90873         of copyright with `%s' so translators don't get an untranslated
90874         message in 2002.
90875         (COPYRIGHT_YEAR): Define.
90876         (version_etc): Use fprintf rather than fputs.
90877         Suggestion from Ulrich Drepper.
90878
90879         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
90880
90881         * lib/strtoll.c: New file, from GNU libc.
90882         * lib/xstrtoimax.c: New file.
90883
90884         * lib/xstrtol.h: Add xstrtoimax.
90885         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
90886         * lib/strtoimax.c: New file.  Likewise, but first define
90887         STRTOUXMAX_SIGNED.
90888
90889         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
90890         ...
90891         * lib/strtoxmax.c: ... then renamed to this.
90892
90893 2001-08-18  Paul Eggert  <eggert@twinsun.com>
90894
90895         * m4/inttypes.m4: Add AC_PREREQ(2.13).
90896         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
90897         (jm_AC_TYPE_INTMAX_T): New macro.
90898         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
90899
90900         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
90901
90902         * m4/longlong.m4: Renamed from ulonglong.m4.
90903         * m4/inttypes.m4: Renamed from inttypes_h.m4.
90904         * m4/uintmax_t.m4: Removed.
90905
90906 2001-08-13  Paul Eggert  <eggert@twinsun.com>
90907
90908         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
90909         Port to Solaris 8, where 'sed' requires a space after the 'r'
90910         command, and where sh dislikes "$/".  Clean up the spacing a bit.
90911         Redirect output to $tmp just once.
90912
90913 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
90914
90915         * lib/addext.c (<errno.h>): Include.
90916         (errno): Declare if not defined.
90917         (addext): Work correctly when pathconf returns -1 and leaves
90918         errno alone because there is no limit.  Also, work even if
90919         pathconf returns a value greater than SIZE_MAX.
90920
90921 2001-08-12  Jim Meyering  <meyering@lucent.com>
90922
90923         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
90924         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
90925         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
90926         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
90927         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
90928         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
90929         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
90930         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
90931         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
90932         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
90933         utime.m4, utimes.m4, xstrtoumax.m4:
90934         Quote the first argument in each use of AC_DEFUN.
90935
90936 2001-08-12  Jim Meyering  <meyering@lucent.com>
90937
90938         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
90939         Simply `return getcwd (NULL, 0);'.
90940         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
90941         Use 1300 as initial value for length, not PATH_MAX.
90942
90943         * lib/pathmax.h: Clean up cpp syntax.
90944
90945 2001-08-12  Jim Meyering  <meyering@lucent.com>
90946
90947         * lib/gettimeofday.c: New file.
90948         * lib/gtod.h: New file.
90949         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
90950
90951 2001-08-05  Jim Meyering  <meyering@lucent.com>
90952
90953         * m4/jm-macros.m4: Require autoconf-2.52.
90954
90955 2001-08-04  Jim Meyering  <meyering@lucent.com>
90956
90957         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
90958         stmt, to get in sync with glibc.
90959
90960 2001-08-03  Paul Eggert  <eggert@twinsun.com>
90961
90962         The following changes are from gettext 0.10.39 as maintained by
90963         Bruno Haible.
90964
90965         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
90966         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
90967         with inverted sense.  All uses changed.
90968
90969         * lib/mbswidth.c: Don't include <limits.h>.
90970         Include <stdlib.h> and <string.h> unconditionally.
90971         (iswcntrl, mbsinit, ISCNTRL): New macros.
90972         (mbsnwidth): Use K&R style function declarations.
90973         Don't bother checking for MB_LEN_MAX == 1, since the compiler
90974         can optimize it when MB_CUR_MAX == 1.
90975         The width of control characters is zero, not 1.
90976
90977 2001-08-03  Paul Eggert  <eggert@twinsun.com>
90978
90979         The following changes are from gettext 0.10.39 as maintained by
90980         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
90981
90982         * m4/codeset.m4: Upgrade to serial AM1.
90983         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
90984         all uses changed.  Quote first arg of AC_DEFUN.
90985         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
90986
90987         * m4/iconv.m4: Upgrade to serial AM2.
90988         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
90989         Add --with-libconv-prefix.
90990         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
90991         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
90992         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
90993         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
90994         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
90995
90996         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
90997         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
90998         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
90999         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
91000         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
91001         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
91002         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
91003         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
91004         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
91005
91006         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
91007         string.h any more.
91008
91009         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
91010         not the default value.
91011
91012         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
91013         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
91014         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
91015         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
91016         Also check for iswcntrl, used for wcwidth fallback.
91017         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
91018         to Autoconf 2.13.
91019
91020 2001-08-03  Jim Meyering  <meyering@lucent.com>
91021
91022         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
91023         as it was in the original.  Reported by Paul Eggert.
91024
91025 2001-07-16  Jim Meyering  <meyering@lucent.com>
91026
91027         * m4/gettimeofday.m4: New file.
91028         Prompted by a report from Bernhard Baehr.
91029
91030 2001-07-15  Jim Meyering  <meyering@lucent.com>
91031
91032         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
91033         stuff. Now it's in ../Makefile.cfg.
91034
91035 2001-07-15  Jim Meyering  <meyering@lucent.com>
91036
91037         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
91038         (BUILT_SOURCES): Add unlocked-io.h.
91039         (io_functions): Define.
91040         (unlocked-io.h): New rule.
91041         (DISTCLEANFILES): Add unlocked-io.h.
91042         (all-local): Depend on unlocked-io.h, to ensure it is created.
91043
91044         * lib/unlocked-io.hin: New file
91045
91046         * lib/regex.c: Update from glibc.
91047
91048 2001-07-05  Jim Meyering  <meyering@lucent.com>
91049
91050         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
91051         recommendation.
91052         (libfetish_a_SOURCES): Put all .h files here instead.
91053         Remove a thus-exposed (better checks in automake) duplicate and
91054         two unnecessary .h files.
91055
91056 2001-07-04  Jim Meyering  <meyering@lucent.com>
91057
91058         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
91059         that generates jm-glibc-io.m4 so that it doesn't trigger any make
91060         distcheck failure.
91061
91062 2001-07-02  Jim Meyering  <meyering@lucent.com>
91063
91064         The following changes were prompted by suggestions from Bruno Haible.
91065
91066         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
91067         is now generated.
91068         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
91069         definition of EXTRA_DIST.
91070         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
91071         ensure that the generated file is created/updated whenever the list
91072         of $(unlocked_functions) is changed.
91073         (jm-glibc-io.m4): New rule.
91074         (unlocked-io.h): New rule -- currently unused.
91075
91076 2001-06-24  Jim Meyering  <meyering@lucent.com>
91077
91078         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
91079         unmatched right bracket, rather than kludging it with an extra,
91080         falsely-matching quote in a comment.  Patch by Akim Demaille.
91081
91082 2001-06-11  Jim Meyering  <meyering@lucent.com>
91083
91084         * lib/regex.c: Update from GNU libc.
91085
91086 2001-05-27  Jim Meyering  <meyering@lucent.com>
91087
91088         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
91089         Check for ut_type in struct utmp.
91090
91091 2001-05-27  Jim Meyering  <meyering@lucent.com>
91092
91093         * lib/readutmp.h (UT_TYPE): Define.
91094
91095 2001-05-24  Jim Meyering  <meyering@lucent.com>
91096
91097         * lib/argmatch.c: Include "quote.h".
91098         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
91099         quote function.  Reported by Göran Uddeborg.
91100
91101 2001-05-22  Jim Meyering  <meyering@lucent.com>
91102
91103         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
91104         now that we use the package-supplied version unconditionally.
91105         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
91106
91107 2001-05-21  Jim Meyering  <meyering@lucent.com>
91108
91109         * m4/regex.m4: Change a couple backticks to single quotes to avoid
91110         shell syntax errors.
91111
91112 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91113
91114         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
91115
91116 2001-05-20  Paul Eggert  <eggert@twinsun.com>
91117
91118         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
91119         Don't bother to check library strftime, since
91120         we'll be using our own my_strftime function anyway.
91121         Define my_strftime instead of strftime.
91122
91123 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
91124
91125         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
91126         which is not yet declared.
91127
91128 2001-05-15  Jim Meyering  <meyering@lucent.com>
91129
91130         * m4/regex.m4: Use proper quoting so brackets appear in the test
91131         program.
91132         Reported by, and with help from, Bruno Haible.
91133
91134 2001-05-13  Jim Meyering  <meyering@lucent.com>
91135
91136         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
91137         undefined.
91138
91139 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91140
91141         dirname code cleanup.  base_name now behaves more compatibly
91142         with POSIX basename when given file names that have trailing
91143         slashes, and similarly for dir_name.  Add new primitives
91144         base_len and dir_len.  Put the directory-name-related decls
91145         into dirname.h.
91146
91147         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
91148         * lib/backupfile.c (base_name): Likewise.
91149         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
91150         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
91151         * lib/makepath.c (strip_trailing_slashes): Likewise.
91152         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
91153         ISSLASH): Likewise.
91154         * lib/rename.c (strip_trailing_slashes): Likewise.
91155         * lib/same.c (base_name): Likewise.
91156         * lib/stripslash.c (ISSLASH): Likewise.
91157
91158         * lib/addext.c: Include <dirname.h> after size_t is defined.
91159         * lib/backupfile.c: Likewise.
91160
91161         * lib/addext.c (addext): Use base_len to trim redundant
91162         trailing slashes instead of doing it ourselves.
91163         But do not trim the last slash if it is not redundant.
91164
91165         * lib/backupfile.c (find_backup_file_name,
91166         max_backup_version): Use base_len instead of rolling it ourselves.
91167         Handle the case of "" and (on DOS) "C:" correctly.
91168
91169         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
91170         needed. Include <string.h>, <dirname.h>.
91171         (base_name): Allow file names ending in slashes, other than names
91172         that are all slashes.  In this case, return the basename followed
91173         by the slashes.  This is more general, and can be used in places
91174         where the original base_name purposely had an assertion failure.
91175         (base_len): New function.
91176
91177         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
91178         Do not include <assert.h>; no longer needed.
91179         Include xalloc.h.
91180         (memrchr): Remove decl.
91181         (dir_name_r): Remove.
91182         (dir_len): Renamed from dirlen.  All callers changed.
91183         Rewrite in terms of base_name, for simplicity and consistency.
91184         (dir_name): Never return NULL.  All callers changed.
91185         Do not include <stdlib.h> in test program; no longer needed.
91186         return 0; is fine for test program.
91187
91188         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
91189         New macros.
91190         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
91191
91192         * lib/path-concat.c (path_concat): Use base_len to compute
91193         base length, not strlen; this means we cannot rely on memcpy
91194         to null-terminate.
91195
91196         * lib/same.c (STREQ): Remove.
91197         (same_name): Handle the case where the basename ends in trailing '/'.
91198
91199         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
91200         a slash was stripped.  Do not strip the last slash after a
91201         file system prefix.
91202
91203 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91204
91205         * lib/Makefile.am (libfetish_a_SOURCES):
91206         Add strftime.c, since we now compile it on all hosts.
91207
91208         * lib/strftime.c (my_strftime):
91209         Define to nstrftime if emacs, but only if my_strftime is not defined.
91210         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
91211         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
91212         Add one more extra argument: a nanoseconds value.
91213         All uses changed.
91214         (ns): New macro.
91215         (my_strftime function): Add %N format.
91216         (emacs_strftimeu): Renamed from emacs_strftime,
91217         with extra ut argument.
91218
91219 2001-05-09  Paul Eggert  <eggert@twinsun.com>
91220
91221         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
91222
91223 2001-04-21  Jim Meyering  <meyering@lucent.com>
91224
91225         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
91226         doesn't interfere.
91227
91228 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91229
91230         * m4/ftruncate.m4: Check for chsize.
91231         Link with ftruncate.o unconditionally if ftruncate is missing.
91232         This was required when cross-compiling to i586-mingw32msvc.
91233
91234 2001-04-08  Jim Meyering  <meyering@lucent.com>
91235
91236         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
91237         recomputed; that's necessary when the offset spans a DST transition.
91238         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
91239
91240 2001-04-02  Jim Meyering  <meyering@lucent.com>
91241
91242         * lib/regex.h, regex.c: Update from GNU libc.
91243
91244 2001-03-24  Jim Meyering  <meyering@lucent.com>
91245
91246         * m4/jm-macros.m4: Require autoconf-2.49d.
91247
91248 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
91249
91250         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
91251
91252 2001-03-19  Paul Eggert  <eggert@twinsun.com>
91253
91254         * lib/version-etc.c (version_etc_copyright): Update to 2001.
91255
91256 2001-03-17  Jim Meyering  <meyering@lucent.com>
91257
91258         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
91259         now that the version in autoconf is equivalent.
91260         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
91261
91262         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
91263         Suggestion from Akim Demaille.
91264
91265         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
91266         (jm_PREREQ_TEMPNAME): New function.
91267
91268 2001-03-16  Paul Eggert  <eggert@twinsun.com>
91269
91270         * lib/tempname.c (uint64_t): Define to uintmax_t if
91271         not defined, and if UINT64_MAX is not defined.
91272         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
91273         Reported by John David Anglin.
91274
91275 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
91276
91277         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
91278         resolve alias if codeset is empty.
91279         * lib/config.charset (BeOS): Use wildcard syntax.
91280
91281 2001-03-13  Jim Meyering  <meyering@lucent.com>
91282
91283         * lib/path-concat.c (path_concat)
91284         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
91285         concatenating e.g., `C:' and `foo'.
91286         From Bruno Haible.
91287
91288 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
91289
91290         * lib/localcharset.c (locale_charset): Don't use
91291         setlocale(LC_CTYPE,NULL). Don't return NULL.
91292         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
91293
91294 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
91295
91296         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
91297         support for DOS/DJGPP.
91298
91299 2001-03-01  Paul Eggert  <eggert@twinsun.com>
91300
91301         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
91302         lacks mkstemp.  Compile our own tempname.c if we compile our own
91303         mkstemp.c, as mkstemp relies on tempname.
91304
91305 2001-03-01  Jim Meyering  <meyering@lucent.com>
91306
91307         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
91308         AH_VERBATIM really does output its argument verbatim.
91309
91310 2001-02-28  Paul Eggert  <eggert@twinsun.com>
91311
91312         * lib/Makefile.am (libfetish_a_SOURCES):
91313         Add dup-safer.c, fopen-safer.c.
91314         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
91315
91316         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
91317         * lib/unistd-safer.h: New files.
91318
91319 2001-02-25  Paul Eggert  <eggert@twinsun.com>
91320
91321         The mkstemp replacement is taken from glibc 2.2.2, with some
91322         portability fixes for use outside glibc, as follows:
91323
91324         * lib/tempname.c (struct_stat64): New macro.
91325         (direxists, __gen_tempname): Use it.
91326         This avoids a portability problem with Solaris 8.
91327
91328         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
91329         (<stddef.h>, <stdint.h>, <string.h>):
91330         Include only if STDC_HEADERS || _LIBC.
91331         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
91332         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
91333         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
91334         (__set_errno): Define this macro if <errno.h> doesn't.
91335         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
91336         Define these macros if <stdio.h> doesn't.
91337         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
91338         Define these macros if <sys/stat.h>
91339         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
91340         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
91341         __xstat64): Define if not _LIBC.
91342         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
91343         (__gen_tempname): Invoke gettimeofday only if
91344         HAVE_GETTIMEOFDAY || _LIBC;
91345         otherwise, fall back on plain "time".
91346         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
91347
91348         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
91349
91350         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
91351
91352 2001-02-18  Paul Eggert  <eggert@twinsun.com>
91353
91354         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
91355
91356 2001-02-17  Paul Eggert  <eggert@twinsun.com>
91357
91358         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
91359         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
91360         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
91361         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91362
91363 2001-02-17  Paul Eggert  <eggert@twinsun.com>
91364
91365         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
91366         Remove workaround macros for hosts that have mbrtowc but not
91367         mbstate_t, as we now insist on proper declarations for both
91368         before using mbrtowc.
91369
91370 2001-02-17  Jim Meyering  <meyering@lucent.com>
91371
91372         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
91373         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
91374         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
91375         UnixWare 7.1.1.
91376
91377         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
91378         rather than AC_CACHE_VAL.
91379
91380 2001-02-17  Jim Meyering  <meyering@lucent.com>
91381
91382         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
91383         around included file name.
91384
91385         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
91386
91387         * lib/strftime.c: Update from GNU libc (the only changes were to
91388         comments).
91389
91390 2001-02-17  Jim Meyering  <meyering@lucent.com>
91391
91392         * lib/regex.c: Update from libc.
91393
91394 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
91395
91396         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
91397         clash.
91398
91399 2001-02-16  Paul Eggert  <eggert@twinsun.com>
91400
91401         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
91402         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
91403         Reported by Mark Hounschell via Paul Eggert.
91404
91405 2001-02-07  Jim Meyering  <meyering@lucent.com>
91406
91407         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
91408
91409 2001-02-05  Jim Meyering  <meyering@lucent.com>
91410
91411         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
91412         it includes the patch required for `large file' support with at least
91413         HP-UX's 10.20 /bin/cc.
91414
91415 2001-02-03  Jim Meyering  <meyering@lucent.com>
91416
91417         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
91418         AS_IF, now that it works once again (mysteriously).
91419         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
91420
91421 2001-01-30  Jim Meyering  <meyering@lucent.com>
91422
91423         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
91424         * m4/chown.m4: Rename conftestchown to conftest.chown.
91425         * m4/rename.m4: s/conftestdir/conftest.d1/ and
91426         s/conftestdir2/conftest.d2/.
91427         * m4/utimes.m4: s/conftestdata/conftest.data/
91428         Inspired by Pavel Roskin's change in autoconf.
91429
91430 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
91431
91432         * lib/config.charset: Update for FreeBSD 4.2.
91433
91434 2001-01-27  Jim Meyering  <meyering@lucent.com>
91435
91436         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
91437         a use of AS_IF.
91438         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
91439
91440 2001-01-26  Jim Meyering  <meyering@lucent.com>
91441
91442         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
91443         quotearg.c includes it.
91444
91445 2001-01-26  Jim Meyering  <meyering@lucent.com>
91446
91447         * lib/quotearg.c: Include stddef.h.
91448         * lib/quote.c: Include stddef.h.
91449         Reported by Axel Kittenberger.
91450
91451         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
91452         line in double quotes so that it evokes a better diagnostic.
91453         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
91454         Reported by Axel Kittenberger.
91455
91456 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
91457
91458         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
91459         as if it was a `charset'.
91460
91461 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
91462
91463         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
91464         has const.
91465
91466 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
91467
91468         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
91469         to avoid a warning.  Add back 'const' to inptr.
91470
91471 2001-01-20  Jim Meyering  <meyering@lucent.com>
91472
91473         Be sure that headers are checked before used in code compiled
91474         for the type checks.
91475         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
91476         In place of that, invoke jm_CHECK_ALL_TYPES.
91477         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
91478         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
91479         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
91480         The check for ssize_t was mistakenly run before the test for unistd.h.
91481
91482         The configure-time check for stdbool.h was missing.
91483         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
91484         (jm_PREREQ_HASH): New function.
91485
91486 2001-01-17  Jim Meyering  <meyering@lucent.com>
91487
91488         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
91489         for autoconf-2.49c.
91490         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
91491
91492 2001-01-16  Jim Meyering  <meyering@lucent.com>
91493
91494         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
91495         From Bruno Haible.
91496
91497 2001-01-14  Jim Meyering  <meyering@lucent.com>
91498
91499         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
91500         foo and bar.  Create conftestdir/ in the script, not in the C code.
91501         Remove directories in the script, not in the C code.
91502         Remove conftestdir{,2} before trying to create the directory.
91503         Make the entire configure script fail if the mkdir fails.
91504
91505 2001-01-14  Jim Meyering  <meyering@lucent.com>
91506
91507         * lib/rename.c: New file.  From Volker Borchert.
91508         Include stdlib.h, string.h or strings.h, and xalloc.h.
91509         Use strip_trailing_slashes rather than open-coding it.
91510
91511 2001-01-03  Paul Eggert  <eggert@twinsun.com>
91512
91513         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
91514
91515 2001-01-03  Jim Meyering  <meyering@lucent.com>
91516
91517         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
91518         of local `inptr' to avoid warning with some system declarations of
91519         iconv.
91520
91521 2001-01-02  Volker Borchert  <bt@teknon.de>
91522
91523         * m4/rename.m4: New file.
91524         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
91525
91526 2001-01-01  Jim Meyering  <meyering@lucent.com>
91527
91528         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
91529         even on systems with utmpx.h.  It's necessary for the declaration of
91530         utmp's ut_user member.  Reported by Andreas Jaeger.
91531
91532         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
91533         available. They are required for the declarations of getgrgid and
91534         getpwuid resp.
91535         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
91536         Reported by Andreas Jaeger.
91537
91538 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
91539
91540         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
91541         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
91542         so `make install' also works in VPATH builds.
91543
91544 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
91545
91546         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
91547         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
91548         can be used in subdirectories.
91549
91550 2000-12-29  Paul Eggert  <eggert@twinsun.com>
91551
91552         * lib/modechange.c: Do not assume that mode_t uses the
91553         traditional octal encoding.  E.g. "chmod 1 FOO" should set
91554         the other-execute bit of FOO even if S_IXOTH != 1.
91555
91556         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
91557         WOTH, XOTH, ALLM): New macros.
91558         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
91559          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
91560         Use them.
91561         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
91562         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
91563         (mode_compile):
91564         No need to use uintmax_t; unsigned long is long enough.
91565         Don't bother to get suffix since we don't use it.
91566
91567 2000-12-26  Jim Meyering  <meyering@lucent.com>
91568
91569         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
91570         better with autoheader.
91571
91572 2000-12-24  Jim Meyering  <meyering@lucent.com>
91573
91574         * lib/hash.c (is_prime): Return explicit boolean values.
91575         (hash_get_first): Return NULL to appease Irix5.6's 89.
91576         Reported by Nelson Beebe.
91577
91578 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
91579
91580         * lib/localcharset.c (locale_charset): Add support for Win32.
91581
91582 2000-12-18  Paul Eggert  <eggert@twinsun.com>
91583
91584         * lib/physmem.h, lib/physmem.c: New files.
91585
91586         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
91587         (noinst_HEADERS): Add physmem.h.
91588
91589         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
91590         't' for compatibility with Solaris 8 sort.
91591
91592 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
91593
91594         * lib/config.charset: Add support for BeOS.
91595
91596 2000-12-17  Jim Meyering  <meyering@lucent.com>
91597
91598         * m4/dos.m4 (jm_AC_DOS): New file and macro.
91599         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
91600
91601 2000-12-16  Jim Meyering  <meyering@lucent.com>
91602
91603         This bug had a serious impact on chown: `chown N:M FILE' (for integer
91604         N and M) would have treated it like `chown N:N FILE'.
91605
91606         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
91607
91608 2000-12-16  Jim Meyering  <meyering@lucent.com>
91609
91610         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
91611         SHELLS_FILE to a file name that's useful on djgpp systems.
91612         Include stdlib.h.
91613         (ADDITIONAL_DEFAULT_SHELLS): Define.
91614         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
91615         Based mostly on a patch from Prashant TR.
91616
91617 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
91618
91619         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
91620         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
91621         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
91622
91623 2000-12-08  Andreas Schwab  <schwab@suse.de>
91624
91625         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
91626         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
91627
91628 2000-12-07  Jim Meyering  <meyering@lucent.com>
91629
91630         * lib/stripslash.c (ISSLASH): Define.
91631         (strip_trailing_slashes): Use ISSLASH rather than comparing against
91632         `/'.
91633         From Prashant TR.
91634
91635         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
91636         (dir_name_r): Declare this function as static.
91637         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
91638         manifest itself on a name containing a mix of slashes and
91639         backslashes.
91640         Make this function work with names starting with a DOS-style
91641         drive letter and colon prefix.
91642         (dir_name): Append `.' if necessary.
91643         Based mostly on patches from Prashant TR and Eli Zaretskii.
91644
91645         * lib/dirname.h (dir_name_r): Remove prototype.
91646
91647 2000-12-06  Paul Eggert  <eggert@twinsun.com>
91648
91649         * m4/off_t-format.m4: Remove this file.
91650         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
91651
91652 2000-12-06  Jim Meyering  <meyering@lucent.com>
91653
91654         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
91655         replacement strtoull, we may well need the replacement strtoul, too.
91656         Check for declarations of strtoul and strtoull.
91657         Check for strtol.  Mainly as a cue to cause automake to include
91658         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
91659         Check for limits.h -- strtol.c needs it.
91660
91661 2000-12-05  Jim Meyering  <meyering@lucent.com>
91662
91663         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
91664
91665 2000-12-04  Jim Meyering  <meyering@lucent.com>
91666
91667         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
91668         Also include memory.h, stdlib.h, unistd.h if appropriate.
91669         Reported by Andreas Jaeger (conflicting declaration of malloc).
91670
91671 2000-12-02  Jim Meyering  <meyering@lucent.com>
91672
91673         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
91674         * m4/jm-macros.m4 (jm_MACROS): require it.
91675
91676 2000-12-02  Jim Meyering  <meyering@lucent.com>
91677
91678         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
91679
91680 2000-12-01  Paul Eggert  <eggert@twinsun.com>
91681
91682         * lib/memrchr.c: Include <config.h> before any system include file.
91683
91684 2000-11-30  Jim Meyering  <meyering@lucent.com>
91685
91686         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
91687
91688 2000-11-30  Jim Meyering  <meyering@lucent.com>
91689
91690         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
91691
91692 2000-11-29  Paul Eggert  <eggert@twinsun.com>
91693
91694         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
91695
91696 2000-11-26  Jim Meyering  <meyering@lucent.com>
91697
91698         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
91699
91700 2000-11-22  Paul Eggert  <eggert@twinsun.com>
91701
91702         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
91703         size of (size_t) -1; it's not portable.
91704
91705 2000-11-17  Jim Meyering  <meyering@lucent.com>
91706
91707         * lib/strstr.c: Update from GNU libc.
91708
91709 2000-11-17  Akim Demaille  <akim@epita.fr>
91710
91711         * lib/obstack.h: Formatting changes.
91712         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
91713         prevent type checking.
91714         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
91715         cast the value to (void *): assigning a `foo *' to a `void *'
91716         variable is valid.
91717         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
91718
91719 2000-11-16  Jim Meyering  <meyering@lucent.com>
91720
91721         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
91722
91723 2000-11-11  Jim Meyering  <meyering@lucent.com>
91724
91725         * lib/error.c: Add a couple #includes, merging from GNU libc version.
91726
91727 2000-11-10  Jim Meyering  <meyering@lucent.com>
91728
91729         * lib/obstack.h: Update from GNU libc.
91730         * lib/obstack.c: Likewise.
91731
91732 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
91733
91734         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
91735
91736 2000-11-06  Paul Eggert  <eggert@twinsun.com>
91737
91738         * lib/getusershell.c (setusershell): Use rewind rather than
91739         fseek/fseeko, to avoid configuration hassles with fseeko.
91740         Don't bother opening SHELLS_FILE if shellstream is NULL;
91741         it's not necessary.
91742
91743 2000-11-05  Jim Meyering  <meyering@lucent.com>
91744
91745         * lib/makepath.h (make_dir): Declare.
91746         * lib/makepath.c (make_dir): Remove `static' attribute.
91747         Tweak a comment.
91748
91749 2000-11-04  Jim Meyering  <meyering@lucent.com>
91750
91751         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
91752
91753 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
91754
91755         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
91756         last one in a bucket, advance to the next bucket.
91757
91758 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
91759
91760         * lib/fnmatch.c: Do not comment out all the code if we are using
91761         the GNU C library, because in some cases we are replacing buggy
91762         code in the GNU C library itself.
91763
91764 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
91765
91766         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
91767         (regex_compile): Catch bogus \(\1\).
91768
91769 2000-10-30  Paul Eggert  <eggert@twinsun.com>
91770
91771         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
91772         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
91773         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
91774
91775 2000-10-30  Paul Eggert  <eggert@twinsun.com>
91776
91777         * lib/error.h, getline.h, modechange.h:
91778         Remove "2000" from Copyright line, as the file hasn't been
91779         changed this year other than in the copyright notice.
91780
91781         * lib/xalloc.h: Add "2000" to Copyright line, as this file
91782         was changed this year.
91783
91784 2000-10-29  Jim Meyering  <meyering@lucent.com>
91785
91786         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
91787         renaming.
91788         * m4/ls-mntd-fs.m4: Likewise
91789
91790 2000-10-29  Jim Meyering  <meyering@lucent.com>
91791
91792         * lib/xstat.in: Fix grammar in comment.
91793
91794 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
91795
91796         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
91797         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
91798         doesn't define __restrict_arr.
91799
91800 2000-10-28  Jim Meyering  <meyering@lucent.com>
91801
91802         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
91803         (jm_PREREQ_MEMCHR): New function.
91804
91805 2000-10-28  Jim Meyering  <meyering@lucent.com>
91806
91807         * lib/memchr.c: Update from libc.
91808         Adjust for portability:
91809         [HAVE_STDLIB_H]: Include stdlib.h.
91810         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
91811         Undef __memchr, too.
91812         [!weak_alias]: Define __memchr to memchr.
91813
91814         * lib/regex.c: Update from libc.
91815         * lib/regex.h: Likewise.
91816         * lib/getopt1.c: Likewise.
91817         * lib/memcmp.c: Likewise.
91818
91819         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
91820         Avoid using fseek, when possible -- it's broken by design.
91821         Patch by Ulrich Drepper.
91822
91823 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
91824
91825         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
91826         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
91827         Giving in to popular pressure to shut up the compiler with casts.
91828
91829 2000-10-26  Jim Meyering  <meyering@lucent.com>
91830
91831         * lib/strftime.c: Update from libc.
91832
91833 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
91834
91835         * regex.c: More `unsigned char' -> `re_char' changes.
91836         Also change several `int' into `re_wchar_t'.
91837         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
91838         (PUSH_FAILURE_POINTER): Don't cast any more.
91839         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
91840         We want GCC to complain, since this piece of code makes
91841         re_match non-reentrant, which *should* be fixed.
91842         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
91843         (EXTEND_BUFFER): Use RETALLOC.
91844         (SET_LIST_BIT): Don't cast.
91845         (re_wchar_t): New type.
91846         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
91847         that those two functions will always properly return.
91848         (IMMEDIATE_QUIT_CHECK): Cast to void.
91849         (analyse_first): Use recursion rather than an explicit stack.
91850         (re_compile_fastmap): Can't fail anymore.
91851         (re_search_2): Don't check re_compile_fastmap for failure.
91852         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
91853         Now also sets the new value (passed in a new argument).
91854         (re_match_2_internal): Use it.
91855         Also, use a new var `reg' of type size_t when looping through regs
91856         rather than reuse the inappropriate `mcnt'.
91857
91858 2000-10-25  Jim Meyering  <meyering@lucent.com>
91859
91860         * lib/obstack.c: Update from libc.
91861
91862 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
91863
91864         * regex.c (regex_compile): Change the way of handling a range from
91865         a char less than 256 to a char not less than 256.
91866
91867 2000-10-24  Andrew Innes  <andrewi@gnu.org>
91868
91869         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
91870         NT-Emacs only.
91871         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
91872         so that re_search functions only quit when callers expect them to.
91873
91874 2000-10-23  Jim Meyering  <meyering@lucent.com>
91875
91876         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
91877         wrong.  That set_locale call must not have any side effects.
91878         From Paul Eggert.
91879
91880 2000-10-22  Jim Meyering  <meyering@lucent.com>
91881
91882         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
91883         [CYCLIC]: Remove now-unused definition.
91884
91885         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
91886         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
91887         Suggestion from Ulrich Drepper.
91888
91889 2000-10-21  Jim Meyering  <meyering@lucent.com>
91890
91891         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
91892         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
91893         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
91894
91895 2000-10-21  Jim Meyering  <meyering@lucent.com>
91896
91897         * lib/dirname.c (memrchr): Declare if necessary.
91898         (dir_name): Remove the restriction that there be no
91899         trailing slashes.  Now, this code skips past them, effectively
91900         ignoring them.
91901         [TEST_DIRNAME] (main): New unit tests.
91902
91903         * lib/memrchr.c: New file from GNU libc.
91904         Undef __memrchr, too.
91905         [!weak_alias]: Define __memrchr to memrchr.
91906         Guard weak_alias use with `#ifdef weak_alias'.
91907
91908 2000-10-21  Jim Meyering  <meyering@lucent.com>
91909
91910         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
91911         (dir_name): Use dir_name_r.
91912         * lib/dirname.h (dir_name_r): Declare it.
91913
91914 2000-10-17  Jim Meyering  <meyering@lucent.com>
91915
91916         * lib/quote.h (PARAMS): Define and use.
91917         Reported by Akim Demaille.
91918
91919         * lib/getopt.c: Update from libc.
91920
91921 2000-10-16  Jim Meyering  <meyering@lucent.com>
91922
91923         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
91924         setlocale.
91925         From Jan Fedak.
91926
91927 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
91928
91929         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
91930
91931 2000-09-25  Jim Meyering  <meyering@lucent.com>
91932
91933         * lib/md5.h (rol): Define (from GnuPG).
91934
91935         * lib/sha.c: Give credit (GnuPG) where due.
91936         (M): Use rol rather than open-coding it.
91937         Add a FIXME comment.
91938
91939 2000-09-21  Jim Meyering  <meyering@lucent.com>
91940
91941         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
91942         Reported by Michael Stone.
91943
91944 2000-09-20  Jim Meyering  <meyering@lucent.com>
91945
91946         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
91947         (noinst_HEADERS): Add sha.h.
91948         Based on code from Scott G. Miller and from GnuPG.
91949
91950 2000-09-18  Jim Meyering  <meyering@lucent.com>
91951
91952         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
91953         LIBS. Otherwise, everyone ends up linking with -lelf for some
91954         configurations.
91955         Reported by Mike Stone.
91956
91957 2000-09-15  Jim Meyering  <meyering@lucent.com>
91958
91959         * lib/regex.c: Update from libc.
91960
91961 2000-09-10  Jim Meyering  <meyering@lucent.com>
91962
91963         * lib/getopt.c (_getopt_internal): Update from glibc.
91964
91965 2000-09-09  Jim Meyering  <meyering@lucent.com>
91966
91967         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
91968         think it should be used as a general replacement for isascii.
91969         * lib/fnmatch.c: Likewise.
91970         * lib/mbswidth.c: Likewise
91971         * lib/regex.c: Likewise.
91972
91973         Don't use atoi.
91974         * lib/userspec.c: Include sys/param.h and limits.h.
91975         Include xstrtol.h.
91976         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91977         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
91978         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
91979         UID, GID.  Check range.
91980
91981 2000-09-06  Jim Meyering  <meyering@lucent.com>
91982
91983         * lib/getopt.c (_getopt_internal): Update from glibc.
91984
91985 2000-08-30  Jim Meyering  <meyering@lucent.com>
91986
91987         * lib/strftime.c: Merge in changes from GNU libc.
91988
91989 2000-08-26  Jim Meyering  <meyering@lucent.com>
91990
91991         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
91992         * m4/fpending.m4: New file.
91993
91994 2000-08-26  Jim Meyering  <meyering@lucent.com>
91995
91996         * lib/closeout.c: Include "__fpending.h".
91997         (close_stdout_status): Return right away if there's nothing to flush.
91998
91999         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
92000         * lib/__fpending.c: New file.
92001         * lib/__fpending.h: New file.
92002
92003 2000-08-20  Jim Meyering  <meyering@lucent.com>
92004
92005         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
92006         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
92007         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
92008
92009 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
92010
92011         Improve fileutils installation on systems where running
92012         programs (like install) can't be unlinked.
92013         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
92014         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
92015
92016 2000-08-07  Paul Eggert  <eggert@twinsun.com>
92017
92018         Standardize on "memory exhausted" instead of "Memory exhausted"
92019         or "virtual memory exhausted".
92020         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
92021         "virtual memory exhausted".
92022         * lib/same.c (same_name): Invoke xalloc_die instead of printing
92023         our own message.
92024         * lib/userspec.c (parse_user_spec): Likewise.
92025         * lib/bumpalloc.h: comment fix
92026         * lib/same.c, userspec.c: Include xalloc.h.
92027
92028         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
92029         not char *const and pointing to a constant array.
92030         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
92031         (xrealloc): Comment fix.
92032
92033         * lib/userspec.c (parse_user_spec):
92034         Don't translate a message until just before returning,
92035         to avoid unnecessary translation.
92036
92037 2000-08-07  Jim Meyering  <meyering@lucent.com>
92038
92039         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
92040         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
92041         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
92042         getgroups.c, gethostname.c, getopt.h, group-member.c,
92043         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
92044         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
92045         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
92046         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
92047         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
92048         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
92049         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
92050         yesno.c: Back out Copyright date changes for each file with no change
92051         this year.  This eases coordination with other programs using the same
92052         source code modules.  From Paul Eggert.
92053
92054 2000-08-06  Paul Eggert  <eggert@twinsun.com>
92055
92056         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
92057         not char, for compatibility with glibc 2.1.3 strftime.c.
92058
92059 2000-08-03  Greg McGary  <greg@mcgary.org>
92060
92061         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
92062         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
92063         (EXTEND_BUFFER): Use them.
92064
92065 2000-08-01  Jim Meyering  <meyering@lucent.com>
92066
92067         * lib/dirname.c (ISSLASH): Define.
92068         (BACKSLASH_IS_PATH_SEPARATOR): Define.
92069         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
92070         both `\' and `/' may be use as path separators.
92071         Based on a patch from Prashant TR.
92072
92073 2000-07-31  Paul Eggert  <eggert@twinsun.com>
92074
92075         * lib/quotearg.c (quotearg_n_options): Don't make the initial
92076         slot vector a constant, since it might get modified.
92077
92078 2000-07-31  Jim Meyering  <meyering@lucent.com>
92079
92080         * lib/xmalloc.c: Use `virtual memory exhausted', not
92081         `Memory exhausted'.
92082         * lib/obstack.c (print_and_abort): Likewise.
92083
92084 2000-07-30  Paul Eggert  <eggert@twinsun.com>
92085
92086         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
92087         buffer, so that the caller can always quote one small
92088         component of a "memory exhausted" message in slot 0.
92089         From a suggestion by Jim Meyering.
92090
92091 2000-07-30  Jim Meyering  <meyering@lucent.com>
92092
92093         * lib/makepath.c (make_path): Quote the other instance, too.
92094
92095         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
92096         (STATIC_BUF_SIZE): Define.
92097         (quotearg_n_options): Use only statically allocated storage when
92098         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
92099         than STATIC_BUF_SIZE.
92100
92101 2000-07-29  Jim Meyering  <meyering@lucent.com>
92102
92103         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
92104         * lib/dirname.c (dir_name): Likewise.
92105
92106         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
92107         `/'.
92108
92109         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
92110         (dir_name): Assert that there are no trailing slashes.
92111
92112 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
92113
92114         * lib/mbswidth.h (mbswidth): Add a flags argument.
92115         (mbswidth): New declaration.
92116         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
92117         * lib/mbswidth.c (mbswidth): Add a flags argument.
92118         (mbsnwidth): New function.
92119
92120 2000-07-24  Jim Meyering  <meyering@lucent.com>
92121
92122         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
92123
92124 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92125
92126         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
92127
92128 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92129
92130         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
92131         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
92132         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
92133         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
92134         invoke multibyte primitives.
92135
92136 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92137
92138         * lib/quotearg.c:
92139         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
92140         so that mbstate_t is always defined.
92141
92142         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
92143         be 1 in at least one GCC installation, and this configuration
92144         error is likely to be common.  Ignoring MB_LEN_MAX hurts
92145         performance on hosts that have mbrtowc but have only unibyte
92146         locales, but I assume these hosts are rare.
92147
92148 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92149
92150         * lib/mbswidth.c (_XOPEN_SOURCE):
92151         Don't define; this causes problems on Solaris 7.
92152         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
92153
92154 2000-07-23  Jim Meyering  <meyering@lucent.com>
92155
92156         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
92157         too: getgrgid, getpwuid, getuid.
92158
92159 2000-07-23  Jim Meyering  <meyering@lucent.com>
92160
92161         * lib/basename.c (base_name): Add an assertion.
92162
92163 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
92164
92165         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
92166         shadow its mbsinit function.
92167
92168 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92169
92170         * lib/mbswidth.h: New file.
92171         * lib/mbswidth.c: New file.
92172         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
92173         (noinst_HEADERS): Add mbswidth.h.
92174
92175 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92176
92177         * lib/config.charset: Add support for FreeBSD. Improve support for
92178         HP-UX and IRIX 6.
92179
92180 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
92181
92182         * m4/mbswidth.m4: New file.
92183         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
92184
92185 2000-07-15  Jim Meyering  <meyering@lucent.com>
92186
92187         * lib/makepath.c: Include quote.h.
92188         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
92189         corresponding argument in a `quote (...)' call.
92190         Give better diagnostics.
92191
92192         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
92193         (noinst_HEADERS): Add quote.h.
92194
92195         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
92196         from tar's src/misc.c.
92197         * lib/quote.h: New file.  Prototypes for same.
92198
92199 2000-07-14  Paul Eggert  <eggert@twinsun.com>
92200
92201         From a suggestion by Bruno Haible.
92202         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
92203         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
92204         to decide whether to define the BeOS workaround macro;
92205         this adjusts to the change to AC_MBSTATE_T.
92206
92207 2000-07-14  Jim Meyering  <meyering@lucent.com>
92208
92209         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
92210         jm_AC_TYPE_UINTMAX_T.
92211
92212 2000-07-13  Paul Eggert  <eggert@twinsun.com>
92213
92214         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
92215
92216         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
92217         quotearg_buffer_restyled): Add support for
92218         clocale_quoting_style.  Undo previous change to
92219         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
92220         and "{RIGHT QUOTATION MARK}" msgids.
92221
92222 2000-07-10  Paul Eggert  <eggert@twinsun.com>
92223
92224         From a suggestion by Bruno Haible.
92225         * m4/mbstate_t.m4 (AC_MBSTATE_T):
92226         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
92227         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
92228         and mbstate_t, to a single-part test that simply defines mbstate_t.
92229         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
92230         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
92231
92232 2000-07-10  Jim Meyering  <meyering@lucent.com>
92233
92234         * m4/strerror_r.m4: Mirror the correction made in autoconf.
92235
92236         * m4/gnu-source.m4: Output to confdefs.h directly.
92237         Suggestion from Akim Demaille.
92238
92239 2000-07-09  Paul Eggert  <eggert@twinsun.com>
92240
92241         The old behavior of quoting `like this' doesn't look good with
92242         newer, ISO-style fonts.  See:
92243         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
92244
92245         Instead, quote "like this" by default.  Let the translator
92246         tailor the locale-specific quoting behavior by providing
92247         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
92248
92249         * lib/quotearg.c (N_): New macro.
92250         (gettext_default): New function.
92251         (quotearg_buffer_restyled): Use
92252         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
92253         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
92254
92255 2000-07-09  Jim Meyering  <meyering@lucent.com>
92256
92257         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
92258         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
92259
92260         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
92261         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
92262
92263 2000-07-09  Jim Meyering  <meyering@lucent.com>
92264
92265         * lib/Most files: Update copyright dates to include 2000.
92266
92267 2000-07-08  Jim Meyering  <meyering@lucent.com>
92268
92269         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
92270         if not defined.
92271         (xgethostname): Remove now-unnecessary #ifdef.
92272         Move declaration of `err' into loop where it's used.
92273
92274 2000-07-05  Paul Eggert  <eggert@twinsun.com>
92275         and Bruno Haible  <haible@clisp.cons.org>
92276
92277         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
92278         only if the test for an object-type mbstate_t fails.  This
92279         prevents us from mistakenly reporting that mbstate_t is a
92280         system object type after we "#define mbstate_t int" to work
92281         around its lack.
92282
92283 2000-07-05  Paul Eggert  <eggert@twinsun.com>
92284         and Bruno Haible  <haible@clisp.cons.org>
92285
92286         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
92287
92288 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92289
92290         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
92291         to strerror_r.
92292         Include <ctype.h> for use of isalpha.
92293
92294 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92295
92296         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
92297         by allocating a larger buffer. Test the gethostname return value for
92298         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
92299         returns an error and ENAMETOOLONG isn't defined.
92300
92301 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92302
92303         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
92304         dimension.
92305
92306 2000-07-04  Jim Meyering  <meyering@lucent.com>
92307
92308         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
92309         of the deprecated AC_CHECKING.
92310
92311 2000-07-04  Jim Meyering  <meyering@lucent.com>
92312
92313         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
92314         Reported by Bruno Haible.
92315
92316 2000-07-04  Jim Meyering  <meyering@lucent.com>
92317
92318         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
92319         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
92320         lacks mbrtowc.
92321
92322 2000-07-03  Paul Eggert  <eggert@twinsun.com>
92323
92324         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
92325         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
92326
92327 2000-07-03  Paul Eggert  <eggert@twinsun.com>
92328         and Bruno Haible  <haible@clisp.cons.org>
92329
92330         * lib/quotearg.c (mbrtowc):
92331         Assign to *pwc, and return 1 only if result is nonzero.
92332         (iswprint): Use ISPRINT when substituting our own mbrtowc.
92333
92334 2000-07-03  Jim Meyering  <meyering@lucent.com>
92335
92336         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
92337
92338 2000-07-03  Jim Meyering  <meyering@lucent.com>
92339
92340         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
92341         This is necessary to get a definition of e.g., UTMP_FILE on
92342         HP-UX 10.20.
92343         From Bob Proulx.
92344
92345 2000-07-02  Jim Meyering  <meyering@lucent.com>
92346
92347         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
92348
92349         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
92350         AC_LIBOBJ(function_name).
92351         * m4/chown.m4: Likewise.
92352         * m4/fnmatch.m4: Likewise.
92353         * m4/ftruncate.m4: Likewise.
92354         * m4/getgroups.m4: Likewise.
92355         * m4/getline.m4: Likewise.
92356         * m4/group-member.m4: Likewise.
92357         * m4/jm-macros.m4: Likewise.
92358         * m4/lstat.m4: Likewise.
92359         * m4/malloc.m4: Likewise.
92360         * m4/memcmp.m4: Likewise.
92361         * m4/nanosleep.m4: Likewise.
92362         * m4/putenv.m4: Likewise.
92363         * m4/realloc.m4: Likewise.
92364         * m4/regex.m4: Likewise.
92365         * m4/stat.m4: Likewise.
92366         * m4/strftime.m4: Likewise.
92367
92368 2000-07-02  Jim Meyering  <meyering@lucent.com>
92369
92370         * lib/quotearg.c (mbstate_t): Don't define here.
92371
92372 2000-07-02  Jim Meyering  <meyering@lucent.com>
92373
92374         * lib/nanosleep.c (SIGCONT): Define if not already defined.
92375
92376 2000-07-01  Jim Meyering  <meyering@lucent.com>
92377
92378         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
92379
92380 2000-07-01  Jim Meyering  <meyering@lucent.com>
92381
92382         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
92383         problem.
92384
92385 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
92386
92387         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
92388         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
92389
92390 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
92391
92392         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
92393         per change in ../m4/ls-mntd-fs.m4.
92394         (read_filesystem_list): Ignore symbolic links.
92395
92396 2000-06-29  Jim Meyering  <meyering@lucent.com>
92397
92398         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
92399         for declaration of strcmp.
92400
92401         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
92402
92403         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
92404         Avoid warning by casting result to `char *' to remove `const'.
92405
92406 2000-06-28  Jim Meyering  <meyering@lucent.com>
92407
92408         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
92409         included by quotearg.c, for which we perform this test.  From
92410         Bruno Haible.
92411
92412 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
92413
92414         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
92415         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
92416         <utmpx.h> exists, put readutmp.o into LIBOBJS.
92417
92418 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
92419
92420         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
92421
92422 2000-06-26  Paul Eggert  <eggert@twinsun.com>
92423
92424         savedir now sets errno on failure and invokes xmalloc to get memory.
92425         Fix a couple of other minor bugs while we're at it.
92426
92427         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
92428         (NAMLEN): Remove macro.
92429         (malloc, realloc): Remove decls.
92430         (stpcpy): Likewise.
92431         ("xalloc.h"): Include.
92432         (NAME_SIZE_DEFAULT): New macro.
92433         (savedir): Use xmalloc / xrealloc to allocate memory.
92434         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
92435         Skip "" directory entries.
92436         Use strlen to calculate directory entry length, since the old method
92437         is rarely used these days and isn't worth supporting.
92438         Don't use a pointer after freeing it.
92439         Check for integer overflow when calculating allocation size.
92440         Use memcpy to copy entries, instead of stpcpy.
92441         Set errno properly when returning NULL.
92442         Check for readdir error.
92443
92444 2000-06-26  Jim Meyering  <meyering@lucent.com>
92445
92446         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
92447
92448 2000-06-25  Jim Meyering  <meyering@lucent.com>
92449
92450         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
92451         Linux header bug when _XOPEN_SOURCE is defined to 500.
92452
92453 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
92454
92455         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
92456         deficiency.
92457
92458 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
92459
92460         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
92461         Include xalloc.h.
92462         Don't include <stdlib.h>.  Don't declare malloc, realloc.
92463
92464 2000-06-24  Jim Meyering  <meyering@lucent.com>
92465
92466         * m4/strerror_r.m4: Revive this file -- to try out an experimental
92467         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
92468         for which strerror does return char*, but which lacks a conveniently
92469         accessible declaration of the function.  If the compile-test says
92470         strerror_r doesn't work, then resort to a `run'-test that works on
92471         BeOS and segfaults on DEC Unix.
92472
92473 2000-06-24  Jim Meyering  <meyering@lucent.com>
92474
92475         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
92476
92477 2000-06-23  Paul Eggert  <eggert@twinsun.com>
92478
92479         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
92480         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
92481
92482 2000-06-23  Paul Eggert  <eggert@twinsun.com>
92483
92484         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
92485         (mbrtowc, mbstate_t): Define substitutes if
92486         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
92487         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
92488         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
92489
92490 2000-06-23  Jim Meyering  <meyering@lucent.com>
92491
92492         * m4/afs.m4: Add missing AC_MSG_RESULT.
92493         Reported by Bruno Haible.
92494
92495         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
92496         Suggestion from Bruno Haible.
92497
92498 2000-06-23  Jim Meyering  <meyering@lucent.com>
92499
92500         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
92501
92502 2000-06-21  Jim Meyering  <meyering@lucent.com>
92503
92504         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
92505
92506 2000-06-21  Jim Meyering  <meyering@lucent.com>
92507
92508         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
92509         (noinst_HEADERS): Add getstr.h.
92510
92511         * lib/getline.c (getstr): Move into a separate file.
92512         * lib/getstr.c (getstr): New file, extracted from getline.c, with
92513         the following changes: new parameter, delim2; both delim[12]
92514         parameters have type `int', not `char'.  The latter would lose
92515         with 8-bit delimiters.
92516         * lib/getstr.h: New file.
92517
92518 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
92519
92520         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
92521         than 1024, return a memory chunk of least possible size, instead
92522         of size PATH_MAX + 2. In the loop, increment the size proportionally.
92523         Use free/xmalloc instead of xrealloc to avoid copying for very long
92524         paths.
92525
92526 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
92527
92528         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
92529         the empty string.
92530
92531 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
92532
92533         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
92534         address, not strdup.  Include <stdlib.h> and don't declare free().
92535
92536 2000-06-19  Jim Meyering  <meyering@lucent.com>
92537
92538         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
92539
92540 2000-06-18  Jim Meyering  <meyering@lucent.com>
92541
92542         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
92543
92544         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
92545         `checking whether...' message to be consistent with that of the
92546         lstat test.
92547
92548 2000-06-18  Jim Meyering  <meyering@lucent.com>
92549
92550         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
92551         Besides, these days every porting target provides a mkdir function.
92552
92553         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
92554         needed. (this snippet comes from src/system.h).
92555
92556 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
92557
92558         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
92559
92560 2000-06-15  Paul Eggert  <eggert@twinsun.com>
92561
92562         * lib/human.c (adjust_value): New function.
92563         (human_readable_inexact): Apply rounding style even when
92564         printing approximate values.
92565
92566 2000-06-14  Paul Eggert  <eggert@twinsun.com>
92567
92568         * lib/human.c (human_readable_inexact): Allow an input block
92569         size that is not a multiple of the output block size, and vice versa.
92570         Reported by Piergiorgio Sartor.
92571
92572 2000-06-14  Paul Eggert  <eggert@twinsun.com>
92573
92574         * lib/getdate.y (get_date): Apply relative times after time
92575         zone indicator, not before.  Reported by Todd A. Jacobs.
92576
92577 2000-06-13  Jim Meyering  <meyering@lucent.com>
92578
92579         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
92580
92581         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
92582
92583 2000-06-12  Paul Eggert  <eggert@twinsun.com>
92584
92585         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
92586
92587 2000-06-12  Jim Meyering  <meyering@lucent.com>
92588
92589         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
92590         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
92591         optional argument.
92592         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
92593         the optional argument, `lib'.
92594
92595 2000-06-08  Jim Meyering  <meyering@lucent.com>
92596
92597         * m4/largefile.m4: Remove file (now that it's part of autoconf).
92598
92599 2000-06-04  Paul Eggert  <eggert@twinsun.com>
92600
92601         Rewrite largefile configuration so that we don't need to run
92602         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
92603         AC_CANONICAL_HOST in configure.in -- jmm]
92604
92605         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
92606         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
92607         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
92608         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
92609         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
92610         All uses changed.
92611         Instead of inspecting the output of getconf, try to compile the
92612         test program without and with the macro definition.
92613         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
92614         for getconf.  Instead, check for the needed flags by compiling
92615         test programs.
92616
92617 2000-06-04  Paul Eggert  <eggert@twinsun.com>
92618
92619         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
92620
92621 2000-06-04  Jim Meyering  <meyering@lucent.com>
92622
92623         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
92624         SunOS 4.1.4 for which gid_t is an unsigned type.
92625
92626 2000-06-03  Jim Meyering  <meyering@lucent.com>
92627
92628         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
92629         now that autoconf requires that.
92630
92631         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
92632         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
92633         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
92634
92635 2000-06-03  Jim Meyering  <meyering@lucent.com>
92636
92637         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
92638
92639 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
92640
92641         * m4/glibc21.m4: New file.
92642         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
92643
92644 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
92645
92646         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
92647         newer, don't install charset.alias.
92648         * lib/config.charset: Change the Linux/glibc rules so they become empty
92649         on glibc-2.1 or newer.
92650
92651 2000-06-02  Jim Meyering  <meyering@lucent.com>
92652
92653         * lib/mountlist.c: Back out last change.  Instead, do this...
92654         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
92655         me_dummy member using the same `ignore'-testing code.
92656         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
92657         fs_type strings.
92658         From Mark D. Roth.
92659
92660 2000-05-29  Jim Meyering  <meyering@lucent.com>
92661
92662         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
92663         mounts with the `ignore' attribute.  Based on a patch from
92664         Mark D. Roth.
92665
92666 2000-05-28  Jim Meyering  <meyering@lucent.com>
92667
92668         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
92669         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92670         * m4/stat.m4: Likewise.
92671         * m4/lstat.m4: Likewise.
92672         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
92673
92674         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
92675         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
92676
92677 2000-05-26  Jim Meyering  <meyering@lucent.com>
92678
92679         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
92680
92681 2000-05-24  Jim Meyering  <meyering@lucent.com>
92682
92683         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
92684         autoconf requires that.
92685         * m4/lib-check.m4: Likewise.
92686         * m4/jm-macros.m4: Likewise.
92687         * m4/strftime.m4: Likewise.
92688
92689         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
92690         AC_CHECK_DECLS, now that autoconf requires that.
92691
92692 2000-05-22  Jim Meyering  <meyering@lucent.com>
92693
92694         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92695         * m4/lstat.m4: Likewise.
92696
92697 2000-05-22  Jim Meyering  <meyering@lucent.com>
92698
92699         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
92700
92701 2000-05-20  Jim Meyering  <meyering@lucent.com>
92702
92703         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
92704         (jm_PREREQ): Use it.
92705
92706 2000-05-18  Jim Meyering  <meyering@lucent.com>
92707
92708         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
92709         back, too, since it may have been modified by allocate_entry.
92710         (hash_delete): Rewrite to use neither the assignment operator
92711         nor the comma operator in an if-expression.
92712
92713 2000-05-15  Paul Eggert  <eggert@twinsun.com>
92714
92715         * lib/closeout.c:
92716         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
92717         Remove; no longer needed.
92718         "quotearg.h": Add include.
92719         (file_name): Do not bother to explicitly initialize to NULL; it's less
92720         efficient on some hosts.
92721         (close_stdout_status): Remove test as to whether stdout was already
92722         closed; it breaks for the case "echo x | sort >&-".
92723         Quote file name colons.
92724         Do not assume that _("write error") lacks format strings.
92725
92726 2000-05-15  Jim Meyering  <meyering@lucent.com>
92727
92728         * lib/version-etc.c (version_etc_copyright): Update the copyright
92729         string used in all --version output.
92730
92731 2000-05-14  Jim Meyering  <meyering@lucent.com>
92732
92733         * lib/closeout.c (close_stdout_set_file_name): New function.
92734         (close_stdout_status): Use new file-scoped global.
92735         Return right away if fstat says the stdout file descriptor is invalid.
92736         * lib/closeout.h (close_stdout_set_file_name): Declare.
92737
92738 2000-05-10  Jim Meyering  <meyering@lucent.com>
92739
92740         * lib/closeout.c [default_exit_status]: New file-scoped variable.
92741         (close_stdout_set_status): New function.
92742         * lib/closeout.h (close_stdout_set_status): Declare.
92743
92744 2000-05-09  Jim Meyering  <meyering@lucent.com>
92745
92746         * m4/gettext.m4: Rename this...
92747         * m4/libintl.m4: ...to this.
92748
92749 2000-05-08  Jim Meyering  <meyering@lucent.com>
92750
92751         * lib/long-options.c: Don't include closeout.h.
92752         (parse_long_options): Don't call close_stdout for --version.
92753
92754 2000-05-06  Paul Eggert  <eggert@twinsun.com>
92755
92756         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
92757         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
92758         2.1.3 bug.  This avoids a clash when files like regex.c define
92759         _GNU_SOURCE.
92760
92761 2000-05-06  Jim Meyering  <meyering@lucent.com>
92762
92763         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
92764         (AC_REPLACE_FUNCS): Add strnlen.
92765
92766         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
92767         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
92768
92769         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
92770         AC_SEARCH_LIBS call for nanosleep.
92771         (LIB_NANOSLEEP): Set and AC_SUBST.
92772
92773 2000-05-06  Jim Meyering  <meyering@lucent.com>
92774
92775         * lib/strnlen.c: Undefine __strnlen and strnlen.
92776         [!weak_alias]: Define __strnlen to strnlen.
92777
92778         * lib/atexit.c: New file, from libiberty.
92779
92780 2000-05-06  Jim Meyering  <meyering@lucent.com>
92781
92782         * lib/closeout.c (close_stdout_status): Also check for errors on the
92783         stderr stream.
92784
92785 2000-05-05  Jim Meyering  <meyering@lucent.com>
92786
92787         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
92788         AC_SEARCH_LIBS call for clock_gettime.
92789         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
92790
92791         * m4/search-libs.m4: Update from autoconf.
92792
92793         su doesn't work on Solaris 2.6.
92794         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
92795         <shadow.h>.  Reported by Dragos Harabor.
92796
92797 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
92798
92799         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
92800         memcpy instead of xmalloc, xrealloc, path_concat.
92801         (locale_charset): Treat empty environment variables as absent.
92802         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
92803
92804 2000-05-04  Jim Meyering  <meyering@lucent.com>
92805
92806         * lib/getopt.c: Update from glibc.
92807         * lib/obstack.c: Likewise.
92808         * lib/obstack.h: Likewise.
92809         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
92810         file
92811
92812         * lib/regex.h: Likewise.
92813         * lib/strndup.c: Likewise.
92814         * lib/strnlen.c: New file, from glibc.
92815
92816 2000-05-03  Jim Meyering  <meyering@lucent.com>
92817
92818         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
92819
92820 2000-05-02  Paul Eggert  <eggert@twinsun.com>
92821
92822         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
92823         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
92824         compile-time test, rather than inspecting host and OS, to
92825         decide whether to define _LARGEFILE_SOURCE.
92826
92827 2000-05-01  Jim Meyering  <meyering@lucent.com>
92828
92829         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
92830
92831         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
92832         Based on a patch from Bruno Haible.
92833
92834 2000-05-01  Jim Meyering  <meyering@lucent.com>
92835
92836         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
92837
92838 2000-04-29  Jim Meyering  <meyering@lucent.com>
92839
92840         * lib/path-concat.c: Declare strdup only if it's not defined.
92841         * lib/canon-host.c: Likewise.
92842
92843 2000-04-28  Jim Meyering  <meyering@lucent.com>
92844
92845         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
92846         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
92847         is included first, then limits.h is included by locale.h by libintl.h.
92848         From John David Anglin.
92849
92850 2000-04-25  Jim Meyering  <meyering@lucent.com>
92851
92852         * lib/makepath.c (S_IRWXUGO): Define.
92853         (make_path): Always perform explicit chmod if MODE specifies any
92854         of the `special' permission bits.  Prompted by a bug report against
92855         install from Mate Wierdl and Joost van Baal.
92856
92857 2000-04-18  Jim Meyering  <meyering@lucent.com>
92858
92859         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
92860         (jm_PREREQ): Use it.
92861
92862 2000-04-18  Jim Meyering  <meyering@lucent.com>
92863
92864         * lib/README: New file.
92865
92866         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
92867         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
92868
92869 2000-04-17  Jim Meyering  <meyering@lucent.com>
92870
92871         Get it right :-)
92872         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
92873         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
92874         Suggestion from Akim Demaille.
92875
92876 2000-04-17  Jim Meyering  <meyering@lucent.com>
92877
92878         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
92879         the definition of it to rpl_strftime also defined-away the system's
92880         declaration.
92881
92882 2000-04-15  Jim Meyering  <meyering@lucent.com>
92883
92884         Use `C' to denote so-called `contiguous' files, the same way
92885         that tar does.
92886         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
92887         (ftypelet): Use S_ISCTG.
92888         From Michael Deutschmann.
92889
92890 2000-04-14  Jim Meyering  <meyering@lucent.com>
92891
92892         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
92893         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
92894         clobbered.
92895
92896 2000-04-14  Jim Meyering  <meyering@lucent.com>
92897
92898         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
92899
92900 2000-04-13  Jim Meyering  <meyering@lucent.com>
92901
92902         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
92903         AH_VERBATIM to insert required #ifndef into config.h.in.
92904         Suggestion from Akim Demaille.
92905
92906 2000-04-12  Jim Meyering  <meyering@lucent.com>
92907
92908         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
92909         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
92910         Christian Krackowizer.
92911
92912         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
92913         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
92914         (AC_SYS_LARGEFILE): Require.
92915         (AM_C_PROTOTYPES): Require.
92916
92917 2000-04-08  Jim Meyering  <meyering@lucent.com>
92918
92919         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
92920         names don't conflict.  Reported by Eli Zaretskii.
92921
92922 2000-04-07  Jim Meyering  <meyering@lucent.com>
92923
92924         * lib/putenv.c: Move inclusion of errno.h so it follows that of
92925         sys/types.h, to work around system header problems on AIX 3.2.5.
92926         From Bruno Haible.
92927
92928 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
92929
92930         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
92931         bug.  Deal with the different error behavior of Irix iconv.
92932
92933 2000-04-05  Paul Eggert  <eggert@twinsun.com>
92934
92935         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
92936         IRIX if the installer said otherwise.
92937
92938 2000-04-05  Jim Meyering  <meyering@lucent.com>
92939
92940         Portability tweaks required for ultrix4.3.
92941         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
92942         (jm_CHECK_DECLS): Add getutent to the list of functions.
92943         (_jm_DECL_HEADERS): Add utmpx.h.
92944         From John David Anglin.
92945
92946         * m4/strftime.m4: Back out the 2000-04-02 change.
92947         Instead of that change, simply undefine putenv in the test program.
92948
92949 2000-04-05  Jim Meyering  <meyering@lucent.com>
92950
92951         Portability tweaks required for ultrix4.3.
92952         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
92953         getutent.
92954         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
92955         * lib/canon-host.c: Declare strdup.
92956         * lib/path-concat.c: Likewise.
92957         From John David Anglin.
92958
92959 2000-04-04  Jim Meyering  <meyering@lucent.com>
92960
92961         Be more DOS 8.3-friendly.
92962         * lib/ref-add.sin: Renamed from ref-add.sed.in.
92963         * lib/ref-del.sin: Renamed from ref-del.sed.in.
92964         * lib/Makefile.am: Reflect renaming.
92965         Reported by Eli Zaretskii.
92966
92967         Use a temporary file name that won't clash with `charset.alias'
92968         in the DOS 8.3 name space.
92969         * lib/Makefile.am (charset_tmp): Define.
92970         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
92971         (uninstall-local): Likewise.
92972         Reported by Eli Zaretskii.
92973
92974 2000-04-03  Jim Meyering  <meyering@lucent.com>
92975
92976         * m4/gettext.m4: Fix typo in comment.
92977
92978         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
92979         textutils/configure.in).  Suggestion from Paul Eggert.
92980         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
92981
92982 2000-04-02  Paul Eggert  <eggert@twinsun.com>
92983
92984         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
92985         variable in the shell rather than using putenv, which isn't
92986         portable.  This avoids the configure-time inter-test dependency
92987         on the potentially-renamed putenv function.
92988
92989 2000-03-30  Paul Eggert  <eggert@twinsun.com>
92990
92991         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
92992         before checking struct stat.st_blksize, so that
92993         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
92994
92995 2000-03-29  Paul Eggert  <eggert@twinsun.com>
92996
92997         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
92998         since strftime.c uses HAVE_STRFTIME to decide whether to use
92999         the underlying strftime.
93000
93001 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93002
93003         * lib/time/strftime.c (my_strftime): Make sure we call the system
93004         strftime, not ourselves, when invoking the underlying strftime.
93005
93006 2000-03-24  Jim Meyering  <meyering@lucent.com>
93007
93008         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
93009         (charset_alias): Define.
93010         (install-exec-local): Factor out common code.
93011         (uninstall-local): Split lines longer than 80.
93012         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
93013         (SUFFIXES): Define.
93014         (.sed.in.sed): New rule.  Don't redirect directly to $@.
93015         (CLEANFILES): Add ref-add.sed and ref-del.sed.
93016
93017 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
93018
93019         * lib/config.charset: Output a line containing "Packages using this
93020         file".
93021         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
93022         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
93023         ref-del.sed): New rules.
93024
93025 2000-03-17  Jim Meyering  <meyering@lucent.com>
93026
93027         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
93028         Otherwise, include <strings.h>
93029
93030 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
93031
93032         * lib/unicodeio.c (utf8_wctomb): New function.
93033         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
93034         format instead of in UCS-4 with platform dependent endianness.
93035
93036 2000-03-10  Jim Meyering  <meyering@lucent.com>
93037
93038         * m4/lib-check.m4: Look for getspnam in -lgen, too.
93039         From Marco Franzen.
93040
93041 2000-03-07  Paul Eggert  <eggert@twinsun.com>
93042
93043         * lib/savedir.c (savedir): Work even if directory size is
93044         negative; this can happen with some screwy NFS configurations.
93045
93046 2000-03-06  Jim Meyering  <meyering@lucent.com>
93047
93048         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
93049         if it's NULL (because we ran out of memory).  From Bruno Haible.
93050
93051 2000-03-05  Jim Meyering  <meyering@lucent.com>
93052
93053         * lib/localcharset.c ("path-concat.h"): Include.
93054         (get_charset_aliases): Use path_concat instead of ANSI string
93055         concatenation.
93056
93057         * lib/unicodeio.h (PARAMS): Define.
93058         Use it to guard prototype.
93059
93060 2000-03-04  Jim Meyering  <meyering@lucent.com>
93061
93062         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
93063         for lib/localcharset.c.
93064
93065 2000-03-04  Jim Meyering  <meyering@lucent.com>
93066
93067         * lib/Makefile.am (install-exec-local): Create $(libdir) before
93068         installing into it.
93069         (uninstall-local): Uncomment this rule so `make distcheck' works
93070         once again.
93071
93072         * lib/unicodeio.c (<errno.h>): Include it.
93073         (errno): Declare if not defined.
93074
93075         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
93076
93077         * lib/config.charset: New version, incorporating remarks from a linux
93078         i18n mailing list.  From Bruno Haible.
93079
93080 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
93081
93082         * m4/codeset.m4: New file.
93083         * m4/iconv.m4: New file.
93084         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
93085
93086 2000-03-03  Jim Meyering  <meyering@lucent.com>
93087
93088         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
93089
93090 2000-03-02  Jim Meyering  <meyering@lucent.com>
93091
93092         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
93093         the messages come out on separate lines.
93094
93095         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
93096         rather than jm_CHECK_DECLARATIONS.
93097         * m4/decl.m4: Remove now-unused file.
93098
93099         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
93100         geteuid.
93101
93102 2000-03-02  Jim Meyering  <meyering@lucent.com>
93103
93104         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
93105
93106 2000-03-01  Jim Meyering  <meyering@lucent.com>
93107
93108         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
93109         * lib/unicodeio.c: Likewise.
93110
93111 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
93112
93113         * lib/config.charset: New file.
93114         * lib/localcharset.c: New file.
93115         * lib/unicodeio.h, lib/unicodeio.c: New files.
93116         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
93117         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
93118         (noinst_HEADERS): Add unicodeio.h.
93119         (all-local, install-exec-local, charset.alias): New targets.
93120
93121 2000-02-28  Paul Eggert  <eggert@twinsun.com>
93122
93123         * lib/quotearg.c (ALERT_CHAR): New macro.
93124         (quotearg_buffer_restyled): Use it.
93125
93126 2000-02-27  Jim Meyering  <meyering@lucent.com>
93127
93128         * m4/check-decl.m4: Add getenv to the list.
93129
93130 2000-02-27  Jim Meyering  <meyering@lucent.com>
93131
93132         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
93133         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
93134
93135         * lib/backupfile.c: Guard inclusion of stdlib.h with
93136         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
93137         Declare malloc if needed.
93138
93139         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
93140         `#ifndef HAVE_DECL..'
93141         now that autoconf always defines the HAVE_DECL_ symbols.
93142         * lib/human.c: Likewise.
93143         * lib/same.c: Likewise.
93144         * lib/strtoumax.c: Likewise.
93145
93146         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
93147         declaration check was not run.
93148         * lib/hash.c: Likewise.
93149         * lib/human.c: Likewise.
93150         * lib/same.c: Likewise.
93151         * lib/strtoumax.c: Likewise.
93152
93153         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
93154         `.', then first look up the entire `.'-containing string as a login
93155         name.
93156
93157 2000-02-23  Jim Meyering  <meyering@lucent.com>
93158
93159         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
93160         in place of my hack.
93161
93162 2000-02-18  Paul Eggert  <eggert@twinsun.com>
93163
93164         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
93165         (textint): New typedef.
93166         (parser_control): Member year changed from int to textint.
93167         All uses changed.
93168         (YYSTYPE): Removed; replaced by %union with int and textint members.
93169         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
93170         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
93171         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
93172         (tSNUMBER, tUNUMBER): Now of type <textintval>.
93173         (date, number, to_year): Use width of number in digits, not its value,
93174         to determine whether it's a 2-digit year, or a 2-digit time.
93175         (yylex): Store number of digits of numeric tokens.
93176         Reported by John Kendall.
93177
93178         (parser_control): Changed from struct parser_control to typedef (for
93179         consistency).  All uses changed.
93180
93181         (tID): Removed; not used.
93182         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
93183
93184 2000-02-14  Paul Eggert  <eggert@twinsun.com>
93185
93186         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
93187         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
93188
93189 2000-02-12  Jim Meyering  <meyering@lucent.com>
93190
93191         * lib/userspec.c (ISDIGIT): Define it.
93192         (isdigit): Remove definition.
93193         (is_number): Use ISDIGIT, not isdigit.
93194         <libintl.h>: Include.
93195         (_ and N_): Define.
93196         (parse_user_spec): Mark translatable strings.
93197
93198 2000-02-10  Jim Meyering  <meyering@lucent.com>
93199
93200         With these changes, nanosleep.[ch] are finally enough like the other
93201         lib/* replacement files to compile on a few more losing systems.
93202
93203         * lib/nanosleep.h: Don't include config.h.
93204         Remove prototype from declaration of nanosleep.
93205         (PARAMS): Remove now-unneeded definition.
93206         * lib/nanosleep.c: #undef nanosleep.
93207         (rpl_nanosleep): Rename from nanosleep.
93208
93209 2000-02-10  Jim Meyering  <meyering@lucent.com>
93210
93211         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
93212         gnu_nanosleep to rpl_nanosleep.
93213
93214 2000-02-09  Jim Meyering  <meyering@lucent.com>
93215
93216         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
93217         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
93218
93219 2000-02-08  Akim Demaille  <akim@epita.fr>
93220
93221         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
93222         `[' and `]' and remove uses of `changequote'.
93223         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
93224         (AC_SYS_LARGEFILE): Likewise.
93225         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
93226         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
93227         of changequote.
93228         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
93229         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
93230         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
93231         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
93232
93233 2000-02-05  Jim Meyering  <meyering@lucent.com>
93234
93235         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
93236         Remove explicit use of AC_HEADER_TIME.  It is required by
93237         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
93238         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
93239         in autoconf whereby the expansion of the latter ended up preceding
93240         the expansion of its prerequisite, AC_HEADER_TIME.
93241         Reported by Volker Borchert.
93242
93243 2000-02-03  Jim Meyering  <meyering@lucent.com>
93244
93245         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
93246
93247 2000-02-03  Jim Meyering  <meyering@lucent.com>
93248
93249         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
93250         rather than with `#if HAVE_UTMPNAME'.
93251
93252 2000-02-02  Jim Meyering  <meyering@lucent.com>
93253
93254         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
93255         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
93256         Reported by Eli Zaretskii.
93257
93258 2000-02-01  Jim Meyering  <meyering@lucent.com>
93259
93260         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
93261
93262 2000-01-31  Jim Meyering  <meyering@lucent.com>
93263
93264         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
93265         functions.  Add the time.h and sys/time.h headers along with the
93266         AC_REQUIRE'ment of AC_HEADER_TIME.
93267
93268 2000-01-31  Jim Meyering  <meyering@lucent.com>
93269
93270         * lib/nanosleep.h (nanosleep): Guard declaration with
93271         `#if ! HAVE_DECL_NANOSLEEP'.
93272         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
93273         the declaration in that vendor's sys/timers.h.
93274         Reported by Christian Krackowizer.
93275
93276         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
93277         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
93278         (ISPRINT): Likewise.
93279         Reported by Tom Tromey.
93280
93281 2000-01-30  Jim Meyering  <meyering@lucent.com>
93282
93283         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
93284
93285         * m4/prereq.m4 (utmp_includes): Define.
93286         Check for ut_user and ut_name members in both struct utmpx
93287         and struct utmp.
93288
93289 2000-01-30  Jim Meyering  <meyering@lucent.com>
93290
93291         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
93292         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
93293         header files where only utmpx.ut_user is declared.
93294
93295         * lib/readutmp.h (UT_USER): Define.
93296
93297 2000-01-29  Jim Meyering  <meyering@lucent.com>
93298
93299         * m4/lib-check.m4: New file containing library-related checks from
93300         fileutils and sh-utils (textutils had none).
93301
93302 2000-01-28  Jim Meyering  <meyering@lucent.com>
93303
93304         * m4/perl.m4: Change format of warning message to look more like that
93305         from the missing script.  Suggestion from François Pinard.
93306
93307 2000-01-25  Jim Meyering  <meyering@lucent.com>
93308
93309         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
93310         well as time.h in the compile check.
93311         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
93312         Fix typo in cross-compiling case: s/yes/no/.
93313
93314 2000-01-23  Jim Meyering  <meyering@lucent.com>
93315
93316         * m4/jm-macros.m4: Move df-related tests here from
93317         fileutils/configure.in
93318
93319         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
93320         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
93321
93322         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
93323         s/space/ac_fsusage_space/.
93324         (jm_FILE_SYSTEM_USAGE): Take two parameters.
93325
93326         * m4/ftruncate.m4: New file (derived from part of
93327         fileutils/configure.in).
93328         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
93329         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
93330
93331         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
93332         AC_SUBST these here, rather than just in sh-util/configure.in, so
93333         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
93334         all the same.
93335         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
93336         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
93337         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
93338         (AC_SUBST(POW_LIBM)): Likewise.
93339         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
93340
93341 2000-01-23  Jim Meyering  <meyering@lucent.com>
93342
93343         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
93344         obstack.c.
93345
93346 2000-01-22  Jim Meyering  <meyering@lucent.com>
93347
93348         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
93349
93350         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
93351
93352         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
93353         configure.in
93354         (AC_CHECK_HEADERS): Likewise for sh-utils.
93355         (AC_CHECK_HEADERS): Likewise for textutils.
93356         Merge the three lists of headers.
93357
93358         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
93359         from fileutils' configure.in.
93360
93361         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
93362         code. Moved tests into their own function (_jm_DECL_HEADERS) in
93363         check-decl.m4.
93364
93365         * m4/check-decl.m4: Use #if rather than #ifdef.
93366         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
93367         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
93368         (_jm_DECL_HEADERS): Define new function.
93369         (jm_CHECK_DECLARATIONS): Require it.
93370
93371 2000-01-22  Jim Meyering  <meyering@lucent.com>
93372
93373         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
93374         [! HAVE_DECL_STRTOULL]: Declare strtoull.
93375         Required for some AIX systems.  Reported by Christian Krackowizer.
93376         [TESTING] (main): New function.
93377
93378         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
93379         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
93380         letters.
93381
93382         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
93383         iswprint.
93384
93385         * lib/strverscmp.c (ISDIGIT): Define.
93386         (strverscmp): Use ISDIGIT, not isdigit.
93387
93388 2000-01-19  Jim Meyering  <meyering@lucent.com>
93389
93390         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
93391         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
93392         defines `struct timespec' in <sys/time.h>
93393
93394         * m4/c-bs-a.m4: Remove uses of changequote altogether.
93395         Thanks to Akim for explaining.
93396
93397 2000-01-17  Paul Eggert  <eggert@twinsun.com>
93398
93399         * lib/nanosleep.c (nanosleep):
93400         Don't use SA_INTERRUPT to decide whether to call sigaction, as
93401         POSIX.1 doesn't require SA_INTERRUPT and some systems
93402         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
93403         it's been part of POSIX.1 since day 1 (in 1988).
93404
93405 2000-01-17  Jim Meyering  <meyering@lucent.com>
93406
93407         * lib/interlock: Remove unused file.  Reported by François Pinard.
93408
93409 2000-01-16  Paul Eggert  <eggert@twinsun.com>
93410
93411         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
93412         alert, backslash, formfeed, and vertical tab unnecessarily in
93413         shell quoting style.
93414
93415 2000-01-16  Jim Meyering  <meyering@lucent.com>
93416
93417         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
93418         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
93419         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
93420         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
93421
93422 2000-01-16  Jim Meyering  <meyering@lucent.com>
93423
93424         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
93425         because the latter didn't work.
93426
93427 2000-01-15  Jim Meyering  <meyering@lucent.com>
93428
93429         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
93430         (AC_REPLACE_FUNCS): Add memcpy and memset.
93431         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
93432         Add strpbrk.
93433         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
93434
93435 2000-01-12  Jim Meyering  <meyering@lucent.com>
93436
93437         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
93438         (jm_PREREQ): Use it.
93439         (jm_PREREQ_READUTMP): New macro.
93440         (jm_PREREQ): Use it.
93441
93442 2000-01-11  Paul Eggert  <eggert@twinsun.com>
93443
93444         Quote multibyte characters correctly.
93445         * m4/c-bs-a.m4: New file.
93446         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
93447         (jm_PREREQ): Use it.
93448
93449 2000-01-11  Paul Eggert  <eggert@twinsun.com>
93450
93451         * m4/uintmax_t.m4: Port to autoconf 2.13.
93452
93453 2000-01-08  Jim Meyering  <meyering@ascend.com>
93454
93455         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
93456         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
93457
93458 2000-01-04  Jim Meyering  <meyering@ascend.com>
93459
93460         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
93461         jm_STRUCT_DIRENT_D_TYPE.
93462         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
93463         jm_STRUCT_DIRENT_D_INO.
93464         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
93465         jm_STRUCT_UTIMBUF.
93466         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
93467         renamings.
93468         * m4/utime.m4: Likewise.
93469
93470         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
93471         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
93472
93473 2000-01-03  Paul Eggert  <eggert@twinsun.com>
93474
93475         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
93476         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
93477
93478 2000-01-02  Jim Meyering  <meyering@ascend.com>
93479
93480         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
93481         remember if this is necessary.
93482
93483 1999-12-26  Jim Meyering  <meyering@ascend.com>
93484
93485         * m4/jm-macros.m4: Use it here.
93486         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
93487
93488 1999-12-23  Jim Meyering  <meyering@ascend.com>
93489
93490         * m4/jm-macros.m4: Check for clock_gettime (moved from
93491         fileutils/configure.in)
93492         Check for gettimeofday.
93493
93494 1999-12-20  Jim Meyering  <meyering@ascend.com>
93495
93496         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
93497         autoconf-2.14a-1999-12-20.
93498
93499 1999-12-19  Jim Meyering  <meyering@ascend.com>
93500
93501         * m4/lstat-slash.m4: New file.
93502         * m4/jm-macros.m4: Use the new macro:
93503         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93504
93505 1999-12-07  Jim Meyering  <meyering@ascend.com>
93506
93507         * m4/perl.m4: Require that File::Compare be available, too.
93508         Too many systems seem to lack it.
93509
93510         * m4/strftime.m4: Add checks for most of the cpp macros tested in
93511         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
93512
93513 1999-11-18  Paul Eggert  <eggert@twinsun.com>
93514
93515         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
93516         problem with the QNX 4.25 shell, which doesn't propagate exit
93517         status of failed commands inside shell assignments.
93518
93519 1999-11-17  Jim Meyering  <meyering@ascend.com>
93520
93521         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
93522
93523 1999-11-07  Jim Meyering  <meyering@ascend.com>
93524
93525         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
93526
93527 1999-11-06  Jim Meyering  <meyering@ascend.com>
93528
93529         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
93530         * m4/jm-macros.m4 (jm_MACROS): Use it here.
93531
93532 1999-11-05  Jim Meyering  <meyering@ascend.com>
93533
93534         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
93535         configure.in of textutils, fileutils, and sh-utils into this one
93536         (shared between those packages) file.
93537         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
93538         AC_STRUCT_ST_BLKSIZE.
93539
93540 1999-11-03  Jim Meyering  <meyering@ascend.com>
93541
93542         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
93543         of AC_CHECK_TYPE checks includes unistd.h.
93544         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
93545         Suggestion from Akim Demaille.
93546
93547 1999-10-30  Jim Meyering  <meyering@ascend.com>
93548
93549         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
93550         m4-quoted string.
93551         * m4/ls-mntd-fs.m4: Likewise.
93552         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
93553         * m4/jm-winsz1.m4: Likewise.
93554
93555         * m4/const.m4: Remove file, since the fix made it into the experimental
93556         version of autoconf.
93557         * m4/mktime.m4: Likewise.
93558
93559         * m4/check-type.m4: Remove file, now that the latest version of
93560         AC_CHECK_TYPE takes a third arg to specify additional #includes.
93561
93562         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
93563         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
93564         AC_CHECK_TYPE.
93565
93566 1999-10-04  Jim Meyering  <meyering@ascend.com>
93567
93568         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
93569
93570 1999-09-22  Paul Eggert  <eggert@twinsun.com>
93571
93572         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
93573         2.95.1 bug with HP-UX 10.20.
93574
93575 1999-09-17  Jim Meyering  <meyering@ascend.com>
93576
93577         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
93578         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
93579         due to missing strdup (against sh-utils-2.0).
93580
93581 1999-08-29  Jim Meyering  <meyering@ascend.com>
93582
93583         * m4/jm-macros.m4: Require jm_BISON.
93584         * m4/bison.m4: New file.
93585
93586 1999-08-17  Paul Eggert  <eggert@twinsun.com>
93587
93588         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
93589         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
93590
93591 1999-08-05  Jim Meyering  <meyering@ascend.com>
93592
93593         * m4/getline.m4: Rename test file from conftestdata to conftest.data
93594         to avoid conflicts with `conftest' on 8+3 filesystems.
93595         Suggestion from Eli Zaretskii.
93596
93597 1999-08-04  Jim Meyering  <meyering@ascend.com>
93598
93599         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
93600         fileutils and sh-utils (textutils's getline test was inadequate).
93601         (AM_FUNC_GETLINE): Run this test.
93602         (AC_CHECK_FUNCS): Check for getdelim.
93603         Reported by Bob Proulx.
93604
93605 1999-08-02  Jim Meyering  <meyering@ascend.com>
93606
93607         * m4/jm-macros.m4: Add a comment.
93608
93609 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93610
93611         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
93612         <inttypes.h> defines strtoumax as a macro (and not as a
93613         function).
93614
93615 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93616
93617         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
93618         that we can shift, multiply and divide unsigned long long
93619         values; Ultrix cc can't do it.
93620
93621 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93622
93623         * m4/mktime.m4: New file, which is a preview of what should appear
93624         in the next public autoconf release.
93625
93626 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93627
93628         * m4/lfs.m4: Remove this file.
93629         * m4/largefile.m4: New file.  It contains the old contents of
93630         lfs.m4, except that all names with prefix AC_LFS have been
93631         changed to use the prefix AC_SYS_LARGEFILE instead, to be
93632         compatible with future autoconf versions.  Also, some minor m4
93633         quoting problems have been fixed.
93634
93635 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93636
93637         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
93638         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
93639         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
93640         and simplify the shell code.
93641
93642 1999-08-01  Jim Meyering  <meyering@ascend.com>
93643
93644         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
93645         m4.
93646
93647 1999-07-20  Jim Meyering  <meyering@ascend.com>
93648
93649         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
93650
93651 1999-07-15  Jim Meyering  <meyering@ascend.com>
93652
93653         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
93654
93655 1999-05-22  Jim Meyering  <meyering@ascend.com>
93656
93657         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
93658
93659 1999-05-20  Jim Meyering  <meyering@ascend.com>
93660
93661         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
93662         Add a colon after each `then' in case $4 is empty.
93663
93664 1999-05-16  Jim Meyering  <meyering@ascend.com>
93665
93666         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
93667
93668 1999-05-10  Jim Meyering  <meyering@ascend.com>
93669
93670         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
93671
93672         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
93673         AC_FUNC_MKTIME.
93674
93675 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
93676
93677         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
93678
93679 1999-05-04  Paul Eggert  <eggert@twinsun.com>
93680
93681         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
93682         not CPPFLAGS, so that linking works correctly in IRIX.
93683
93684 1999-04-30  Paul Eggert  <eggert@twinsun.com>
93685
93686         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
93687
93688 1999-04-20  Paul Eggert  <eggert@twinsun.com>
93689
93690         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
93691         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
93692         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
93693         jm_AC_TYPE_UNSIGNED_LONG_LONG.
93694         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
93695
93696         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
93697
93698 1999-04-20  Jim Meyering  <meyering@ascend.com>
93699
93700         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
93701         AC_REPLACE xstroull if necessary.  From Paul Eggert.
93702         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
93703
93704 1999-04-18  Jim Meyering  <meyering@ascend.com>
93705
93706         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
93707         * m4/jm-macros.m4: Use it.
93708
93709 1999-04-06  Jim Meyering  <meyering@ascend.com>
93710
93711         * m4/strftime.m4: Remove test for %f.
93712
93713 1999-03-29  Jim Meyering  <meyering@ascend.com>
93714
93715         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
93716         superset of the AC_TYPE_* checks in the textutils, fileutils,
93717         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
93718         AC_TYPE_PID_T.
93719
93720 1999-03-28  Jim Meyering  <meyering@ascend.com>
93721
93722         * m4/jm-macros.m4: Define GNU_PACKAGE here.
93723         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
93724         replaced e.g., in the *.sh files of the sh-utils.
93725
93726 1999-03-20  Jim Meyering  <meyering@ascend.com>
93727
93728         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
93729         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
93730         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
93731
93732 1999-03-19  Jim Meyering  <meyering@ascend.com>
93733
93734         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
93735
93736 1999-03-12  Jim Meyering  <meyering@ascend.com>
93737
93738         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
93739
93740 1999-03-07  Jim Meyering  <meyering@ascend.com>
93741
93742         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
93743         declared.
93744
93745 1999-02-17  Jim Meyering  <meyering@ascend.com>
93746
93747         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
93748         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
93749
93750 1999-02-07  Jim Meyering  <meyering@ascend.com>
93751
93752         * m4/group-member.m4: New file -- extracted from sh-utils'
93753         configure.in.
93754
93755         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
93756         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
93757
93758 1999-02-06  Jim Meyering  <meyering@ascend.com>
93759
93760         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
93761         * m4/fnmatch.m4: Likewise.
93762         * m4/getgroups.m4: Likewise.
93763         * m4/lstat.m4: Likewise.
93764         * m4/malloc.m4: Likewise.
93765         * m4/putenv.m4: Likewise.
93766         * m4/realloc.m4: Likewise.
93767         * m4/regex.m4: Likewise.
93768         * m4/stat.m4: Likewise.
93769         * m4/strftime.m4: Likewise.
93770         Suggestion from Alain Magloire.
93771
93772         * m4/chown.m4: Use `.$ac_objext', not `.o'.
93773         * m4/fnmatch.m4: Likewise.
93774         * m4/getgroups.m4: Likewise.
93775         * m4/getline.m4: Likewise.
93776         * m4/lstat.m4: Likewise.
93777         * m4/malloc.m4: Likewise.
93778         * m4/memcmp.m4: Likewise.
93779         * m4/putenv.m4: Likewise.
93780         * m4/realloc.m4: Likewise.
93781         * m4/regex.m4: Likewise.
93782         * m4/stat.m4: Likewise.
93783         * m4/strftime.m4: Likewise.
93784         Suggestion from Alain Magloire.
93785
93786         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
93787         an argument.
93788
93789         * m4/regex.m4: Add a run-time Test for proper operation of
93790         re_compile_pattern.
93791
93792 1999-01-31  Jim Meyering  <meyering@ascend.com>
93793
93794         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
93795
93796 1999-01-30  Jim Meyering  <meyering@ascend.com>
93797
93798         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
93799
93800         * m4/jm-mktime.m4: Make this a wrapper around the official
93801         AM_FUNC_MKTIME rather than my private copy, now that the official one
93802         is up to date.
93803         * m4/mktime.m4: Remove file.
93804
93805         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
93806         * m4/uptime.m4: Likewise.
93807         * m4/uintmax_t.m4: Likewise.
93808
93809 1999-01-28  Jim Meyering  <meyering@ascend.com>
93810
93811         * m4/jm-macros.m4: Use jm_AFS.
93812         * m4/afs.m4: New file (from fileutils' configure.in).
93813
93814         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
93815         * m4/chown.m4: Likewise.
93816         * m4/d-ino.m4: Likewise.
93817         * m4/d-type.m4: Likewise.
93818         * m4/fnmatch.m4: Likewise.
93819         * m4/getgroups.m4: Likewise.
93820         * m4/gettext.m4: Likewise.
93821         * m4/jm-mktime.m4: Likewise.
93822         * m4/jm-winsz2.m4: Likewise.
93823         * m4/lcmessage.m4: Likewise.
93824         * m4/ls-mntd-fs.m4: Likewise.
93825         * m4/malloc.m4: Likewise.
93826         * m4/memcmp.m4: Likewise.
93827         * m4/putenv.m4: Likewise.
93828         * m4/realloc.m4: Likewise.
93829         * m4/st_mtim.m4: Likewise.
93830         * m4/strftime.m4: Likewise.
93831
93832 1999-01-16  Jim Meyering  <meyering@ascend.com>
93833
93834         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
93835         (ARGMATCH_DIE_DECL): Define.
93836
93837 1999-01-12  Jim Meyering  <meyering@ascend.com>
93838
93839         * m4/Makefile.am.in: Rewrite to avoid using fmt.
93840         Reported by Lars Hecking.
93841
93842 1999-01-10  Jim Meyering  <meyering@ascend.com>
93843
93844         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
93845         gross kludge.
93846         * m4/inttypes_h.m4: Likewise.
93847         * m4/lstat.m4: Likewise.
93848         * m4/malloc.m4: Likewise.
93849         * m4/readdir.m4: Likewise.
93850         * m4/realloc.m4: Likewise.
93851         * m4/st_dm_mode.m4: Likewise.
93852         * m4/stat.m4: Likewise.
93853         * m4/utimbuf.m4: Likewise.
93854         * m4/utimes.m4: Likewise.
93855
93856         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
93857         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
93858         comments in config.h.in are meaningful.
93859
93860         * m4/jm-macros.m4: Require autoconf-2.13 here.
93861
93862         * m4/regex.m4: By default, don't use the included regex.c on systems
93863         with glibc 2.  Suggestion from Uli Drepper.
93864
93865 1999-01-02  Jim Meyering  <meyering@ascend.com>
93866
93867         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
93868
93869 1998-12-18  Jim Meyering  <meyering@ascend.com>
93870
93871         * m4/Makefile.am.in (Makefile.am): Simplify rule.
93872         Based on a suggestion from Lars Hecking.
93873
93874 1998-11-16  Paul Eggert  <eggert@twinsun.com>
93875
93876         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
93877
93878 1998-11-16  Jim Meyering  <meyering@ascend.com>
93879
93880         * m4/lfs.m4: Double-quote the `uname...` expression.
93881
93882 1998-11-14  Jim Meyering  <meyering@ascend.com>
93883
93884         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
93885         * m4/stat.m4: Likewise.
93886
93887 1998-11-03  Jim Meyering  <meyering@ascend.com>
93888
93889         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
93890         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
93891
93892 1998-10-18  Jim Meyering  <meyering@ascend.com>
93893
93894         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
93895
93896 1998-10-17  Jim Meyering  <meyering@ascend.com>
93897
93898         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
93899         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
93900         calls for those previously hard-coded headers.  Instead, take a new
93901         parameter.
93902         (jm_CHECK_DECLARATIONS): Reflect interface change.
93903         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
93904         (jm_CHECK_DECL_LOCALTIME_R): New macro.
93905
93906         * m4/mktime.m4: Test for spring-forward gap before long-running test.
93907
93908 1998-10-14  Jim Meyering  <meyering@ascend.com>
93909
93910         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
93911         instead of "TZ=America/Vancouver".  From Paul Eggert.
93912
93913 1998-10-11  Jim Meyering  <meyering@ascend.com>
93914
93915         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
93916         This adds a test for a recently added compatibility fix for mktime.c.
93917         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
93918
93919 1998-09-27  Jim Meyering  <meyering@ascend.com>
93920
93921         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
93922
93923         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
93924         ../configure.in, including a change from Gordon Matzigkeit to allow
93925         cross-compiling for the Hurd.
93926
93927         * m4/glibc.m4: New file/macro to test for the GNU C Library
93928         versions 1 and 2.  From Gordon Matzigkeit.
93929         Indent.
93930
93931 1998-09-21  Jim Meyering  <meyering@ascend.com>
93932
93933         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
93934
93935 1998-08-18  Paul Eggert  <eggert@twinsun.com>
93936
93937         Port nanosecond-resolution times to UnixWare 2.1.2 and
93938         pedantic Solaris 2.6.
93939
93940         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
93941         AC_STRUCT_ST_MTIM.
93942         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
93943         Generate name of ns member, instead of just 1 or undef.
93944         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
93945
93946 1998-08-15  Jim Meyering  <meyering@ascend.com>
93947
93948         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
93949         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
93950         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
93951         instead of jm_TYPE_SSIZE_T.
93952
93953 1998-08-12  Jim Meyering  <meyering@ascend.com>
93954
93955         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
93956
93957 1998-08-02  Jim Meyering  <meyering@ascend.com>
93958
93959         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
93960         in acconfig.h manually.
93961
93962 1998-07-31  Paul Eggert  <eggert@twinsun.com>
93963
93964         * m4/st_mtim.m4: New file.
93965
93966 1998-07-28  Jim Meyering  <meyering@ascend.com>
93967
93968         * m4/utimes.m4: Undef stat.
93969
93970 1998-07-25  Jim Meyering  <meyering@ascend.com>
93971
93972         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
93973         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
93974
93975 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
93976
93977         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
93978         uid and gid actually remain unchanged.
93979
93980 1998-07-07  Jim Meyering  <meyering@ascend.com>
93981
93982         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
93983
93984 1998-07-04  Jim Meyering  <meyering@ascend.com>
93985
93986         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
93987         to prove that this macro can be used in packages without regex.c.
93988
93989 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
93990
93991         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
93992         is to be used.
93993
93994 1998-07-03  Jim Meyering  <meyering@ascend.com>
93995
93996         * m4/gettext.m4: Add -lintl if it's found to be necessary.
93997
93998         * m4/gettext.m4: New file -- from gettext-0.10.35.
93999         * m4/lcmessage.m4: Likewise.
94000         * m4/progtest.m4: Likewise.
94001
94002         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
94003         * m4/jm-macros.m4: Require the new macro.
94004
94005 1998-06-29  Jim Meyering  <meyering@ascend.com>
94006
94007         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
94008         for the definition of NGROUPS (used in a system header included
94009         by sys/mount.h).
94010
94011 1998-06-28  Jim Meyering  <meyering@ascend.com>
94012
94013         * m4/ls-mntd-fs.m4: New file.
94014         * m4/fstypename.m4: New file.
94015
94016         * m4/jm-macros.m4: Require the new macro.
94017         * m4/jm-glibc-io.m4: New file.
94018
94019 1998-05-19  Jim Meyering  <meyering@ascend.com>
94020
94021         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
94022         * m4/lchown.m4: New file.
94023
94024         * m4/Makefile.am.in: New file.
94025         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
94026
94027 1998-05-14  Jim Meyering  <meyering@ascend.com>
94028
94029         * m4/Makefile.am (EXTRA_DIST): Add them.
94030         * m4/jm-macros.m4: New file.
94031         * m4/utimbuf.m4: New file.
94032
94033 1998-05-12  Jim Meyering  <meyering@ascend.com>
94034
94035         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
94036
94037 1998-05-11  Jim Meyering  <meyering@ascend.com>
94038
94039         * m4/isc-posix.m4: New file.
94040
94041 1998-05-10  Jim Meyering  <meyering@ascend.com>
94042
94043         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
94044
94045 1998-05-09  Jim Meyering  <meyering@ascend.com>
94046
94047         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
94048         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
94049         with automake.
94050
94051         * m4/ssize_t.m4: New file.
94052         * m4/mktime.m4: Remove file -- the new automake has this now.
94053
94054 1998-04-26  Jim Meyering  <meyering@ascend.com>
94055
94056         * m4/assert.m4: New file.
94057         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
94058
94059 1998-04-05  Jim Meyering  <meyering@ascend.com>
94060
94061         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
94062         (jm_PREREQ): Use it here.
94063
94064 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
94065
94066         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
94067         in acconfig.h.
94068
94069 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
94070
94071         * m4/prereq.m4: New file.
94072         * m4/error.m4: New file.
94073         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
94074
94075 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
94076
94077         * m4/getline.m4: Don't set am_cv_func_working_getline before the
94078         cache-check for the same variable -- that defeated the purpose of
94079         the test; the test program was never run.  This was a problem only
94080         on systems with losing getline functions -- HP-UX 10.20 is one.
94081         Reported by Bjorn Helgaas.
94082
94083 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
94084
94085         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
94086
94087 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
94088
94089         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
94090
94091         * m4/const.m4: New file.  Use an initializer in this declaration
94092         typedef int charset[2]; const charset x;
94093         Reported by Bob Glickstein.
94094
94095 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
94096
94097         * m4/chown.m4: Fix reversed types on -1 args to chown.
94098         From Kaveh Ghazi.
94099
94100 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
94101
94102         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
94103         Add lseek and memchr.
94104
94105         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
94106         T.E.Dickey <dickey@clark.net> said that some older preprocessors
94107         have a 20-character limit on names.
94108
94109 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
94110
94111         * m4/inttypes_h.m4: New file.
94112         * m4/uintmax_t.m4: New file.
94113         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
94114
94115
94116         -----
94117
94118         Local Variables:
94119         coding: utf-8
94120         End:
94121
94122         Copyright (C) 1997-2012 Free Software Foundation, Inc.
94123
94124         Copying and distribution of this file, with or without
94125         modification, are permitted provided the copyright notice
94126         and this notice are preserved.